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
3,815,606
The plane $/4+/4+/7=1$ intersects the $-$ , $ -$ , and $-$ axes in points $, , $. Find the area of the triangle $Δ$. So here's my attempt. First I find the normal vector: $\left\langle\frac{1}{4}+\frac{1}{4}+\frac{1}{7}\right\rangle$ And then I find its magnitude: $\frac{\sqrt{57}}{14\sqrt{2}}$ And then I take a h...
2020/09/05
[ "https://math.stackexchange.com/questions/3815606", "https://math.stackexchange.com", "https://math.stackexchange.com/users/752703/" ]
The points $P,Q,R$ are easily seen to be $P=(4,0,0),Q=(0,4,0),R=(0,0,7)$. By the symmetry in the $x-$ and $y-$coordinates, this is an isosceles triangle with base $PQ$ and height $TR$, where $T$ is the mid-point of $PQ$. Can you take it from there?
Let $O$ be an origin. Thus, $OP=OQ=4,$ $OR=7,$ $PR=RQ=\sqrt{65},$ $PQ=\sqrt{32}$ and $$S\_{\Delta PQR}=\frac{1}{4}\sqrt{2(65^2+65\cdot32+65\cdot32)-65^2-32^2-65^2}=\sqrt{456}.$$
3,815,606
The plane $/4+/4+/7=1$ intersects the $-$ , $ -$ , and $-$ axes in points $, , $. Find the area of the triangle $Δ$. So here's my attempt. First I find the normal vector: $\left\langle\frac{1}{4}+\frac{1}{4}+\frac{1}{7}\right\rangle$ And then I find its magnitude: $\frac{\sqrt{57}}{14\sqrt{2}}$ And then I take a h...
2020/09/05
[ "https://math.stackexchange.com/questions/3815606", "https://math.stackexchange.com", "https://math.stackexchange.com/users/752703/" ]
The points $P,Q,R$ are easily seen to be $P=(4,0,0),Q=(0,4,0),R=(0,0,7)$. By the symmetry in the $x-$ and $y-$coordinates, this is an isosceles triangle with base $PQ$ and height $TR$, where $T$ is the mid-point of $PQ$. Can you take it from there?
Intercepts on the axes are $(4,4,7)$. The sides are $ 4\sqrt2, \sqrt{65},\sqrt {65}...$ because they are perpendicular. Pythagoras thm can be used. Use formula $\sqrt{s(s-a)(s-b)(s-c)}$
3,815,606
The plane $/4+/4+/7=1$ intersects the $-$ , $ -$ , and $-$ axes in points $, , $. Find the area of the triangle $Δ$. So here's my attempt. First I find the normal vector: $\left\langle\frac{1}{4}+\frac{1}{4}+\frac{1}{7}\right\rangle$ And then I find its magnitude: $\frac{\sqrt{57}}{14\sqrt{2}}$ And then I take a h...
2020/09/05
[ "https://math.stackexchange.com/questions/3815606", "https://math.stackexchange.com", "https://math.stackexchange.com/users/752703/" ]
Points of intersection are $$P=(4,0,0)\quad Q=(0,4,0)\quad R=(0,0,7)\quad$$ then we can find the base and hight and then the area. Otherwise we can use [cross product](https://en.wikipedia.org/wiki/Triangle#Using_vectors) $$S=\frac12 \left|\vec{RP}\times \vec{RQ}\right|$$
Let $O$ be an origin. Thus, $OP=OQ=4,$ $OR=7,$ $PR=RQ=\sqrt{65},$ $PQ=\sqrt{32}$ and $$S\_{\Delta PQR}=\frac{1}{4}\sqrt{2(65^2+65\cdot32+65\cdot32)-65^2-32^2-65^2}=\sqrt{456}.$$
3,815,606
The plane $/4+/4+/7=1$ intersects the $-$ , $ -$ , and $-$ axes in points $, , $. Find the area of the triangle $Δ$. So here's my attempt. First I find the normal vector: $\left\langle\frac{1}{4}+\frac{1}{4}+\frac{1}{7}\right\rangle$ And then I find its magnitude: $\frac{\sqrt{57}}{14\sqrt{2}}$ And then I take a h...
2020/09/05
[ "https://math.stackexchange.com/questions/3815606", "https://math.stackexchange.com", "https://math.stackexchange.com/users/752703/" ]
Points of intersection are $$P=(4,0,0)\quad Q=(0,4,0)\quad R=(0,0,7)\quad$$ then we can find the base and hight and then the area. Otherwise we can use [cross product](https://en.wikipedia.org/wiki/Triangle#Using_vectors) $$S=\frac12 \left|\vec{RP}\times \vec{RQ}\right|$$
Intercepts on the axes are $(4,4,7)$. The sides are $ 4\sqrt2, \sqrt{65},\sqrt {65}...$ because they are perpendicular. Pythagoras thm can be used. Use formula $\sqrt{s(s-a)(s-b)(s-c)}$
18,135,119
I need sort functions [function1(), function2(), function3()] in order of the values in array $numbers ($numbers[0], $numbers[1], $numbers[2]). I only successfully sorted values $n1, $n2, $n3. But now I do not know how to sort functions below according these sorted values in array. In this cause it means that first...
2013/08/08
[ "https://Stackoverflow.com/questions/18135119", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2166133/" ]
How to change the order of the functions... ------------------------------------------- I'll answer the question in the topic first, because that's what I've been asked to do. ``` // First, create an array with the three values mapping to the three functions $numbers = array( 50000 => 'function1', 25000 => ...
What do you mean by "sorting functions"? Do you want to change the order in which the functions are called? I see that you are not calling your functions from anywhere in your code. So, what do you intend to do in the first place?
61,558,488
I used tkinter to create a button and assigned a function to it using `command` parameter. But this function contains some code takes time to execute. I have simulated it here using `time.sleep()`. I want to remove this button when this button is clicked. For this I called the global variable for button inside the func...
2020/05/02
[ "https://Stackoverflow.com/questions/61558488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5360375/" ]
Call [update\_idletasks](http://effbot.org/tkinterbook/widget.htm#Tkinter.Widget.update_idletasks-method) method of the *login\_screen* window after removing the button. From *effbot*: > > **update\_idletasks()** > > > Calls all pending idle tasks, without processing any other events. This can be used to carry out...
Using `update()` works: ``` def signIn(): global login_button, login_screen login_button.pack_forget() login_screen.update() # code after this takes some time to run. time.sleep(10) ```
61,558,488
I used tkinter to create a button and assigned a function to it using `command` parameter. But this function contains some code takes time to execute. I have simulated it here using `time.sleep()`. I want to remove this button when this button is clicked. For this I called the global variable for button inside the func...
2020/05/02
[ "https://Stackoverflow.com/questions/61558488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5360375/" ]
Call [update\_idletasks](http://effbot.org/tkinterbook/widget.htm#Tkinter.Widget.update_idletasks-method) method of the *login\_screen* window after removing the button. From *effbot*: > > **update\_idletasks()** > > > Calls all pending idle tasks, without processing any other events. This can be used to carry out...
This worked for me in that situation. ``` def launch_button(*args): # button will show new text when this function is done. The second argument # is the new text we're sending to the button data_button_widget.configure(text=args[1]) # schedule launch of the next function, 1 ms after returning to mainlo...
61,558,488
I used tkinter to create a button and assigned a function to it using `command` parameter. But this function contains some code takes time to execute. I have simulated it here using `time.sleep()`. I want to remove this button when this button is clicked. For this I called the global variable for button inside the func...
2020/05/02
[ "https://Stackoverflow.com/questions/61558488", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5360375/" ]
This worked for me in that situation. ``` def launch_button(*args): # button will show new text when this function is done. The second argument # is the new text we're sending to the button data_button_widget.configure(text=args[1]) # schedule launch of the next function, 1 ms after returning to mainlo...
Using `update()` works: ``` def signIn(): global login_button, login_screen login_button.pack_forget() login_screen.update() # code after this takes some time to run. time.sleep(10) ```
30,635,873
Currently i have a span and a progress div as below- ![enter image description here](https://i.stack.imgur.com/3nDTG.png) But what I want is - ![enter image description here](https://i.stack.imgur.com/kYCEH.png) Current code is ``` <td> <span>570</span> <br /> <div class="progress slim"> <div class=...
2015/06/04
[ "https://Stackoverflow.com/questions/30635873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/770135/" ]
Remove `<br />` If you have additional styling, you can also use the **display: inline** css class. See here: <http://jsfiddle.net/cz7rh719/>
Remove `<br />` and add `display:inline-block` for your progress div. ``` div.progress{display:inline-block;} ``` [**DEMO**](http://jsfiddle.net/kkvz0yn9/)
30,635,873
Currently i have a span and a progress div as below- ![enter image description here](https://i.stack.imgur.com/3nDTG.png) But what I want is - ![enter image description here](https://i.stack.imgur.com/kYCEH.png) Current code is ``` <td> <span>570</span> <br /> <div class="progress slim"> <div class=...
2015/06/04
[ "https://Stackoverflow.com/questions/30635873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/770135/" ]
\*\*Remove \*\* ``` <br /> ``` \*\*and its inline style should be \*\* ``` style="display:inline-block;" ```
Remove `<br />` and add `display:inline-block` for your progress div. ``` div.progress{display:inline-block;} ``` [**DEMO**](http://jsfiddle.net/kkvz0yn9/)
21,670,405
There seems to be a very important change in the way ACTION\_BOOT\_COMPLETED broadcast is sent out in the latest android release. In JB 4.3, the boot complete broadcast was processed in parallel. Where as in KK 4.4.2 its being processed serially. This is delaying the start of services after boot up. [KITKAT 4.4.2](htt...
2014/02/10
[ "https://Stackoverflow.com/questions/21670405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2172676/" ]
The change was made by @hackbod, perhaps she can shed light on the reason. Her checkin note states: > > Finish issue #10779747: Calendar Storage crash observed... > > > ...while setting up a new user from settings. > > > We can now delay broadcasts when there are enough background services > currently starting (...
Yeah,I meet this question now. BOOT\_COMPLETED ordered = true,many services running delay for a long time. If I remove all the GMS apps,it'll be OK.Because too many GMS apps register the BOOT\_COMPLETED broadcast. ``` public class BootReceiver extends BroadcastReceiver { @Override public void onReceive(Conte...
21,670,405
There seems to be a very important change in the way ACTION\_BOOT\_COMPLETED broadcast is sent out in the latest android release. In JB 4.3, the boot complete broadcast was processed in parallel. Where as in KK 4.4.2 its being processed serially. This is delaying the start of services after boot up. [KITKAT 4.4.2](htt...
2014/02/10
[ "https://Stackoverflow.com/questions/21670405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2172676/" ]
You can try to modify the follow code in frameworks\base\services\java\com\android\server\am\ActivityManagerService.java(line 1974 around): ``` private ActivityManagerService() { ...... mBgBroadcastQueue = new BroadcastQueue(this, "background", BROADCAST_BG_TIMEOUT, true); ...... } ``` from: ``` mBgBroa...
Yeah,I meet this question now. BOOT\_COMPLETED ordered = true,many services running delay for a long time. If I remove all the GMS apps,it'll be OK.Because too many GMS apps register the BOOT\_COMPLETED broadcast. ``` public class BootReceiver extends BroadcastReceiver { @Override public void onReceive(Conte...
3,752,272
Why does the remark in [Wiki's proof of Warning's theorem](https://en.wikipedia.org/wiki/Chevalley%E2%80%93Warning_theorem#Proof_of_Warning%27s_theorem) true? > > If ${\displaystyle i<q-1}$ then ${\displaystyle \sum \_{x\in \mathbb {F} }x^{i}=0}$ > > > Best regards
2020/07/10
[ "https://math.stackexchange.com/questions/3752272", "https://math.stackexchange.com", "https://math.stackexchange.com/users/735934/" ]
This a special case of something more general. **Fact 1.** Suppose $F$ is a field, $G$ is a finite group, and $\varphi:G \to F^{\times}$ is a nontrivial group homomorphism. Then $\sum\_{x\in G}\varphi(x)=0$. Here: * $0$ is the additive identity of $F$, * $F^{\times}$ is the multiplicative group $F\setminus \{0\}$ * ...
The map $x \mapsto x^i$ is a group homomorphism $\mathbb{F}^{\times} \to \mathbb{F}^{\times}$. If its image is a subgroup of $H$ order $d$, then the image is exactly the set of solutions of $x^d=1$ because $\mathbb{F}^{\times}$ is cyclic. Therefore, the sum of its elements is $0$ because there is no $x^{d-1}$ term in $...
22,921
I am designing a checkout workflow where the old IA has mocked up different screens for billing/shipping and payment. I want to combine into one page like this (which I've abbreviated): ![enter image description here](https://i.stack.imgur.com/uGPX2.gif) I've said there is an evidence base behind it but can't find a...
2012/06/27
[ "https://ux.stackexchange.com/questions/22921", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/4701/" ]
It's not even studies or evidence. It's one of the main principles of good UX: the fewer the screens a person needs to see to accomplish a task the better the experience is and the least frustration s/he feels. Fewer screens mean fewer steps, fewer opportunities to make a mistake, less time spent getting familiar with...
Here is my opinion which I have understand from question: ![enter image description here](https://i.stack.imgur.com/VVMcE.png)
22,921
I am designing a checkout workflow where the old IA has mocked up different screens for billing/shipping and payment. I want to combine into one page like this (which I've abbreviated): ![enter image description here](https://i.stack.imgur.com/uGPX2.gif) I've said there is an evidence base behind it but can't find a...
2012/06/27
[ "https://ux.stackexchange.com/questions/22921", "https://ux.stackexchange.com", "https://ux.stackexchange.com/users/4701/" ]
It's not even studies or evidence. It's one of the main principles of good UX: the fewer the screens a person needs to see to accomplish a task the better the experience is and the least frustration s/he feels. Fewer screens mean fewer steps, fewer opportunities to make a mistake, less time spent getting familiar with...
There are some other considerations which take precedence to UX studies. Besides backend technicalities there's an issue of security/privacy and how repeat customer purchases are structured during the checkout. On security and privacy I merely mention the concept of minimal exposure and leave it at that. Successful che...
72,459,839
So i want my page to reload an amount of seconds after the button is clicked. Right now it reloads every 5 seconds automatically. But if i put the timeout function in the addEvenlistener then it errors. What can i do to solve it? ``` button.addEventListener( 'click', () => (cover.style.visibility = 'hidden') &...
2022/06/01
[ "https://Stackoverflow.com/questions/72459839", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Weird, this should work. Are you sure you didn't forget the curly braces in the click callback? ``` button.addEventListener('click', () => { cover.style.visibility = 'hidden'; button.style.visibility = 'hidden'; setTimeout(function () { window.location.reload(); }, 5000); }); ```
You just need to write it inside the EventListener as @Jonas mentioned. And also you can have that timeout value to be dynamic as well ```js var timeoutValue = 5000 button.addEventListener('click', () => { cover.style.visibility = 'hidden'; button.style.visibility = 'hidden'; setTimeout(function () { window....
37,751,511
I am using SQL Server 2012. I guess what I am asking is should I continue on the path of researching the ability to create a SP (or UDF, but with #Temp tables probably involved, I was thinking SP) in order to have a reusable object to determine the median? I hope this isn't too generic of a question, and is hosed, bu...
2016/06/10
[ "https://Stackoverflow.com/questions/37751511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4118263/" ]
Here is a stored proc I use to generate some quick stats. Simply pass a Source, Measure and/or Filter. ``` CREATE PROCEDURE [dbo].[prc-Dynamic-Stats](@Table varchar(150),@Fld varchar(50), @Filter varchar(500)) -- Syntax: Exec [dbo].[prc-Dynamic-Stats] '[Chinrus-Series].[dbo].[DS_Treasury_Rates]','TR_Y10','Year(TR_...
If using SQL Server 2008 or newer (which you are), you can write a function that accepts a `table-valued parameter` as input. ``` Create Type MedianData As Table ( DataPoint Int ) Create Function CalculateMedian ( @MedianData MedianData ReadOnly ) Returns Int As Begin -- do something with @MedianData which...
37,751,511
I am using SQL Server 2012. I guess what I am asking is should I continue on the path of researching the ability to create a SP (or UDF, but with #Temp tables probably involved, I was thinking SP) in order to have a reusable object to determine the median? I hope this isn't too generic of a question, and is hosed, bu...
2016/06/10
[ "https://Stackoverflow.com/questions/37751511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4118263/" ]
You may want to take a look at a response that I had to [this](https://stackoverflow.com/a/37753974/6448783) post. In short, if you're comfortable with C# or VB .NET, you could create a user defined CLR aggregate. We use CLR implementations for quite a few things, especially statistical methods that you may see in othe...
If using SQL Server 2008 or newer (which you are), you can write a function that accepts a `table-valued parameter` as input. ``` Create Type MedianData As Table ( DataPoint Int ) Create Function CalculateMedian ( @MedianData MedianData ReadOnly ) Returns Int As Begin -- do something with @MedianData which...
37,751,511
I am using SQL Server 2012. I guess what I am asking is should I continue on the path of researching the ability to create a SP (or UDF, but with #Temp tables probably involved, I was thinking SP) in order to have a reusable object to determine the median? I hope this isn't too generic of a question, and is hosed, bu...
2016/06/10
[ "https://Stackoverflow.com/questions/37751511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4118263/" ]
This is easily accomplished by creating a User-Defined Aggregate (UDA) via SQLCLR. If you want to see how to do it, or even just download the UDA, check out the article I wrote about it on SQL Server Central: [Getting The Most Out of SQL Server 2005 UDTs and UDAs](http://www.sqlservercentral.com/articles/SQL+CLR/3208/)...
If using SQL Server 2008 or newer (which you are), you can write a function that accepts a `table-valued parameter` as input. ``` Create Type MedianData As Table ( DataPoint Int ) Create Function CalculateMedian ( @MedianData MedianData ReadOnly ) Returns Int As Begin -- do something with @MedianData which...
37,751,511
I am using SQL Server 2012. I guess what I am asking is should I continue on the path of researching the ability to create a SP (or UDF, but with #Temp tables probably involved, I was thinking SP) in order to have a reusable object to determine the median? I hope this isn't too generic of a question, and is hosed, bu...
2016/06/10
[ "https://Stackoverflow.com/questions/37751511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4118263/" ]
Here is a stored proc I use to generate some quick stats. Simply pass a Source, Measure and/or Filter. ``` CREATE PROCEDURE [dbo].[prc-Dynamic-Stats](@Table varchar(150),@Fld varchar(50), @Filter varchar(500)) -- Syntax: Exec [dbo].[prc-Dynamic-Stats] '[Chinrus-Series].[dbo].[DS_Treasury_Rates]','TR_Y10','Year(TR_...
You may want to take a look at a response that I had to [this](https://stackoverflow.com/a/37753974/6448783) post. In short, if you're comfortable with C# or VB .NET, you could create a user defined CLR aggregate. We use CLR implementations for quite a few things, especially statistical methods that you may see in othe...
37,751,511
I am using SQL Server 2012. I guess what I am asking is should I continue on the path of researching the ability to create a SP (or UDF, but with #Temp tables probably involved, I was thinking SP) in order to have a reusable object to determine the median? I hope this isn't too generic of a question, and is hosed, bu...
2016/06/10
[ "https://Stackoverflow.com/questions/37751511", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4118263/" ]
Here is a stored proc I use to generate some quick stats. Simply pass a Source, Measure and/or Filter. ``` CREATE PROCEDURE [dbo].[prc-Dynamic-Stats](@Table varchar(150),@Fld varchar(50), @Filter varchar(500)) -- Syntax: Exec [dbo].[prc-Dynamic-Stats] '[Chinrus-Series].[dbo].[DS_Treasury_Rates]','TR_Y10','Year(TR_...
This is easily accomplished by creating a User-Defined Aggregate (UDA) via SQLCLR. If you want to see how to do it, or even just download the UDA, check out the article I wrote about it on SQL Server Central: [Getting The Most Out of SQL Server 2005 UDTs and UDAs](http://www.sqlservercentral.com/articles/SQL+CLR/3208/)...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
The answer by JKL is sufficient but I want to address particularly the *Why?*. > > I am so confused. Why does it act the way it does? > > > If one reads a bit about the history of science and physics in particular, it becomes clear that physics at the ultimate end does not answer the ultimate *Why?*. Physics posi...
You will probably find a satisfactory answer reading the experiment done by **Shahriar Afshar**, who claimes to have observed both, the wave and particle, properties of mater simultaneously. Here is the link, <http://en.wikipedia.org/wiki/Afshar_experiment> You will find more links therein, as well as criticism of th...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
This answer expands on the answer given by anna v It is easy to become accustomed to a pattern of physics providing explanation after explanation. For example, how is it that a gas has elastic properties under compression? If you compress it to half the volume, the pressure pretty much doubles. It's surprisingly sim...
You will probably find a satisfactory answer reading the experiment done by **Shahriar Afshar**, who claimes to have observed both, the wave and particle, properties of mater simultaneously. Here is the link, <http://en.wikipedia.org/wiki/Afshar_experiment> You will find more links therein, as well as criticism of th...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
> > Are there theories that explain wave-particle duality? > > > Yes, several actually, but they are interpretations rather than new theories. As anna v explained in her reply, at its most fundamental level the only answer a physical theory can give to the question *Why?* is *Because!*. It's impossible to give ...
You will probably find a satisfactory answer reading the experiment done by **Shahriar Afshar**, who claimes to have observed both, the wave and particle, properties of mater simultaneously. Here is the link, <http://en.wikipedia.org/wiki/Afshar_experiment> You will find more links therein, as well as criticism of th...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
You will probably find a satisfactory answer reading the experiment done by **Shahriar Afshar**, who claimes to have observed both, the wave and particle, properties of mater simultaneously. Here is the link, <http://en.wikipedia.org/wiki/Afshar_experiment> You will find more links therein, as well as criticism of th...
I think your confusion about waves and particles will go away if you start thinking about what information nature *allows* you to know about the system you are examining. Think about macroscopic ball: billions of air molecules and photons bounce off from it all the time. You can in theory use all the information to ha...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
The answer by JKL is sufficient but I want to address particularly the *Why?*. > > I am so confused. Why does it act the way it does? > > > If one reads a bit about the history of science and physics in particular, it becomes clear that physics at the ultimate end does not answer the ultimate *Why?*. Physics posi...
This answer expands on the answer given by anna v It is easy to become accustomed to a pattern of physics providing explanation after explanation. For example, how is it that a gas has elastic properties under compression? If you compress it to half the volume, the pressure pretty much doubles. It's surprisingly sim...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
The answer by JKL is sufficient but I want to address particularly the *Why?*. > > I am so confused. Why does it act the way it does? > > > If one reads a bit about the history of science and physics in particular, it becomes clear that physics at the ultimate end does not answer the ultimate *Why?*. Physics posi...
> > Are there theories that explain wave-particle duality? > > > Yes, several actually, but they are interpretations rather than new theories. As anna v explained in her reply, at its most fundamental level the only answer a physical theory can give to the question *Why?* is *Because!*. It's impossible to give ...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
The answer by JKL is sufficient but I want to address particularly the *Why?*. > > I am so confused. Why does it act the way it does? > > > If one reads a bit about the history of science and physics in particular, it becomes clear that physics at the ultimate end does not answer the ultimate *Why?*. Physics posi...
I think your confusion about waves and particles will go away if you start thinking about what information nature *allows* you to know about the system you are examining. Think about macroscopic ball: billions of air molecules and photons bounce off from it all the time. You can in theory use all the information to ha...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
This answer expands on the answer given by anna v It is easy to become accustomed to a pattern of physics providing explanation after explanation. For example, how is it that a gas has elastic properties under compression? If you compress it to half the volume, the pressure pretty much doubles. It's surprisingly sim...
I think your confusion about waves and particles will go away if you start thinking about what information nature *allows* you to know about the system you are examining. Think about macroscopic ball: billions of air molecules and photons bounce off from it all the time. You can in theory use all the information to ha...
59,448
I'm confused by the famous wave-particle duality mystery: When a particle is left unobserved, it acts like a wave and can explore all classically available particle trajectories simultaneously. By looking at it, you force it to decide on a single trajectory, like going through the left or right slit, or like Schröding...
2013/03/30
[ "https://physics.stackexchange.com/questions/59448", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/8091/" ]
> > Are there theories that explain wave-particle duality? > > > Yes, several actually, but they are interpretations rather than new theories. As anna v explained in her reply, at its most fundamental level the only answer a physical theory can give to the question *Why?* is *Because!*. It's impossible to give ...
I think your confusion about waves and particles will go away if you start thinking about what information nature *allows* you to know about the system you are examining. Think about macroscopic ball: billions of air molecules and photons bounce off from it all the time. You can in theory use all the information to ha...
34,955,076
When I run this, the first time I open History tab, nothing shows up on the tableView. Only after I rotate the screen things show up but they are still being funny.Both labels show up only after rotating the screen. Not all the history is being shown as well sometimes. I read that I am missing some initializer but I ke...
2016/01/22
[ "https://Stackoverflow.com/questions/34955076", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5601771/" ]
**A Requirements**: Let’s assume below simplified case/scenario 1 *We have one "big" table:* TableAll ``` Row a b c 1 1 11 12 2 1 13 14 3 1 15 16 4 1 17 18 5 2 21 22 6 2 23 24 7 2 25 26 8 2 27 28 9 3 31 32 10 3 33 34 11 3 35 36 12 3 37 38 ``` 2 *We ...
2018 update ----------- * Instead of creating multiple tables, create a partitioned one. * Partition for free: Create partitioned table (by date), import into it. * Partition with one query (one scan): `CREATE TABLE ... AS SELECT * FROM old-table` See the following post to also benefit from clustering: * <https://me...
60,019,558
I am trying to write a bash script that takes in a directory, reads each file in the directory, and then appends the first line of each file in that directory to a new file. When I hard-code the variables in my script, it works fine. This works: ``` #!/bin/bash rm /local/SomePath/multigene.firstline.btab touch /loca...
2020/02/01
[ "https://Stackoverflow.com/questions/60019558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8334443/" ]
You have to pay extra attention to [quoting](https://mywiki.wooledge.org/Quotes#Prevent_field_splitting_and_ignore_glob_pattern_characters) and [globbing](https://www.tldp.org/LDP/abs/html/globbingref.html) when writing bash scripts. When you call the script with a glob (`*` here) it gets expanded and split into words...
This also works: ``` head -n1 -q /local/SomePath/test/* >> /local/SomePath/out.test/multigene.firstline.btab ```
60,019,558
I am trying to write a bash script that takes in a directory, reads each file in the directory, and then appends the first line of each file in that directory to a new file. When I hard-code the variables in my script, it works fine. This works: ``` #!/bin/bash rm /local/SomePath/multigene.firstline.btab touch /loca...
2020/02/01
[ "https://Stackoverflow.com/questions/60019558", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8334443/" ]
You have to pay extra attention to [quoting](https://mywiki.wooledge.org/Quotes#Prevent_field_splitting_and_ignore_glob_pattern_characters) and [globbing](https://www.tldp.org/LDP/abs/html/globbingref.html) when writing bash scripts. When you call the script with a glob (`*` here) it gets expanded and split into words...
I think the right answer here is "don't do it that way." :-) The reason your current script isn't working may be that the wildcard is expanded by your interactive shell, not by your script. Try running your command with an `echo` at the beginning of the line for a hint at what's really happening. Once `getopts` sees t...
1,053,207
I know that the reason that Microsoft came out with ASP.NET MVC was to make it simpler to do Test Driven Design (TDD) for ASP.NET. However, I have a rather large brown field (existing) application in ASP.NET WebForms that I would love to implement some TDD type functionality in. I'm assuming that there IS a way to do t...
2009/06/27
[ "https://Stackoverflow.com/questions/1053207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116620/" ]
Microsoft introduced ASP.NET MVC because they thought they could make money from an untapped market - those who feel that Web Forms are too "heavyweight", and who are programming using a lighter-weight framework. This includes those who are accustomed to the MVC paradigm. It also includes those who couldn't figure out...
You can run HTTP-based tests to test the high level functionality. The best thing would be to encapsulate code-behind code into your business layer and run unit tests on it.
1,053,207
I know that the reason that Microsoft came out with ASP.NET MVC was to make it simpler to do Test Driven Design (TDD) for ASP.NET. However, I have a rather large brown field (existing) application in ASP.NET WebForms that I would love to implement some TDD type functionality in. I'm assuming that there IS a way to do t...
2009/06/27
[ "https://Stackoverflow.com/questions/1053207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116620/" ]
First of all, its really hard to test WebForms. But if you break out logic to Controllers/Presenters like the MVC/MVP pattern you can at least test the presenters. Pseudo-code Default.aspx ``` public void Page_Init(object sender, EventArgs e) { _presenter = new DefaultPresenter(IDependencyOne, IDependencyTwo etc) /...
You can run HTTP-based tests to test the high level functionality. The best thing would be to encapsulate code-behind code into your business layer and run unit tests on it.
1,053,207
I know that the reason that Microsoft came out with ASP.NET MVC was to make it simpler to do Test Driven Design (TDD) for ASP.NET. However, I have a rather large brown field (existing) application in ASP.NET WebForms that I would love to implement some TDD type functionality in. I'm assuming that there IS a way to do t...
2009/06/27
[ "https://Stackoverflow.com/questions/1053207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116620/" ]
Microsoft introduced ASP.NET MVC because they thought they could make money from an untapped market - those who feel that Web Forms are too "heavyweight", and who are programming using a lighter-weight framework. This includes those who are accustomed to the MVC paradigm. It also includes those who couldn't figure out...
You can use the official Unittest Framework: <http://msdn.microsoft.com/en-us/library/ms182526.aspx>
1,053,207
I know that the reason that Microsoft came out with ASP.NET MVC was to make it simpler to do Test Driven Design (TDD) for ASP.NET. However, I have a rather large brown field (existing) application in ASP.NET WebForms that I would love to implement some TDD type functionality in. I'm assuming that there IS a way to do t...
2009/06/27
[ "https://Stackoverflow.com/questions/1053207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116620/" ]
Microsoft introduced ASP.NET MVC because they thought they could make money from an untapped market - those who feel that Web Forms are too "heavyweight", and who are programming using a lighter-weight framework. This includes those who are accustomed to the MVC paradigm. It also includes those who couldn't figure out...
First of all, its really hard to test WebForms. But if you break out logic to Controllers/Presenters like the MVC/MVP pattern you can at least test the presenters. Pseudo-code Default.aspx ``` public void Page_Init(object sender, EventArgs e) { _presenter = new DefaultPresenter(IDependencyOne, IDependencyTwo etc) /...
1,053,207
I know that the reason that Microsoft came out with ASP.NET MVC was to make it simpler to do Test Driven Design (TDD) for ASP.NET. However, I have a rather large brown field (existing) application in ASP.NET WebForms that I would love to implement some TDD type functionality in. I'm assuming that there IS a way to do t...
2009/06/27
[ "https://Stackoverflow.com/questions/1053207", "https://Stackoverflow.com", "https://Stackoverflow.com/users/116620/" ]
First of all, its really hard to test WebForms. But if you break out logic to Controllers/Presenters like the MVC/MVP pattern you can at least test the presenters. Pseudo-code Default.aspx ``` public void Page_Init(object sender, EventArgs e) { _presenter = new DefaultPresenter(IDependencyOne, IDependencyTwo etc) /...
You can use the official Unittest Framework: <http://msdn.microsoft.com/en-us/library/ms182526.aspx>
27,610,422
If i recall correctly there used to be a third party library that upon device shake would allow the user to record the app ui and send feedback to the developers. Unfortunately my Google-fu is weak and i cant find it. Anyone know what I'm talking about?
2014/12/22
[ "https://Stackoverflow.com/questions/27610422", "https://Stackoverflow.com", "https://Stackoverflow.com/users/481983/" ]
There are some tools that are exactly what you are looking at: * Instabug (<http://instabug.com>) * Flurry (<http://www.flurry.com>) * Crashlytics (<http://try.crashlytics.com/sdk/>) * Test Flight (<https://www.testflightapp.com>) * PLCrashReporter (<https://www.plcrashreporter.org/>) * BlitFeedback (<http://www.blitf...
Don't know if it does video, but [Telerik's AppFeedback](http://www.telerik.com/appfeedback#shake-point-and-comment) does incorporate the shake gesture, and capture of screenshots.
124,972
I want to switch some 12V landscape light LEDs, totaling about 5 watts, using MOSFETs, with the control signal provided by a digital output line from an Arduino microcontroller running at 5V. I thought I had some logic level N-Channel MOSFETs lying around, but apparently not. What I have is several 400N80Z and IRLB87...
2014/08/13
[ "https://electronics.stackexchange.com/questions/124972", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/46155/" ]
The FCPF400N80Z has a maximum gate threshold voltage (VGS(th)) of 4.5V, which is marginal for logic operation, but the IRLB8721PbF has a maximum threshold voltage of 2.35V. This should work decently well for even 3.3V logic provided you don't need to pass more than about 3A of current.
Since you already have it on hand, you may use TIP120 NPN power darlingtons which is rated at 5A as Adafruit [TIP120 data sheet](http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CDQQFjAA&url=http%3A%2F%2Fwww.adafruit.com%2Fdatasheets%2FTIP120.pdf&ei=HuLqU-2aJ4_yoATqyICwBg&usg=AFQjCNFtfNslmI-Ccd...
124,972
I want to switch some 12V landscape light LEDs, totaling about 5 watts, using MOSFETs, with the control signal provided by a digital output line from an Arduino microcontroller running at 5V. I thought I had some logic level N-Channel MOSFETs lying around, but apparently not. What I have is several 400N80Z and IRLB87...
2014/08/13
[ "https://electronics.stackexchange.com/questions/124972", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/46155/" ]
The FCPF400N80Z has a maximum gate threshold voltage (VGS(th)) of 4.5V, which is marginal for logic operation, but the IRLB8721PbF has a maximum threshold voltage of 2.35V. This should work decently well for even 3.3V logic provided you don't need to pass more than about 3A of current.
When being bitten by the threshold voltage, an option is introducing a simple voltage amplification stage using a NPN BJT. You power your load from 12V, so you can use that voltage to pull the MOSFET's gate up to a level much higher than the logic level. Basically what happens is the gate is pulled up to 12V unless t...
124,972
I want to switch some 12V landscape light LEDs, totaling about 5 watts, using MOSFETs, with the control signal provided by a digital output line from an Arduino microcontroller running at 5V. I thought I had some logic level N-Channel MOSFETs lying around, but apparently not. What I have is several 400N80Z and IRLB87...
2014/08/13
[ "https://electronics.stackexchange.com/questions/124972", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/46155/" ]
When being bitten by the threshold voltage, an option is introducing a simple voltage amplification stage using a NPN BJT. You power your load from 12V, so you can use that voltage to pull the MOSFET's gate up to a level much higher than the logic level. Basically what happens is the gate is pulled up to 12V unless t...
Since you already have it on hand, you may use TIP120 NPN power darlingtons which is rated at 5A as Adafruit [TIP120 data sheet](http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0CDQQFjAA&url=http%3A%2F%2Fwww.adafruit.com%2Fdatasheets%2FTIP120.pdf&ei=HuLqU-2aJ4_yoATqyICwBg&usg=AFQjCNFtfNslmI-Ccd...
25,541
I have been wondering about why [oxyhydrogen (HHO)](https://en.wikipedia.org/wiki/Oxyhydrogen), which is a ~2:1 H2/O2 stoichiometric mixture, hasn't been used as a fuel? I know it has been used for bottle rockets and other types of small scale rockets, and I know hydrogen and oxygen have been used as fuel (like in the ...
2018/02/20
[ "https://space.stackexchange.com/questions/25541", "https://space.stackexchange.com", "https://space.stackexchange.com/users/22496/" ]
Oxyhydrogen is an extremely bad idea for a fuel. It is highly explosive, and too dangerous to be used on rockets. But rockets today do use liquid hydrogen as fuel which is oxidized by liquid oxygen(Lox/LH2) as it is cheap and provides extremely high thrust and can be controlled to burn steadily. It is one of the most ...
Oxyhydrogen is not fuel in the strict sense of that term. Instead, it is an explosive mixture, made from stoichiometric proportions of fuel and oxidizer. As such, it could theoretically be used in reciprocating internal combustion (IC) engines, like those used in cars. These engines normally use explosive mixtures made...
25,541
I have been wondering about why [oxyhydrogen (HHO)](https://en.wikipedia.org/wiki/Oxyhydrogen), which is a ~2:1 H2/O2 stoichiometric mixture, hasn't been used as a fuel? I know it has been used for bottle rockets and other types of small scale rockets, and I know hydrogen and oxygen have been used as fuel (like in the ...
2018/02/20
[ "https://space.stackexchange.com/questions/25541", "https://space.stackexchange.com", "https://space.stackexchange.com/users/22496/" ]
Oxyhydrogen is an extremely bad idea for a fuel. It is highly explosive, and too dangerous to be used on rockets. But rockets today do use liquid hydrogen as fuel which is oxidized by liquid oxygen(Lox/LH2) as it is cheap and provides extremely high thrust and can be controlled to burn steadily. It is one of the most ...
HHO mixture. Energy per gram: 112KJ. TNT. Energy per gram: 4KJ. A HHO mixture contains everything it needs to combust, all tightly packed together. We generally call such materials explosives. Furthermore, you've got a big storage problem. The melting point of oxygen is far above the critical point of hydrogen, no li...
25,541
I have been wondering about why [oxyhydrogen (HHO)](https://en.wikipedia.org/wiki/Oxyhydrogen), which is a ~2:1 H2/O2 stoichiometric mixture, hasn't been used as a fuel? I know it has been used for bottle rockets and other types of small scale rockets, and I know hydrogen and oxygen have been used as fuel (like in the ...
2018/02/20
[ "https://space.stackexchange.com/questions/25541", "https://space.stackexchange.com", "https://space.stackexchange.com/users/22496/" ]
Oxyhydrogen is an extremely bad idea for a fuel. It is highly explosive, and too dangerous to be used on rockets. But rockets today do use liquid hydrogen as fuel which is oxidized by liquid oxygen(Lox/LH2) as it is cheap and provides extremely high thrust and can be controlled to burn steadily. It is one of the most ...
Why could you not produce your HHO and use it directly into a Pulse detonation engine. Small quantities of HHO gas could be stored at low pressure in an on demand system then Maybe pumped to the fuel injector then pulse timed by the injector with a spark delay time. The outlet would require a valve at the outlet to sto...
25,541
I have been wondering about why [oxyhydrogen (HHO)](https://en.wikipedia.org/wiki/Oxyhydrogen), which is a ~2:1 H2/O2 stoichiometric mixture, hasn't been used as a fuel? I know it has been used for bottle rockets and other types of small scale rockets, and I know hydrogen and oxygen have been used as fuel (like in the ...
2018/02/20
[ "https://space.stackexchange.com/questions/25541", "https://space.stackexchange.com", "https://space.stackexchange.com/users/22496/" ]
Oxyhydrogen is not fuel in the strict sense of that term. Instead, it is an explosive mixture, made from stoichiometric proportions of fuel and oxidizer. As such, it could theoretically be used in reciprocating internal combustion (IC) engines, like those used in cars. These engines normally use explosive mixtures made...
HHO mixture. Energy per gram: 112KJ. TNT. Energy per gram: 4KJ. A HHO mixture contains everything it needs to combust, all tightly packed together. We generally call such materials explosives. Furthermore, you've got a big storage problem. The melting point of oxygen is far above the critical point of hydrogen, no li...
25,541
I have been wondering about why [oxyhydrogen (HHO)](https://en.wikipedia.org/wiki/Oxyhydrogen), which is a ~2:1 H2/O2 stoichiometric mixture, hasn't been used as a fuel? I know it has been used for bottle rockets and other types of small scale rockets, and I know hydrogen and oxygen have been used as fuel (like in the ...
2018/02/20
[ "https://space.stackexchange.com/questions/25541", "https://space.stackexchange.com", "https://space.stackexchange.com/users/22496/" ]
Oxyhydrogen is not fuel in the strict sense of that term. Instead, it is an explosive mixture, made from stoichiometric proportions of fuel and oxidizer. As such, it could theoretically be used in reciprocating internal combustion (IC) engines, like those used in cars. These engines normally use explosive mixtures made...
Why could you not produce your HHO and use it directly into a Pulse detonation engine. Small quantities of HHO gas could be stored at low pressure in an on demand system then Maybe pumped to the fuel injector then pulse timed by the injector with a spark delay time. The outlet would require a valve at the outlet to sto...
25,541
I have been wondering about why [oxyhydrogen (HHO)](https://en.wikipedia.org/wiki/Oxyhydrogen), which is a ~2:1 H2/O2 stoichiometric mixture, hasn't been used as a fuel? I know it has been used for bottle rockets and other types of small scale rockets, and I know hydrogen and oxygen have been used as fuel (like in the ...
2018/02/20
[ "https://space.stackexchange.com/questions/25541", "https://space.stackexchange.com", "https://space.stackexchange.com/users/22496/" ]
HHO mixture. Energy per gram: 112KJ. TNT. Energy per gram: 4KJ. A HHO mixture contains everything it needs to combust, all tightly packed together. We generally call such materials explosives. Furthermore, you've got a big storage problem. The melting point of oxygen is far above the critical point of hydrogen, no li...
Why could you not produce your HHO and use it directly into a Pulse detonation engine. Small quantities of HHO gas could be stored at low pressure in an on demand system then Maybe pumped to the fuel injector then pulse timed by the injector with a spark delay time. The outlet would require a valve at the outlet to sto...
12,361,475
I'm a rookie in webpage development working on my first webpage. I wrote some `HTML` code in a text editor and saved it as an `HTML` file. However, when I open it in my browser, I only see the plain `HTML` text instead of the table. Can anyone help me with this? The following is my code: ``` <!DOCTYPE HTML PUBLIC "...
2012/09/11
[ "https://Stackoverflow.com/questions/12361475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1132983/" ]
In addition to closing the `<TR>`'s with `</TR>`'s make sure you are saving the file with an extension that indicates it's an HTML file. page.html, page.htm etc. So you are using TextEdit on Mac. Sounds like you might want to read [this](http://www.askdavetaylor.com/how_do_i_save_html_files_from_textedit.html) to ensu...
What Andrew said is correct about proper HTML. But all browsers fix slightly broken HTML when they render the page. From the sounds of the issue, i think you might have a file with 2 extensions e.g.: `test.html.txt` Make sure in windows, you show **known file type extensions** and the file doesn't have a `.txt` (or ...
12,361,475
I'm a rookie in webpage development working on my first webpage. I wrote some `HTML` code in a text editor and saved it as an `HTML` file. However, when I open it in my browser, I only see the plain `HTML` text instead of the table. Can anyone help me with this? The following is my code: ``` <!DOCTYPE HTML PUBLIC "...
2012/09/11
[ "https://Stackoverflow.com/questions/12361475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1132983/" ]
In addition to closing the `<TR>`'s with `</TR>`'s make sure you are saving the file with an extension that indicates it's an HTML file. page.html, page.htm etc. So you are using TextEdit on Mac. Sounds like you might want to read [this](http://www.askdavetaylor.com/how_do_i_save_html_files_from_textedit.html) to ensu...
The HTML editor you are using may be translating what you type in as HTML - that is, when you type <html> , it becomes something like: &lt;html&gt; Try opening up the file is a simple text editor to see if this is happening.
12,361,475
I'm a rookie in webpage development working on my first webpage. I wrote some `HTML` code in a text editor and saved it as an `HTML` file. However, when I open it in my browser, I only see the plain `HTML` text instead of the table. Can anyone help me with this? The following is my code: ``` <!DOCTYPE HTML PUBLIC "...
2012/09/11
[ "https://Stackoverflow.com/questions/12361475", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1132983/" ]
What Andrew said is correct about proper HTML. But all browsers fix slightly broken HTML when they render the page. From the sounds of the issue, i think you might have a file with 2 extensions e.g.: `test.html.txt` Make sure in windows, you show **known file type extensions** and the file doesn't have a `.txt` (or ...
The HTML editor you are using may be translating what you type in as HTML - that is, when you type <html> , it becomes something like: &lt;html&gt; Try opening up the file is a simple text editor to see if this is happening.
24,605,224
i'm creating an Xcode app and i need to create an `NSMutableArray` that gets initialized when my switch are on and when a switch is off the value assigned to the switch that was also assigned to the NSMutableArray gets destroyed from the Array, how the code should be? I already initialized my switch but i don't know ho...
2014/07/07
[ "https://Stackoverflow.com/questions/24605224", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3789527/" ]
``` i=i++ ``` This is not the correct use to increment `i`. What this does: 1. Variable `i` gets incremented by `++`. 2. Variable `i` gets assigned old value of `i`, as `i++` returns the old value of `i`. So basically, you are stuck in an endless loop. Just replace `i=i++` with just `i++` or `i=i+1` or `i+=1` and ...
With respect to your angle of code.. try the below one. ``` function call(){ var i=0; setInterval(function(){ document.getElementById("pics").innerHTML="<img src='img"+i+".jpg' width=300 height=300 alt='image' /> "; i++; if(i>=3){ ...
23,477,566
I have the following POCO: ``` public class Specialty { [DatabaseGenerated(DatabaseGeneratedOption.Computed)] public DateTime? CreatedDate { get; set; } public string Description { get; set; } public string Id { get; set; } public string Name { get; set; } } ``` In Configuration.cs's Seed Method,...
2014/05/05
[ "https://Stackoverflow.com/questions/23477566", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1858308/" ]
I believe this answers your question. datetime2 does not allow DateTime.Min but DateTime does. The DateTime.min value is 00:00:00.0000000, January 1, 0001. Link with details. ------------------ [Conversion of a datetime2 data type to a datetime data type results out-of-range value](https://stackoverflow.com/questions...
The above, as posted actually works. However, we will get this error if: 1. We have a non-nullable DateTime property other than CreatedDate that we might have missed, and did not specify in the Seed method. 2. VERY EASY TO FORGET: If you created custom AspNet.Identity entities with custom properties, you may have put ...
70,368,725
What GUI tool can I use to connect to Postgres RDS that is not publicly accessible? I have used pgAdmin earlier when the db was open but now that the RDS is not publicly accessible, is there a GUI-based tool that I can use to connect? Thanks.
2021/12/15
[ "https://Stackoverflow.com/questions/70368725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13531163/" ]
First, you are using `std::count()` incorrectly. Second, `std::string_view` has its own [`find_first_of()`](https://en.cppreference.com/w/cpp/string/basic_string_view/find_first_of) and [`substr()`](https://en.cppreference.com/w/cpp/string/basic_string_view/substr) methods, which you can use in this situation, instead...
I do not know about performance, but this code seems a lot simpler ``` std::vector<std::string> ParseDelimited( const std::string &l, char delim ) { std::vector<std::string> token; std::stringstream sst(l); std::string a; while (getline(sst, a, delim)) token....
70,368,725
What GUI tool can I use to connect to Postgres RDS that is not publicly accessible? I have used pgAdmin earlier when the db was open but now that the RDS is not publicly accessible, is there a GUI-based tool that I can use to connect? Thanks.
2021/12/15
[ "https://Stackoverflow.com/questions/70368725", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13531163/" ]
This is my take on splitting a string view, just loops once over all the characters in the string view and returns a vector of string\_views (so no copying of data) The calling code can still use words.size() to get the size if needed. (I use C++20 std::set contains function) Live demo here : <https://onlinegdb.com/tH...
I do not know about performance, but this code seems a lot simpler ``` std::vector<std::string> ParseDelimited( const std::string &l, char delim ) { std::vector<std::string> token; std::stringstream sst(l); std::string a; while (getline(sst, a, delim)) token....
5,167,712
is there any way to change default shortcuts used by JTable? For instance I would like to change Home and End keys, so they would move to first/last row instead of first/last column. Any way to do this? Thank you for help.
2011/03/02
[ "https://Stackoverflow.com/questions/5167712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/739927/" ]
There is no automatic trimming of data in Oracle, you have to trim it explicitly yourself e.g. ``` insert into mytable (id, text) values (123, substr(var,1,4000)); ```
Oracle does support a variety of SQL functions which trim variables. I suspect the one you'll want is 'SUBSTR()'. The problem is that you will need to specify the desired length explicitly. In this example T23.WHATEVER is presumed to be VARCHAR2(30) and T24.TOO\_LONG\_COLUMN is, er, longer: ``` insert into t23 (id ...
5,167,712
is there any way to change default shortcuts used by JTable? For instance I would like to change Home and End keys, so they would move to first/last row instead of first/last column. Any way to do this? Thank you for help.
2011/03/02
[ "https://Stackoverflow.com/questions/5167712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/739927/" ]
There is no automatic trimming of data in Oracle, you have to trim it explicitly yourself e.g. ``` insert into mytable (id, text) values (123, substr(var,1,4000)); ```
As well as Tony's suggestion, you can use a CAST ``` select cast ('1234' as varchar2(3)) a from dual ``` If you are doing data migration, look into [DML Error Logging](http://www.oracle-base.com/articles/10g/DmlErrorLogging_10gR2.php) Having all your non-conformant data put into a corresponding table with the failu...
5,167,712
is there any way to change default shortcuts used by JTable? For instance I would like to change Home and End keys, so they would move to first/last row instead of first/last column. Any way to do this? Thank you for help.
2011/03/02
[ "https://Stackoverflow.com/questions/5167712", "https://Stackoverflow.com", "https://Stackoverflow.com/users/739927/" ]
Oracle does support a variety of SQL functions which trim variables. I suspect the one you'll want is 'SUBSTR()'. The problem is that you will need to specify the desired length explicitly. In this example T23.WHATEVER is presumed to be VARCHAR2(30) and T24.TOO\_LONG\_COLUMN is, er, longer: ``` insert into t23 (id ...
As well as Tony's suggestion, you can use a CAST ``` select cast ('1234' as varchar2(3)) a from dual ``` If you are doing data migration, look into [DML Error Logging](http://www.oracle-base.com/articles/10g/DmlErrorLogging_10gR2.php) Having all your non-conformant data put into a corresponding table with the failu...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
Depends on the color of the light. The easiest to achieve by Friday is lava-red. All you need to do is have a massive collision of your local moon with another moonlet: if the moonlet is large enough, that completely remelts the surface of the moon. The mantle remelting process has been [seriously](http://web.gps.calte...
Spoiler alert! -------------- --- Actually Arthur C. Clarke has done this in his first published novel, "The Sands of Mars" from [wikipedia](http://en.wikipedia.org/wiki/The_Sands_of_Mars): > > Hadfield reveals that scientists have been working on "Project Dawn", which > involves the ignition of the moon Phobos an...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
If the moon was a watery moon like Europa, this might be easy (for certain values of easy); an intense beam of muons could be shot into the oceans and catalytically induce fusion in the molecules of D2 in the water. This would be fantastically inefficient and probably require a muon source emitting almost as much energ...
Many answers linking cause and effect, that may not be necessary. Consider, "How would you boil the ocean?" Don't heat it of course, reduce the atmospheric pressure. For your moon, use a set of Gravity Lens(s) to collect and focus ambient starglow. ![Gravity Lens(s)](https://upload.wikimedia.org/wikipedia/commons/0/02...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
Depends on the color of the light. The easiest to achieve by Friday is lava-red. All you need to do is have a massive collision of your local moon with another moonlet: if the moonlet is large enough, that completely remelts the surface of the moon. The mantle remelting process has been [seriously](http://web.gps.calte...
Given that our moon's dull gray surface shines bright white and beige in sunlight, it seems that composing or covering your moon's surface with brighter colored, higher reflective compounds would greatly increase its luminousity. Whatever you use should be either solid or liquid at the moon's highest sun-struck tempera...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
An ordinary impact event makes quite a bright light. You could direct impacts to several points around the sphere to make it light up from all directions.
Spoiler alert! -------------- --- Actually Arthur C. Clarke has done this in his first published novel, "The Sands of Mars" from [wikipedia](http://en.wikipedia.org/wiki/The_Sands_of_Mars): > > Hadfield reveals that scientists have been working on "Project Dawn", which > involves the ignition of the moon Phobos an...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
Depends on the color of the light. The easiest to achieve by Friday is lava-red. All you need to do is have a massive collision of your local moon with another moonlet: if the moonlet is large enough, that completely remelts the surface of the moon. The mantle remelting process has been [seriously](http://web.gps.calte...
Many answers linking cause and effect, that may not be necessary. Consider, "How would you boil the ocean?" Don't heat it of course, reduce the atmospheric pressure. For your moon, use a set of Gravity Lens(s) to collect and focus ambient starglow. ![Gravity Lens(s)](https://upload.wikimedia.org/wikipedia/commons/0/02...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
If the moon was a watery moon like Europa, this might be easy (for certain values of easy); an intense beam of muons could be shot into the oceans and catalytically induce fusion in the molecules of D2 in the water. This would be fantastically inefficient and probably require a muon source emitting almost as much energ...
Given that our moon's dull gray surface shines bright white and beige in sunlight, it seems that composing or covering your moon's surface with brighter colored, higher reflective compounds would greatly increase its luminousity. Whatever you use should be either solid or liquid at the moon's highest sun-struck tempera...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
If the moon was a watery moon like Europa, this might be easy (for certain values of easy); an intense beam of muons could be shot into the oceans and catalytically induce fusion in the molecules of D2 in the water. This would be fantastically inefficient and probably require a muon source emitting almost as much energ...
An ordinary impact event makes quite a bright light. You could direct impacts to several points around the sphere to make it light up from all directions.
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
If the moon was a watery moon like Europa, this might be easy (for certain values of easy); an intense beam of muons could be shot into the oceans and catalytically induce fusion in the molecules of D2 in the water. This would be fantastically inefficient and probably require a muon source emitting almost as much energ...
Spoiler alert! -------------- --- Actually Arthur C. Clarke has done this in his first published novel, "The Sands of Mars" from [wikipedia](http://en.wikipedia.org/wiki/The_Sands_of_Mars): > > Hadfield reveals that scientists have been working on "Project Dawn", which > involves the ignition of the moon Phobos an...
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
Depends on the color of the light. The easiest to achieve by Friday is lava-red. All you need to do is have a massive collision of your local moon with another moonlet: if the moonlet is large enough, that completely remelts the surface of the moon. The mantle remelting process has been [seriously](http://web.gps.calte...
An ordinary impact event makes quite a bright light. You could direct impacts to several points around the sphere to make it light up from all directions.
13,267
So, for reasons which may or may not pop up in a later question of mine, I need to light a small Moon-like moon on fire. Well, sort of. See, I need a small object capable of emitting a lot of light - i.e. with a high luminosity. That could either be a large ball of gas on fire, or it could be something very, very hot ...
2015/03/29
[ "https://worldbuilding.stackexchange.com/questions/13267", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/627/" ]
Many answers linking cause and effect, that may not be necessary. Consider, "How would you boil the ocean?" Don't heat it of course, reduce the atmospheric pressure. For your moon, use a set of Gravity Lens(s) to collect and focus ambient starglow. ![Gravity Lens(s)](https://upload.wikimedia.org/wikipedia/commons/0/02...
Spoiler alert! -------------- --- Actually Arthur C. Clarke has done this in his first published novel, "The Sands of Mars" from [wikipedia](http://en.wikipedia.org/wiki/The_Sands_of_Mars): > > Hadfield reveals that scientists have been working on "Project Dawn", which > involves the ignition of the moon Phobos an...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
I think more importantly would be an badge for winning that much rep through bounties. Say bronze if you won your first bounty, silver for at least 1000 rep through bounties and gold for 5000 or so. And yes, I also think a badge for giving bounties could be a good thing. I don't think someone easily throw away his hard...
Using the [Top Investors](https://data.stackexchange.com/stackoverflow/query/65683/top-investors) query written by [Jeremy Banks](https://data.stackexchange.com/users/6321) on the data explorer I've listed the amount of people on Stack Overflow who would are currently eligible for the proposed badges: * 13 users have ...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
I think more importantly would be an badge for winning that much rep through bounties. Say bronze if you won your first bounty, silver for at least 1000 rep through bounties and gold for 5000 or so. And yes, I also think a badge for giving bounties could be a good thing. I don't think someone easily throw away his hard...
I just won my first bounty... and was about to ask why there are no bounty related badges... I was hoping to get a `boba fett` badge. But reading TheTXI's answer I can see the logic in *not* offering a badge for offering a bounty. So... come on Jeff, add a `status-?` tag so we know where you stand on this...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
I think more importantly would be an badge for winning that much rep through bounties. Say bronze if you won your first bounty, silver for at least 1000 rep through bounties and gold for 5000 or so. And yes, I also think a badge for giving bounties could be a good thing. I don't think someone easily throw away his hard...
I believe the goal of the bounty system is to help users to provide additional incentive to a question they would really like an answer to. Therefore, I do not believe is this a feature that needs any additional encouragement placed on it, as a badge would do. Essentially badges should be awarded to users who are provi...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
Badges should be encouraging good behavior. It is still up for debate whether or not offering bounties counts as "good behavior" especially when you can just start making bounties for simple questions and throwing minimum rep at it. I think a badge for winning bounties is a lot more logical than for offering up bount...
I agree with TheTXI here. The theory of this seems nice, but the reality of it wouldn't work. Think about it, people just randomly tossing rep in bounties on random questions for a badge. It would throw a fork into the reputation and moderation system - people gaining rep left and right. As a much better alternative t...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
Offering a bounty means you are willing to give up some reputation for the good of the community, as all reasons eventually lead to better content or rewarding existing good content. The act of *offering* is what matters most in my opinion, not manually awarding and we already got [investor](https://stackoverflow.com/...
1. I absolutely encourage posting while drunk. +1 to you. 2. And (soberly, sadly) I'm not sure this would be the best idea -- you could get folks offering up easy 100 points on questions they haven't selected an answer to just to get this badge. Bounties are meant to be sort of a last resort incentivizer, not something...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
1. I absolutely encourage posting while drunk. +1 to you. 2. And (soberly, sadly) I'm not sure this would be the best idea -- you could get folks offering up easy 100 points on questions they haven't selected an answer to just to get this badge. Bounties are meant to be sort of a last resort incentivizer, not something...
I would like to see badges for placing bounty in unanswered questions, following which the question receives positive score answer(s), and finally one such answer is offered the bounty. * For 10 such actions, a silver badge * For 50 such actions, a gold badge The names can be anything like Philanthropist (which someo...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
Offering a bounty means you are willing to give up some reputation for the good of the community, as all reasons eventually lead to better content or rewarding existing good content. The act of *offering* is what matters most in my opinion, not manually awarding and we already got [investor](https://stackoverflow.com/...
Awarding a badge for offering bounties is a great way to promote this feature and help make users aware of it, as well as to encourage them to use this feature to help promote great questions. However, I'm not 100% convinced that the name of the badge fits the actions, considering we already have existing badges named...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
I just won my first bounty... and was about to ask why there are no bounty related badges... I was hoping to get a `boba fett` badge. But reading TheTXI's answer I can see the logic in *not* offering a badge for offering a bounty. So... come on Jeff, add a `status-?` tag so we know where you stand on this...
I would like to see badges for placing bounty in unanswered questions, following which the question receives positive score answer(s), and finally one such answer is offered the bounty. * For 10 such actions, a silver badge * For 50 such actions, a gold badge The names can be anything like Philanthropist (which someo...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
Badges should be encouraging good behavior. It is still up for debate whether or not offering bounties counts as "good behavior" especially when you can just start making bounties for simple questions and throwing minimum rep at it. I think a badge for winning bounties is a lot more logical than for offering up bount...
I would like to see badges for placing bounty in unanswered questions, following which the question receives positive score answer(s), and finally one such answer is offered the bounty. * For 10 such actions, a silver badge * For 50 such actions, a gold badge The names can be anything like Philanthropist (which someo...
14,421
Would it be worth to to add a badge for offering a certain amount of rep over time (say 1000) towards bounties? It could be called the `Sheriff` badge. This sounds like a good idea to me now but I've been drinking. ### Update: With the [introduction of the new bounty system](https://blog.stackoverflow.com/2010/06/im...
2009/08/14
[ "https://meta.stackexchange.com/questions/14421", "https://meta.stackexchange.com", "https://meta.stackexchange.com/users/44765/" ]
I just won my first bounty... and was about to ask why there are no bounty related badges... I was hoping to get a `boba fett` badge. But reading TheTXI's answer I can see the logic in *not* offering a badge for offering a bounty. So... come on Jeff, add a `status-?` tag so we know where you stand on this...
I agree with TheTXI here. The theory of this seems nice, but the reality of it wouldn't work. Think about it, people just randomly tossing rep in bounties on random questions for a badge. It would throw a fork into the reputation and moderation system - people gaining rep left and right. As a much better alternative t...
52,782,153
I am really struggling to add a new column with the line number in the terminal to a pipe delimited file My current file looks like this: ``` ID|FirstName|LastName 12|John|Svernson 23|Mark|Wright 11|Chris|Watson ``` And I want the file to look like the following: ``` LN|ID|FirstName|LastName 1|12|John|Svernson 2...
2018/10/12
[ "https://Stackoverflow.com/questions/52782153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5239781/" ]
could you please try following. ``` awk 'FNR==1{print "LN|"$0;next} {$1=++count "|" $1} 1' Input_file ``` To write output into Input\_file itself append `> temp_file && mv temp_file Input_file` in above code too.
Use awk variable NR (record number): ``` awk -F'|' 'NR==1{print "LN" FS $0}NR!=1{print NR-1 FS $0}' file ```
52,782,153
I am really struggling to add a new column with the line number in the terminal to a pipe delimited file My current file looks like this: ``` ID|FirstName|LastName 12|John|Svernson 23|Mark|Wright 11|Chris|Watson ``` And I want the file to look like the following: ``` LN|ID|FirstName|LastName 1|12|John|Svernson 2...
2018/10/12
[ "https://Stackoverflow.com/questions/52782153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5239781/" ]
Use awk variable NR (record number): ``` awk -F'|' 'NR==1{print "LN" FS $0}NR!=1{print NR-1 FS $0}' file ```
I would use `nl`. You may run into issues if your line number goes over 6 digits, but you can add a `-w` to increase the number width if you need to: ``` { read line; echo "LN|$line"; cat | nl -w 10 -ba -s \|; } < input | sed 's/^ *//'; ```
52,782,153
I am really struggling to add a new column with the line number in the terminal to a pipe delimited file My current file looks like this: ``` ID|FirstName|LastName 12|John|Svernson 23|Mark|Wright 11|Chris|Watson ``` And I want the file to look like the following: ``` LN|ID|FirstName|LastName 1|12|John|Svernson 2...
2018/10/12
[ "https://Stackoverflow.com/questions/52782153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5239781/" ]
A fun alternative: ``` { echo LN; seq $(( $(wc -l < file) - 1 )); } | paste -d'|' - file ``` although in reality I'd use ``` awk '{print (NR==1 ? "LN" : NR-1), $0}' OFS="|" file ```
Use awk variable NR (record number): ``` awk -F'|' 'NR==1{print "LN" FS $0}NR!=1{print NR-1 FS $0}' file ```
52,782,153
I am really struggling to add a new column with the line number in the terminal to a pipe delimited file My current file looks like this: ``` ID|FirstName|LastName 12|John|Svernson 23|Mark|Wright 11|Chris|Watson ``` And I want the file to look like the following: ``` LN|ID|FirstName|LastName 1|12|John|Svernson 2...
2018/10/12
[ "https://Stackoverflow.com/questions/52782153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5239781/" ]
could you please try following. ``` awk 'FNR==1{print "LN|"$0;next} {$1=++count "|" $1} 1' Input_file ``` To write output into Input\_file itself append `> temp_file && mv temp_file Input_file` in above code too.
I would use `nl`. You may run into issues if your line number goes over 6 digits, but you can add a `-w` to increase the number width if you need to: ``` { read line; echo "LN|$line"; cat | nl -w 10 -ba -s \|; } < input | sed 's/^ *//'; ```
52,782,153
I am really struggling to add a new column with the line number in the terminal to a pipe delimited file My current file looks like this: ``` ID|FirstName|LastName 12|John|Svernson 23|Mark|Wright 11|Chris|Watson ``` And I want the file to look like the following: ``` LN|ID|FirstName|LastName 1|12|John|Svernson 2...
2018/10/12
[ "https://Stackoverflow.com/questions/52782153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5239781/" ]
could you please try following. ``` awk 'FNR==1{print "LN|"$0;next} {$1=++count "|" $1} 1' Input_file ``` To write output into Input\_file itself append `> temp_file && mv temp_file Input_file` in above code too.
A fun alternative: ``` { echo LN; seq $(( $(wc -l < file) - 1 )); } | paste -d'|' - file ``` although in reality I'd use ``` awk '{print (NR==1 ? "LN" : NR-1), $0}' OFS="|" file ```
52,782,153
I am really struggling to add a new column with the line number in the terminal to a pipe delimited file My current file looks like this: ``` ID|FirstName|LastName 12|John|Svernson 23|Mark|Wright 11|Chris|Watson ``` And I want the file to look like the following: ``` LN|ID|FirstName|LastName 1|12|John|Svernson 2...
2018/10/12
[ "https://Stackoverflow.com/questions/52782153", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5239781/" ]
A fun alternative: ``` { echo LN; seq $(( $(wc -l < file) - 1 )); } | paste -d'|' - file ``` although in reality I'd use ``` awk '{print (NR==1 ? "LN" : NR-1), $0}' OFS="|" file ```
I would use `nl`. You may run into issues if your line number goes over 6 digits, but you can add a `-w` to increase the number width if you need to: ``` { read line; echo "LN|$line"; cat | nl -w 10 -ba -s \|; } < input | sed 's/^ *//'; ```
15,783,938
With `git rm <file>` a file can be deleted locally, removed from the versioning, and deleted on the repository. `git rm --cached <file>` does nearly the same, but keeps the file in the local working copy. Is there possible, to remove a file/folder from the versioning (so its changes are ignored) keeping it in the repo...
2013/04/03
[ "https://Stackoverflow.com/questions/15783938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2019043/" ]
Files already under Git you can ignore using ``` git update-index --assume-unchanged filename ``` and unigtore git update-index --no-assume-unchanged filename but, there also some interesting features, [git - ignoring commited files and switch branch](https://stackoverflow.com/questions/15790390/git-ignoring-co...
Try to add the file/folder to .gitignore
15,783,938
With `git rm <file>` a file can be deleted locally, removed from the versioning, and deleted on the repository. `git rm --cached <file>` does nearly the same, but keeps the file in the local working copy. Is there possible, to remove a file/folder from the versioning (so its changes are ignored) keeping it in the repo...
2013/04/03
[ "https://Stackoverflow.com/questions/15783938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2019043/" ]
The short answer is no. The `.gitignore` facilities only prevent files from being tracked in the first place. In other words, it prevents files from entering the repository for the first time. However, once a file is tracked, it is tracked forever. All changes to that file will be tracked. There are two general soluti...
Try to add the file/folder to .gitignore
15,783,938
With `git rm <file>` a file can be deleted locally, removed from the versioning, and deleted on the repository. `git rm --cached <file>` does nearly the same, but keeps the file in the local working copy. Is there possible, to remove a file/folder from the versioning (so its changes are ignored) keeping it in the repo...
2013/04/03
[ "https://Stackoverflow.com/questions/15783938", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2019043/" ]
The short answer is no. The `.gitignore` facilities only prevent files from being tracked in the first place. In other words, it prevents files from entering the repository for the first time. However, once a file is tracked, it is tracked forever. All changes to that file will be tracked. There are two general soluti...
Files already under Git you can ignore using ``` git update-index --assume-unchanged filename ``` and unigtore git update-index --no-assume-unchanged filename but, there also some interesting features, [git - ignoring commited files and switch branch](https://stackoverflow.com/questions/15790390/git-ignoring-co...
55,985
I was reading up on something called the PRAM model without bit operations. What exactly does it mean that this PRAM model cannot do bit operations? I can't find a straightforward definition anywhere. Surely the different processors will still be able to do all sorts of stuff with bits. The reason why I am asking i...
2016/04/15
[ "https://cs.stackexchange.com/questions/55985", "https://cs.stackexchange.com", "https://cs.stackexchange.com/users/49599/" ]
Without further information, it's hard to tell exactly. However, to the best of my knowledge, bit operations may be intended as follows. Consider the problem of finding the maximum element in an array of $n$ real numbers. This problem can be solved by an EREW algorithm in $\Omega(\lg n)$; moreover, no CREW algorithm ca...
On page 1461 of ["Lower Bounds in a Parallel Model without Bit Operations,"](https://doi.org/10.1137/S0097539794282930) Mulmuley says: > > It is like the usual PRAM model, the main difference being that it does not provide instructions for any bit operations such as $\land$,$\lor$,or *extract-bit*. > > > The mod...
6,620,898
Im running Aptana IDE for developing on a lamp setup. I have looked all over the place in the options to try and find if I can move the text editors file tabs to the side instead of lined up along the top. Any googling I attempt for this just gives me results for changing tab widths and stuff like that, so im having to...
2011/07/08
[ "https://Stackoverflow.com/questions/6620898", "https://Stackoverflow.com", "https://Stackoverflow.com/users/834879/" ]
User [CSS Reset](http://meyerweb.com/eric/tools/css/reset/), and everything should be solved. The reason you're getting the `weird artifact` is that, browsers by default apply some style on HTML elements. To nullify those default styles, designers usually use **CSS Reset**. A CSS Reset is a CSS file that tries to remov...
You may be getting the browser's default styling here. I would recommend grabbing a CSS reset and seeing if that helps
6,620,898
Im running Aptana IDE for developing on a lamp setup. I have looked all over the place in the options to try and find if I can move the text editors file tabs to the side instead of lined up along the top. Any googling I attempt for this just gives me results for changing tab widths and stuff like that, so im having to...
2011/07/08
[ "https://Stackoverflow.com/questions/6620898", "https://Stackoverflow.com", "https://Stackoverflow.com/users/834879/" ]
1. Images are inline elements. 2. Inline elements are rendered like characters. 3. Characters sit on a line. 4. There is space below that line for descenders (which you find on letters like g, j and y but not a, b, and c.) 5. That space is what you are seeing. You could twiddle the [vertical-alignment](http://www.w3.o...
You may be getting the browser's default styling here. I would recommend grabbing a CSS reset and seeing if that helps
6,620,898
Im running Aptana IDE for developing on a lamp setup. I have looked all over the place in the options to try and find if I can move the text editors file tabs to the side instead of lined up along the top. Any googling I attempt for this just gives me results for changing tab widths and stuff like that, so im having to...
2011/07/08
[ "https://Stackoverflow.com/questions/6620898", "https://Stackoverflow.com", "https://Stackoverflow.com/users/834879/" ]
OK, guys, I got the bottom of it. The following style should be added to the tag that hosts the image. I don't know why, but it helps: td{ font-size:0; } Thanks everyone for your help!
You may be getting the browser's default styling here. I would recommend grabbing a CSS reset and seeing if that helps
54,874,052
Now i have code like this: ``` var object = { a: 'a', b: 'b', c: { d: 'd' } } _.get(object).pick(['a', 'b']).value(); ``` How to deep pick property 'd' like: ``` _.get(object).pick(['a', 'b', 'c.d']).value(); ```
2019/02/25
[ "https://Stackoverflow.com/questions/54874052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10885808/" ]
you can deep destructure without lodash : ```js var object = { a: 'a', b: 'b', c: { d: 'd' } } const { a, b, c :{ d }} = object; console.log(a,b,d); const obj = {a, b, d}; console.log(obj); ```
You can create a `flatPick()` function. The function iterates the array of paths. and uses `_.get()` to get the value of the `path`, and `_.set()` to add the last part of the path as property on the result object: ```js function flatPick(object, paths) { const o = {}; paths.forEach(path => _.set( o, _...
54,874,052
Now i have code like this: ``` var object = { a: 'a', b: 'b', c: { d: 'd' } } _.get(object).pick(['a', 'b']).value(); ``` How to deep pick property 'd' like: ``` _.get(object).pick(['a', 'b', 'c.d']).value(); ```
2019/02/25
[ "https://Stackoverflow.com/questions/54874052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10885808/" ]
you can deep destructure without lodash : ```js var object = { a: 'a', b: 'b', c: { d: 'd' } } const { a, b, c :{ d }} = object; console.log(a,b,d); const obj = {a, b, d}; console.log(obj); ```
This can work for `lodash`: ``` function pickNested(object: Json, fields: string[]) { const shallowFields = fields.filter((field) => !field.includes('.')); const deepFields = fields.filter((field) => field.includes('.')); const initialValue = _.pick(object, shallowFields) as Json; return deepFields.r...
54,874,052
Now i have code like this: ``` var object = { a: 'a', b: 'b', c: { d: 'd' } } _.get(object).pick(['a', 'b']).value(); ``` How to deep pick property 'd' like: ``` _.get(object).pick(['a', 'b', 'c.d']).value(); ```
2019/02/25
[ "https://Stackoverflow.com/questions/54874052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10885808/" ]
In case you insist in using Lodash, consider using the [\_.get()](https://lodash.com/docs/4.17.11#get) function: ``` _.get(object, 'c.d'); ``` So, for the properties you want to get: ```js const selectedProps = { ..._.pick(object, ['a', 'b']), _.get(object, 'c.d') } ```
You can create a `flatPick()` function. The function iterates the array of paths. and uses `_.get()` to get the value of the `path`, and `_.set()` to add the last part of the path as property on the result object: ```js function flatPick(object, paths) { const o = {}; paths.forEach(path => _.set( o, _...
54,874,052
Now i have code like this: ``` var object = { a: 'a', b: 'b', c: { d: 'd' } } _.get(object).pick(['a', 'b']).value(); ``` How to deep pick property 'd' like: ``` _.get(object).pick(['a', 'b', 'c.d']).value(); ```
2019/02/25
[ "https://Stackoverflow.com/questions/54874052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10885808/" ]
In case you insist in using Lodash, consider using the [\_.get()](https://lodash.com/docs/4.17.11#get) function: ``` _.get(object, 'c.d'); ``` So, for the properties you want to get: ```js const selectedProps = { ..._.pick(object, ['a', 'b']), _.get(object, 'c.d') } ```
This can work for `lodash`: ``` function pickNested(object: Json, fields: string[]) { const shallowFields = fields.filter((field) => !field.includes('.')); const deepFields = fields.filter((field) => field.includes('.')); const initialValue = _.pick(object, shallowFields) as Json; return deepFields.r...
54,874,052
Now i have code like this: ``` var object = { a: 'a', b: 'b', c: { d: 'd' } } _.get(object).pick(['a', 'b']).value(); ``` How to deep pick property 'd' like: ``` _.get(object).pick(['a', 'b', 'c.d']).value(); ```
2019/02/25
[ "https://Stackoverflow.com/questions/54874052", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10885808/" ]
You can create a `flatPick()` function. The function iterates the array of paths. and uses `_.get()` to get the value of the `path`, and `_.set()` to add the last part of the path as property on the result object: ```js function flatPick(object, paths) { const o = {}; paths.forEach(path => _.set( o, _...
This can work for `lodash`: ``` function pickNested(object: Json, fields: string[]) { const shallowFields = fields.filter((field) => !field.includes('.')); const deepFields = fields.filter((field) => field.includes('.')); const initialValue = _.pick(object, shallowFields) as Json; return deepFields.r...
21,994,404
I've got a surfaceview and a gameThread class. The gameThread keeps updating and painting on the SurfaceView class. Now when I exit the app (By pressing the home or back button) I get a message that the app force closed. That's because the GameThread still tries to draw on the erased surfaceview... So how do i proper...
2014/02/24
[ "https://Stackoverflow.com/questions/21994404", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2410644/" ]
Here's the same code rewritten with transaction support: ``` // Start transaction pool.startTransaction().then((trans) { // Delete all from table trans.query('DELETE FROM myTable WHERE 1=1').then((r) { // Prepare statement trans.prepare('REPLACE INTO myTable (Id, Name, Description) VALUES (?,...
Use `ConectionPool.startTransaction()`. ``` * You * must use this method rather than `query('start transaction')` otherwise * subsequent queries may get executed on other connections which are not * in the transaction. ``` Haven't tried it myself yet.
12,871,492
In our team we are evaluating to use the kanban board as an organization tool for software development. The development phase will take about 6 months with a team of 5. We have as input all the functional requirements agreed with the client, business rules and use cases - in other words, macroscopic requirements. We wi...
2012/10/13
[ "https://Stackoverflow.com/questions/12871492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273567/" ]
First, few teams set limits for backlog. Kanban advises work in progress (WIP) limits. Items in backlog are rarely considered "in progress." Second, considering you, more or less, know the scope of the project it wouldn't make much sense of forcing yourself to artificially limit number of items in backlog. At the sam...
Henrik Kniberg in his free book about Kanban describes how setting WIP limit to backlog helps focus on most important functionality first. I think this is good strategy especially for product owner. Backlog contains only stories to be developed in upcoming period while other stories might be in mind map or 'wishlist'...
12,871,492
In our team we are evaluating to use the kanban board as an organization tool for software development. The development phase will take about 6 months with a team of 5. We have as input all the functional requirements agreed with the client, business rules and use cases - in other words, macroscopic requirements. We wi...
2012/10/13
[ "https://Stackoverflow.com/questions/12871492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273567/" ]
First, few teams set limits for backlog. Kanban advises work in progress (WIP) limits. Items in backlog are rarely considered "in progress." Second, considering you, more or less, know the scope of the project it wouldn't make much sense of forcing yourself to artificially limit number of items in backlog. At the sam...
I must disagree: limits in backlog is a possibility. Probably not in the input column, but for instance if process has some prioritization columns, highest priority column can contain a limit thus saying that one may not push to many high priority tasks, because WIP cannot maintain such pace and they will be hanging de...
12,871,492
In our team we are evaluating to use the kanban board as an organization tool for software development. The development phase will take about 6 months with a team of 5. We have as input all the functional requirements agreed with the client, business rules and use cases - in other words, macroscopic requirements. We wi...
2012/10/13
[ "https://Stackoverflow.com/questions/12871492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/273567/" ]
I must disagree: limits in backlog is a possibility. Probably not in the input column, but for instance if process has some prioritization columns, highest priority column can contain a limit thus saying that one may not push to many high priority tasks, because WIP cannot maintain such pace and they will be hanging de...
Henrik Kniberg in his free book about Kanban describes how setting WIP limit to backlog helps focus on most important functionality first. I think this is good strategy especially for product owner. Backlog contains only stories to be developed in upcoming period while other stories might be in mind map or 'wishlist'...