qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
You can if you charge rent, technically --------------------------------------- If the government owns all the land, you can charge rent for the land people own, you can use that to fund the government. You can even allow people to buy and sell the leases, allowing you to still have a real estate market. This is basic...
The most important job of government is not the provision of services, which as your question suggests could be done with varying degrees of efficiency by the private sector. Rather, it's the involuntary redistribution of wealth, to level out the gross imbalances in the market value of different citizens (from negative...
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
A nation without any tax at all would most likely be a stretch. I'm also gonna have to dodge a good number of "can o' worms" to answer this. **Let's consider the services.** * Many nations currently do have you buy your own health insurance, etc. There are many issues with this, such as low income individuals not bei...
Look at prisons as an example. Privatized prisons in the USA has caused this country to have one of the highest incarceration rates around because thats how the people owning the prisons make money. So I can't see how doing the same with things like hospitals and such going any better.
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
**Who says taxes are not payment for a service**. Taxes could easily be seen as payment to participate in said regions services, you get a broad range of services provided for your payment whether you use them or not, like channels in cable package. Because many of these services are provided to a region and not an ind...
See [The Machinery of Freedom](http://www.daviddfriedman.com/Libertarian/Machinery_of_Freedom/MofF_Contents.html) (also available [as an actual book](http://rads.stackoverflow.com/amzn/click/0812690699)). It details how to disassemble a government and arrange, one by one, for each of the services that a typical governm...
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
**Who says taxes are not payment for a service**. Taxes could easily be seen as payment to participate in said regions services, you get a broad range of services provided for your payment whether you use them or not, like channels in cable package. Because many of these services are provided to a region and not an ind...
The most important job of government is not the provision of services, which as your question suggests could be done with varying degrees of efficiency by the private sector. Rather, it's the involuntary redistribution of wealth, to level out the gross imbalances in the market value of different citizens (from negative...
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
**Who says taxes are not payment for a service**. Taxes could easily be seen as payment to participate in said regions services, you get a broad range of services provided for your payment whether you use them or not, like channels in cable package. Because many of these services are provided to a region and not an ind...
A nation without any tax at all would most likely be a stretch. I'm also gonna have to dodge a good number of "can o' worms" to answer this. **Let's consider the services.** * Many nations currently do have you buy your own health insurance, etc. There are many issues with this, such as low income individuals not bei...
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
You can if you charge rent, technically --------------------------------------- If the government owns all the land, you can charge rent for the land people own, you can use that to fund the government. You can even allow people to buy and sell the leases, allowing you to still have a real estate market. This is basic...
Look at prisons as an example. Privatized prisons in the USA has caused this country to have one of the highest incarceration rates around because thats how the people owning the prisons make money. So I can't see how doing the same with things like hospitals and such going any better.
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
Governments with no income tax are quite realistic under a number of scenarios. But government with no taxes at all (property, excise, customs duties etc.) seems very unrealistic. This might work in a form of "government corporation" that, on one hand, makes profit through traditional commerce, while on the other it i...
See [The Machinery of Freedom](http://www.daviddfriedman.com/Libertarian/Machinery_of_Freedom/MofF_Contents.html) (also available [as an actual book](http://rads.stackoverflow.com/amzn/click/0812690699)). It details how to disassemble a government and arrange, one by one, for each of the services that a typical governm...
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
A nation without any tax at all would most likely be a stretch. I'm also gonna have to dodge a good number of "can o' worms" to answer this. **Let's consider the services.** * Many nations currently do have you buy your own health insurance, etc. There are many issues with this, such as low income individuals not bei...
The most important job of government is not the provision of services, which as your question suggests could be done with varying degrees of efficiency by the private sector. Rather, it's the involuntary redistribution of wealth, to level out the gross imbalances in the market value of different citizens (from negative...
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
Governments with no income tax are quite realistic under a number of scenarios. But government with no taxes at all (property, excise, customs duties etc.) seems very unrealistic. This might work in a form of "government corporation" that, on one hand, makes profit through traditional commerce, while on the other it i...
The most important job of government is not the provision of services, which as your question suggests could be done with varying degrees of efficiency by the private sector. Rather, it's the involuntary redistribution of wealth, to level out the gross imbalances in the market value of different citizens (from negative...
84,835
Would it be possible if a government were to run on selling services to the people (like a business) and not have any sort of tax as an income? For example, you could actually buy your own healthcare package provided by the government like auto insurance. Military defense, education, infrastructure, and hospitals can b...
2017/06/28
[ "https://worldbuilding.stackexchange.com/questions/84835", "https://worldbuilding.stackexchange.com", "https://worldbuilding.stackexchange.com/users/39910/" ]
**Who says taxes are not payment for a service**. Taxes could easily be seen as payment to participate in said regions services, you get a broad range of services provided for your payment whether you use them or not, like channels in cable package. Because many of these services are provided to a region and not an ind...
Look at prisons as an example. Privatized prisons in the USA has caused this country to have one of the highest incarceration rates around because thats how the people owning the prisons make money. So I can't see how doing the same with things like hospitals and such going any better.
40,907,497
This morning my Windows 10 crashed and rebooted once I lifted my laptop's screen. No special activity was progressing, so I don't think there was significant disk activity. However one of my main Git repos crashed after that reset. Here is what I tried: * `$ git status` fatal: Not a git repository (or any of the pare...
2016/12/01
[ "https://Stackoverflow.com/questions/40907497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471213/" ]
As [kabanus said in a comment](https://stackoverflow.com/questions/40907497/not-a-git-repository-after-os-reset#comment69027497_40907497), you should definitely save whatever you can before proceeding (and/or use some other existing clone as a backup). When Git complains about this, though, it often means that the fil...
I had multiple branches corrupt due to OS error (bloody windows sleep function!!). So I had to manually do the following: 1. **.git/HEAD** (set content to `ref: refs/heads/master`) 2. `$> git branch -v` (this will tell you all the corrupt branches) 3. **.git/logs/HEAD** (Read the file for last checksum of the commits ...
40,907,497
This morning my Windows 10 crashed and rebooted once I lifted my laptop's screen. No special activity was progressing, so I don't think there was significant disk activity. However one of my main Git repos crashed after that reset. Here is what I tried: * `$ git status` fatal: Not a git repository (or any of the pare...
2016/12/01
[ "https://Stackoverflow.com/questions/40907497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471213/" ]
As [kabanus said in a comment](https://stackoverflow.com/questions/40907497/not-a-git-repository-after-os-reset#comment69027497_40907497), you should definitely save whatever you can before proceeding (and/or use some other existing clone as a backup). When Git complains about this, though, it often means that the fil...
Another workaround for this, Solved for me while OS crashed on GIT MERGE operation 1. Get the working HEAD,FETCH\_HEAD files under .git/ directory(of your project) from some other contributor 2. Replace the existing HEAD,FETCH\_HEAD files with new ones(taken from other contributor). 3. Delete the INDEX under .git/ dir...
40,907,497
This morning my Windows 10 crashed and rebooted once I lifted my laptop's screen. No special activity was progressing, so I don't think there was significant disk activity. However one of my main Git repos crashed after that reset. Here is what I tried: * `$ git status` fatal: Not a git repository (or any of the pare...
2016/12/01
[ "https://Stackoverflow.com/questions/40907497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471213/" ]
As [kabanus said in a comment](https://stackoverflow.com/questions/40907497/not-a-git-repository-after-os-reset#comment69027497_40907497), you should definitely save whatever you can before proceeding (and/or use some other existing clone as a backup). When Git complains about this, though, it often means that the fil...
In my case, the `HEAD` file was indeed corrupted due to a system crash. I just cloned the repo again into a new folder, switched to the branch I was in, then replaced the `.git` folder with the one I just created from the clone. From there, it was like nothing happened.
40,907,497
This morning my Windows 10 crashed and rebooted once I lifted my laptop's screen. No special activity was progressing, so I don't think there was significant disk activity. However one of my main Git repos crashed after that reset. Here is what I tried: * `$ git status` fatal: Not a git repository (or any of the pare...
2016/12/01
[ "https://Stackoverflow.com/questions/40907497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471213/" ]
As [kabanus said in a comment](https://stackoverflow.com/questions/40907497/not-a-git-repository-after-os-reset#comment69027497_40907497), you should definitely save whatever you can before proceeding (and/or use some other existing clone as a backup). When Git complains about this, though, it often means that the fil...
In my case, The ownership of the repo was mismatched after OS reset. I tried @raheel-hasan's instructions, after entering `git branch -v` command I got a suggestion. [![enter image description here](https://i.stack.imgur.com/GS7qa.png)](https://i.stack.imgur.com/GS7qa.png) `git config --global --add safe.directory 'd...
40,907,497
This morning my Windows 10 crashed and rebooted once I lifted my laptop's screen. No special activity was progressing, so I don't think there was significant disk activity. However one of my main Git repos crashed after that reset. Here is what I tried: * `$ git status` fatal: Not a git repository (or any of the pare...
2016/12/01
[ "https://Stackoverflow.com/questions/40907497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471213/" ]
I had multiple branches corrupt due to OS error (bloody windows sleep function!!). So I had to manually do the following: 1. **.git/HEAD** (set content to `ref: refs/heads/master`) 2. `$> git branch -v` (this will tell you all the corrupt branches) 3. **.git/logs/HEAD** (Read the file for last checksum of the commits ...
Another workaround for this, Solved for me while OS crashed on GIT MERGE operation 1. Get the working HEAD,FETCH\_HEAD files under .git/ directory(of your project) from some other contributor 2. Replace the existing HEAD,FETCH\_HEAD files with new ones(taken from other contributor). 3. Delete the INDEX under .git/ dir...
40,907,497
This morning my Windows 10 crashed and rebooted once I lifted my laptop's screen. No special activity was progressing, so I don't think there was significant disk activity. However one of my main Git repos crashed after that reset. Here is what I tried: * `$ git status` fatal: Not a git repository (or any of the pare...
2016/12/01
[ "https://Stackoverflow.com/questions/40907497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471213/" ]
I had multiple branches corrupt due to OS error (bloody windows sleep function!!). So I had to manually do the following: 1. **.git/HEAD** (set content to `ref: refs/heads/master`) 2. `$> git branch -v` (this will tell you all the corrupt branches) 3. **.git/logs/HEAD** (Read the file for last checksum of the commits ...
In my case, the `HEAD` file was indeed corrupted due to a system crash. I just cloned the repo again into a new folder, switched to the branch I was in, then replaced the `.git` folder with the one I just created from the clone. From there, it was like nothing happened.
40,907,497
This morning my Windows 10 crashed and rebooted once I lifted my laptop's screen. No special activity was progressing, so I don't think there was significant disk activity. However one of my main Git repos crashed after that reset. Here is what I tried: * `$ git status` fatal: Not a git repository (or any of the pare...
2016/12/01
[ "https://Stackoverflow.com/questions/40907497", "https://Stackoverflow.com", "https://Stackoverflow.com/users/471213/" ]
I had multiple branches corrupt due to OS error (bloody windows sleep function!!). So I had to manually do the following: 1. **.git/HEAD** (set content to `ref: refs/heads/master`) 2. `$> git branch -v` (this will tell you all the corrupt branches) 3. **.git/logs/HEAD** (Read the file for last checksum of the commits ...
In my case, The ownership of the repo was mismatched after OS reset. I tried @raheel-hasan's instructions, after entering `git branch -v` command I got a suggestion. [![enter image description here](https://i.stack.imgur.com/GS7qa.png)](https://i.stack.imgur.com/GS7qa.png) `git config --global --add safe.directory 'd...
454,219
> > По другой версии, заикаться мальчик стал от испуга(,) после падения в глубокую яму. > > > Ставится ли здесь запятая?
2019/08/18
[ "https://rus.stackexchange.com/questions/454219", "https://rus.stackexchange.com", "https://rus.stackexchange.com/users/2141/" ]
Запятая нужна. > > По другой версии, заикаться мальчик стал от испуга, после падения в > глубокую яму. > > > Это уточнение, дополнительный член предложения, выделяется запятой.
Запятая здесь факультативна. Если простая констатация факта, то запятая не нужна. А если акцентировать причину, то нужна запятая. Это художественный вариант. В большинстве случаев запятая перед `после` в простых предложениях не ставится.
47,279,946
This is what I tried, but it didnt work. ``` Select customer_id, sum(count (contact_id), count (call_id)) from contacts limit 10 ```
2017/11/14
[ "https://Stackoverflow.com/questions/47279946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8937193/" ]
If you are trying to add together the count of contact\_ids and call\_ids you can simply use + between the two fields ``` Select customer_id, count (contact_id)+count (call_id) from contacts limit 10 ```
``` Select customer_id, count (contact_id) + count (call_id) from contacts limit 10 ``` you may need a GROUP BY clause unless your db adds one for you (mysql in certain configurations)
19,751
I already implemented [this](https://magento.stackexchange.com/questions/6738/how-to-reset-magento-form-validation) with success. My only problem now is to reset also the input fields. For example the user logs in checks out his order. He gets to the billing page, where his data is already predefined within the fields...
2014/05/13
[ "https://magento.stackexchange.com/questions/19751", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/5806/" ]
It looks like your problem is this ``` app/code/etc/Something_Customlogin.xml ``` The `Something_Customlogin.xml` file is a module declaration file. It's the file that tells Magento your module exists. You've placed it in the wrong folder. It belongs in ``` app/etc/modules ``` If you fix that, and remove the ne...
The problem, if your code is a direct copy into your question, is the new line when setting up your router. If you update your config.xml to remove the line as follows then your controller should be called. ``` <Something_Customlogin before="Mage_Customer">Something_Customlogin</Something_Customlogin> ```
19,751
I already implemented [this](https://magento.stackexchange.com/questions/6738/how-to-reset-magento-form-validation) with success. My only problem now is to reset also the input fields. For example the user logs in checks out his order. He gets to the billing page, where his data is already predefined within the fields...
2014/05/13
[ "https://magento.stackexchange.com/questions/19751", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/5806/" ]
The problem, if your code is a direct copy into your question, is the new line when setting up your router. If you update your config.xml to remove the line as follows then your controller should be called. ``` <Something_Customlogin before="Mage_Customer">Something_Customlogin</Something_Customlogin> ```
config.xml on add ``` <global> <models> <customer> <rewrite> <customer>Something_Customlogin_Model_Customer</customer> </rewrite> </customer> </models> </global> ``` see my [config.xml](https://magento.stackexchange.c...
19,751
I already implemented [this](https://magento.stackexchange.com/questions/6738/how-to-reset-magento-form-validation) with success. My only problem now is to reset also the input fields. For example the user logs in checks out his order. He gets to the billing page, where his data is already predefined within the fields...
2014/05/13
[ "https://magento.stackexchange.com/questions/19751", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/5806/" ]
It looks like your problem is this ``` app/code/etc/Something_Customlogin.xml ``` The `Something_Customlogin.xml` file is a module declaration file. It's the file that tells Magento your module exists. You've placed it in the wrong folder. It belongs in ``` app/etc/modules ``` If you fix that, and remove the ne...
config.xml on add ``` <global> <models> <customer> <rewrite> <customer>Something_Customlogin_Model_Customer</customer> </rewrite> </customer> </models> </global> ``` see my [config.xml](https://magento.stackexchange.c...
2,825,129
I know this is about position vectors, but don't know exactly what its purpose is. It goes like this:- $$\frac{(m\vec u + n\vec v)}{(m+n)}$$ Has anyone seen something similar to this? If there's any problem in my question please inform me. Thanks!
2018/06/19
[ "https://math.stackexchange.com/questions/2825129", "https://math.stackexchange.com", "https://math.stackexchange.com/users/541298/" ]
Let $$\lambda = \frac{n}{m + n}$$ Then $$1 - \lambda = 1 - \frac{n}{m + n} = \frac{m + n - n}{m + n} = \frac{m}{m + n}$$ and $$\frac{m \vec{u} + n \vec{v}}{m + n} = \frac{m}{m + n}\vec{u} + \frac{n}{m + n}\vec{v} = (1 - \lambda) \vec{u} + \lambda \vec{v} = \vec{u} + \lambda (\vec{v} - \vec{u})$$ which is simply linear ...
What the formula describes is a point on the line which goes through the points $\vec u$ and $\vec v$. Any choice of values for $m$ and $n$, as long as $m+n\neq0$, gives such a point. If $m$ and $n$ have the same sign, then the point is between $\vec u$ and $\vec v$.
2,825,129
I know this is about position vectors, but don't know exactly what its purpose is. It goes like this:- $$\frac{(m\vec u + n\vec v)}{(m+n)}$$ Has anyone seen something similar to this? If there's any problem in my question please inform me. Thanks!
2018/06/19
[ "https://math.stackexchange.com/questions/2825129", "https://math.stackexchange.com", "https://math.stackexchange.com/users/541298/" ]
Let $$\lambda = \frac{n}{m + n}$$ Then $$1 - \lambda = 1 - \frac{n}{m + n} = \frac{m + n - n}{m + n} = \frac{m}{m + n}$$ and $$\frac{m \vec{u} + n \vec{v}}{m + n} = \frac{m}{m + n}\vec{u} + \frac{n}{m + n}\vec{v} = (1 - \lambda) \vec{u} + \lambda \vec{v} = \vec{u} + \lambda (\vec{v} - \vec{u})$$ which is simply linear ...
Arthur's answer is quite correct. Another way to interpret the expression is that it is a weighted average of the two points. Depending on the relative size of $m$ and $n$, you're weighting $\vec{u}$ or $\vec{v}$ more, respectively. [EDIT]: As soktinpk mentioned in the comment to this answer: > > When interpreting $...
3,907,716
I would like to move carret to `Bar` in `FooBarFizzBuzz` in vim. How to do that? How to make `w` 'pascal case aware'? Is there any other stroke already for this?
2010/10/11
[ "https://Stackoverflow.com/questions/3907716", "https://Stackoverflow.com", "https://Stackoverflow.com/users/82062/" ]
This may be what you're looking for: <http://vim.wikia.com/wiki/Moving_through_camel_case_words> It explains various ways to set up the behavior you're describing (with increasing levels of complexity / completeness) as well as a link to a script that appears to have more configuration options). The examples are for m...
How's this for size: <http://vim.wikia.com/wiki/Moving_through_camel_case_words>
45,448,537
Is there a way, using CSS, to make it so that when clicking a tab (as shown in the diagram below), the tab "points" to an inactive tab? I'm trying to make it so that the green Tab 1 (in the diagram below) points to Tabs 2 and 3, and then if you click Tab 2, it points to Tab 3. However, when you click Tab 3, it would ...
2017/08/01
[ "https://Stackoverflow.com/questions/45448537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/783039/" ]
You can leverage a pseudo element with absolute positioning as the arrow for the active tab. It will be hidden unless the list item is given the 'active' tab. Original HTML markup remains untouched. ```css html, body { height: 100%; margin: 0; } html { font-family: sans-serif; } body { display: flex; ...
You don't need to float the arrow divs. I have forked the codepen you linked to and edited the CSS to create the effect in the graphic you've shared. Here's my edited version: <https://codepen.io/sigil/pen/YxWZGa> ``` <!-- language: lang-css --> /* Button-arrow CSS: */ .arrow { cursor: pointer; display: inline-b...
45,448,537
Is there a way, using CSS, to make it so that when clicking a tab (as shown in the diagram below), the tab "points" to an inactive tab? I'm trying to make it so that the green Tab 1 (in the diagram below) points to Tabs 2 and 3, and then if you click Tab 2, it points to Tab 3. However, when you click Tab 3, it would ...
2017/08/01
[ "https://Stackoverflow.com/questions/45448537", "https://Stackoverflow.com", "https://Stackoverflow.com/users/783039/" ]
Just add triangle using pseudoelement to active tab and other to simulate triangle border. Demo: ```css ul { list-style-type: none; display: flex; margin: 0; padding: 0; } ul > li { padding: 10px 40px; font-weight: bold; font-size: 24px; height: 40px; border: 1px solid #000; border-rig...
You don't need to float the arrow divs. I have forked the codepen you linked to and edited the CSS to create the effect in the graphic you've shared. Here's my edited version: <https://codepen.io/sigil/pen/YxWZGa> ``` <!-- language: lang-css --> /* Button-arrow CSS: */ .arrow { cursor: pointer; display: inline-b...
493
I tried to install the provider plugin for thunderbird, but it said my release was too old. I have the lastest release of thunderbird in the lucid archives.
2010/07/30
[ "https://askubuntu.com/questions/493", "https://askubuntu.com", "https://askubuntu.com/users/4/" ]
I just tried it out, and you'll need 1. [Lightning](https://addons.mozilla.org/en/thunderbird/addon/2313/) 2. [Provider for Google Calendar](https://addons.mozilla.org/en/thunderbird/addon/4631/) To disable compatibility checking for extensions, open Thunderbird's preferences, switch to the "Advanced" tab and in the ...
You need the 'Lightning' extension for Thunderbird (http://www.mozilla.org/projects/calendar/) and the google provider plugin (https://addons.mozilla.org/en-US/thunderbird/addon/4631/). You can then ask the creation of a new "network" calendar, and identify it using the "private URL" that Google Calendar gives you (i...
493
I tried to install the provider plugin for thunderbird, but it said my release was too old. I have the lastest release of thunderbird in the lucid archives.
2010/07/30
[ "https://askubuntu.com/questions/493", "https://askubuntu.com", "https://askubuntu.com/users/4/" ]
You need the 'Lightning' extension for Thunderbird (http://www.mozilla.org/projects/calendar/) and the google provider plugin (https://addons.mozilla.org/en-US/thunderbird/addon/4631/). You can then ask the creation of a new "network" calendar, and identify it using the "private URL" that Google Calendar gives you (i...
if you have a fairly new thunderbird + lightning combination (or the standalone calendar program sunbird) you can use caldev to have a two-way sync. for a detailed explanation and howto you can read [this blogpost](http://pthree.org/2010/10/18/synchronize-mozilla-lightning-with-google-calendar/) by aaron toponce
493
I tried to install the provider plugin for thunderbird, but it said my release was too old. I have the lastest release of thunderbird in the lucid archives.
2010/07/30
[ "https://askubuntu.com/questions/493", "https://askubuntu.com", "https://askubuntu.com/users/4/" ]
### For Ubuntu 10.10+ Installing the necessary components is just a matter of running: ``` sudo apt-get install xul-ext-lightning xul-ext-gdata-provider ``` This will install the Lightning Calendar extension and the Google Calendar provider. ### For Ubuntu 10.04 Unfortunately, Lightning is not available in the Ub...
You need the 'Lightning' extension for Thunderbird (http://www.mozilla.org/projects/calendar/) and the google provider plugin (https://addons.mozilla.org/en-US/thunderbird/addon/4631/). You can then ask the creation of a new "network" calendar, and identify it using the "private URL" that Google Calendar gives you (i...
493
I tried to install the provider plugin for thunderbird, but it said my release was too old. I have the lastest release of thunderbird in the lucid archives.
2010/07/30
[ "https://askubuntu.com/questions/493", "https://askubuntu.com", "https://askubuntu.com/users/4/" ]
I just tried it out, and you'll need 1. [Lightning](https://addons.mozilla.org/en/thunderbird/addon/2313/) 2. [Provider for Google Calendar](https://addons.mozilla.org/en/thunderbird/addon/4631/) To disable compatibility checking for extensions, open Thunderbird's preferences, switch to the "Advanced" tab and in the ...
if you have a fairly new thunderbird + lightning combination (or the standalone calendar program sunbird) you can use caldev to have a two-way sync. for a detailed explanation and howto you can read [this blogpost](http://pthree.org/2010/10/18/synchronize-mozilla-lightning-with-google-calendar/) by aaron toponce
493
I tried to install the provider plugin for thunderbird, but it said my release was too old. I have the lastest release of thunderbird in the lucid archives.
2010/07/30
[ "https://askubuntu.com/questions/493", "https://askubuntu.com", "https://askubuntu.com/users/4/" ]
### For Ubuntu 10.10+ Installing the necessary components is just a matter of running: ``` sudo apt-get install xul-ext-lightning xul-ext-gdata-provider ``` This will install the Lightning Calendar extension and the Google Calendar provider. ### For Ubuntu 10.04 Unfortunately, Lightning is not available in the Ub...
I just tried it out, and you'll need 1. [Lightning](https://addons.mozilla.org/en/thunderbird/addon/2313/) 2. [Provider for Google Calendar](https://addons.mozilla.org/en/thunderbird/addon/4631/) To disable compatibility checking for extensions, open Thunderbird's preferences, switch to the "Advanced" tab and in the ...
493
I tried to install the provider plugin for thunderbird, but it said my release was too old. I have the lastest release of thunderbird in the lucid archives.
2010/07/30
[ "https://askubuntu.com/questions/493", "https://askubuntu.com", "https://askubuntu.com/users/4/" ]
### For Ubuntu 10.10+ Installing the necessary components is just a matter of running: ``` sudo apt-get install xul-ext-lightning xul-ext-gdata-provider ``` This will install the Lightning Calendar extension and the Google Calendar provider. ### For Ubuntu 10.04 Unfortunately, Lightning is not available in the Ub...
if you have a fairly new thunderbird + lightning combination (or the standalone calendar program sunbird) you can use caldev to have a two-way sync. for a detailed explanation and howto you can read [this blogpost](http://pthree.org/2010/10/18/synchronize-mozilla-lightning-with-google-calendar/) by aaron toponce
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
``` taskkill /im myprocess.exe /f ``` The "/f" is for "force". If you know the PID, then you can specify that, as in: ``` taskkill /pid 1234 /f ``` Lots of other options are possible, just type taskkill /? for all of them. The "/t" option kills a process and any child processes; that may be useful to you.
setup an AT command to run task manager or process explorer as SYSTEM. ``` AT 12:34 /interactive "C:/procexp.exe" ``` If process explorer was in your root C drive then this would open it as SYSTEM and you could kill any process without getting any access denied errors. Set this for like a minute in the future, then ...
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
"End Process" on the Processes-Tab calls `TerminateProcess` which is the most ultimate way Windows knows to kill a process. If it doesn't go away, it's currently locked waiting on some kernel resource (probably a buggy driver) and there is nothing (short of a reboot) you could do to make the process go away. Have a l...
`wmic process where processid="11008" call terminate`
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
"End Process" on the Processes-Tab calls `TerminateProcess` which is the most ultimate way Windows knows to kill a process. If it doesn't go away, it's currently locked waiting on some kernel resource (probably a buggy driver) and there is nothing (short of a reboot) you could do to make the process go away. Have a l...
One trick that works well is to attach a debugger and then quit the debugger. On XP or Windows 2003 you can do this using ntsd that ships out of the box: ``` ntsd -pn myapp.exe ``` ntsd will open up a new window. Just type 'q' in the window to quit the debugger and take out the process. I've known this to work eve...
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
"End Process" on the Processes-Tab calls `TerminateProcess` which is the most ultimate way Windows knows to kill a process. If it doesn't go away, it's currently locked waiting on some kernel resource (probably a buggy driver) and there is nothing (short of a reboot) you could do to make the process go away. Have a l...
setup an AT command to run task manager or process explorer as SYSTEM. ``` AT 12:34 /interactive "C:/procexp.exe" ``` If process explorer was in your root C drive then this would open it as SYSTEM and you could kill any process without getting any access denied errors. Set this for like a minute in the future, then ...
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
[*Process Hacker*](http://processhacker.sourceforge.net/) has numerous ways of killing a process. ![](https://i.stack.imgur.com/ByAnj.png) (Right-click the process, then go to Miscellaneous->Terminator.)
When ntsd access is denied, try: ZeroWave was designed to be a simple tool that will provide a multilevel termination of any kind of process. ZeroWave is also a easy-to-use program due to its simple installation and its very friendly graphical interface. ZeroWave has three termination modes and with the "INSANE" mod...
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
[*Process Hacker*](http://processhacker.sourceforge.net/) has numerous ways of killing a process. ![](https://i.stack.imgur.com/ByAnj.png) (Right-click the process, then go to Miscellaneous->Terminator.)
One trick that works well is to attach a debugger and then quit the debugger. On XP or Windows 2003 you can do this using ntsd that ships out of the box: ``` ntsd -pn myapp.exe ``` ntsd will open up a new window. Just type 'q' in the window to quit the debugger and take out the process. I've known this to work eve...
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
One trick that works well is to attach a debugger and then quit the debugger. On XP or Windows 2003 you can do this using ntsd that ships out of the box: ``` ntsd -pn myapp.exe ``` ntsd will open up a new window. Just type 'q' in the window to quit the debugger and take out the process. I've known this to work eve...
When ntsd access is denied, try: ZeroWave was designed to be a simple tool that will provide a multilevel termination of any kind of process. ZeroWave is also a easy-to-use program due to its simple installation and its very friendly graphical interface. ZeroWave has three termination modes and with the "INSANE" mod...
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
JosepStyons is right. Open cmd.exe and run ``` taskkill /im processname.exe /f ``` If there is an error saying, > > ERROR: The process "process.exe" with PID 1234 could not be > terminated. > Reason: Access is denied. > > > then try running cmd.exe as administrator.
setup an AT command to run task manager or process explorer as SYSTEM. ``` AT 12:34 /interactive "C:/procexp.exe" ``` If process explorer was in your root C drive then this would open it as SYSTEM and you could kill any process without getting any access denied errors. Set this for like a minute in the future, then ...
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
setup an AT command to run task manager or process explorer as SYSTEM. ``` AT 12:34 /interactive "C:/procexp.exe" ``` If process explorer was in your root C drive then this would open it as SYSTEM and you could kill any process without getting any access denied errors. Set this for like a minute in the future, then ...
FYI you can sometimes use SYSTEM or Trustedinstaller to kill tasks ;) google quickkill\_3\_0.bat ``` sc config TrustedInstaller binPath= "cmd /c TASKKILL /F /IM notepad.exe sc start "TrustedInstaller" ```
49,988
Occasionally a program on a Windows machine goes crazy and just hangs. So I'll call up the task manager and hit the "End Process" button for it. However, this doesn't always work; if I try it enough times then it'll usually die eventually, but I'd really like to be able to just kill it immediately. On Linux I could jus...
2008/09/08
[ "https://Stackoverflow.com/questions/49988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1694/" ]
"End Process" on the Processes-Tab calls `TerminateProcess` which is the most ultimate way Windows knows to kill a process. If it doesn't go away, it's currently locked waiting on some kernel resource (probably a buggy driver) and there is nothing (short of a reboot) you could do to make the process go away. Have a l...
When ntsd access is denied, try: ZeroWave was designed to be a simple tool that will provide a multilevel termination of any kind of process. ZeroWave is also a easy-to-use program due to its simple installation and its very friendly graphical interface. ZeroWave has three termination modes and with the "INSANE" mod...
541,683
On each row, I would like to get the address of the cell with the largest value, skipping every other cell e.g. I want to only assess the values in columns A,C,E,H,J and ignore the values in columns B,D,F,I,K I think I need something similar to this: ``` =CELL("address",INDEX(1:1,MATCH(MAX(1:1),1:1,0))) ``` but ski...
2013/01/25
[ "https://superuser.com/questions/541683", "https://superuser.com", "https://superuser.com/users/153874/" ]
Head to your hot corner, click settings, and then PC Info. Your windows version will be under windows edition.
On the Start screen, type winver, tap or click Apps, and then tap or click winver.exe. Does the installed version have Bitlocker available? Remote Desktop? Provide the option to join a domain? All of those are in Pro and might make it simple to determine version
541,683
On each row, I would like to get the address of the cell with the largest value, skipping every other cell e.g. I want to only assess the values in columns A,C,E,H,J and ignore the values in columns B,D,F,I,K I think I need something similar to this: ``` =CELL("address",INDEX(1:1,MATCH(MAX(1:1),1:1,0))) ``` but ski...
2013/01/25
[ "https://superuser.com/questions/541683", "https://superuser.com", "https://superuser.com/users/153874/" ]
I solved it by going to control panel, system and upgrade and entered the key i had from dreamspark and it changed it to pro.
On the Start screen, type winver, tap or click Apps, and then tap or click winver.exe. Does the installed version have Bitlocker available? Remote Desktop? Provide the option to join a domain? All of those are in Pro and might make it simple to determine version
541,683
On each row, I would like to get the address of the cell with the largest value, skipping every other cell e.g. I want to only assess the values in columns A,C,E,H,J and ignore the values in columns B,D,F,I,K I think I need something similar to this: ``` =CELL("address",INDEX(1:1,MATCH(MAX(1:1),1:1,0))) ``` but ski...
2013/01/25
[ "https://superuser.com/questions/541683", "https://superuser.com", "https://superuser.com/users/153874/" ]
Head to your hot corner, click settings, and then PC Info. Your windows version will be under windows edition.
ISO SHA1 hashes from MSDN: Windows 8 Pro VL (x86) - en\_windows\_8\_pro\_vl\_x86\_dvd\_917830.iso 548AB51161FD83B889596B143D86C1EEB61EF2D0 Windows 8 Pro VL (x64) - en\_windows\_8\_pro\_vl\_x64\_dvd\_917699.iso 6DDEDEBE40AB59CB11823F62F475C43C4053FE60 Windows 8 (multiple editions) (x86) - en\_windows\_8\_x8...
541,683
On each row, I would like to get the address of the cell with the largest value, skipping every other cell e.g. I want to only assess the values in columns A,C,E,H,J and ignore the values in columns B,D,F,I,K I think I need something similar to this: ``` =CELL("address",INDEX(1:1,MATCH(MAX(1:1),1:1,0))) ``` but ski...
2013/01/25
[ "https://superuser.com/questions/541683", "https://superuser.com", "https://superuser.com/users/153874/" ]
I solved it by going to control panel, system and upgrade and entered the key i had from dreamspark and it changed it to pro.
ISO SHA1 hashes from MSDN: Windows 8 Pro VL (x86) - en\_windows\_8\_pro\_vl\_x86\_dvd\_917830.iso 548AB51161FD83B889596B143D86C1EEB61EF2D0 Windows 8 Pro VL (x64) - en\_windows\_8\_pro\_vl\_x64\_dvd\_917699.iso 6DDEDEBE40AB59CB11823F62F475C43C4053FE60 Windows 8 (multiple editions) (x86) - en\_windows\_8\_x8...
32,757,745
I was wandering if I can optimize this function such that after optimization it will use the minimum computation effort. ``` public class Rectangle2 { Vector2 origin; Vector2 size; public boolean isInside(double x, double y){ return false; } } ``` The origin is considered the minimum of x and...
2015/09/24
[ "https://Stackoverflow.com/questions/32757745", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1135950/" ]
``` x-= origin.x; y-= origin.y; return x > 0 && x < size.x && y > 0 && y < size.y; ``` or ``` x-= origin.x; y-= origin.y; return x * (size.x - x) * y * (size.y - y) > 0; ```
Try this : ``` public class Test { private static Double MIN_X=0.0; private static Double MIN_Y=0.0; private static Double LENGTH=5.0; private static Double BREADTH=3.0; private static Integer X_INDEX=0; private static Integer Y_INDEX=1; private static Integer LENGTH_INDEX=0; private static Integer BREADTH_INDEX=1...
45,947,652
I am trying to pass a public function to a new form to handle some details and update the main form but i a getting a NullReferenceException on this line `eh.TextBox1.Text = dt.Columns[e.ColumnIndex].ToString();` The funny this about this is it doesnt happen untill i include the delegate if i take out the delegate(lef...
2017/08/29
[ "https://Stackoverflow.com/questions/45947652", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7950643/" ]
Only the zero-arg constructor is initializing the components. When you call the constructor passing the action, the components don't get initialized, so eh.TextBox1 is null. You can add a base call list with ": this()" to the definition of the constructor to get it to call the zero-arg constructor after the body of th...
`InitializeComponent` is not being called. Your constructor should look like: ``` public EditHeader(Action<string> updateHeader) : this() { _UpdateHeader = updateHeader; } ```
23,008,529
I am trying to send html page as message. already send html email through `message.setContent("<html><body><h1>This is actual message</h1></body></html>","text/html" );` these method .Now iwant to send a html page . like `message.setContent("street.html","text/html" );` how to send these below is my full code ``` Str...
2014/04/11
[ "https://Stackoverflow.com/questions/23008529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3492997/" ]
A short one-liner for this one: ``` StringWriter writer = new StringWriter(); IOUtils.copy(new FileInputStream(new File("home.html")), writer); message.setContent(writer.toString(), "text/html"); ``` **NOTE:**: IOUtils is available in the [Apache Commons IO](http://mvnrepository.com/artifact/commons-io/commons-io/2...
You need to read the contents of "street.html" into a string to be able to send it with the content type "text/html".
23,008,529
I am trying to send html page as message. already send html email through `message.setContent("<html><body><h1>This is actual message</h1></body></html>","text/html" );` these method .Now iwant to send a html page . like `message.setContent("street.html","text/html" );` how to send these below is my full code ``` Str...
2014/04/11
[ "https://Stackoverflow.com/questions/23008529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3492997/" ]
A short one-liner for this one: ``` StringWriter writer = new StringWriter(); IOUtils.copy(new FileInputStream(new File("home.html")), writer); message.setContent(writer.toString(), "text/html"); ``` **NOTE:**: IOUtils is available in the [Apache Commons IO](http://mvnrepository.com/artifact/commons-io/commons-io/2...
You can try with the apache commons mail api <http://commons.apache.org/proper/commons-email/apidocs/org/apache/commons/mail/HtmlEmail.html>
23,008,529
I am trying to send html page as message. already send html email through `message.setContent("<html><body><h1>This is actual message</h1></body></html>","text/html" );` these method .Now iwant to send a html page . like `message.setContent("street.html","text/html" );` how to send these below is my full code ``` Str...
2014/04/11
[ "https://Stackoverflow.com/questions/23008529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3492997/" ]
A short one-liner for this one: ``` StringWriter writer = new StringWriter(); IOUtils.copy(new FileInputStream(new File("home.html")), writer); message.setContent(writer.toString(), "text/html"); ``` **NOTE:**: IOUtils is available in the [Apache Commons IO](http://mvnrepository.com/artifact/commons-io/commons-io/2...
MimeMessage.setText() method sets a default mime type of text/plain. But i guess you need text/html. This can be done using MimeMessage.setContent(). You can make use of this code on java side. ``` message.setContent(someHtmlMessage, "text/html; charset=utf-8"); ```
23,008,529
I am trying to send html page as message. already send html email through `message.setContent("<html><body><h1>This is actual message</h1></body></html>","text/html" );` these method .Now iwant to send a html page . like `message.setContent("street.html","text/html" );` how to send these below is my full code ``` Str...
2014/04/11
[ "https://Stackoverflow.com/questions/23008529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3492997/" ]
A short one-liner for this one: ``` StringWriter writer = new StringWriter(); IOUtils.copy(new FileInputStream(new File("home.html")), writer); message.setContent(writer.toString(), "text/html"); ``` **NOTE:**: IOUtils is available in the [Apache Commons IO](http://mvnrepository.com/artifact/commons-io/commons-io/2...
You Need to read the content of local file using one of DataHandler impementation. Need to use overloaded method in MiMeMessage Class API which will accept DataHandler object itself. [MiMeMessage.SetContent(Object, type);](http://docs.oracle.com/javaee/1.4/api/javax/mail/internet/MimeMessage.html#setContent%28java.lang...
23,008,529
I am trying to send html page as message. already send html email through `message.setContent("<html><body><h1>This is actual message</h1></body></html>","text/html" );` these method .Now iwant to send a html page . like `message.setContent("street.html","text/html" );` how to send these below is my full code ``` Str...
2014/04/11
[ "https://Stackoverflow.com/questions/23008529", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3492997/" ]
A short one-liner for this one: ``` StringWriter writer = new StringWriter(); IOUtils.copy(new FileInputStream(new File("home.html")), writer); message.setContent(writer.toString(), "text/html"); ``` **NOTE:**: IOUtils is available in the [Apache Commons IO](http://mvnrepository.com/artifact/commons-io/commons-io/2...
you need to change only ``` String mess=""// it contains html code message.setContent(mess,"text/html"); Transport.send(message); ``` it will work
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
The code can be much simplified: ``` $what = create_function('$a', "return \"LIMIT $limit\";"); ``` or ``` $what = create_function('$a', 'return "LIMIT ' . $limit .'";'); ``` The code should work. Note that the number after `LIMIT` must not be enclosed in quotes in the SQL syntax. But as you are creating a func...
First of all, I am wondering why you are using [`create_function`](http://nl.php.net/create_function)? If there is any chance (and there usually is), you should try to avoid it, since this generally results in very sloppy code. **The first thing I notice is that your second example doesn't do anything with `$a`:** ``...
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
Your code seems a little messy when your concatenating strings, try a simpler approach: ``` create_function('$a', sprintf('return "LIMIT %d"',$limit)); ``` if you don't mind me asking, why are you creating a function to return a simple string ?
In create\_function, `$limit` is in single quotes; either you should include it in double quotes (`"LIMIT $limit"`) or use the concatenation (`.`) operator (like this: `'".$limit."'`).
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
I have just tested your second code, and it works, correctly passing in `$limit`: ``` <?php $limit = 10; $what = create_function('$a', 'return '.'"'." LIMIT '$limit'".'"'.';'); echo $what(2);// note: `2` was randomly chosen, and used because $what expects an argument // result: ` LIMIT '10'` ?> ``` The above `$what`...
In create\_function, `$limit` is in single quotes; either you should include it in double quotes (`"LIMIT $limit"`) or use the concatenation (`.`) operator (like this: `'".$limit."'`).
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
Your code seems a little messy when your concatenating strings, try a simpler approach: ``` create_function('$a', sprintf('return "LIMIT %d"',$limit)); ``` if you don't mind me asking, why are you creating a function to return a simple string ?
It is hard to read and to difference between `'` and `"` in your example. Try this: ``` $what = create_function('$a', "return \"LIMIT $limit;\""); ``` As well as ``` $what = create_function('$a', 'return \'LIMIT $limit;\''); ``` Or ``` $what = create_function('$a', 'return "LIMIT '.$limit.';"'); // most clea...
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
First of all, I am wondering why you are using [`create_function`](http://nl.php.net/create_function)? If there is any chance (and there usually is), you should try to avoid it, since this generally results in very sloppy code. **The first thing I notice is that your second example doesn't do anything with `$a`:** ``...
In create\_function, `$limit` is in single quotes; either you should include it in double quotes (`"LIMIT $limit"`) or use the concatenation (`.`) operator (like this: `'".$limit."'`).
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
The code can be much simplified: ``` $what = create_function('$a', "return \"LIMIT $limit\";"); ``` or ``` $what = create_function('$a', 'return "LIMIT ' . $limit .'";'); ``` The code should work. Note that the number after `LIMIT` must not be enclosed in quotes in the SQL syntax. But as you are creating a func...
It is hard to read and to difference between `'` and `"` in your example. Try this: ``` $what = create_function('$a', "return \"LIMIT $limit;\""); ``` As well as ``` $what = create_function('$a', 'return \'LIMIT $limit;\''); ``` Or ``` $what = create_function('$a', 'return "LIMIT '.$limit.';"'); // most clea...
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
The code can be much simplified: ``` $what = create_function('$a', "return \"LIMIT $limit\";"); ``` or ``` $what = create_function('$a', 'return "LIMIT ' . $limit .'";'); ``` The code should work. Note that the number after `LIMIT` must not be enclosed in quotes in the SQL syntax. But as you are creating a func...
In create\_function, `$limit` is in single quotes; either you should include it in double quotes (`"LIMIT $limit"`) or use the concatenation (`.`) operator (like this: `'".$limit."'`).
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
Your code seems a little messy when your concatenating strings, try a simpler approach: ``` create_function('$a', sprintf('return "LIMIT %d"',$limit)); ``` if you don't mind me asking, why are you creating a function to return a simple string ?
I have just tested your second code, and it works, correctly passing in `$limit`: ``` <?php $limit = 10; $what = create_function('$a', 'return '.'"'." LIMIT '$limit'".'"'.';'); echo $what(2);// note: `2` was randomly chosen, and used because $what expects an argument // result: ` LIMIT '10'` ?> ``` The above `$what`...
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
The code can be much simplified: ``` $what = create_function('$a', "return \"LIMIT $limit\";"); ``` or ``` $what = create_function('$a', 'return "LIMIT ' . $limit .'";'); ``` The code should work. Note that the number after `LIMIT` must not be enclosed in quotes in the SQL syntax. But as you are creating a func...
I have just tested your second code, and it works, correctly passing in `$limit`: ``` <?php $limit = 10; $what = create_function('$a', 'return '.'"'." LIMIT '$limit'".'"'.';'); echo $what(2);// note: `2` was randomly chosen, and used because $what expects an argument // result: ` LIMIT '10'` ?> ``` The above `$what`...
4,992,606
I'm trying to understand this code and I can't :( ``` $time = date('Y-m-d', strtotime('-30 days')); $what = create_function('$a', 'return $a.'.'"'." AND date > '$time'".'"'.';'); ``` Why does the `$time` variable get passed successfully in this created function, but when I try: ``` $limit = 10; $what = create_funct...
2011/02/14
[ "https://Stackoverflow.com/questions/4992606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/376947/" ]
Your code seems a little messy when your concatenating strings, try a simpler approach: ``` create_function('$a', sprintf('return "LIMIT %d"',$limit)); ``` if you don't mind me asking, why are you creating a function to return a simple string ?
First of all, I am wondering why you are using [`create_function`](http://nl.php.net/create_function)? If there is any chance (and there usually is), you should try to avoid it, since this generally results in very sloppy code. **The first thing I notice is that your second example doesn't do anything with `$a`:** ``...
69,344,149
I'm working on android app that should collect user geolocation (if the user agrees ofc ) every 15 minutes. I'm familiar with concept of WorkManger and I'm using it for executing PeriodicWork. Also, main reason I'm using it is that it works after device reboot. I'm using LocationManager instead of Fused because one of...
2021/09/27
[ "https://Stackoverflow.com/questions/69344149", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15621957/" ]
How to install Tizen tv 5.5 (or less) emulators on modern 4.1.1 setup: 1. Download the emulator from archive <https://developer.samsung.com/smarttv/develop/tools/tv-extension/archive.html> 2. Unzip the downloaded file and all zip files in the binary folder (unzip \*.zip) 3. find folder `platforms/tizen-5.5/tv-samsung`...
Today, I tested it with TS 4.1.1 version. First, I installed Mobile 5.0 via the package-manger Path) ~/tizen-studio/package-manager/package-manager.bin Second, I can see the installed mobile 5.0 emulator on the emulator manager. Last, I can launch the 5.0 emulator on the Catalina os. Could you follow the above steps? ...
49,984,987
I need to create a client server application in C++ using gRPC. I referred to the following [tutorial](https://grpc.io/docs/tutorials/basic/c.html) and the [example](https://github.com/grpc/grpc/tree/v1.11.x/examples/cpp/helloworld) on gRPC to make a client server application which looks very similar to the helloworld ...
2018/04/23
[ "https://Stackoverflow.com/questions/49984987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5157633/" ]
There is a const missing in your definition of joinCM `Status joinCM(ServerContext* context, joinrequest* request,serverresponse* reply_CM)` It should be `Status joinCM(ServerContext* context, const joinrequest* request,serverresponse* reply_CM)` instead. The compiler indicates this through a 'hides overloaded virt...
Can you turn on tracing with: ``` export GRPC_TRACE=api,call_error export GRPC_VERBOSITY=debug ```
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
I was facing the same problem. I found out that this is caused by renaming a copy python.exe executable to python3.exe. I did that because I have installed both Python 2.7 and Python 3.9 and configured *environmental variables* to use Python 2.7 with *python* command and Python 3.9 using *python3* command. So that my p...
I had the same problem and I upgraded the pip inside of venv and that worked out . my problem was that I could not install anything inside of venv like django but when I upgraded the pip everything went well. the command you have to use is: Windows Command Prompt ====================== ``` > python -m pip install --u...
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
I have realized whenever there is issue with multiple installation, especially the ones that occur rarely like setting up environment, I use full path to the python installation ``` [path to python installation folder]/python.exe -m venv env ``` Point to note here is that if you have a copy of python.exe named pytho...
On Windows 10, you just need to run the script as an Administrator.
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
You probably encounter this error because you have two or more versions of Python on your machine. When installing the second version, you: * created the environment variable (ex `PYTHON37_HOME -> C:/Users/..Python/Python37`) * specified this variable in `Path`. * renamed the file `python.exe` to `python37.exe` Now b...
On Windows 10, you just need to run the script as an Administrator.
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
I work with 2 versions of Python 3.8 and 3.9. After changing my python.exe file to python38.exe I encountered this error. I searched and found [this answer](https://github.com/msys2/MINGW-packages/issues/5001#issuecomment-478027026): > > It looks like you might have renamed your python.exe executable to > python3.exe...
You probably encounter this error because you have two or more versions of Python on your machine. When installing the second version, you: * created the environment variable (ex `PYTHON37_HOME -> C:/Users/..Python/Python37`) * specified this variable in `Path`. * renamed the file `python.exe` to `python37.exe` Now b...
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
This solved my problem: ``` python -m pip install -U pip --user //In Windows pip install -U pip --user //Linux, and MacOS ```
To overcome this run `py -m venv env --user` or you can also manually run the script as administrator
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
I work with 2 versions of Python 3.8 and 3.9. After changing my python.exe file to python38.exe I encountered this error. I searched and found [this answer](https://github.com/msys2/MINGW-packages/issues/5001#issuecomment-478027026): > > It looks like you might have renamed your python.exe executable to > python3.exe...
I have realized whenever there is issue with multiple installation, especially the ones that occur rarely like setting up environment, I use full path to the python installation ``` [path to python installation folder]/python.exe -m venv env ``` Point to note here is that if you have a copy of python.exe named pytho...
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
I found out that Windows Defender now has a feature that blocks access/changes to system files. It added my documents folder by default, somehow preventing me from creating any folders in CMD despite having Admin Access. I hope this helps someone else!! In short -- you may have to revise or disable your Windows 10 "Ra...
I got the WinError 2 because I have multiple python3 installed with different version and I was renamed the python.exe to other name. I have tried all solution offered in this post including turning down the firewall. Unluckily, I still got the winerror. So, I have to edit venv ****init**** in **[python path]/Lib/venv/...
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
On Windows 10, you just need to run the script as an Administrator.
I found out that, simply using a shorter path fixed this error. Try creating your virual environment in the C: directory.Hope this helps.
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
On Windows 10, you just need to run the script as an Administrator.
I got the WinError 2 because I have multiple python3 installed with different version and I was renamed the python.exe to other name. I have tried all solution offered in this post including turning down the firewall. Unluckily, I still got the winerror. So, I have to edit venv ****init**** in **[python path]/Lib/venv/...
61,669,890
I'm trying to figure out the best way to integrate Istio into my app, which consists of a React frontend (served by Nginx) and a Django Rest Framework API. I was able to get it to work using the following nginx config and istio-specific kubernetes files: ``` server { listen 80; root /app/build; location /...
2020/05/08
[ "https://Stackoverflow.com/questions/61669890", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6611672/" ]
This solved my problem: ``` python -m pip install -U pip --user //In Windows pip install -U pip --user //Linux, and MacOS ```
I got the WinError 2 because I have multiple python3 installed with different version and I was renamed the python.exe to other name. I have tried all solution offered in this post including turning down the firewall. Unluckily, I still got the winerror. So, I have to edit venv ****init**** in **[python path]/Lib/venv/...
63,673,667
I have a set of information to be rendered on my webpage using django template tags. ``` {% for product in sales %} <div> <span>Customer:{{product.to_user}}</span><br> <span>{{product.time}}</span><br> <p class="message">{{product.message}}</p> </div> {% endfor %} ``` The...
2020/08/31
[ "https://Stackoverflow.com/questions/63673667", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12828566/" ]
Use the template filter [linebreaksbr](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#linebreaksbr) like so : ``` <p class="message">{{ product.message|linebreaksbr }}</p> ```
In order to have the line information you can use ***pre tag*** to keep track of empty spaces and new line. ```js let message = `Lorem ipsum text Lorem ipsum text Lorem ipsum text. Lorem ipsum textLorem ipsum text Lorem ipsum textLorem ipsum textLorem ipsum textLorem ipsum textLorem ipsum textLorem ipsum textLorem ip...
14,055,333
Using `itent.putExtra` makes a copy of my object. So changes make on this object on the activity that recive this itent does no reflect on others activity. In my case will be good have reference to this object instead a copy, this is possible ? ps: I know i can use `onActivityResult` to retrive the changes make on th...
2012/12/27
[ "https://Stackoverflow.com/questions/14055333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1107651/" ]
Children have their own lives, and you shouldn't get rid of them just because they separate from their parents. Put a different way, these are separate entities, and there are many use cases where you would break a relation but still want to maintain both objects, so we do not automatically remove an object when we rem...
If you have child entities which should not exist without the parent and the parent privately ownes the children then you can use orphanRemoval. ``` /** * @OneToOne(targetEntity="StandingData", orphanRemoval=true) */ private $standingData; $contact->standingData(new StandingData("Firstname", "Lastname", "Street")...
30,889,139
**[Here is a plunkr showing what I am attempting](http://plnkr.co/edit/yHfmdktnbUKHgBj4naOT?p=preview)** I have a tabset, which is defined as individual tabs, each with their own directive. ``` <div class="container" ng-controller='fruitController'> <tabset type="pills" class="tabs-left"> <tab hea...
2015/06/17
[ "https://Stackoverflow.com/questions/30889139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1041364/" ]
You are keeping huge number of full sized bitmaps in your bitmap array. Instead you should keep only one bitmap for loading and resizing. ``` public void mergeImageClicked(View v) { int noOfImage = listFile.length; Bitmap[] resizedBitmap = new Bitmap[noOfImage]; BitmapFactory.Options options = new BitmapFacto...
You have limited memory per app on Android. Look into heap size and memory management [here](https://developer.android.com/training/articles/memory.html). In you code, you seem to be be decoding the Bitmap and then holding into memory, this is bad practise - as you will always run out of memory sooner or later. Its ...
24,863,772
In my kohana app, I need to convert the time retrieved from the database into a format like 45 seconds ago, 1 minute ago, etc. What is the best place to do it? Can I override any methods in the Model so that the method automatically converts the time into the desired format before returning into the controller?
2014/07/21
[ "https://Stackoverflow.com/questions/24863772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/648045/" ]
The [`Date::span()`](http://kohanaframework.org/3.3/guide-api/Date#span) and [`Date::fuzzy_span()`](http://kohanaframework.org/3.3/guide-api/Date#fuzzy_span) methods do it. Please do some research before asking questions. It took me 30 seconds to find them... Google "kohana date format", click the first link, and look...
He is the whole `date` documentation: [[link]](http://kohanaframework.org/3.3/guide-api/Date)
47,988,621
When trying to import database Error SQL query: ``` CREATE TABLE `wp_ihrss_plugin` ( `Ihrss_id` int(11) NOT NULL, `Ihrss_path` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `Ihrss_link` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, `Ihrss_target` varchar(50) NOT NULL, `Ihrss_title` varchar(500) NO...
2017/12/27
[ "https://Stackoverflow.com/questions/47988621", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9144240/" ]
One possible approacj to deal with this would be to drop and recreate the object. For instance: ``` DROP TABLE IF EXISTS `foo`; CREATE TABLE `foo` ( ... ); ```
There are some duplicate tables present in your database dump. Check the sql file from which you are trying to import
52,130,693
I want to log all the system calls of an Android app. When I run the command `adb shell strace` I get `/system/bin/sh: strace: not found` I am on windows 10 and I have installed the Android platform tools 28.0.1. I have tried to use the command `make` on adb shell but it was not found.
2018/09/01
[ "https://Stackoverflow.com/questions/52130693", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10210340/" ]
download strace from this site: <http://benno.id.au/blog/2007/11/18/android-runtime-strace> (click hyperlink "strace for Android") type adb shell to enter in adb shell use /system/xbin/su -c "system/bin/sh -" (to get to root) then place the file in system/bin (downloaded from above link), while being in root. ps to se...
in order to use the strace shell it is necessary to have a device with an x86 system image
4,764
I want to have a donation button on my site and I was wondering if anyone had any experience using anything that they could suggest to use or not to use like paypal. I have seen some stuff I could buy and was wondering if I had to go this route or if there was a different route. I want something that would protect the ...
2013/01/14
[ "https://expressionengine.stackexchange.com/questions/4764", "https://expressionengine.stackexchange.com", "https://expressionengine.stackexchange.com/users/626/" ]
This isn't really an EE question but it's an easy one... Use Paypal buttons. Very easy to set up, just copy/paste the code Paypal generates into a template and you're done... unless there is a specific reason you don't want to use Paypal. Your question mentions something "like paypal" but doesn't say you don't want to...
You can pretty much use whatever service you like. For many nonprofits, we rotate between: [PayPal](https://www.paypal.com), [Network for Good](http://www1.networkforgood.org), [JustGive](https://www.justgive.org), [Razoo](http://www.razoo.com), and [Amazon Donations](https://payments.amazon.com/sdui/sdui/business/asp/...
40,840,799
I am creating a cordova ionic app. I want to create an object like below JSON. I want to send a JSON request like below which I need to create Dynamically. **BELOW IS JUST AN EXAMPLE. I WANT TO CREATE IT IN JS.** ``` { user_id: "72", data: { [{ "id": "2", "name": "1", ...
2016/11/28
[ "https://Stackoverflow.com/questions/40840799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442201/" ]
I had tried it and it is working for me. In India, all the telecommunication process should be approved by TRAI, Telecom Regulatory Authority Of India. As per TRAI, we can send promotional SMS between 09:00 AM to 09:00 PM only. For more information please visit <https://www.trai.gov.in/>.
You can send SMS to India mobile numbers. Simply add the number as 91xxxxxxxxxx and after couple of seconds start sending messages using the 'Publish to topic' from AWS console or via the API. There is no confirmation process involved in this
40,840,799
I am creating a cordova ionic app. I want to create an object like below JSON. I want to send a JSON request like below which I need to create Dynamically. **BELOW IS JUST AN EXAMPLE. I WANT TO CREATE IT IN JS.** ``` { user_id: "72", data: { [{ "id": "2", "name": "1", ...
2016/11/28
[ "https://Stackoverflow.com/questions/40840799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442201/" ]
I had tried it and it is working for me. In India, all the telecommunication process should be approved by TRAI, Telecom Regulatory Authority Of India. As per TRAI, we can send promotional SMS between 09:00 AM to 09:00 PM only. For more information please visit <https://www.trai.gov.in/>.
The SMS Notification option with SNS works worldwide, including India. Go to SNS Service on AWS Service dashboard, you get the following options on left hand side. * SNS dashboard * Topics * Applications Subscriptions * Text messaging (SMS) Click Text Messaging (SMS), and you will get the following options: * Mana...
40,840,799
I am creating a cordova ionic app. I want to create an object like below JSON. I want to send a JSON request like below which I need to create Dynamically. **BELOW IS JUST AN EXAMPLE. I WANT TO CREATE IT IN JS.** ``` { user_id: "72", data: { [{ "id": "2", "name": "1", ...
2016/11/28
[ "https://Stackoverflow.com/questions/40840799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442201/" ]
I had tried it and it is working for me. In India, all the telecommunication process should be approved by TRAI, Telecom Regulatory Authority Of India. As per TRAI, we can send promotional SMS between 09:00 AM to 09:00 PM only. For more information please visit <https://www.trai.gov.in/>.
Try this for sending SMS in India - Notice **MessageAttributes**. ``` var AWS = require("aws-sdk"); module.exports.sendSMS = function sendSMS(req, res) { var params = { Message: "Your OTP verification code is 3493", PhoneNumber: "+" + req.body.phone_number, MessageAttributes: { "AWS.SNS.SMS.SMSTy...
40,840,799
I am creating a cordova ionic app. I want to create an object like below JSON. I want to send a JSON request like below which I need to create Dynamically. **BELOW IS JUST AN EXAMPLE. I WANT TO CREATE IT IN JS.** ``` { user_id: "72", data: { [{ "id": "2", "name": "1", ...
2016/11/28
[ "https://Stackoverflow.com/questions/40840799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442201/" ]
I had tried it and it is working for me. In India, all the telecommunication process should be approved by TRAI, Telecom Regulatory Authority Of India. As per TRAI, we can send promotional SMS between 09:00 AM to 09:00 PM only. For more information please visit <https://www.trai.gov.in/>.
Make sure to select the message type as `Transactional`. `Promotional` might not be allowed by the telecom provider by default.
40,840,799
I am creating a cordova ionic app. I want to create an object like below JSON. I want to send a JSON request like below which I need to create Dynamically. **BELOW IS JUST AN EXAMPLE. I WANT TO CREATE IT IN JS.** ``` { user_id: "72", data: { [{ "id": "2", "name": "1", ...
2016/11/28
[ "https://Stackoverflow.com/questions/40840799", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3442201/" ]
I had tried it and it is working for me. In India, all the telecommunication process should be approved by TRAI, Telecom Regulatory Authority Of India. As per TRAI, we can send promotional SMS between 09:00 AM to 09:00 PM only. For more information please visit <https://www.trai.gov.in/>.
For sending SMS to an Indian number you would need to register yourself on <https://www.vilpower.in/> and then you need to get entityId and templateId for the messages you want to send by getting your messages registered and approved. You can follow the steps mentioned in the following link - <https://docs.aws.amazon....
5,320,510
I have a table where I wish to update some of the rows. All the fields are not null. I'm doing a sub-query, and I wish to update the table with the non-Null results. See Below for my final answer: In MySQL, I solve this problem by doing an UPDATE IGNORE. How do I make this work in SQL Server 2005? The sub-query uses a...
2011/03/16
[ "https://Stackoverflow.com/questions/5320510", "https://Stackoverflow.com", "https://Stackoverflow.com/users/661740/" ]
``` with UpdatedGenesDS ( select joiner.indelID, name, row_number() over (order by symbol.id asc) seq from GeneSymbol AS symbol JOIN GeneConnector AS geneJoin ON symbol.id = geneJoin.geneSymbolID JOIN Result AS sSeq ON geneJoin.sSeqID = sSeq.id JOIN IndelConnector AS joiner ON joiner.sSeqI...
Here's another option, where only those rows in #SearchResults that are succesfully joined will be udpated. If there are **no** null values in the underlying data, then the inner joins will pull in no null values, and you won't have to worry about filtering them out. ``` UPDATE #SearchResults set geneSymbol = symbol....
8,016,618
I'm developing a custom control. One of the requirements is to draw lines. Although this works, I noticed that my 1 pixel wide lines do not really look like 1 pixel wide lines - I know, they're not really pixels but you know what I mean. They look more like two or three pixels wide. This becomes very apparent when I dr...
2011/11/04
[ "https://Stackoverflow.com/questions/8016618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/942534/" ]
Bezier paths are drawn centered on their path, so if you draw a 1 pixel wide path along the X-coordinate, the line actually draws along Y-coordinates { -0.5, 0.5 } The solution is usually to offset the coordinate by 0.5 so that the line is not drawn in the sub pixel boundaries. You should be able to shift your bounding...
I found some info suggesting that this is caused by anti aliasing. Turning anti aliasing off temporarily is easy: ``` [[NSGraphicsContext currentContext] setShouldAntialias: NO]; ``` This gives a crisp, 1 pixel line. After drawing just switch it on again. I tried the solution suggested by Francis McGrew by offsetti...
8,016,618
I'm developing a custom control. One of the requirements is to draw lines. Although this works, I noticed that my 1 pixel wide lines do not really look like 1 pixel wide lines - I know, they're not really pixels but you know what I mean. They look more like two or three pixels wide. This becomes very apparent when I dr...
2011/11/04
[ "https://Stackoverflow.com/questions/8016618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/942534/" ]
Bezier paths are drawn centered on their path, so if you draw a 1 pixel wide path along the X-coordinate, the line actually draws along Y-coordinates { -0.5, 0.5 } The solution is usually to offset the coordinate by 0.5 so that the line is not drawn in the sub pixel boundaries. You should be able to shift your bounding...
**The answer is (buried) in the Apple Docs:** "*To avoid antialiasing when you draw a one-point-wide horizontal or vertical line, if the line is an odd number of pixels in width, you must offset the position by 0.5 points to either side of a whole-numbered position*" Hidden in [Drawing and Printing Guide for iOS: iOS...
8,016,618
I'm developing a custom control. One of the requirements is to draw lines. Although this works, I noticed that my 1 pixel wide lines do not really look like 1 pixel wide lines - I know, they're not really pixels but you know what I mean. They look more like two or three pixels wide. This becomes very apparent when I dr...
2011/11/04
[ "https://Stackoverflow.com/questions/8016618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/942534/" ]
Bezier paths are drawn centered on their path, so if you draw a 1 pixel wide path along the X-coordinate, the line actually draws along Y-coordinates { -0.5, 0.5 } The solution is usually to offset the coordinate by 0.5 so that the line is not drawn in the sub pixel boundaries. You should be able to shift your bounding...
*Francis McGrew already gave the right answer, but since I did a presentation on this once, I thought I'd add some pictures.* The problem here is that coordinates in Quartz lie at the intersections between pixels. This is fine when filling a rectangle, because every pixel that lies inside the coordinates gets filled. ...
8,016,618
I'm developing a custom control. One of the requirements is to draw lines. Although this works, I noticed that my 1 pixel wide lines do not really look like 1 pixel wide lines - I know, they're not really pixels but you know what I mean. They look more like two or three pixels wide. This becomes very apparent when I dr...
2011/11/04
[ "https://Stackoverflow.com/questions/8016618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/942534/" ]
*Francis McGrew already gave the right answer, but since I did a presentation on this once, I thought I'd add some pictures.* The problem here is that coordinates in Quartz lie at the intersections between pixels. This is fine when filling a rectangle, because every pixel that lies inside the coordinates gets filled. ...
I found some info suggesting that this is caused by anti aliasing. Turning anti aliasing off temporarily is easy: ``` [[NSGraphicsContext currentContext] setShouldAntialias: NO]; ``` This gives a crisp, 1 pixel line. After drawing just switch it on again. I tried the solution suggested by Francis McGrew by offsetti...
8,016,618
I'm developing a custom control. One of the requirements is to draw lines. Although this works, I noticed that my 1 pixel wide lines do not really look like 1 pixel wide lines - I know, they're not really pixels but you know what I mean. They look more like two or three pixels wide. This becomes very apparent when I dr...
2011/11/04
[ "https://Stackoverflow.com/questions/8016618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/942534/" ]
*Francis McGrew already gave the right answer, but since I did a presentation on this once, I thought I'd add some pictures.* The problem here is that coordinates in Quartz lie at the intersections between pixels. This is fine when filling a rectangle, because every pixel that lies inside the coordinates gets filled. ...
**The answer is (buried) in the Apple Docs:** "*To avoid antialiasing when you draw a one-point-wide horizontal or vertical line, if the line is an odd number of pixels in width, you must offset the position by 0.5 points to either side of a whole-numbered position*" Hidden in [Drawing and Printing Guide for iOS: iOS...
47,465,758
I know that in Fortran I can declare an array of a number N of elements if N is declared as a `parameter` before (and so defined to some value). On the other hand I know I can get a program to accept arguments from the command line with the use of the subroutine `get_command_arg`. My question is: Can I somehow dec...
2017/11/24
[ "https://Stackoverflow.com/questions/47465758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8891467/" ]
There are certain languages where you can initialize variables and named constants from command line (like chapel), but Fortran is not one of them. You say *"I am trying not to define the arrays as allocatable."* but that is the problem. You simply have to. There is no other way. Your code ``` integer, parameter :: ...
You can do it this way without allocatables. You just have to pass the size (after converting it to an integer) into a subroutine. But really, I see no reason not to use allocatables for something like this. ``` program main implicit none integer :: n,arg_len,istat character(len=100) :: arg call get_command_argumen...
1,312,420
At my probability theory proseminar I had a speech about the percolation theory and one of the topics I presented was the uniqueness of an infinite open cluster in Bernoulli bond percolation in $\mathbb{Z}^d$. However, I had real problems with proving that N (the number of infinite open clusters) is constant a.s. I tri...
2015/06/04
[ "https://math.stackexchange.com/questions/1312420", "https://math.stackexchange.com", "https://math.stackexchange.com/users/192838/" ]
Let us assume, you want to comput $$F(a,b) = \frac{2}{\sqrt \pi}\int\_a^b e^{-t^2}dt,\quad a\leq b.$$ Then $$ F(0,b) = \operatorname{erf}(b),$$ where $\operatorname{erf}(b)$ is the error function. Now simply split your domain into subintervalls and compute the value $F(0,x\_i)$ for all values of your discretization, ...
Considering $$F(a,b) = \int\_a^b e^{-t^2}dt=\frac{1}{2} \sqrt{\pi } \Big(\text{erf}(b)-\text{erf}(a)\Big)$$ There are many ways to approximate the error functions; I particularly enjoy $$\text{erf}(x)\approx\text{sgn}(x)\sqrt{1-e^{-\frac{x^2 \left(a x^2+\frac{4}{\pi }\right)}{a x^2+1}}}$$ Using $$a=\frac{8 (\pi -3)}{3 ...
52,442,042
I have the following example set of data spanning an `[x,y]` domain: ``` test=[2.58,2.2, 0.00023, 0.000163, 0.000123, 0.000164, 0.00022, 2.18, 2.56,2.56; 2.46,2.17, 0.00021, 0.000150, 0.000119, 0.000141, 0.00020, 2.16, 2.43, 2.56; 2.35,2.14, 0.00019, 0.000143, 0.000101, 0.000136, 0.00018, 2.14, 2.36,2.56; 2.2...
2018/09/21
[ "https://Stackoverflow.com/questions/52442042", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4482168/" ]
Actually, the cypher allows you to express this by a sequence of instructions: * take the yellow node and take all his green neighbors * for each green neighbor to find the yellow and its green neighbors * make sure that for the second yellow neighbor, each green neighbor is also the neighbor of the first yellow node ...
1. Creating your graph: ======================= The first statement creates the nodes, the second the relationships between them. ``` CREATE (Yellow1:Yellow {name: 'Yellow 1'}), (Yellow2:Yellow {name: 'Yellow 2'}), (Yellow3:Yellow {name: 'Yellow 3'}), (Yellow4:Yellow {name: 'Yellow 4'}), (Yellow5:Yellow {na...
23,912,410
i have two database with same number of tables & table structure. I want to copy data from one table into another with where condition. I have tried this below query, Is the below query is correct, ``` INSERT INTO db2.table (SELECT * FROM db1.table t where t.restaurant_id=12); ``` Please help **update**: i am l...
2014/05/28
[ "https://Stackoverflow.com/questions/23912410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1684778/" ]
**UPDATE**: There have been updates to the AWS SDK in response to the issues I created on GitHub. I'm not sure how the situation changed. The second part of this answer (criticizing `getObject`) is likely (hopefully?) wrong. --- S3 is designed to fail, and it fails often. Fortunately, the AWS SDK for Java has built-...
I previously had similar problems. I found every time after you finish one S3Object, you need to close() it to release some resource back to the pool, according to the [official example from AWS S3](http://docs.aws.amazon.com/AmazonS3/latest/dev/RetrievingObjectUsingJava.html): ``` AmazonS3 s3Client = new AmazonS3Clie...
10,972,941
I think I might be lacking understanding of div relationships? Ultimately, the goal is to make the "element" div slide down ON TOP of the blue "parent" div. Bu the current focus is to simply make it display (display was originally set to 'none'). I'm not sure why this isn't working... ``` <style type="text/css...
2012/06/10
[ "https://Stackoverflow.com/questions/10972941", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1020841/" ]
On the assumption of no other errors, the following: ``` function peekDown(id) { var element = document.getElementById(id); element.style.display = ""; console.log(element.style.display); } ``` can't work, because while `element.style.display = '';` will un-set the `display` property found in the `style`...
Setting the `.style.display` property to `""` removes any inline style for that property (your code doesn't have any inline style) and lets rules in the stylesheet apply. Modify the `.className` property instead and have `#element {}` and `#element.someDescriptiveClass {}` in your stylesheet.
9,137,648
I was wondering if one could write a Java application and put it on a website and then have it running so that when a user used your website it could interact with some html/javascript page which would communicate with the Java program. So basically, the html5 would be used to display the java program but all the logi...
2012/02/04
[ "https://Stackoverflow.com/questions/9137648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1096638/" ]
It's somewhat difficult to tell from your question but you might find GWT useful. You code everything in Java, and the client-side portion gets compiled into html/javascript which communicates to the server portion with AJAX. <http://code.google.com/webtoolkit/>
I think you should start by developing a simple Java web app using html, jsp and servlet. Try the Google App Engine for deployment as it is free for hosting. <http://www.servletworld.com/servlet-tutorials/simple-servlet-example.html>