qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
69,942
As I understand a gravel bike, it's basically a road frame but perhaps with a slightly more upright riding position. It has wider tires with much deeper treads and a stiffer rubber than standard road bike tires. What is the theory behind these changes? I had always thought that the thicker and stiffer tires were to pre...
2020/07/27
[ "https://bicycles.stackexchange.com/questions/69942", "https://bicycles.stackexchange.com", "https://bicycles.stackexchange.com/users/50954/" ]
GCN had a funny take on this recently: [Gravel bikes exist because mountain biking is now boring](https://www.youtube.com/watch?v=XC_xFpg_UmA). Or to give slightly more nuance, mountain bikes make it so easy to ride over difficult terrain that they remove the challenge. Coming at it from the opposite direction, road c...
What is called a "gravel bike" is really a new word for a cyclocross bike, but with maybe a tad less aggressive geometry. And cyclocross goes back pretty much to the beginning of bicycling, as the first races were held on unpaved courses and no roads were paved yet, or at best cobbled. The original road bikes looked a ...
1,167,491
To add subtitles to a single file I use the following command: `mkvmerge.exe -o g:\movie01.mkv --default-track 0 --language 0:pl movie01.mkv movie01.srt` **Where:** `movie01.mkv` is the name of a video file `movie01.srt` is the name of a subtitle file (it is always the same as the video file) `g:\movie01.mkv` is t...
2017/01/15
[ "https://superuser.com/questions/1167491", "https://superuser.com", "https://superuser.com/users/388634/" ]
Upload file in question to <https://virustotal.com/> to be sure it isn't malicious substitution. `C:\Windows\syswow64\Explorer.exe` itself is legitimate program on windows
Check its digital signature! ============================ A freshly installed version of Windows 10 Anniversary Update has an `Explorer.exe` at `C:\Windows\SysWOW64`. It is digitally signed, so even if one byte of it is changed, its digital signature will tell you. To verify that it is the authentic `Explorer.exe`, c...
1,167,491
To add subtitles to a single file I use the following command: `mkvmerge.exe -o g:\movie01.mkv --default-track 0 --language 0:pl movie01.mkv movie01.srt` **Where:** `movie01.mkv` is the name of a video file `movie01.srt` is the name of a subtitle file (it is always the same as the video file) `g:\movie01.mkv` is t...
2017/01/15
[ "https://superuser.com/questions/1167491", "https://superuser.com", "https://superuser.com/users/388634/" ]
Upload file in question to <https://virustotal.com/> to be sure it isn't malicious substitution. `C:\Windows\syswow64\Explorer.exe` itself is legitimate program on windows
So, as it turns out, it was a virus. I rebooted my Windows after scanning it to find that it had triggered a `diskpart` on my machine, wiping my hard drive. I took it to the local computer store, and the guy that worked there said that it would of caused it. (He somehow managed to check logs that were on my motherboa...
1,167,491
To add subtitles to a single file I use the following command: `mkvmerge.exe -o g:\movie01.mkv --default-track 0 --language 0:pl movie01.mkv movie01.srt` **Where:** `movie01.mkv` is the name of a video file `movie01.srt` is the name of a subtitle file (it is always the same as the video file) `g:\movie01.mkv` is t...
2017/01/15
[ "https://superuser.com/questions/1167491", "https://superuser.com", "https://superuser.com/users/388634/" ]
No, this is the 32Bit Explorer.exe on a 64Bit Windows. This is called [Windows 32-bit on Windows 64-bit (WOW64)](https://en.wikipedia.org/wiki/WoW64) to be able to still run 32 Bit applications on a 64 Bit Windows. Don't worry, your PC is fine.
Check its digital signature! ============================ A freshly installed version of Windows 10 Anniversary Update has an `Explorer.exe` at `C:\Windows\SysWOW64`. It is digitally signed, so even if one byte of it is changed, its digital signature will tell you. To verify that it is the authentic `Explorer.exe`, c...
1,167,491
To add subtitles to a single file I use the following command: `mkvmerge.exe -o g:\movie01.mkv --default-track 0 --language 0:pl movie01.mkv movie01.srt` **Where:** `movie01.mkv` is the name of a video file `movie01.srt` is the name of a subtitle file (it is always the same as the video file) `g:\movie01.mkv` is t...
2017/01/15
[ "https://superuser.com/questions/1167491", "https://superuser.com", "https://superuser.com/users/388634/" ]
No, this is the 32Bit Explorer.exe on a 64Bit Windows. This is called [Windows 32-bit on Windows 64-bit (WOW64)](https://en.wikipedia.org/wiki/WoW64) to be able to still run 32 Bit applications on a 64 Bit Windows. Don't worry, your PC is fine.
So, as it turns out, it was a virus. I rebooted my Windows after scanning it to find that it had triggered a `diskpart` on my machine, wiping my hard drive. I took it to the local computer store, and the guy that worked there said that it would of caused it. (He somehow managed to check logs that were on my motherboa...
1,167,491
To add subtitles to a single file I use the following command: `mkvmerge.exe -o g:\movie01.mkv --default-track 0 --language 0:pl movie01.mkv movie01.srt` **Where:** `movie01.mkv` is the name of a video file `movie01.srt` is the name of a subtitle file (it is always the same as the video file) `g:\movie01.mkv` is t...
2017/01/15
[ "https://superuser.com/questions/1167491", "https://superuser.com", "https://superuser.com/users/388634/" ]
No. Most likely is not (of course you can do a virus check to make sure it isn't a replacement). Windows has two variants of the `explorer.exe`: one for 32 bits and one for 64 bits use. It is the Windows shell executable. There is nothing wrong in having two versions hanging around. Most likely a shell plug-in or som...
Check its digital signature! ============================ A freshly installed version of Windows 10 Anniversary Update has an `Explorer.exe` at `C:\Windows\SysWOW64`. It is digitally signed, so even if one byte of it is changed, its digital signature will tell you. To verify that it is the authentic `Explorer.exe`, c...
1,167,491
To add subtitles to a single file I use the following command: `mkvmerge.exe -o g:\movie01.mkv --default-track 0 --language 0:pl movie01.mkv movie01.srt` **Where:** `movie01.mkv` is the name of a video file `movie01.srt` is the name of a subtitle file (it is always the same as the video file) `g:\movie01.mkv` is t...
2017/01/15
[ "https://superuser.com/questions/1167491", "https://superuser.com", "https://superuser.com/users/388634/" ]
No. Most likely is not (of course you can do a virus check to make sure it isn't a replacement). Windows has two variants of the `explorer.exe`: one for 32 bits and one for 64 bits use. It is the Windows shell executable. There is nothing wrong in having two versions hanging around. Most likely a shell plug-in or som...
So, as it turns out, it was a virus. I rebooted my Windows after scanning it to find that it had triggered a `diskpart` on my machine, wiping my hard drive. I took it to the local computer store, and the guy that worked there said that it would of caused it. (He somehow managed to check logs that were on my motherboa...
1,167,491
To add subtitles to a single file I use the following command: `mkvmerge.exe -o g:\movie01.mkv --default-track 0 --language 0:pl movie01.mkv movie01.srt` **Where:** `movie01.mkv` is the name of a video file `movie01.srt` is the name of a subtitle file (it is always the same as the video file) `g:\movie01.mkv` is t...
2017/01/15
[ "https://superuser.com/questions/1167491", "https://superuser.com", "https://superuser.com/users/388634/" ]
Check its digital signature! ============================ A freshly installed version of Windows 10 Anniversary Update has an `Explorer.exe` at `C:\Windows\SysWOW64`. It is digitally signed, so even if one byte of it is changed, its digital signature will tell you. To verify that it is the authentic `Explorer.exe`, c...
So, as it turns out, it was a virus. I rebooted my Windows after scanning it to find that it had triggered a `diskpart` on my machine, wiping my hard drive. I took it to the local computer store, and the guy that worked there said that it would of caused it. (He somehow managed to check logs that were on my motherboa...
124,682
My iPhone is always heated up even if I'm not using it. When I charge it, it heats up even more and battery drains very quickly. Its battery is currently fully drained for more than half an hour and the back still seems as it is heated. What's the problem and how can I solve it?
2014/03/17
[ "https://apple.stackexchange.com/questions/124682", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/73312/" ]
Are you using IOS 7? When using IOS 7 be sure to check your apps which are running in the background, but normally these apps are also closed after some time in standby. Be sure to update your iPhone to IOS 7.1. When you say your iPhone/battery heats up when loading there is surely something wrong with your battery. Yo...
It seem that you battery has reach its limits needs a replacement. You can check to see if there are apps causing your battery to drain quickly. If this is the case you need to update your app. For instruction on how to do this visit <http://www.technobezz.com/iphone-battery-life-drain-dies-fast/> I hope this helps.
104,662
How to quickly and clearly argue/show that there **is** or **is not** a linear surjective map $\phi$ $\phi: \mathbb{R} \to \mathbb{R}²$
2012/02/01
[ "https://math.stackexchange.com/questions/104662", "https://math.stackexchange.com", "https://math.stackexchange.com/users/24189/" ]
Assuming you mean an $\mathbb{R}$-linear map, one can argue as follows: let $v = \varphi(1)$. Then for all $\alpha \in \mathbb{R}$, $\varphi(\alpha) = \varphi(\alpha \cdot 1) = \alpha \varphi(1) = \alpha v$. Thus the image of $\varphi$ consists of all scalar multiples of the vector $v$. This is the origin if $v = 0$ an...
For a linear transformation in this case we have: 1=dim R =dim ImT + dim KerT. Then dim ImT is 0 or 1.
9,538,408
I try to create multiple arrays in a loop. I was told that the correct way to do this is by creating 2-dimentional arrays. So I made the following code, but it keep telling me eleArray[0] is undefined. anyone? Thanks ``` var eleArray = []; for(var i=0;i<rssArray;i++) { eleArray[i] = []; } ...
2012/03/02
[ "https://Stackoverflow.com/questions/9538408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/612569/" ]
Assuming that `rssArray` is an array as the name implies, you need to loop based on the length: ``` for(var i=0;i<rssArray.length;i++) ```
Is the `rssArray` variable being initialized correctly?
9,538,408
I try to create multiple arrays in a loop. I was told that the correct way to do this is by creating 2-dimentional arrays. So I made the following code, but it keep telling me eleArray[0] is undefined. anyone? Thanks ``` var eleArray = []; for(var i=0;i<rssArray;i++) { eleArray[i] = []; } ...
2012/03/02
[ "https://Stackoverflow.com/questions/9538408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/612569/" ]
Assuming that `rssArray` is an array as the name implies, you need to loop based on the length: ``` for(var i=0;i<rssArray.length;i++) ```
Here's a working example of your question. [jsfiddle](http://jsfiddle.net/vhYRK/1/) ``` var array = [], length = 10, i; for(i = 0; i < length; i++){ array[i] = []; } array[0][0] = "Hello, World!"; document.getElementById("output").innerHTML = array[0][0]; ```
9,538,408
I try to create multiple arrays in a loop. I was told that the correct way to do this is by creating 2-dimentional arrays. So I made the following code, but it keep telling me eleArray[0] is undefined. anyone? Thanks ``` var eleArray = []; for(var i=0;i<rssArray;i++) { eleArray[i] = []; } ...
2012/03/02
[ "https://Stackoverflow.com/questions/9538408", "https://Stackoverflow.com", "https://Stackoverflow.com/users/612569/" ]
Is the `rssArray` variable being initialized correctly?
Here's a working example of your question. [jsfiddle](http://jsfiddle.net/vhYRK/1/) ``` var array = [], length = 10, i; for(i = 0; i < length; i++){ array[i] = []; } array[0][0] = "Hello, World!"; document.getElementById("output").innerHTML = array[0][0]; ```
30,291,599
I am trying to implement the following Use Case. I have an Azure Worker Role that will monitor the Azure Storage Queue, and when a message comes in, this will trigger a job to run Asynchronously. I want to use the TPL if possible, and need the operations to support cancellation, so that when the Azure Role OnStop fires...
2015/05/17
[ "https://Stackoverflow.com/questions/30291599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4909793/" ]
You can just filter it like this ``` $('.sectionLabel').filter(function() { return $(this).next('.linkHolder').is(':empty') }).hide(); ``` Note that jQuery's `$(element).empty()` does something else, it empties the element, removing all it's content.
You almost made it: ``` $(".linkHolder").each(function (i) { if ($(this).html() == '') { $(this).prev().hide(); } }); ```
30,291,599
I am trying to implement the following Use Case. I have an Azure Worker Role that will monitor the Azure Storage Queue, and when a message comes in, this will trigger a job to run Asynchronously. I want to use the TPL if possible, and need the operations to support cancellation, so that when the Azure Role OnStop fires...
2015/05/17
[ "https://Stackoverflow.com/questions/30291599", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4909793/" ]
You can just filter it like this ``` $('.sectionLabel').filter(function() { return $(this).next('.linkHolder').is(':empty') }).hide(); ``` Note that jQuery's `$(element).empty()` does something else, it empties the element, removing all it's content.
You can try this: ``` $(document).ready(function() { $('div:empty').remove(); }); ```
326,076
Can you please tell me if it is correct and natural to say *find someone by their phone number* in the context of searching someone's information in a system? For example: > > I don't see any appoinments set up under your name in our system. Let me try to **find you by your phone number**. > > > If it doesn't sou...
2022/10/27
[ "https://ell.stackexchange.com/questions/326076", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/60696/" ]
It's quite correct and natural. It's another case of an understood word 'using', which would be after the 'by'. Possibly a better way would be 'using your phone number' (in this case the 'by' is understood. Probably the most natural way of saying this would be simply: "Let me try your phone number". Again, there are...
One of the uses of "by" is when talking about the way things are organized: * These books are arranged alphabetically **by** the author's last name. * Please line up **by** height from shortest to tallest. * This table of the wealthiest people in the world is ordered **by** their net worth. This makes it a great choi...
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
```bsh sudo vim /etc/wsl.conf ``` Add the following two lines: ```bsh [network] generateHosts = False ``` Reference: <https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/>
I had to do `chattr +i` on the file because the file kept getting overwritten even after I followed the instructions to add those two lines to `/etc/wsl.conf`. NOTE - remember that you ll need `chattr -i` to be able to edit the file from anywhere again.
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
```bsh sudo vim /etc/wsl.conf ``` Add the following two lines: ```bsh [network] generateHosts = False ``` Reference: <https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/>
I wrote the following zsh function based off of @R6D1H2's answer. ``` function addHosts() { declare -A MYHOSTS MYHOSTS=( [host-1]="ip.add.re.ss" [host-2]="ip.add.re.ss" [host-3]="ip.add.re.ss" ) for key value in ${(kv)MYHOSTS}; do grep $key /etc/hosts >> /dev/null ...
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
I am using Ubuntu 16.04.5 LTS as a Linux subsystem under Windows. My /etc/hosts file under Ubuntu says ``` #This file is automatically generated by WSL based on the Windows hosts file: #%WINDIR%\System32\drivers\etc\hosts. Modifications to this file will be overwritten. ``` So I simply changed the `#%WINDIR%\System...
I did not have the line saying: `To prevent automatic generation of this file, remove this line.`in my /etc/hosts. What I ended up doing was creating an addHosts.sh script with the following content: ``` MYHOSTS="ip1\thostname1\nip2\thostname2" grep hostname1 /etc/hosts >> /dev/null || echo $MYHOSTS | sudo tee -a /et...
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
Your issue is adressed here: <https://github.com/Microsoft/BashOnWindows/issues/398> To prevent WSL from automatically generating the /etc/hosts file on every bash startup, you need to remove the following comment line in /etc/hosts: ``` # This file was automatically generated by WSL. To prevent automatic generation ...
I had to do `chattr +i` on the file because the file kept getting overwritten even after I followed the instructions to add those two lines to `/etc/wsl.conf`. NOTE - remember that you ll need `chattr -i` to be able to edit the file from anywhere again.
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
```bsh sudo vim /etc/wsl.conf ``` Add the following two lines: ```bsh [network] generateHosts = False ``` Reference: <https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/>
I did not have the line saying: `To prevent automatic generation of this file, remove this line.`in my /etc/hosts. What I ended up doing was creating an addHosts.sh script with the following content: ``` MYHOSTS="ip1\thostname1\nip2\thostname2" grep hostname1 /etc/hosts >> /dev/null || echo $MYHOSTS | sudo tee -a /et...
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
I am using Ubuntu 16.04.5 LTS as a Linux subsystem under Windows. My /etc/hosts file under Ubuntu says ``` #This file is automatically generated by WSL based on the Windows hosts file: #%WINDIR%\System32\drivers\etc\hosts. Modifications to this file will be overwritten. ``` So I simply changed the `#%WINDIR%\System...
I had to do `chattr +i` on the file because the file kept getting overwritten even after I followed the instructions to add those two lines to `/etc/wsl.conf`. NOTE - remember that you ll need `chattr -i` to be able to edit the file from anywhere again.
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
I did not have the line saying: `To prevent automatic generation of this file, remove this line.`in my /etc/hosts. What I ended up doing was creating an addHosts.sh script with the following content: ``` MYHOSTS="ip1\thostname1\nip2\thostname2" grep hostname1 /etc/hosts >> /dev/null || echo $MYHOSTS | sudo tee -a /et...
I had to do `chattr +i` on the file because the file kept getting overwritten even after I followed the instructions to add those two lines to `/etc/wsl.conf`. NOTE - remember that you ll need `chattr -i` to be able to edit the file from anywhere again.
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
Your issue is adressed here: <https://github.com/Microsoft/BashOnWindows/issues/398> To prevent WSL from automatically generating the /etc/hosts file on every bash startup, you need to remove the following comment line in /etc/hosts: ``` # This file was automatically generated by WSL. To prevent automatic generation ...
I wrote the following zsh function based off of @R6D1H2's answer. ``` function addHosts() { declare -A MYHOSTS MYHOSTS=( [host-1]="ip.add.re.ss" [host-2]="ip.add.re.ss" [host-3]="ip.add.re.ss" ) for key value in ${(kv)MYHOSTS}; do grep $key /etc/hosts >> /dev/null ...
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
I did not have the line saying: `To prevent automatic generation of this file, remove this line.`in my /etc/hosts. What I ended up doing was creating an addHosts.sh script with the following content: ``` MYHOSTS="ip1\thostname1\nip2\thostname2" grep hostname1 /etc/hosts >> /dev/null || echo $MYHOSTS | sudo tee -a /et...
Your issue is adressed here: <https://github.com/Microsoft/BashOnWindows/issues/398> To prevent WSL from automatically generating the /etc/hosts file on every bash startup, you need to remove the following comment line in /etc/hosts: ``` # This file was automatically generated by WSL. To prevent automatic generation ...
1,150,597
I had problems with hostnames resolving in windows Linux-subsystem so I removed /etc/hosts and wrote new version of it. That solution solved my problem, but after every reboot system started overriding /etc/hosts by a some default version, so I need setup hosts again and again. Is it possible to setup linux subsystem ...
2016/11/28
[ "https://superuser.com/questions/1150597", "https://superuser.com", "https://superuser.com/users/627228/" ]
```bsh sudo vim /etc/wsl.conf ``` Add the following two lines: ```bsh [network] generateHosts = False ``` Reference: <https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/>
I am using Ubuntu 16.04.5 LTS as a Linux subsystem under Windows. My /etc/hosts file under Ubuntu says ``` #This file is automatically generated by WSL based on the Windows hosts file: #%WINDIR%\System32\drivers\etc\hosts. Modifications to this file will be overwritten. ``` So I simply changed the `#%WINDIR%\System...
49,026,683
I'm generating unique keys for invoice by using the below code and im getting **Run time Error 1004 Application defined or object defined error** in line ``` cell.Value = CStr(d & Mx) ``` Why I'm getting it? ``` Private Sub Key_Gen() Dim WIP_rng As Range Dim d As String, c As Long, r As Long, s As Integer, p As ...
2018/02/28
[ "https://Stackoverflow.com/questions/49026683", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4546587/" ]
The problem is with the `map` function not the `Pool` object. For this case, `starmap` would be a good choice like this: ``` p.starmap(f, zip([1,2,3], [4,5,6])) ``` From python 3.3 [`starmap`](https://docs.python.org/dev/library/multiprocessing.html#multiprocessing.pool.Pool.starmap) was added to the `Pool` object
I don't really understand how you want to order your parameters but the idea is to have a list of tuples because your function takes 2 arguments, so something like this : ``` p.map(f, [(1, 4), (2, 5), (3, 6)]) ``` and make f take a tuple as argument ``` def f(t): return t[0] * t[1] ```
123,449
I am using the `external` library to avoid recompiling tikz figures unnecessarily in a large document. Every now and then I have to change some details of some selected pictures. After the modifications it is necessary to recompile only those figures that have been modified. My aim is to do that automatically. From C...
2013/07/10
[ "https://tex.stackexchange.com/questions/123449", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/24528/" ]
In order to recreate files automatically as soon as the picture content has been modified, you will have to install a version of PGF which is more recent than 2.10. At the time of this writing, this means you would need to (a) wait for the next stable or (b) use the unstable version. You can acquire one by means of C...
Somebody here ([TikZ externalize fails to recognize changes](https://tex.stackexchange.com/questions/124316/tikz-externalize-fails-to-recognize-changes/124350#124350)) already posted an alternative solution, based on a self-made routine that compares modification dates and works nicely with pdftex provided that the fig...
123,449
I am using the `external` library to avoid recompiling tikz figures unnecessarily in a large document. Every now and then I have to change some details of some selected pictures. After the modifications it is necessary to recompile only those figures that have been modified. My aim is to do that automatically. From C...
2013/07/10
[ "https://tex.stackexchange.com/questions/123449", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/24528/" ]
In order to recreate files automatically as soon as the picture content has been modified, you will have to install a version of PGF which is more recent than 2.10. At the time of this writing, this means you would need to (a) wait for the next stable or (b) use the unstable version. You can acquire one by means of C...
By adding option to `tikzexternalize` ``` \tikzexternalize[up to date check=diff,some other options] ``` the package will overwrite the default md5 check, therefore bypass the md5 not updating problem. The picture will be updated this way, at least on my machine.
123,449
I am using the `external` library to avoid recompiling tikz figures unnecessarily in a large document. Every now and then I have to change some details of some selected pictures. After the modifications it is necessary to recompile only those figures that have been modified. My aim is to do that automatically. From C...
2013/07/10
[ "https://tex.stackexchange.com/questions/123449", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/24528/" ]
Somebody here ([TikZ externalize fails to recognize changes](https://tex.stackexchange.com/questions/124316/tikz-externalize-fails-to-recognize-changes/124350#124350)) already posted an alternative solution, based on a self-made routine that compares modification dates and works nicely with pdftex provided that the fig...
By adding option to `tikzexternalize` ``` \tikzexternalize[up to date check=diff,some other options] ``` the package will overwrite the default md5 check, therefore bypass the md5 not updating problem. The picture will be updated this way, at least on my machine.
60,149,391
I have this code (Node.js): File: utils.js ``` // utils.js const foo = () => { // .... } const bar = () => { // .... } module.exports = { foo, bar } ``` File: myModule.js ``` // myModule.js const { foo, bar } = require('./utils'); const bizz = () => { let fooResult = foo() return bar(foo...
2020/02/10
[ "https://Stackoverflow.com/questions/60149391", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4479220/" ]
Yes, it is possible. You just need to require `utils` to `spyOn` first, then require `myModule`. The following test will pass. ``` const utils = require('./utils'); // myModule.spec.js describe('myModule', () => { it('bizz should return bla bla bla', () => { const fooSpy = spyOn(utils, 'foo').and.returnValue(tr...
Seems like it's not possible. <https://github.com/mjackson/expect/issues/169>
28,182,989
I am trying out [Activity Transitions](https://developer.android.com/training/material/animations.html#Transitions) and when I paste below code in my values-21/styles.xml I get error: > > cannot resolve symbol '@transition/explode' > > > ``` <style name="BaseAppTheme" parent="android:Theme.Material"> <!-- enab...
2015/01/28
[ "https://Stackoverflow.com/questions/28182989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2245895/" ]
Did you create a `res/transition/explode.xml` file with the following contents? ``` <transitionSet xmlns:android="http://schemas.android.com/apk/res/android"> <explode /> </transitionSet> ```
Simplest Answer - Replace it with @android:transition/explode
46,431,102
I am a bloody beginner, I apologize if my mistake was too stupid. So far I cannot get my 'taskone' entry updated. After the click on the button it should be '1' in the row for the current user. my function ``` function loadDoc( user) { console.log('aaa'); $.ajax({ url: "upper.php",...
2017/09/26
[ "https://Stackoverflow.com/questions/46431102", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8677559/" ]
As @MagnusEriksson pointed out, In MySQL, with regards to column names only, you use backticks and not quotes to escape sql reserved keywords otherwise you can leave them out. Change your query to this: ``` $sql = "UPDATE `wp_users` SET `taskeins` = 1 WHERE `id` = '$current_user'"; ``` Also you need to start using...
I used this, answered. `enter code here`function loadDoc( user) { console.log('aaa'); $.ajax({ ``` url: "upper.php", method: "POST", data: { 'wp_users': user, 'taskeins': '1' }, success: function(data){ alert(data); ...
43,689,124
I can't seem to find an solution to this problem. I've seen several questions about this, but none really give me a solution. I am totally new to Autofac and haven't really done much WPF + MVVM, but know the basics. I have a WPF application (using ModernUI for WPF) which I'm trying to add Autofac to, and I am having ...
2017/04/28
[ "https://Stackoverflow.com/questions/43689124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/503526/" ]
Expanding on my comment above: I use Autofac with all my WPF MVVM applications, I believe it to be one of the better DI frameworks - this is my opinion, but I think it is valid. Also for me PRISM should be avoided 99% of the time, it's a '*solution looking for a problem*' and since most people don't build dynamically...
WPF doesn't have a natural composition root or easy DI integration. [Prism](https://github.com/PrismLibrary/Prism) is a pretty common set of libraries specifically intended to bridge that for you. (That's not Autofac specific - it's general guidance for adding DI to WPF apps.)
43,689,124
I can't seem to find an solution to this problem. I've seen several questions about this, but none really give me a solution. I am totally new to Autofac and haven't really done much WPF + MVVM, but know the basics. I have a WPF application (using ModernUI for WPF) which I'm trying to add Autofac to, and I am having ...
2017/04/28
[ "https://Stackoverflow.com/questions/43689124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/503526/" ]
You can use a similar technique as your console application: ``` class Program { [STAThread] static void Main(string[] args) { var builder = new ContainerBuilder(); builder.RegisterType<Cleaner>().As<ICleaner>(); builder.RegisterType<Repository>().AsImplementedInterfaces().InstanceP...
WPF doesn't have a natural composition root or easy DI integration. [Prism](https://github.com/PrismLibrary/Prism) is a pretty common set of libraries specifically intended to bridge that for you. (That's not Autofac specific - it's general guidance for adding DI to WPF apps.)
43,689,124
I can't seem to find an solution to this problem. I've seen several questions about this, but none really give me a solution. I am totally new to Autofac and haven't really done much WPF + MVVM, but know the basics. I have a WPF application (using ModernUI for WPF) which I'm trying to add Autofac to, and I am having ...
2017/04/28
[ "https://Stackoverflow.com/questions/43689124", "https://Stackoverflow.com", "https://Stackoverflow.com/users/503526/" ]
Expanding on my comment above: I use Autofac with all my WPF MVVM applications, I believe it to be one of the better DI frameworks - this is my opinion, but I think it is valid. Also for me PRISM should be avoided 99% of the time, it's a '*solution looking for a problem*' and since most people don't build dynamically...
You can use a similar technique as your console application: ``` class Program { [STAThread] static void Main(string[] args) { var builder = new ContainerBuilder(); builder.RegisterType<Cleaner>().As<ICleaner>(); builder.RegisterType<Repository>().AsImplementedInterfaces().InstanceP...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
The San Francisco Call (among other papers) is available online at the [California Digital Newspaper Collection](http://cdnc.ucr.edu). The copyright blurb on that site says > > All newspapers published before January 1, 1923 are in the public domain and therefore have no restrictions on use. If publishing, quoting f...
The real question here is "When does a copyright expire?" [About.com](http://inventors.about.com/od/copyrights/a/expiration.htm) summarizes the situation in the US with this table: > > * Published before 1923 - now in public domain > * Published from 1923 to 1963 - When published with a copyright notice © or "Copyri...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
The San Francisco Call (among other papers) is available online at the [California Digital Newspaper Collection](http://cdnc.ucr.edu). The copyright blurb on that site says > > All newspapers published before January 1, 1923 are in the public domain and therefore have no restrictions on use. If publishing, quoting f...
Disclaimer: I am not a lawyer, you are not my client. Your rights regarding clippings found on Ancestry.com and similar content-providing sites are **limited by Terms of Service first, copyright second**; *their Terms of Service may limit your rights even if the clipping is free of copyright*. Once you know the clippi...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
The San Francisco Call (among other papers) is available online at the [California Digital Newspaper Collection](http://cdnc.ucr.edu). The copyright blurb on that site says > > All newspapers published before January 1, 1923 are in the public domain and therefore have no restrictions on use. If publishing, quoting f...
[The Legal Genealogist](http://www.legalgenealogist.com/blog/2012/03/19/copyright-the-newspaper-article/) recently blogged on the topic of copyright and newspapers. However, you should also consult the terms and conditions of the website where you got the clipping. How do you intend to distribute it and how many copi...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
The San Francisco Call (among other papers) is available online at the [California Digital Newspaper Collection](http://cdnc.ucr.edu). The copyright blurb on that site says > > All newspapers published before January 1, 1923 are in the public domain and therefore have no restrictions on use. If publishing, quoting f...
The problem is not the copyright it is the Terms of Service. The newspaper itself is out of copyright so if you had taken your own image of an original it would be legal to distribute without any concern. However the contract you enter into when you sign up for Ancestry allow you to use THEIR images of the original ONL...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
Disclaimer: I am not a lawyer, you are not my client. Your rights regarding clippings found on Ancestry.com and similar content-providing sites are **limited by Terms of Service first, copyright second**; *their Terms of Service may limit your rights even if the clipping is free of copyright*. Once you know the clippi...
The real question here is "When does a copyright expire?" [About.com](http://inventors.about.com/od/copyrights/a/expiration.htm) summarizes the situation in the US with this table: > > * Published before 1923 - now in public domain > * Published from 1923 to 1963 - When published with a copyright notice © or "Copyri...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
The real question here is "When does a copyright expire?" [About.com](http://inventors.about.com/od/copyrights/a/expiration.htm) summarizes the situation in the US with this table: > > * Published before 1923 - now in public domain > * Published from 1923 to 1963 - When published with a copyright notice © or "Copyri...
The problem is not the copyright it is the Terms of Service. The newspaper itself is out of copyright so if you had taken your own image of an original it would be legal to distribute without any concern. However the contract you enter into when you sign up for Ancestry allow you to use THEIR images of the original ONL...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
Disclaimer: I am not a lawyer, you are not my client. Your rights regarding clippings found on Ancestry.com and similar content-providing sites are **limited by Terms of Service first, copyright second**; *their Terms of Service may limit your rights even if the clipping is free of copyright*. Once you know the clippi...
[The Legal Genealogist](http://www.legalgenealogist.com/blog/2012/03/19/copyright-the-newspaper-article/) recently blogged on the topic of copyright and newspapers. However, you should also consult the terms and conditions of the website where you got the clipping. How do you intend to distribute it and how many copi...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
Disclaimer: I am not a lawyer, you are not my client. Your rights regarding clippings found on Ancestry.com and similar content-providing sites are **limited by Terms of Service first, copyright second**; *their Terms of Service may limit your rights even if the clipping is free of copyright*. Once you know the clippi...
The problem is not the copyright it is the Terms of Service. The newspaper itself is out of copyright so if you had taken your own image of an original it would be legal to distribute without any concern. However the contract you enter into when you sign up for Ancestry allow you to use THEIR images of the original ONL...
29
I have found an old newspaper clipping from 1912 on Ancestry.com that I would like to print out and distribute. Am I legally allowed to do so, or is the clipping still held under copyright? Does the answer change if the newspaper is now defunct (The *San Francisco Call*)?
2012/10/09
[ "https://genealogy.stackexchange.com/questions/29", "https://genealogy.stackexchange.com", "https://genealogy.stackexchange.com/users/21/" ]
[The Legal Genealogist](http://www.legalgenealogist.com/blog/2012/03/19/copyright-the-newspaper-article/) recently blogged on the topic of copyright and newspapers. However, you should also consult the terms and conditions of the website where you got the clipping. How do you intend to distribute it and how many copi...
The problem is not the copyright it is the Terms of Service. The newspaper itself is out of copyright so if you had taken your own image of an original it would be legal to distribute without any concern. However the contract you enter into when you sign up for Ancestry allow you to use THEIR images of the original ONL...
25,106,607
I have this query ``` SELECT COUNT(*) from `login_log` where from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL 1 WEEK); ``` and the same one with 1 diff. it's not **1 WEEK** , but **1 MONTH** how can I combine those two and assign them to aliases?
2014/08/03
[ "https://Stackoverflow.com/questions/25106607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2244570/" ]
I would do this with conditional aggregation: ``` SELECT SUM(from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL 1 WEEK)), SUM(from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL 1 MONTH)) FROM `login_log`; ``` MySQL treats boolean values as integers, with `1` being "true" and `0` being "false". So, using `sum()`...
Even though it's pretty tough to understand what you ask: If you want them in the same column use `OR` ``` SELECT COUNT(*) from 'login_log' where from_unixtime('date') >= DATE_SUB(NOW(), INTERVAL 1 WEEK) OR from_unixtime('date') >= DATE_SUB(NOW(), INTERVAL 1 MONTH) ; ``` If you don't want duplicate answers: use `GR...
25,106,607
I have this query ``` SELECT COUNT(*) from `login_log` where from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL 1 WEEK); ``` and the same one with 1 diff. it's not **1 WEEK** , but **1 MONTH** how can I combine those two and assign them to aliases?
2014/08/03
[ "https://Stackoverflow.com/questions/25106607", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2244570/" ]
I would do this with conditional aggregation: ``` SELECT SUM(from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL 1 WEEK)), SUM(from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL 1 MONTH)) FROM `login_log`; ``` MySQL treats boolean values as integers, with `1` being "true" and `0` being "false". So, using `sum()`...
Use the where condition with one month internal and add the same where condition with one week internal as a Boolean column return. I mean ``` Select count (*) all_in_month, (from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL 1 WEEK)) as in_week from `login_log` where from_unixtime(`date`) >= DATE_SUB(NOW(), INTERVAL ...
8,606
Inspired by [this](https://bitcoin.stackexchange.com/questions/4254/could-bitcoin-be-destroyed-if-an-entity-cornered-the-market) question ("Could bitcoin be destroyed by an entity cornering the market?") and the top comment on [this](https://bitcoin.stackexchange.com/a/1094/1625) answer to [this](https://bitcoin.stacke...
2013/03/22
[ "https://bitcoin.stackexchange.com/questions/8606", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/1625/" ]
*Edit: I no longer think this answer is true.* The blockchain wouldn't cease to exist if an evil organization got a majority of hashpower. Thus, your questions would be better stated as, "If an evil organization that wanted to destroy bitcoin got a majority of hashpower, would bitcoin become less useful?" Yes, and w...
And as BTC represent the potential for a seachange historical event in respect to money and therefore politics, wars, culture, etc, the powers that control trillions in concentrated wealth in all asset classes, acquired by controlling money printing are threatened. Best start prepariing for what would seem an eventua...
8,606
Inspired by [this](https://bitcoin.stackexchange.com/questions/4254/could-bitcoin-be-destroyed-if-an-entity-cornered-the-market) question ("Could bitcoin be destroyed by an entity cornering the market?") and the top comment on [this](https://bitcoin.stackexchange.com/a/1094/1625) answer to [this](https://bitcoin.stacke...
2013/03/22
[ "https://bitcoin.stackexchange.com/questions/8606", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/1625/" ]
*Edit: I no longer think this answer is true.* The blockchain wouldn't cease to exist if an evil organization got a majority of hashpower. Thus, your questions would be better stated as, "If an evil organization that wanted to destroy bitcoin got a majority of hashpower, would bitcoin become less useful?" Yes, and w...
If such an event occurred it would likely be recoverable from a technical standpoint, it's basically a matter of reverting to the pre-attack block chain. A tiny microcosm happened recently: <http://bitcoin.org/may15.html> The larger effect would be the market reaction and this would largely be a function of the grace ...
8,606
Inspired by [this](https://bitcoin.stackexchange.com/questions/4254/could-bitcoin-be-destroyed-if-an-entity-cornered-the-market) question ("Could bitcoin be destroyed by an entity cornering the market?") and the top comment on [this](https://bitcoin.stackexchange.com/a/1094/1625) answer to [this](https://bitcoin.stacke...
2013/03/22
[ "https://bitcoin.stackexchange.com/questions/8606", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/1625/" ]
One of the questions you linked to has the wrong chosen answer— Bitcoin can also be destroyed by a sufficiently deep pocketed attacker which corners sufficient marketshare of coins to enable causing debilitating volatility. Probably won't require any where near majority share to create volatility. I added my claim at t...
And as BTC represent the potential for a seachange historical event in respect to money and therefore politics, wars, culture, etc, the powers that control trillions in concentrated wealth in all asset classes, acquired by controlling money printing are threatened. Best start prepariing for what would seem an eventua...
8,606
Inspired by [this](https://bitcoin.stackexchange.com/questions/4254/could-bitcoin-be-destroyed-if-an-entity-cornered-the-market) question ("Could bitcoin be destroyed by an entity cornering the market?") and the top comment on [this](https://bitcoin.stackexchange.com/a/1094/1625) answer to [this](https://bitcoin.stacke...
2013/03/22
[ "https://bitcoin.stackexchange.com/questions/8606", "https://bitcoin.stackexchange.com", "https://bitcoin.stackexchange.com/users/1625/" ]
One of the questions you linked to has the wrong chosen answer— Bitcoin can also be destroyed by a sufficiently deep pocketed attacker which corners sufficient marketshare of coins to enable causing debilitating volatility. Probably won't require any where near majority share to create volatility. I added my claim at t...
If such an event occurred it would likely be recoverable from a technical standpoint, it's basically a matter of reverting to the pre-attack block chain. A tiny microcosm happened recently: <http://bitcoin.org/may15.html> The larger effect would be the market reaction and this would largely be a function of the grace ...
1,646,952
I'm trying to test a file (Account.cs) using testfile (AccountTest.cs). I run OSX 10.6 with Mono Framework (and nunit-console). Below is Account.cs ``` namespace bank { using System; public class InsufficientFundsException : ApplicationException { } public class Account { private ...
2009/10/29
[ "https://Stackoverflow.com/questions/1646952", "https://Stackoverflow.com", "https://Stackoverflow.com/users/199183/" ]
You are pointing to the right page: "To use similar options while running unit tests directly with nunit-console2, specify MONO\_OPTIONS as follows: MONO\_OPTIONS="--profile=monocov:+[MyAssembly]" nunit-console2 MyTestAssembly.dll" You can run your unit tests and get code coverage by setting the option.
You might like to try out [Baboon](https://github.com/inorton/XR.Baboon) my new mono code coverage tool. The monocov and cov profilers only check for method entry/exit while Baboon is able to check the coverage of each line of each method in your program, including static initializers and private members. ``` $ echo a...
52,046,520
I'd like to query a Solr database for text containing a given gmail address. I'd like to search by the canonical gmail address, and get any results that gmail interprets as the same address. **Example** Searching for `somebody@gmail.com` should match all of the following strings: * `somebody@gmail.com` * `some.body@...
2018/08/27
[ "https://Stackoverflow.com/questions/52046520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/599022/" ]
If you know some type of search will be a requirement, you deal with it at the indexing time for efficiency purposes. So, you want to extract those email addresses and put them into a separate field for pre-processing (removing dot and removing +anything). Then you search both fields, possibly boosting on the email on...
* With a regex: most probably is possible, I don't use regex that much but I think it is. * But anyway, I advise you do some work at index time to make this easier. You just index two fields, one with original content (just in case), and another copyField with the . and +somwhere stuff removed. Then you have more tools...
63,539,053
``` var Age; Age = prompt("How old are you"); while (Age === null){ prompt("Please Cofirm You Name"); if (Age > 0 ){ break; } } ``` I am trying to make it so that the user is in a loop until var Age is not null... My goal is to make it so that you cant cancel the prompt and h...
2020/08/22
[ "https://Stackoverflow.com/questions/63539053", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14148974/" ]
spark does not provide any default functions to achieve this kind of functionality I would do like to do most probably in this way ``` //inputDF contains Col1 | Col2 val df = inputDF.select("Col1").distinct.rdd.zipWithIndex().toDF("Col1","Col2") val finalDF = inputDF.join(df,df("Col1") === inputDF("Col1"),"left").se...
Use `window` and sum over the window of the value 1 when `Col1 = A`. ``` import pyspark.sql.functions as f from pyspark.sql import Window w = Window.partitionBy().rowsBetween(Window.unboundedPreceding, Window.currentRow) df.withColumn('Col3', f.sum(f.when(f.col('Col1') == f.lit('A'), 1).otherwise(0)).over(w)).show()...
35,632,309
I would like to display a message in a page in case of user summited specific value. The form: * text form * lots of free space for the message * submit button PHP: ``` <?php echo '<link rel="stylesheet" href="t1.css">'; echo '<div class="csstest">'; echo ' <form action="'.htmlspecialchars($_SERVER["PHP_SELF...
2016/02/25
[ "https://Stackoverflow.com/questions/35632309", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2759136/" ]
As per your original post <https://stackoverflow.com/revisions/35632309/1> where you kept on editing from my comments. Well, at first you were assigning here `if ($_POST['data1']=1)` rather than comparing `if ($_POST['data1']==1)` which you edited after the fact. Then, you were using the wrong name attribute for the ...
1) Double Quotes missing from last echo. Change: `echo "</div>';` To: `echo "</div>";` 2) Button too far from top, no where near text input. Change: `.csstest input[type=submit] {top: 350px;}` To: `.csstest input[type=submit]{top: 100px;}` 3) Stylesheet references a class that does not exist. Change: `.csstestinp...
30,570,340
I am using DynamoDBMapper to insert a new object to my table. Table structure: ``` key: hash_key attribute1: global sec index other attributes ``` Now i want the value of attribute1 to be unique in the table. How to do that? Already tried: ``` a. map.put("attribute1", new ExpectedAttributeValue(false)); b. map.put...
2015/06/01
[ "https://Stackoverflow.com/questions/30570340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3687075/" ]
You don't call class methods with a dot. You call class methods (not static) with `->` like: ``` $result = $mailer->SendMail(); ``` Besides you need to set your properties with `$this->` (again if not static) change the content of your contstructor to: ``` $this->to = $to; $this->subject = $subject; $this->message ...
Dot `.` is use for `concatenate`. You use `->` to access member of class ``` $result = $mailer->SendMail(); ```
30,570,340
I am using DynamoDBMapper to insert a new object to my table. Table structure: ``` key: hash_key attribute1: global sec index other attributes ``` Now i want the value of attribute1 to be unique in the table. How to do that? Already tried: ``` a. map.put("attribute1", new ExpectedAttributeValue(false)); b. map.put...
2015/06/01
[ "https://Stackoverflow.com/questions/30570340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3687075/" ]
Dot `.` is use for `concatenate`. You use `->` to access member of class ``` $result = $mailer->SendMail(); ```
`.` is a contact operator, to access member of a class both variable and functions use `->` operator use the below code: `$result = $mailer->SendMail();`
30,570,340
I am using DynamoDBMapper to insert a new object to my table. Table structure: ``` key: hash_key attribute1: global sec index other attributes ``` Now i want the value of attribute1 to be unique in the table. How to do that? Already tried: ``` a. map.put("attribute1", new ExpectedAttributeValue(false)); b. map.put...
2015/06/01
[ "https://Stackoverflow.com/questions/30570340", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3687075/" ]
You don't call class methods with a dot. You call class methods (not static) with `->` like: ``` $result = $mailer->SendMail(); ``` Besides you need to set your properties with `$this->` (again if not static) change the content of your contstructor to: ``` $this->to = $to; $this->subject = $subject; $this->message ...
`.` is a contact operator, to access member of a class both variable and functions use `->` operator use the below code: `$result = $mailer->SendMail();`
52,243,276
I know that the Unix timestamp is defined as the number of seconds passed since `1970-01-01 00:00:00Z`. However, I could not find a clear source that gives this definition. I've also read various different statements about the relationship between UTC and the Unix Timestamp in regards to leap seconds. [This wikipedia ...
2018/09/09
[ "https://Stackoverflow.com/questions/52243276", "https://Stackoverflow.com", "https://Stackoverflow.com/users/562769/" ]
> > **A.4.16 Seconds Since the Epoch** > > > Coordinated Universal Time (UTC) includes leap seconds. However, in POSIX time (seconds since the Epoch), **leap seconds are ignored (not applied)** to provide an easy and compatible method of computing time differences. Broken-down POSIX time is therefore not necessarily...
Unix time tracks the SI seconds elapsed since 1970-01-01 00:00:00 UTC *minus the [leap seconds](https://www.ietf.org/timezones/data/leap-seconds.list) of UTC*. Positive leap seconds are not counted and negative leap seconds are counted twice. In other words, it counts as if each day lasted 86,400 SI seconds, so a Unix ...
386,048
I am pretty new to tikz. I need a request response message in tikz. I have attached the image. I need the image should be generated as shown in the attached figure.[![enter image description here](https://i.stack.imgur.com/vi3Qc.jpg)](https://i.stack.imgur.com/vi3Qc.jpg) I have tried a lot, but struck in between. Here ...
2017/08/12
[ "https://tex.stackexchange.com/questions/386048", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/85426/" ]
You're fairly close actually. First, you do of course need to have `\usepackage{tikz}` before `\usetikzlibrary{..}`. As for the diagram, instead of having all those settings directly in the `tikzpicture` options, make a new style with `stylename/.style={<list of settings>}`, and apply that style to your two nodes. Bec...
[![enter image description here](https://i.stack.imgur.com/4fHoH.png)](https://i.stack.imgur.com/4fHoH.png) so similar to [Torbjørn T.](http://%20Torbj%C3%B8rn%20T) answer that I was doubt to publish because I was to late for 3 min: ``` \documentclass[12pt,a4paper,twoside]{report} \usepackage{tikz} \usetikzlibrary...
386,048
I am pretty new to tikz. I need a request response message in tikz. I have attached the image. I need the image should be generated as shown in the attached figure.[![enter image description here](https://i.stack.imgur.com/vi3Qc.jpg)](https://i.stack.imgur.com/vi3Qc.jpg) I have tried a lot, but struck in between. Here ...
2017/08/12
[ "https://tex.stackexchange.com/questions/386048", "https://tex.stackexchange.com", "https://tex.stackexchange.com/users/85426/" ]
You're fairly close actually. First, you do of course need to have `\usepackage{tikz}` before `\usetikzlibrary{..}`. As for the diagram, instead of having all those settings directly in the `tikzpicture` options, make a new style with `stylename/.style={<list of settings>}`, and apply that style to your two nodes. Bec...
Just to show how easy to do it with basic LaTeX: ``` \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{old-arrows} \usepackage[svgnames]{xcolor} \begin{document} \[ \setlength{\fboxsep}{0pt} \setlength{\fboxrule}{0.8pt}\fcolorbox{DarkSeaGreen}{white}{\begin{tabular}{c} ...
564,731
I see that I can only create a pivotchart from a pivottable, but since the filtering options are on the chart, and the table is not important: **Is there a way to hide a pivottable If I only want to show the pivot chart?**
2013/03/12
[ "https://superuser.com/questions/564731", "https://superuser.com", "https://superuser.com/users/45633/" ]
A PivotChart and its associated PivotTable report must always be in the same workbook (as the Chart's data is based on the the table). However you can place the Chart on one worksheet and have the table on a separate one, effectively hiding the table from view.
In Excel2013 when creating a PivotChart there is a checkbox at the bottom saying "Add this data to the Data Model" which hides the table (if checked).
564,731
I see that I can only create a pivotchart from a pivottable, but since the filtering options are on the chart, and the table is not important: **Is there a way to hide a pivottable If I only want to show the pivot chart?**
2013/03/12
[ "https://superuser.com/questions/564731", "https://superuser.com", "https://superuser.com/users/45633/" ]
A PivotChart and its associated PivotTable report must always be in the same workbook (as the Chart's data is based on the the table). However you can place the Chart on one worksheet and have the table on a separate one, effectively hiding the table from view.
You can also place the pivot table in a separate sheet, then right click the sheet name and select Hide. This way no one can access the Pivot Table without unhiding the sheet first.
564,731
I see that I can only create a pivotchart from a pivottable, but since the filtering options are on the chart, and the table is not important: **Is there a way to hide a pivottable If I only want to show the pivot chart?**
2013/03/12
[ "https://superuser.com/questions/564731", "https://superuser.com", "https://superuser.com/users/45633/" ]
In Excel2013 when creating a PivotChart there is a checkbox at the bottom saying "Add this data to the Data Model" which hides the table (if checked).
You can also place the pivot table in a separate sheet, then right click the sheet name and select Hide. This way no one can access the Pivot Table without unhiding the sheet first.
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
If you want fast recycle times on the 430ex and most other speedlights, you need an external battery. No AA sized battery can deliver enough power -- its a limitation of the physical size of the battery's chemicals. The internal impedance rises as power is drawn, and the chemicals have to redistribute themselves to pro...
I tested a lot of batteries for my external flash. The best performance I got from the Sanyo Eneloop. More than 400 flashes and fast re-loading of the flash - the best!
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
If you want fast recycle times on the 430ex and most other speedlights, you need an external battery. No AA sized battery can deliver enough power -- its a limitation of the physical size of the battery's chemicals. The internal impedance rises as power is drawn, and the chemicals have to redistribute themselves to pro...
The problem with alkaline batteries is that they quickly loose their power output. When they are produced, they have a voltage of about 1.5V. But when drawing a lot of current (which a flash does), the voltage drops, and when they have been used for some time, the voltage drops. So when using brand new alkaline batter...
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
If you want fast recycle times on the 430ex and most other speedlights, you need an external battery. No AA sized battery can deliver enough power -- its a limitation of the physical size of the battery's chemicals. The internal impedance rises as power is drawn, and the chemicals have to redistribute themselves to pro...
My personal preference is to use Lithium batteries. For me they seem to offer the best cycling performance and I am able to take shot after shot after shot with no issues of needing to allow them to recycle. Until they run down that is! Energizer and Duracell both do versions of Lithium AA's. These are generally prici...
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
In general, NiMH batteries will deliver more current than alkalines. So if you want fast without going to an external power pack, NiMH rechargeable batteries are your answer. I have Tenergy 2600 mAh batteries that I bought from <http://www.all-battery.com/>. If you're going to charge them and keep them in storage, yo...
I tested a lot of batteries for my external flash. The best performance I got from the Sanyo Eneloop. More than 400 flashes and fast re-loading of the flash - the best!
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
In general, NiMH batteries will deliver more current than alkalines. So if you want fast without going to an external power pack, NiMH rechargeable batteries are your answer. I have Tenergy 2600 mAh batteries that I bought from <http://www.all-battery.com/>. If you're going to charge them and keep them in storage, yo...
The problem with alkaline batteries is that they quickly loose their power output. When they are produced, they have a voltage of about 1.5V. But when drawing a lot of current (which a flash does), the voltage drops, and when they have been used for some time, the voltage drops. So when using brand new alkaline batter...
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
In general, NiMH batteries will deliver more current than alkalines. So if you want fast without going to an external power pack, NiMH rechargeable batteries are your answer. I have Tenergy 2600 mAh batteries that I bought from <http://www.all-battery.com/>. If you're going to charge them and keep them in storage, yo...
My personal preference is to use Lithium batteries. For me they seem to offer the best cycling performance and I am able to take shot after shot after shot with no issues of needing to allow them to recycle. Until they run down that is! Energizer and Duracell both do versions of Lithium AA's. These are generally prici...
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
I tested a lot of batteries for my external flash. The best performance I got from the Sanyo Eneloop. More than 400 flashes and fast re-loading of the flash - the best!
The problem with alkaline batteries is that they quickly loose their power output. When they are produced, they have a voltage of about 1.5V. But when drawing a lot of current (which a flash does), the voltage drops, and when they have been used for some time, the voltage drops. So when using brand new alkaline batter...
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
I tested a lot of batteries for my external flash. The best performance I got from the Sanyo Eneloop. More than 400 flashes and fast re-loading of the flash - the best!
My personal preference is to use Lithium batteries. For me they seem to offer the best cycling performance and I am able to take shot after shot after shot with no issues of needing to allow them to recycle. Until they run down that is! Energizer and Duracell both do versions of Lithium AA's. These are generally prici...
22,922
I have gotten deep into bird photography this year, and have put a lot of time and effort into learning the tricks of the trade. My latest endeavors are into bird/bif flash photography. I own a Canon 430EX II flash, and a flash extender (basically a simple Fresnel lens on the end of a couple of arms that attaches to th...
2012/04/28
[ "https://photo.stackexchange.com/questions/22922", "https://photo.stackexchange.com", "https://photo.stackexchange.com/users/124/" ]
The problem with alkaline batteries is that they quickly loose their power output. When they are produced, they have a voltage of about 1.5V. But when drawing a lot of current (which a flash does), the voltage drops, and when they have been used for some time, the voltage drops. So when using brand new alkaline batter...
My personal preference is to use Lithium batteries. For me they seem to offer the best cycling performance and I am able to take shot after shot after shot with no issues of needing to allow them to recycle. Until they run down that is! Energizer and Duracell both do versions of Lithium AA's. These are generally prici...
37,367,937
I have two dictionaries with some shared keys, and some different ones. (Each dictionary has some keys not present in the other). What's a nice way to compare the two dictionaries for equality, as if only the shared keys were present? In other words I want a simplest way to calculate the following: ``` commonkeys = s...
2016/05/21
[ "https://Stackoverflow.com/questions/37367937", "https://Stackoverflow.com", "https://Stackoverflow.com/users/699305/" ]
What about the following? ``` return all(dict2[key] == val for key, val in dict1.iteritems() if key in dict2) ``` Or even shorter (although it possibly involves a few more comparisons): ``` return all(dict2.get(key, val) == val for key, val in dict1.iteritems()) ```
Try this ``` dict((k, dict1[k]) for k in dict1.keys() + dict2.keys() if dict1.get(k) == dict2.get(k)) ``` O(m + n) comparisons. If you want a true/false result put a simple check on the above result. If not none return true
21,222,840
Deleting a row from a UITableView fed by an NSFetchedResultsController causes my app to crash. Error is: > > **\* Assertion failure in -[UITableView \_endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-2903.23/UITableView.m:1330 > > \*** Terminating app due to uncaught exception 'NSInternalInconsistencyEx...
2014/01/19
[ "https://Stackoverflow.com/questions/21222840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/873436/" ]
Don't call ``` [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; ``` if you use a fetched results controller. Only delete the object with ``` [self.managedObjectContext deleteObject:sd]; ``` The fetched results controller *delegate method* `...
If you want to delete a row you need to delete managedObject only. ``` if (editingStyle == UITableViewCellEditingStyleDelete) { [self.managedObjectContext deleteObject:[self.fetchedResultsController objectAtIndexPath:indexPath]]; NSError *error = nil; if (![self.managedObjectContext save:&error]) { ...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
Telephone numbers are standardised by ITU-T in their recommendation E.164. In the recommendation they say telephone numbers **should not** exceed 15 digits. So it's up to the telephone operators and local standards. Most operators don't allow you to send SMS messages to numbers which are more than 16 digits long. So ...
Actually, the question asks for an "international" phone number but mentions an area code which some nations don't have. In E.164 the national part was found be no more than 12 digits at the time of writing. Then they added a country code and atleast a "+" for the prefix. Longer subscriber numbers may be possible howe...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
> > , where the format of telephone > numbers is standardized by ITU-T in > the recommendation E.164, which > specifies that the entire number > should be 15 digits or shorter, > > > Source: <http://en.wikipedia.org/wiki/Telephone_number> Also, check this other question on SO: [What's the longest possible wor...
15 digits is maximum, refer this link <https://en.wikipedia.org/wiki/E.164>
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
> > , where the format of telephone > numbers is standardized by ITU-T in > the recommendation E.164, which > specifies that the entire number > should be 15 digits or shorter, > > > Source: <http://en.wikipedia.org/wiki/Telephone_number> Also, check this other question on SO: [What's the longest possible wor...
Although the standard is talking about 15 digits maximum, a call number extension using [Direct Inward Dial (DID)](https://en.wikipedia.org/wiki/Direct_inward_dial) and [Private Branch Exchange (PBX)](https://en.wikipedia.org/wiki/Business_telephone_system) technologies is oftenly used in order to call a specific perso...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
Although the standard is talking about 15 digits maximum, a call number extension using [Direct Inward Dial (DID)](https://en.wikipedia.org/wiki/Direct_inward_dial) and [Private Branch Exchange (PBX)](https://en.wikipedia.org/wiki/Business_telephone_system) technologies is oftenly used in order to call a specific perso...
Actually, the question asks for an "international" phone number but mentions an area code which some nations don't have. In E.164 the national part was found be no more than 12 digits at the time of writing. Then they added a country code and atleast a "+" for the prefix. Longer subscriber numbers may be possible howe...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
The answer to that question can (and does) change in a fashion which is entirely too fluid to be able to provide you with a definitive answer. Carriers or countries can change their numbering plans (adding area codes or adding digits or the like) at any time. A website which I often use as a reference for Internationa...
Actually, the question asks for an "international" phone number but mentions an area code which some nations don't have. In E.164 the national part was found be no more than 12 digits at the time of writing. Then they added a country code and atleast a "+" for the prefix. Longer subscriber numbers may be possible howe...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
> > , where the format of telephone > numbers is standardized by ITU-T in > the recommendation E.164, which > specifies that the entire number > should be 15 digits or shorter, > > > Source: <http://en.wikipedia.org/wiki/Telephone_number> Also, check this other question on SO: [What's the longest possible wor...
Telephone numbers are standardised by ITU-T in their recommendation E.164. In the recommendation they say telephone numbers **should not** exceed 15 digits. So it's up to the telephone operators and local standards. Most operators don't allow you to send SMS messages to numbers which are more than 16 digits long. So ...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
Telephone numbers are standardised by ITU-T in their recommendation E.164. In the recommendation they say telephone numbers **should not** exceed 15 digits. So it's up to the telephone operators and local standards. Most operators don't allow you to send SMS messages to numbers which are more than 16 digits long. So ...
Although the standard is talking about 15 digits maximum, a call number extension using [Direct Inward Dial (DID)](https://en.wikipedia.org/wiki/Direct_inward_dial) and [Private Branch Exchange (PBX)](https://en.wikipedia.org/wiki/Business_telephone_system) technologies is oftenly used in order to call a specific perso...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
The answer to that question can (and does) change in a fashion which is entirely too fluid to be able to provide you with a definitive answer. Carriers or countries can change their numbering plans (adding area codes or adding digits or the like) at any time. A website which I often use as a reference for Internationa...
Although the standard is talking about 15 digits maximum, a call number extension using [Direct Inward Dial (DID)](https://en.wikipedia.org/wiki/Direct_inward_dial) and [Private Branch Exchange (PBX)](https://en.wikipedia.org/wiki/Business_telephone_system) technologies is oftenly used in order to call a specific perso...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
15 digits is maximum, refer this link <https://en.wikipedia.org/wiki/E.164>
Although the standard is talking about 15 digits maximum, a call number extension using [Direct Inward Dial (DID)](https://en.wikipedia.org/wiki/Direct_inward_dial) and [Private Branch Exchange (PBX)](https://en.wikipedia.org/wiki/Business_telephone_system) technologies is oftenly used in order to call a specific perso...
3,350,514
Hope you all are doing well. Previously I asked a question [how to import a XML file to SQL Server](https://stackoverflow.com/questions/3298834/import-website-xml-feed-to-sql-server) thanks to all you responses. As my source file come with heavy amount of data, I am trying to load by SSIS. Below are the steps I follo...
2010/07/28
[ "https://Stackoverflow.com/questions/3350514", "https://Stackoverflow.com", "https://Stackoverflow.com/users/397882/" ]
Telephone numbers are standardised by ITU-T in their recommendation E.164. In the recommendation they say telephone numbers **should not** exceed 15 digits. So it's up to the telephone operators and local standards. Most operators don't allow you to send SMS messages to numbers which are more than 16 digits long. So ...
15 digits is maximum, refer this link <https://en.wikipedia.org/wiki/E.164>
21,496,935
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Onclickmuseum.Models.PackageModel]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[Onclickmuseum.Models.AuctionModel]'. Description: An unhandled exception occurred during the execution ...
2014/02/01
[ "https://Stackoverflow.com/questions/21496935", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3224190/" ]
The exception error message is pretty clear. You have a view or partial which is strongly typed to: ``` @model IEnumerable<Onclickmuseum.Models.AuctionModel> ``` but your controller action passed a `List<Onclickmuseum.Models.PackageModel>` to it. Make sure that your controller action is passing to the view a model w...
``` **Controller file of this index page** using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Onclickmuseum.Models; using System.Data; using System.ComponentModel.DataAnnotations; using System.Data.Entity; namespace Onclickmuseum.Controllers { public c...
35,709,961
Having an issue I cant find anywhere on the web. Error informs me that save() method does not exits? Cant figure it out the problem. This problems happens when sending a post form to create/save a new task in controller. The trace stack and error method is as follows -> ``` BadMethodCallException in Controller.php li...
2016/02/29
[ "https://Stackoverflow.com/questions/35709961", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5995300/" ]
You have two classes named `Task`, which is okay since they are in different namespaces. First, you have your `Task` model, which is `\App\Task`. Second, you have your `Task` controller, which is `\App\Http\Controllers\Task`. In your Task controller, in your `saveTask` method, you have the following line: ``` $task ...
The problem you are facing is you named your controller as Task and you are doing ``` $task = new Task; ``` In this case the code is referring to the controller task but not the model task. So it is searching for save method in the Task controller class but not the model. you can change it to ``` $task = new \App...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
It is a simple way to implement [Memoization](https://en.wikipedia.org/wiki/Memoization). The trick is that if you define a function as ``` f[x_]:=f[x]=ExpensiveFunctionOf[x] ``` then when you for the first time call e.g. `f[3]`, it will evaluate as ``` f[3]=ExpensiveFunctionOf[3] ``` which will evalulate the exp...
It's ... oh, why not let the docs speak: [tutorial/FunctionsThatRememberValuesTheyHaveFound](http://reference.wolfram.com/mathematica/tutorial/FunctionsThatRememberValuesTheyHaveFound.html) (in Doc center) **Edit** You may also find additional information by searching for "memoization" on this site. This has always...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
It's ... oh, why not let the docs speak: [tutorial/FunctionsThatRememberValuesTheyHaveFound](http://reference.wolfram.com/mathematica/tutorial/FunctionsThatRememberValuesTheyHaveFound.html) (in Doc center) **Edit** You may also find additional information by searching for "memoization" on this site. This has always...
It also has another practical side. If you have a **random** function, which * you only want to evaluate once, **but** * you don't know *where* exactly it will be evaluated **or** * you want to declare it *before* the parameters it depends on are defined, **and** * you want it to be the same after the first evaluation...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
[Memoization](http://reference.wolfram.com/mathematica/tutorial/FunctionsThatRememberValuesTheyHaveFound.html) is perhaps the most common application, but it is not the *meaning* of that construct. More generally it is a construct for a function that redefines itself. This has many uses beyond memoization. Consider th...
It's ... oh, why not let the docs speak: [tutorial/FunctionsThatRememberValuesTheyHaveFound](http://reference.wolfram.com/mathematica/tutorial/FunctionsThatRememberValuesTheyHaveFound.html) (in Doc center) **Edit** You may also find additional information by searching for "memoization" on this site. This has always...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
It is a simple way to implement [Memoization](https://en.wikipedia.org/wiki/Memoization). The trick is that if you define a function as ``` f[x_]:=f[x]=ExpensiveFunctionOf[x] ``` then when you for the first time call e.g. `f[3]`, it will evaluate as ``` f[3]=ExpensiveFunctionOf[3] ``` which will evalulate the exp...
It also has another practical side. If you have a **random** function, which * you only want to evaluate once, **but** * you don't know *where* exactly it will be evaluated **or** * you want to declare it *before* the parameters it depends on are defined, **and** * you want it to be the same after the first evaluation...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
It is a simple way to implement [Memoization](https://en.wikipedia.org/wiki/Memoization). The trick is that if you define a function as ``` f[x_]:=f[x]=ExpensiveFunctionOf[x] ``` then when you for the first time call e.g. `f[3]`, it will evaluate as ``` f[3]=ExpensiveFunctionOf[3] ``` which will evalulate the exp...
[Memoization](http://reference.wolfram.com/mathematica/tutorial/FunctionsThatRememberValuesTheyHaveFound.html) is perhaps the most common application, but it is not the *meaning* of that construct. More generally it is a construct for a function that redefines itself. This has many uses beyond memoization. Consider th...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
It is a simple way to implement [Memoization](https://en.wikipedia.org/wiki/Memoization). The trick is that if you define a function as ``` f[x_]:=f[x]=ExpensiveFunctionOf[x] ``` then when you for the first time call e.g. `f[3]`, it will evaluate as ``` f[3]=ExpensiveFunctionOf[3] ``` which will evalulate the exp...
This is my first reply in this group. So please bear with me if I make any mistake, it would not be intentional, just lack of familiarity with the rules. Although the replies above mention important aspects, I generally like to view things from alternative perspectives. I'd like to offer a few of those on this questio...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
[Memoization](http://reference.wolfram.com/mathematica/tutorial/FunctionsThatRememberValuesTheyHaveFound.html) is perhaps the most common application, but it is not the *meaning* of that construct. More generally it is a construct for a function that redefines itself. This has many uses beyond memoization. Consider th...
It also has another practical side. If you have a **random** function, which * you only want to evaluate once, **but** * you don't know *where* exactly it will be evaluated **or** * you want to declare it *before* the parameters it depends on are defined, **and** * you want it to be the same after the first evaluation...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
This is my first reply in this group. So please bear with me if I make any mistake, it would not be intentional, just lack of familiarity with the rules. Although the replies above mention important aspects, I generally like to view things from alternative perspectives. I'd like to offer a few of those on this questio...
It also has another practical side. If you have a **random** function, which * you only want to evaluate once, **but** * you don't know *where* exactly it will be evaluated **or** * you want to declare it *before* the parameters it depends on are defined, **and** * you want it to be the same after the first evaluation...
2,639
[This question](https://mathematica.stackexchange.com/questions/2440/effective-matrix-power-like-algorithm) mentions "`x := x =` trickery". What does defining a function as `f[x_] := f[x] = ...` do and what is it good for?
2012/03/06
[ "https://mathematica.stackexchange.com/questions/2639", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/6358/" ]
[Memoization](http://reference.wolfram.com/mathematica/tutorial/FunctionsThatRememberValuesTheyHaveFound.html) is perhaps the most common application, but it is not the *meaning* of that construct. More generally it is a construct for a function that redefines itself. This has many uses beyond memoization. Consider th...
This is my first reply in this group. So please bear with me if I make any mistake, it would not be intentional, just lack of familiarity with the rules. Although the replies above mention important aspects, I generally like to view things from alternative perspectives. I'd like to offer a few of those on this questio...
48,918,876
I have a test site which uses drupal webforms. My register form has this following password fields. They are using the inbuilt "Password field" type [![enter image description here](https://i.stack.imgur.com/ZUhgr.png)](https://i.stack.imgur.com/ZUhgr.png) When I look in my MySQL db I can see the passwords in plaint...
2018/02/22
[ "https://Stackoverflow.com/questions/48918876", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1218183/" ]
Running the code you posted with the given input yields the exact same results for me. Taking your input and converting it to ASCII code gives the following output ``` 49 49 50 50 97 97 97 98 98 98 99 99 99 99 42 42 42 10 10 ``` The last two `10` are the newline characters that are being printed out
`cout << c << endl;` well, you are printing new lines (`std::endl` inserts a new line character specific to the current OS). So it isn't surprising that there are new line characters in the output. Remove the `<< endl` part of that line and you will get exactly what you want :) Edit: Just noticed that you only what to...
48,918,876
I have a test site which uses drupal webforms. My register form has this following password fields. They are using the inbuilt "Password field" type [![enter image description here](https://i.stack.imgur.com/ZUhgr.png)](https://i.stack.imgur.com/ZUhgr.png) When I look in my MySQL db I can see the passwords in plaint...
2018/02/22
[ "https://Stackoverflow.com/questions/48918876", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1218183/" ]
Copying your program and having it output to a file results in exactly what you want with only one newline. To me, it looks like the extra newline was added in by your IDE to separate the program output from the message telling you the program as ended. Try outputting to a file or print some output without an ending ...
`cout << c << endl;` well, you are printing new lines (`std::endl` inserts a new line character specific to the current OS). So it isn't surprising that there are new line characters in the output. Remove the `<< endl` part of that line and you will get exactly what you want :) Edit: Just noticed that you only what to...
46,797,157
I have a Javascript iteration/Regex expression that's been driving me insane and was hoping someone could provide some insight, as the challenge I'm running into seems to be something peculiar to JS. As you can see, the regex expression I have checks to see if the letter occurs 2 or more times in the string and if it d...
2017/10/17
[ "https://Stackoverflow.com/questions/46797157", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5676949/" ]
Finally found the solution: Include jquery in `index.html`: ``` <body> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <div id="app"></div> <!-- inject:js --> <script src="/js/b...
It seems that you're making the ajax requests to these JS files however you're not doing anything with the response? A better way to do this would be 1. download the files locally 2. put them in the same directory as your single file component 3. import the local files right above your component ``` ``` <script> ...
3,527,493
Is there a way to disable multi select?
2010/08/20
[ "https://Stackoverflow.com/questions/3527493", "https://Stackoverflow.com", "https://Stackoverflow.com/users/425903/" ]
I know this is an old question, but updates to Slickgrid now allow you to disable multiSelect in the grid options: ``` var options = { editable: false, enableCellNavigation: true, asyncEditorLoading: false, multiSelect: false }; ``` With this option, clicking w...
Remove the `muiltiple="multiple"` in the following line: ``` <select id="id" name="name" multiple="multiple"> ``` So, it is as good as removing that attribute. I'd use jQuery.