qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
10,397 | When I consider my own existence with respect to time I can imagine three possibilities:
(1) **Time extends infinitely into the past.** In this case, how can the present, with me in it, exist, since there would be an infinite period of time that existed before the present. That seems illogical.
(2) **Time had a sta... | 2014/03/24 | [
"https://philosophy.stackexchange.com/questions/10397",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/5538/"
] | Is time a mental abstraction or does it exist outside consciousness?
====================================================================
The latter. Time exists independently of us.
In all likelihood, time exists independently of one's consciousness. That is to say, while it may be that the experience which we refer... | 3 is correct. Time is a abstraction, a filing system used to arrange events and memories into a logical system of cause and effect.
Per relativity, space and time are not discrete entities, but a single construct called spacetime. Saying something is X km long is equal to saying it is Y seconds long. All units of time... |
10,397 | When I consider my own existence with respect to time I can imagine three possibilities:
(1) **Time extends infinitely into the past.** In this case, how can the present, with me in it, exist, since there would be an infinite period of time that existed before the present. That seems illogical.
(2) **Time had a sta... | 2014/03/24 | [
"https://philosophy.stackexchange.com/questions/10397",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/5538/"
] | A popular saying is: "Time doesn't exist, only clocks exist."
Time, like all units of measurement, are abstractions.
In physics, the purest way of comparison is the direct one: How long is this thing compared to that thing. It yields a fraction of some sort, which most importantly is *invariant*.
This fraction has n... | The closest thing that time abstracts is motion. The passage of time is always tracked by some form of motion, be it clock ticks, days, seasons, ageing etc. If the motion of everything in the universe where to cease, time is frozen. Since time directly correspond to periodic (repetitive motion), one can argue that it i... |
10,397 | When I consider my own existence with respect to time I can imagine three possibilities:
(1) **Time extends infinitely into the past.** In this case, how can the present, with me in it, exist, since there would be an infinite period of time that existed before the present. That seems illogical.
(2) **Time had a sta... | 2014/03/24 | [
"https://philosophy.stackexchange.com/questions/10397",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/5538/"
] | A popular saying is: "Time doesn't exist, only clocks exist."
Time, like all units of measurement, are abstractions.
In physics, the purest way of comparison is the direct one: How long is this thing compared to that thing. It yields a fraction of some sort, which most importantly is *invariant*.
This fraction has n... | You've presented a false dichotomy: just because something is a "mental construct" doesn't mean that it can't also be a real property of the physical universe.
Take length as an example. "Length," as such, doesn't exist physically. It's not something you can see or touch. Nevertheless, it is a real quality of physical... |
10,397 | When I consider my own existence with respect to time I can imagine three possibilities:
(1) **Time extends infinitely into the past.** In this case, how can the present, with me in it, exist, since there would be an infinite period of time that existed before the present. That seems illogical.
(2) **Time had a sta... | 2014/03/24 | [
"https://philosophy.stackexchange.com/questions/10397",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/5538/"
] | I will attempt to present the stance of physicist [Julian Barbour](https://en.wikipedia.org/wiki/Julian_Barbour), who presented a compelling answer to this question in a lecture I saw him give in Oxford ([this lecture](https://www.youtube.com/watch?v=I5rExaKLEoU)).
He is firmly *not* in the camp of the latter viewpoi... | 3 is correct. Time is a abstraction, a filing system used to arrange events and memories into a logical system of cause and effect.
Per relativity, space and time are not discrete entities, but a single construct called spacetime. Saying something is X km long is equal to saying it is Y seconds long. All units of time... |
10,397 | When I consider my own existence with respect to time I can imagine three possibilities:
(1) **Time extends infinitely into the past.** In this case, how can the present, with me in it, exist, since there would be an infinite period of time that existed before the present. That seems illogical.
(2) **Time had a sta... | 2014/03/24 | [
"https://philosophy.stackexchange.com/questions/10397",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/5538/"
] | You've hit upon one of the lines of thinking by Kant.
In his thinking both options (1) & (2) are true; to Kant this suggests this is an actual contradiction, an *antinomy* in his language, and which is irresolvable; by us; one can say we are at the limit of thought, of the human capacity to reason - hence *a critique ... | 3 is correct. Time is a abstraction, a filing system used to arrange events and memories into a logical system of cause and effect.
Per relativity, space and time are not discrete entities, but a single construct called spacetime. Saying something is X km long is equal to saying it is Y seconds long. All units of time... |
10,397 | When I consider my own existence with respect to time I can imagine three possibilities:
(1) **Time extends infinitely into the past.** In this case, how can the present, with me in it, exist, since there would be an infinite period of time that existed before the present. That seems illogical.
(2) **Time had a sta... | 2014/03/24 | [
"https://philosophy.stackexchange.com/questions/10397",
"https://philosophy.stackexchange.com",
"https://philosophy.stackexchange.com/users/5538/"
] | The closest thing that time abstracts is motion. The passage of time is always tracked by some form of motion, be it clock ticks, days, seasons, ageing etc. If the motion of everything in the universe where to cease, time is frozen. Since time directly correspond to periodic (repetitive motion), one can argue that it i... | 3 is correct. Time is a abstraction, a filing system used to arrange events and memories into a logical system of cause and effect.
Per relativity, space and time are not discrete entities, but a single construct called spacetime. Saying something is X km long is equal to saying it is Y seconds long. All units of time... |
52,413,521 | I have a python source block that gets the number of variables (columns) and cases in a pandas' dataframe.
Minimal example:
```
#+begin_src python :exports none :session :results output
df = pd.DataFrame({'a': [1, 2, 3],
'b': [4, 5, 6]})
df_len_columns = len(df.columns)
df_len_cases = len(d... | 2018/09/19 | [
"https://Stackoverflow.com/questions/52413521",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3566180/"
] | It looks like you need to tell the inline source code to refer to your session using a header argument:
```
src_python[:session]{df_len_columns}
```
The general form is `src_<language>[<header arguments>]{<body>}`. Possible header arguments are listed in the org manual: [Specific Header Arguments](https://orgmode.or... | If I understood correctly you want to link several source blocks to the same process.
**It is as simple as:**
```
#+BEGIN_SRC ipython :results output :session testing
a = 5
#+END_SRC
#+RESULTS:
#+BEGIN_SRC ipython :results value :session testing
a
#+END_SRC
#+RESULTS:
: # Out[6]:
: : 5
```
In this example the t... |
1,393,653 | I have 2 views which transition into each other using the ...
>
> [UIView setAnimationTransition:UIAnimationTransitionFlipFromLeft forView:self.view cache:YES]
>
>
>
My views both have a black background and when they flip over the colour underneath is white. I want to change this to something else. How do I do t... | 2009/09/08 | [
"https://Stackoverflow.com/questions/1393653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/157733/"
] | I think what you are looking for is changing the background color of your application window (which is visible between the flipside views). You can do this
* either in the Interface Builder in the MainWindow.xib, Tab 1 of the Inspector
* or in code with
window.backgroundColor = [UIColor redColor]; | thanks! Very anti-intuitive. I'd think the superview's background color would show but I'd be wrong ;) |
82,502 | I am trying to start learning the `J2EE` part of `Java`. But I don't know where to start. I am familier with `Core Java` and mainly, I want to learn `JPA` and basics of `Hibernate` and `Spring Framework`. The main reason for this is I am working on a project which is using all these things. And most of the code is bein... | 2011/06/08 | [
"https://softwareengineering.stackexchange.com/questions/82502",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/25681/"
] | Whenever I want to learn a new framework/language, I usually whip up a small project that uses it. For a web framework, I have a common webapp that I write using it. It's simple and doesn't do much, but it has enough features that I need to take advantage of the more common parts of the framework (database, background ... | I recommend [Head First Servlets and JSP](http://rads.stackoverflow.com/amzn/click/0596516681). It's a great resource for learning about Enterprise Java.
This book was written for developers interested in passing the Sun Certified Web Component Developer (SCWCD) exam. Sun has since been acquired by Oracle and this exa... |
82,502 | I am trying to start learning the `J2EE` part of `Java`. But I don't know where to start. I am familier with `Core Java` and mainly, I want to learn `JPA` and basics of `Hibernate` and `Spring Framework`. The main reason for this is I am working on a project which is using all these things. And most of the code is bein... | 2011/06/08 | [
"https://softwareengineering.stackexchange.com/questions/82502",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/25681/"
] | Whenever I want to learn a new framework/language, I usually whip up a small project that uses it. For a web framework, I have a common webapp that I write using it. It's simple and doesn't do much, but it has enough features that I need to take advantage of the more common parts of the framework (database, background ... | The online Hibernate documentation is quite good. You could start there. |
82,502 | I am trying to start learning the `J2EE` part of `Java`. But I don't know where to start. I am familier with `Core Java` and mainly, I want to learn `JPA` and basics of `Hibernate` and `Spring Framework`. The main reason for this is I am working on a project which is using all these things. And most of the code is bein... | 2011/06/08 | [
"https://softwareengineering.stackexchange.com/questions/82502",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/25681/"
] | Whenever I want to learn a new framework/language, I usually whip up a small project that uses it. For a web framework, I have a common webapp that I write using it. It's simple and doesn't do much, but it has enough features that I need to take advantage of the more common parts of the framework (database, background ... | I was in a very similiar situation not long ago. Here's roughly what in retrospective, I found the most useful approach to quickly learn the basics of a new technology:
**General approach:**
1. **Find out what problem it solves.** Read various resources like the project's homepage, the wikipedia article.
2. **Find a ... |
82,502 | I am trying to start learning the `J2EE` part of `Java`. But I don't know where to start. I am familier with `Core Java` and mainly, I want to learn `JPA` and basics of `Hibernate` and `Spring Framework`. The main reason for this is I am working on a project which is using all these things. And most of the code is bein... | 2011/06/08 | [
"https://softwareengineering.stackexchange.com/questions/82502",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/25681/"
] | I was in a very similiar situation not long ago. Here's roughly what in retrospective, I found the most useful approach to quickly learn the basics of a new technology:
**General approach:**
1. **Find out what problem it solves.** Read various resources like the project's homepage, the wikipedia article.
2. **Find a ... | I recommend [Head First Servlets and JSP](http://rads.stackoverflow.com/amzn/click/0596516681). It's a great resource for learning about Enterprise Java.
This book was written for developers interested in passing the Sun Certified Web Component Developer (SCWCD) exam. Sun has since been acquired by Oracle and this exa... |
82,502 | I am trying to start learning the `J2EE` part of `Java`. But I don't know where to start. I am familier with `Core Java` and mainly, I want to learn `JPA` and basics of `Hibernate` and `Spring Framework`. The main reason for this is I am working on a project which is using all these things. And most of the code is bein... | 2011/06/08 | [
"https://softwareengineering.stackexchange.com/questions/82502",
"https://softwareengineering.stackexchange.com",
"https://softwareengineering.stackexchange.com/users/25681/"
] | I was in a very similiar situation not long ago. Here's roughly what in retrospective, I found the most useful approach to quickly learn the basics of a new technology:
**General approach:**
1. **Find out what problem it solves.** Read various resources like the project's homepage, the wikipedia article.
2. **Find a ... | The online Hibernate documentation is quite good. You could start there. |
16,419,970 | I need to empty and focus on textarea on keypress which keypress is enter.i think i wrote right code but sometimes textarea get empty but no focus happens and sometimes focus happens but with no luck in emptying this object.i used many diffrent code but with no luck.
Here is my js:
```
<script>
$(document).ready(func... | 2013/05/07 | [
"https://Stackoverflow.com/questions/16419970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1359514/"
] | `empty()` does not remove the value.
set `.val("");`
You are basically causing an endless loop with calling focus inside the focus event. Not good.
```
$("#data").focus(function() {
$(this).val('');
});
```
Also why are you reinventing the HTML5 placeholder attribute that you already have on the element? | You don't have an element with the id "data" in your code. Additionally you are binding the `keypress` on the #data-element which of course doesn't fire, when the focus is not inside the element.
Try binding the event to the document instead of the textarea. |
16,419,970 | I need to empty and focus on textarea on keypress which keypress is enter.i think i wrote right code but sometimes textarea get empty but no focus happens and sometimes focus happens but with no luck in emptying this object.i used many diffrent code but with no luck.
Here is my js:
```
<script>
$(document).ready(func... | 2013/05/07 | [
"https://Stackoverflow.com/questions/16419970",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1359514/"
] | `empty()` does not remove the value.
set `.val("");`
You are basically causing an endless loop with calling focus inside the focus event. Not good.
```
$("#data").focus(function() {
$(this).val('');
});
```
Also why are you reinventing the HTML5 placeholder attribute that you already have on the element? | There's an autofocus html5 tag (boolean, no value needed) that will automatically put the focus on whatever input/textarea it's set on: <http://www.html5tutorial.info/html5-autofocus.php>
Great bit of js fallback code here: <http://sampsonblog.com/tag/html5>
Think of it like if js is available, autofocus on a form in... |
33,385,550 | I have a these kind of code in my program:
```
std :: cout << process_prompt << std :: left << std :: setw( 40 ) << "Looping on tree: clust_tree.";
some_function();
std :: cout << std :: string( 52, '\b' );
```
The some\_function() has a loop:
```
for( Int_t i = 0; i < n_entries; ++i )
{
(some stuff...)
i... | 2015/10/28 | [
"https://Stackoverflow.com/questions/33385550",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3255071/"
] | **NOTE:** This is **not an answer** to the question, not sure this will work on the online compilers hence code for the full example here..
This full example works fine for me (c++11, gcc 4.8.2)
```
#include <iostream>
#include <chrono>
#include <thread>
#include <iomanip>
using namespace std;
int main(void) {
co... | Okay I seem to have found the answer, I actually had an extra '/b' for each of the loops. Thanks everyone! |
1,359,632 | Our application deals with large files, say 2Gb, and accepted wisdom is users need RAM 10X dataset size. Developers have well-specced machines but some users see horrible performance which we attribute to their much lower RAM, but can't categorically prove or measure.
Is there a way on Windows, Linux, Mac to 'hide' RA... | 2018/09/19 | [
"https://superuser.com/questions/1359632",
"https://superuser.com",
"https://superuser.com/users/25735/"
] | There is.
On Linux, use the kernel command line parameter `mem=`. Add this option to the kernel command line in GRUB. [Reference.](https://askubuntu.com/questions/83109/kernel-mem-parameter)
Windows has the `/BURNMEMORY` and `/TRUNCATEMEMORY` boot switches. Use `bcdedit` to add these switches or [Reference](https://t... | Deduct some available memory by creating a ramdrive, which will not impose the additional CPU cycle burden of a VM.
Ramdrives, or ramdisks, are discussed herein for [Windows](https://superuser.com/questions/1091597/create-a-ram-drive-in-windows-10-to-improve-a-modded-instance-of-tes-v-skyrim), [Linux](https://unix.sta... |
1,359,632 | Our application deals with large files, say 2Gb, and accepted wisdom is users need RAM 10X dataset size. Developers have well-specced machines but some users see horrible performance which we attribute to their much lower RAM, but can't categorically prove or measure.
Is there a way on Windows, Linux, Mac to 'hide' RA... | 2018/09/19 | [
"https://superuser.com/questions/1359632",
"https://superuser.com",
"https://superuser.com/users/25735/"
] | Deduct some available memory by creating a ramdrive, which will not impose the additional CPU cycle burden of a VM.
Ramdrives, or ramdisks, are discussed herein for [Windows](https://superuser.com/questions/1091597/create-a-ram-drive-in-windows-10-to-improve-a-modded-instance-of-tes-v-skyrim), [Linux](https://unix.sta... | Another idea: You can configure a virtual machine with whatever amount of RAM you want and run the app in there to see how it behaves. |
1,359,632 | Our application deals with large files, say 2Gb, and accepted wisdom is users need RAM 10X dataset size. Developers have well-specced machines but some users see horrible performance which we attribute to their much lower RAM, but can't categorically prove or measure.
Is there a way on Windows, Linux, Mac to 'hide' RA... | 2018/09/19 | [
"https://superuser.com/questions/1359632",
"https://superuser.com",
"https://superuser.com/users/25735/"
] | There is.
On Linux, use the kernel command line parameter `mem=`. Add this option to the kernel command line in GRUB. [Reference.](https://askubuntu.com/questions/83109/kernel-mem-parameter)
Windows has the `/BURNMEMORY` and `/TRUNCATEMEMORY` boot switches. Use `bcdedit` to add these switches or [Reference](https://t... | Another idea: You can configure a virtual machine with whatever amount of RAM you want and run the app in there to see how it behaves. |
443,275 | I have so far only worked with WS2812 strips and understood, that the WS2813 have a backup data line. But how do I connect the first LED to my Arduino (acts as a controller)?
Many tutorials said I should just wire the BI to V0, but doesn't this eliminate the backup functionality? So I thought about wiring both data p... | 2019/06/12 | [
"https://electronics.stackexchange.com/questions/443275",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/224172/"
] | This is based on a few sources including the (poor) [datasheet](https://www.elecrow.com/download/WS2813_LED_Datasheet.pdf).
My interpretation is that BIN should be connected to the *previous LED's* DIN. Then if the one LED fails, the next one will not receive any data on DIN, but it will receive data on BIN. It will s... | The WS28xx series of LED drivers are (were?) made by [Worldsemi](http://www.world-semi.com/), but there does not appear to be a datasheet for the WS2813 available on the site (yet). It seems that another company, [Shenzen Normand Electronic Co](http://www.normandled.com/) may be the manufacturer. Maybe it is a copy or ... |
443,275 | I have so far only worked with WS2812 strips and understood, that the WS2813 have a backup data line. But how do I connect the first LED to my Arduino (acts as a controller)?
Many tutorials said I should just wire the BI to V0, but doesn't this eliminate the backup functionality? So I thought about wiring both data p... | 2019/06/12 | [
"https://electronics.stackexchange.com/questions/443275",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/224172/"
] | No, not connecting the BIN doesn't eliminate the backup functionality. As for what to do with it, the official datasheet at <http://www.world-semi.com/DownLoadFile/117> doesn't say, so I won't speculate.
To show that the backup remains consider that the BIN of a WS2813 LED is connected to the DIN of the previous LED.
... | The WS28xx series of LED drivers are (were?) made by [Worldsemi](http://www.world-semi.com/), but there does not appear to be a datasheet for the WS2813 available on the site (yet). It seems that another company, [Shenzen Normand Electronic Co](http://www.normandled.com/) may be the manufacturer. Maybe it is a copy or ... |
443,275 | I have so far only worked with WS2812 strips and understood, that the WS2813 have a backup data line. But how do I connect the first LED to my Arduino (acts as a controller)?
Many tutorials said I should just wire the BI to V0, but doesn't this eliminate the backup functionality? So I thought about wiring both data p... | 2019/06/12 | [
"https://electronics.stackexchange.com/questions/443275",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/224172/"
] | No, not connecting the BIN doesn't eliminate the backup functionality. As for what to do with it, the official datasheet at <http://www.world-semi.com/DownLoadFile/117> doesn't say, so I won't speculate.
To show that the backup remains consider that the BIN of a WS2813 LED is connected to the DIN of the previous LED.
... | This is based on a few sources including the (poor) [datasheet](https://www.elecrow.com/download/WS2813_LED_Datasheet.pdf).
My interpretation is that BIN should be connected to the *previous LED's* DIN. Then if the one LED fails, the next one will not receive any data on DIN, but it will receive data on BIN. It will s... |
443,275 | I have so far only worked with WS2812 strips and understood, that the WS2813 have a backup data line. But how do I connect the first LED to my Arduino (acts as a controller)?
Many tutorials said I should just wire the BI to V0, but doesn't this eliminate the backup functionality? So I thought about wiring both data p... | 2019/06/12 | [
"https://electronics.stackexchange.com/questions/443275",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/224172/"
] | This is based on a few sources including the (poor) [datasheet](https://www.elecrow.com/download/WS2813_LED_Datasheet.pdf).
My interpretation is that BIN should be connected to the *previous LED's* DIN. Then if the one LED fails, the next one will not receive any data on DIN, but it will receive data on BIN. It will s... | Based on the documentation and experimentation: do not connect them together because they are not interpreted the same way. D is the data signal and interpreted as such and B is expected to be the data signal with address shifted -1 so the addressing stays in sync. Do not connect your controller to BI. Do connect the B... |
443,275 | I have so far only worked with WS2812 strips and understood, that the WS2813 have a backup data line. But how do I connect the first LED to my Arduino (acts as a controller)?
Many tutorials said I should just wire the BI to V0, but doesn't this eliminate the backup functionality? So I thought about wiring both data p... | 2019/06/12 | [
"https://electronics.stackexchange.com/questions/443275",
"https://electronics.stackexchange.com",
"https://electronics.stackexchange.com/users/224172/"
] | No, not connecting the BIN doesn't eliminate the backup functionality. As for what to do with it, the official datasheet at <http://www.world-semi.com/DownLoadFile/117> doesn't say, so I won't speculate.
To show that the backup remains consider that the BIN of a WS2813 LED is connected to the DIN of the previous LED.
... | Based on the documentation and experimentation: do not connect them together because they are not interpreted the same way. D is the data signal and interpreted as such and B is expected to be the data signal with address shifted -1 so the addressing stays in sync. Do not connect your controller to BI. Do connect the B... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | You should see a prompt when you turn on your computer. If the mouse can't be found,
* Check if the mouse is on.
* Check all other computers to see if one of them is paired with the mouse. If that is the case, unpair it.
If none of those work, try a USB mouse. | If the batteries run out in my wireless mouse it never reconnects automatically and I have resorted to reconnecting a wired mouse to click on the bluetooth icon in the menu bar. Then I found that you can activate the bluetooth icon by pressing Control-F8 (the "Move focus to status menus" in the keyboard shortcuts) and ... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | You should see a prompt when you turn on your computer. If the mouse can't be found,
* Check if the mouse is on.
* Check all other computers to see if one of them is paired with the mouse. If that is the case, unpair it.
If none of those work, try a USB mouse. | I can usually get my mouse to connect if I can get to the bluetooth preferences.
Since upgrading (now on Monterey 12.3.1) that has become more difficult and a lot of the keyboard combinations to get to the menus do not seem to work for me any more.
The ⌘+Space "Bluetooth" to get to the preferences was not working unt... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | Make sure your mouse has been reset.
1. Press `⌘`+`Space` and type "Bluetooth" to open bluetooth in System Preferences. You will see your mouse in the list of devices and a button to 'Connect'.
2. Use the `Tab` key to move to the next control, this will highlight the next one for you (If you are stuck on the text fiel... | Keep a cheap usb mouse and keyboard in the back of some closet (with the batteries removed) to quickly use in an emergency. I've successfully used the keyboard and mouse once each in the last 8 - 10 years but it's worth it. |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | You can open the Mouse System Preferences by using Spotlight search.
1. Press `⌘-Space` to open Spotlight. Type "mouse" to find the Mouse System Preferences and press `Enter`.
2. When the Mouse Preferences are opened, make sure the mouse is on and wait for it to be discovered. The "Connect" button should be blue, so ... | Make sure your mouse has been reset.
1. Press `⌘`+`Space` and type "Bluetooth" to open bluetooth in System Preferences. You will see your mouse in the list of devices and a button to 'Connect'.
2. Use the `Tab` key to move to the next control, this will highlight the next one for you (If you are stuck on the text fiel... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | If the batteries run out in my wireless mouse it never reconnects automatically and I have resorted to reconnecting a wired mouse to click on the bluetooth icon in the menu bar. Then I found that you can activate the bluetooth icon by pressing Control-F8 (the "Move focus to status menus" in the keyboard shortcuts) and ... | Keep a cheap usb mouse and keyboard in the back of some closet (with the batteries removed) to quickly use in an emergency. I've successfully used the keyboard and mouse once each in the last 8 - 10 years but it's worth it. |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | You can open the Mouse System Preferences by using Spotlight search.
1. Press `⌘-Space` to open Spotlight. Type "mouse" to find the Mouse System Preferences and press `Enter`.
2. When the Mouse Preferences are opened, make sure the mouse is on and wait for it to be discovered. The "Connect" button should be blue, so ... | If the batteries run out in my wireless mouse it never reconnects automatically and I have resorted to reconnecting a wired mouse to click on the bluetooth icon in the menu bar. Then I found that you can activate the bluetooth icon by pressing Control-F8 (the "Move focus to status menus" in the keyboard shortcuts) and ... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | Make sure your mouse has been reset.
1. Press `⌘`+`Space` and type "Bluetooth" to open bluetooth in System Preferences. You will see your mouse in the list of devices and a button to 'Connect'.
2. Use the `Tab` key to move to the next control, this will highlight the next one for you (If you are stuck on the text fiel... | I can usually get my mouse to connect if I can get to the bluetooth preferences.
Since upgrading (now on Monterey 12.3.1) that has become more difficult and a lot of the keyboard combinations to get to the menus do not seem to work for me any more.
The ⌘+Space "Bluetooth" to get to the preferences was not working unt... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | If the batteries run out in my wireless mouse it never reconnects automatically and I have resorted to reconnecting a wired mouse to click on the bluetooth icon in the menu bar. Then I found that you can activate the bluetooth icon by pressing Control-F8 (the "Move focus to status menus" in the keyboard shortcuts) and ... | I can usually get my mouse to connect if I can get to the bluetooth preferences.
Since upgrading (now on Monterey 12.3.1) that has become more difficult and a lot of the keyboard combinations to get to the menus do not seem to work for me any more.
The ⌘+Space "Bluetooth" to get to the preferences was not working unt... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | You can open the Mouse System Preferences by using Spotlight search.
1. Press `⌘-Space` to open Spotlight. Type "mouse" to find the Mouse System Preferences and press `Enter`.
2. When the Mouse Preferences are opened, make sure the mouse is on and wait for it to be discovered. The "Connect" button should be blue, so ... | I can usually get my mouse to connect if I can get to the bluetooth preferences.
Since upgrading (now on Monterey 12.3.1) that has become more difficult and a lot of the keyboard combinations to get to the menus do not seem to work for me any more.
The ⌘+Space "Bluetooth" to get to the preferences was not working unt... |
283,307 | My bluetooth mouse batteries died, and when I replaced them, the mouse didn't reconnect. Now how can I get OS X to discover and connect my mouse without having a mouse to open the mouse dialogue? | 2017/05/11 | [
"https://apple.stackexchange.com/questions/283307",
"https://apple.stackexchange.com",
"https://apple.stackexchange.com/users/28536/"
] | You should see a prompt when you turn on your computer. If the mouse can't be found,
* Check if the mouse is on.
* Check all other computers to see if one of them is paired with the mouse. If that is the case, unpair it.
If none of those work, try a USB mouse. | Keep a cheap usb mouse and keyboard in the back of some closet (with the batteries removed) to quickly use in an emergency. I've successfully used the keyboard and mouse once each in the last 8 - 10 years but it's worth it. |
23,557,620 | I'm learning Elixir, and the tool 'dialyzer' lets you do static analysis - annotate the function definition with the type specification of the parameters it expects and the output it returns. It's completely optional, but if it were to be used to the full extent possible, how does it match up to good 'ol static typing? | 2014/05/09 | [
"https://Stackoverflow.com/questions/23557620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1375688/"
] | While static typing takes care of a whole class of bugs, static analysis tools like dialyzer can tell you a lot more about potential pitfalls in your code. Assuming you used specs to their fullest extent, dialyzer would probably be more useful than static typing would be on it's own, at least compared to languages like... | For one thing static typing is built into the compilation phase--sort of impossible to miss. Static analysis on the other hand is something that a developer has to run voluntarily.
Likewise, one doesn't have to annotate anything in Elixir; it's entirely down to programmer discretion. In statically typed languages it's... |
23,557,620 | I'm learning Elixir, and the tool 'dialyzer' lets you do static analysis - annotate the function definition with the type specification of the parameters it expects and the output it returns. It's completely optional, but if it were to be used to the full extent possible, how does it match up to good 'ol static typing? | 2014/05/09 | [
"https://Stackoverflow.com/questions/23557620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1375688/"
] | My impression was that dialyzer is not as exact as static typing, meaning that it sometimes doesn't report an error, although it should.
On the plus side, if a dialyzer complains, it's almost always my fault. More often than not, errors are usually due to incorrect typespec.
So, while I don't think dialyzer is as goo... | For one thing static typing is built into the compilation phase--sort of impossible to miss. Static analysis on the other hand is something that a developer has to run voluntarily.
Likewise, one doesn't have to annotate anything in Elixir; it's entirely down to programmer discretion. In statically typed languages it's... |
23,557,620 | I'm learning Elixir, and the tool 'dialyzer' lets you do static analysis - annotate the function definition with the type specification of the parameters it expects and the output it returns. It's completely optional, but if it were to be used to the full extent possible, how does it match up to good 'ol static typing? | 2014/05/09 | [
"https://Stackoverflow.com/questions/23557620",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1375688/"
] | My impression was that dialyzer is not as exact as static typing, meaning that it sometimes doesn't report an error, although it should.
On the plus side, if a dialyzer complains, it's almost always my fault. More often than not, errors are usually due to incorrect typespec.
So, while I don't think dialyzer is as goo... | While static typing takes care of a whole class of bugs, static analysis tools like dialyzer can tell you a lot more about potential pitfalls in your code. Assuming you used specs to their fullest extent, dialyzer would probably be more useful than static typing would be on it's own, at least compared to languages like... |
35,744 | Whist reading an article outlining differences in [OO and Functional programming](http://blog.cleancoder.com/uncle-bob/2014/11/24/FPvsOO.html) I came across function pointers. It has been a while since I completed my Computer Science degree (2003) and so I looked up pointers to refresh my memory.
Pointers are variabl... | 2014/12/29 | [
"https://cs.stackexchange.com/questions/35744",
"https://cs.stackexchange.com",
"https://cs.stackexchange.com/users/26222/"
] | Your question is interesting in several ways, as it requires careful
distinctions for several issues. But your vision seems to me to be
essentially correct. I did not read your reference before writing most
of this answer to avoid biasing my answer.
First, your statement `Variables are symbolic names for memory
addres... | The difference is by definition and application, a pointer is a specialized variable to hold a memory address of another variable; in OO terms a pointer would perhaps be considered to inherit its behavior from a general class called variable. |
8,911 | How do I say 'For God's sakes' in German?
1. Um Gottes willen, warum bist du hingegangen?
Are there other alternatives for it? | 2013/12/12 | [
"https://german.stackexchange.com/questions/8911",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/3480/"
] | >
> Um Gottes willen
>
>
>
is the correct translation. There are alternatives that can be used for the same, some very close, some not so close to the original meaning, like
>
> Um Himmels willen!
>
>
>
(For Heaven's sake!)
>
> Himmelherrgott!
>
>
>
(God in Heaven! coll.)
>
> Herrgott nochmal!
>
>
... | One that was missing:
>
> Meine Güte!
>
>
> |
8,911 | How do I say 'For God's sakes' in German?
1. Um Gottes willen, warum bist du hingegangen?
Are there other alternatives for it? | 2013/12/12 | [
"https://german.stackexchange.com/questions/8911",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/3480/"
] | >
> Um Gottes willen
>
>
>
is the correct translation. There are alternatives that can be used for the same, some very close, some not so close to the original meaning, like
>
> Um Himmels willen!
>
>
>
(For Heaven's sake!)
>
> Himmelherrgott!
>
>
>
(God in Heaven! coll.)
>
> Herrgott nochmal!
>
>
... | Also missing:
>
> Zum Himmel [nochmal]
>
>
>
It's mostly used in questions
>
> Warum, zum Himmel, bist du da hingegangen?
>
>
>
or
>
> Zum Himmel nochmal, warum bist du da hingegangen?
>
>
>
There are also slight differences in the connotation: `zum Himmel` is more angry, `um Gottes willen` is more sc... |
8,911 | How do I say 'For God's sakes' in German?
1. Um Gottes willen, warum bist du hingegangen?
Are there other alternatives for it? | 2013/12/12 | [
"https://german.stackexchange.com/questions/8911",
"https://german.stackexchange.com",
"https://german.stackexchange.com/users/3480/"
] | >
> Um Gottes willen
>
>
>
is the correct translation. There are alternatives that can be used for the same, some very close, some not so close to the original meaning, like
>
> Um Himmels willen!
>
>
>
(For Heaven's sake!)
>
> Himmelherrgott!
>
>
>
(God in Heaven! coll.)
>
> Herrgott nochmal!
>
>
... | >
> Verdammt nochmal!
>
>
>
Ist auch sehr beliebt, auch wenn das nicht die genaue Übersetzung ist. |
5,157 | What can I do in my specific case to show my positive contribution to the site to get my question ban lifted?
I just asked this question several different ways on the SE meta site and the answer that I derived from all of the feedback is that providing good conventional answers that get up votes can unblock my questi... | 2020/05/13 | [
"https://philosophy.meta.stackexchange.com/questions/5157",
"https://philosophy.meta.stackexchange.com",
"https://philosophy.meta.stackexchange.com/users/39778/"
] | Stack Exchange sites are rarely an appropriate place to "try out" new or eclectic theories. Like Wikipedia, Stack Exchange sites are only meant to be secondary sources, quoting and linking to the primary sources of knowledge. Maybe on occasion people will in the process of answering a question give some new novel insig... | Question: "What can I do in my specific case to show my positive contribution to the site to get my question ban lifted?"
Answer (part one): Look for questions that make reference to philosophical literature on topics that interest you. Carefully read the cited philosophical literature, or at least the most important ... |
5,157 | What can I do in my specific case to show my positive contribution to the site to get my question ban lifted?
I just asked this question several different ways on the SE meta site and the answer that I derived from all of the feedback is that providing good conventional answers that get up votes can unblock my questi... | 2020/05/13 | [
"https://philosophy.meta.stackexchange.com/questions/5157",
"https://philosophy.meta.stackexchange.com",
"https://philosophy.meta.stackexchange.com/users/39778/"
] | Phil SE exists because the "work from first principles only" paradigm DOES NOT WORK! It is the nature of humans to be blind to their own unexplored pre-conceptions. We NEED other humans to help us identify, and critique, the assumptions we hide from ourselves. This is a process of dialog, with others both interactively... | Question: "What can I do in my specific case to show my positive contribution to the site to get my question ban lifted?"
Answer (part one): Look for questions that make reference to philosophical literature on topics that interest you. Carefully read the cited philosophical literature, or at least the most important ... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | This appears to be a regression in 1.8.4. While trying this out on my system everything worked fine with virtualenv 1.8.2, then I upgraded and now I get the same error as you. | I got the same error on Windows using virtualenv 1.8.2. Also similar problems with 1.9 and 1.10. What worked for me was to run it once to make the directory, copy missing files, then run again to complete it.
```
virtualenv -p c:\bin\pypy\pypy.exe pypy
copy c:\bin\pypy\lib_pypy \virtualenvs\pypy
copy c:\bin\pypy\lib-p... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | This appears to be a regression in 1.8.4. While trying this out on my system everything worked fine with virtualenv 1.8.2, then I upgraded and now I get the same error as you. | With pypy-4.0.1 and virtualenv 14.0.3, out of the box I get an error:
```
Q:\>c:\pypy\bin\virtualenv -p c:\pypy\pypy.exe my_pypy_virtualenv
Already using interpreter c:\pypy\pypy.exe
New pypy executable in Q:\my_pypy_virtualenv\bin\pypy.exe
debug: OperationError:
debug: operror-type: ImportError
debug: operror-value... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | This appears to be a regression in 1.8.4. While trying this out on my system everything worked fine with virtualenv 1.8.2, then I upgraded and now I get the same error as you. | For `windows` this worked for me :
```py
python -m virtualenv -p <Your PYPY installed path\pypy3.exe> <venv_name>
``` |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | This appears to be a regression in 1.8.4. While trying this out on my system everything worked fine with virtualenv 1.8.2, then I upgraded and now I get the same error as you. | I got the solution
Just use pypy3.exe instead of pypy.exe there are two .exe in downloaded folder
```
virtualenv -p C:/pypy3.7-v7.3.5-win64/pypy3.7-v7.3.5-win64/pypy3w.exe <folder_name>
```
By default python comes with venv. But venv has no -p
Install virtualenv using pip
Then use direct virtualenv -p path/pypy3.exe... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | I got the same error on Windows using virtualenv 1.8.2. Also similar problems with 1.9 and 1.10. What worked for me was to run it once to make the directory, copy missing files, then run again to complete it.
```
virtualenv -p c:\bin\pypy\pypy.exe pypy
copy c:\bin\pypy\lib_pypy \virtualenvs\pypy
copy c:\bin\pypy\lib-p... | With pypy-4.0.1 and virtualenv 14.0.3, out of the box I get an error:
```
Q:\>c:\pypy\bin\virtualenv -p c:\pypy\pypy.exe my_pypy_virtualenv
Already using interpreter c:\pypy\pypy.exe
New pypy executable in Q:\my_pypy_virtualenv\bin\pypy.exe
debug: OperationError:
debug: operror-type: ImportError
debug: operror-value... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | I got the same error on Windows using virtualenv 1.8.2. Also similar problems with 1.9 and 1.10. What worked for me was to run it once to make the directory, copy missing files, then run again to complete it.
```
virtualenv -p c:\bin\pypy\pypy.exe pypy
copy c:\bin\pypy\lib_pypy \virtualenvs\pypy
copy c:\bin\pypy\lib-p... | I got the solution
Just use pypy3.exe instead of pypy.exe there are two .exe in downloaded folder
```
virtualenv -p C:/pypy3.7-v7.3.5-win64/pypy3.7-v7.3.5-win64/pypy3w.exe <folder_name>
```
By default python comes with venv. But venv has no -p
Install virtualenv using pip
Then use direct virtualenv -p path/pypy3.exe... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | For `windows` this worked for me :
```py
python -m virtualenv -p <Your PYPY installed path\pypy3.exe> <venv_name>
``` | With pypy-4.0.1 and virtualenv 14.0.3, out of the box I get an error:
```
Q:\>c:\pypy\bin\virtualenv -p c:\pypy\pypy.exe my_pypy_virtualenv
Already using interpreter c:\pypy\pypy.exe
New pypy executable in Q:\my_pypy_virtualenv\bin\pypy.exe
debug: OperationError:
debug: operror-type: ImportError
debug: operror-value... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | I got the solution
Just use pypy3.exe instead of pypy.exe there are two .exe in downloaded folder
```
virtualenv -p C:/pypy3.7-v7.3.5-win64/pypy3.7-v7.3.5-win64/pypy3w.exe <folder_name>
```
By default python comes with venv. But venv has no -p
Install virtualenv using pip
Then use direct virtualenv -p path/pypy3.exe... | With pypy-4.0.1 and virtualenv 14.0.3, out of the box I get an error:
```
Q:\>c:\pypy\bin\virtualenv -p c:\pypy\pypy.exe my_pypy_virtualenv
Already using interpreter c:\pypy\pypy.exe
New pypy executable in Q:\my_pypy_virtualenv\bin\pypy.exe
debug: OperationError:
debug: operror-type: ImportError
debug: operror-value... |
13,578,593 | running the following command
```
virtualenv -p /usr/local/bin/pypy pypy
```
exits with error like
```
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug:... | 2012/11/27 | [
"https://Stackoverflow.com/questions/13578593",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/578193/"
] | For `windows` this worked for me :
```py
python -m virtualenv -p <Your PYPY installed path\pypy3.exe> <venv_name>
``` | I got the solution
Just use pypy3.exe instead of pypy.exe there are two .exe in downloaded folder
```
virtualenv -p C:/pypy3.7-v7.3.5-win64/pypy3.7-v7.3.5-win64/pypy3w.exe <folder_name>
```
By default python comes with venv. But venv has no -p
Install virtualenv using pip
Then use direct virtualenv -p path/pypy3.exe... |
2,165,996 | A shop offers infinite number of 7 distinct flavours of ice cream. In how many ways can the customer create his/her portion given that order can consist of at most 5 scoops of ice cream and that the case of cup without ice creams is neglected?
Made corrections to my initial solution.
>
> *Solution*:
>
>
> let $A\_... | 2017/02/28 | [
"https://math.stackexchange.com/questions/2165996",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/-1/"
] | No, you can't just divide by $i!$, because not all combinations are counted that many times -- for example for a 4-scoop order, $7^4$ counts "vanilla, vanilla, vanilla, vanilla" only once.
(A different hint that something is awry is that the only prime that divides $7^i$ is $7$, so when $i\ge 2$, $7^i/i!$ is not even ... | You've correctly figured out that $i \neq j \implies A\_i \cap A\_j = \emptyset$; that's a good start!
The last part is counting what each $A\_i$ contains. [Since Henning Makholm has already pointed out the errors I shall only provide an alternative method of counting.]
Converting the problem into our trusty stars an... |
52,331,751 | I referred this link:
[Connecting to GitLab repositories on Android Studio](https://stackoverflow.com/questions/16677931/connecting-to-gitlab-repositories-on-android-studio)
In step 1, I am getting this
>
> <https://gitlab.com/pvijayalakshmi/eemployee.git>
>
>
>
[
and this Tutorial Will help you too.! [Menu Example](http://www.javatpoint.com/android-option-menu-example) And Last go to file click on Invalidate Caches... |
42,802,083 | I have created `menu` folder in `res`. Inside the `menu` folder I created a **menu\_main.xml** file which contains:
```
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
<item androi... | 2017/03/15 | [
"https://Stackoverflow.com/questions/42802083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5406239/"
] | Clean and rebuild your project by going to `Build>Clean` Project.
Go to `File>Invalidate Caches/Restart`. | If you have lot of cache memory store by IDE so IDE can not identify that time you have to `Clean` and `Rebuild` the Project. And if the IDE contains lots of caches memory that time you have to clean that memory the Restart it.
That time you have to go to `File and Select Invalidate Caches and Restart`. |
42,802,083 | I have created `menu` folder in `res`. Inside the `menu` folder I created a **menu\_main.xml** file which contains:
```
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity">
<item androi... | 2017/03/15 | [
"https://Stackoverflow.com/questions/42802083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5406239/"
] | Clean and rebuild your project by going to `Build>Clean` Project.
Go to `File>Invalidate Caches/Restart`. | `android:showAsAction="always"` here you go.! try to follow Proper Android Developer Documentation [Menus](https://developer.android.com/guide/topics/ui/menus.html)
and this Tutorial Will help you too.! [Menu Example](http://www.javatpoint.com/android-option-menu-example) And Last go to file click on Invalidate Caches... |
871,578 | **Question:**
Show that in a group of 10 people (where any 2 are either friends or enemies), there are either 3 mutual friends or 4 mutual enemies, and there are either 3 mutual enemies or 4 mutual friends.
>
> I'm really lost in this question. After hours of just thinking and having no progress, I looked at the an... | 2014/07/19 | [
"https://math.stackexchange.com/questions/871578",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/160534/"
] | $A$ has $9$ people who are each friends or enemies. Let's write this as $$F\_A+E\_A=9.$$
So if $F\_A \le 3$ then this implies $E\_A \ge 6$.
But since $F\_A$ is an integer, $F\_A \not \le 3$ implies $F\_A \ge 4$.
So we can conclude from $$F\_A \le 3 \text{ or } F\_A \not \le 3$$ that $$E\_A \ge 6 \text{ or } F\_A \ge... | $A$ can't have fewer than four friends *and* fewer than six enemies, because with only three friends and five enemies, friends + enemies would be $5+3=8$. |
871,578 | **Question:**
Show that in a group of 10 people (where any 2 are either friends or enemies), there are either 3 mutual friends or 4 mutual enemies, and there are either 3 mutual enemies or 4 mutual friends.
>
> I'm really lost in this question. After hours of just thinking and having no progress, I looked at the an... | 2014/07/19 | [
"https://math.stackexchange.com/questions/871578",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/160534/"
] | $A$ has $9$ people who are each friends or enemies. Let's write this as $$F\_A+E\_A=9.$$
So if $F\_A \le 3$ then this implies $E\_A \ge 6$.
But since $F\_A$ is an integer, $F\_A \not \le 3$ implies $F\_A \ge 4$.
So we can conclude from $$F\_A \le 3 \text{ or } F\_A \not \le 3$$ that $$E\_A \ge 6 \text{ or } F\_A \ge... | Let us assume A has 9 relations with B,C,D,E,F,G,H,I,J (i.e rest of 9 people).
They can be either friends or enemies.
By pigeon hole principle, A has atleast ⌈9/2⌉=5 enemies or friends (not both of course).
Let us now consider A is friends with 5 people i.e with B,C,D,E,F.
Now we know here any 2 are either friends or... |
871,578 | **Question:**
Show that in a group of 10 people (where any 2 are either friends or enemies), there are either 3 mutual friends or 4 mutual enemies, and there are either 3 mutual enemies or 4 mutual friends.
>
> I'm really lost in this question. After hours of just thinking and having no progress, I looked at the an... | 2014/07/19 | [
"https://math.stackexchange.com/questions/871578",
"https://math.stackexchange.com",
"https://math.stackexchange.com/users/160534/"
] | Let us assume A has 9 relations with B,C,D,E,F,G,H,I,J (i.e rest of 9 people).
They can be either friends or enemies.
By pigeon hole principle, A has atleast ⌈9/2⌉=5 enemies or friends (not both of course).
Let us now consider A is friends with 5 people i.e with B,C,D,E,F.
Now we know here any 2 are either friends or... | $A$ can't have fewer than four friends *and* fewer than six enemies, because with only three friends and five enemies, friends + enemies would be $5+3=8$. |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | Is it possible to convert your batch script to PowerShell script? If you run the bat file, its is executed in separate session that doesn't modify PowerShell's env variables.
You can work with env variables very smoothly:
```
PS> Get-ChildItem env:
Name Value
---- ... | You can run a batch script from Powershell just by putting its name, but that won't help you. Environment variables set in the batch script will only be visible from *that batch and anything that batch runs*. Once the control returns back to Powershell the environment variables are gone. You could have the batch script... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | The idea comes from this blog post: [Nothing solves everything – PowerShell and other technologies](http://www.leeholmes.com/blog/2006/05/11/nothing-solves-everything-%e2%80%93-powershell-and-other-technologies/)
Here is my version of this script. It calls a batch file (or any *native* command) and propagates its envi... | You can run a batch script from Powershell just by putting its name, but that won't help you. Environment variables set in the batch script will only be visible from *that batch and anything that batch runs*. Once the control returns back to Powershell the environment variables are gone. You could have the batch script... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | If you grab the [PowerShell Community Extensions](https://github.com/Pscx/Pscx), there is an Invoke-BatchFile command in it that runs the batch file but more importantly, it retains any environment variable modifications made by the batch file e.g.:
```
>Invoke-BatchFile 'C:\Program Files (x86)\Microsoft Visual Studio... | You can run a batch script from Powershell just by putting its name, but that won't help you. Environment variables set in the batch script will only be visible from *that batch and anything that batch runs*. Once the control returns back to Powershell the environment variables are gone. You could have the batch script... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | @Roman Kuzmin's solution works great, but piping the command output to nul can kind of leave you in the dark. So I made a few tweaks to allow for the command output to display normally, and instead pipe the env vars to a temp file to read in afterwards:
```bsh
param
(
[Parameter(Mandatory=$true)] [string]
$Com... | You can run a batch script from Powershell just by putting its name, but that won't help you. Environment variables set in the batch script will only be visible from *that batch and anything that batch runs*. Once the control returns back to Powershell the environment variables are gone. You could have the batch script... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | The idea comes from this blog post: [Nothing solves everything – PowerShell and other technologies](http://www.leeholmes.com/blog/2006/05/11/nothing-solves-everything-%e2%80%93-powershell-and-other-technologies/)
Here is my version of this script. It calls a batch file (or any *native* command) and propagates its envi... | Is it possible to convert your batch script to PowerShell script? If you run the bat file, its is executed in separate session that doesn't modify PowerShell's env variables.
You can work with env variables very smoothly:
```
PS> Get-ChildItem env:
Name Value
---- ... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | If you grab the [PowerShell Community Extensions](https://github.com/Pscx/Pscx), there is an Invoke-BatchFile command in it that runs the batch file but more importantly, it retains any environment variable modifications made by the batch file e.g.:
```
>Invoke-BatchFile 'C:\Program Files (x86)\Microsoft Visual Studio... | Is it possible to convert your batch script to PowerShell script? If you run the bat file, its is executed in separate session that doesn't modify PowerShell's env variables.
You can work with env variables very smoothly:
```
PS> Get-ChildItem env:
Name Value
---- ... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | Is it possible to convert your batch script to PowerShell script? If you run the bat file, its is executed in separate session that doesn't modify PowerShell's env variables.
You can work with env variables very smoothly:
```
PS> Get-ChildItem env:
Name Value
---- ... | @Roman Kuzmin's solution works great, but piping the command output to nul can kind of leave you in the dark. So I made a few tweaks to allow for the command output to display normally, and instead pipe the env vars to a temp file to read in afterwards:
```bsh
param
(
[Parameter(Mandatory=$true)] [string]
$Com... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | The idea comes from this blog post: [Nothing solves everything – PowerShell and other technologies](http://www.leeholmes.com/blog/2006/05/11/nothing-solves-everything-%e2%80%93-powershell-and-other-technologies/)
Here is my version of this script. It calls a batch file (or any *native* command) and propagates its envi... | @Roman Kuzmin's solution works great, but piping the command output to nul can kind of leave you in the dark. So I made a few tweaks to allow for the command output to display normally, and instead pipe the env vars to a temp file to read in afterwards:
```bsh
param
(
[Parameter(Mandatory=$true)] [string]
$Com... |
4,384,814 | I have one big batch script which sets bunch of environment variables.
I want to call that batch script from powershell, that way I can get benefits of both i.e. enviorment variable set by my script and powershell. | 2010/12/08 | [
"https://Stackoverflow.com/questions/4384814",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2302649/"
] | If you grab the [PowerShell Community Extensions](https://github.com/Pscx/Pscx), there is an Invoke-BatchFile command in it that runs the batch file but more importantly, it retains any environment variable modifications made by the batch file e.g.:
```
>Invoke-BatchFile 'C:\Program Files (x86)\Microsoft Visual Studio... | @Roman Kuzmin's solution works great, but piping the command output to nul can kind of leave you in the dark. So I made a few tweaks to allow for the command output to display normally, and instead pipe the env vars to a temp file to read in afterwards:
```bsh
param
(
[Parameter(Mandatory=$true)] [string]
$Com... |
32,425,547 | Sorry for my english. I try using libruary OKhttp, and i use **https** for post reqest. Now i have error, when i try post my example, this is error:
```
java.net.UnknownServiceException: Unable to find acceptable protocols. isFallback=false, modes=[ConnectionSpec(cipherSuites=[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, ... | 2015/09/06 | [
"https://Stackoverflow.com/questions/32425547",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/5193496/"
] | Actually the problem is **TLSv1.1** and **TLSv1.2** not enabled on **Android <5** by default and to connect using these latest secure protocol we must have to enable in Android <5 devices.
Because by default android device pick the highest supported protocol to establish the connection but the highest/ newest secure ... | You need to use `ProviderInstaller` to check and install if needed TLS support. Use something like this on your entry `Activity` and it should do the trick. Check more info [here](https://developer.android.com/training/articles/security-gms-provider.html)
```
protected void checkTls() {
if (android.os.Build.VERSIO... |
21,042,325 | I want to use a java class in JSP. I placed the java class file in `WEB-INF/classes/hello.class.`
In `index.jsp` i'm creating the object for `hello` class.
I'm getting this error `"hello cannot be resolved to a type"`. Here is my jsp code,
```
<%@ page import="hello" %>
<%
hello h = new hello();
out.print(h.... | 2014/01/10 | [
"https://Stackoverflow.com/questions/21042325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1252297/"
] | Here's a yasnippet that you can use:
```
# -*- mode: snippet -*-
# name: huge_comment
# key: hc
# --
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%${1:$(repeat-char (- 33 (/ (length yas-text) 2)) " ")}$1${1:$(repeat-char (- 74 (length yas-text) (- 33 (/ (length yas-text) 2))) " ")... | The question was whether it is possible in emacs-lisp. Yes it is. There are several ways to do it.
I will show one way where you can also comment several lines of text.
Maybe, in the first line there is the title of the part of text and in the second one there is the author of this part.
A better way would be to advic... |
21,042,325 | I want to use a java class in JSP. I placed the java class file in `WEB-INF/classes/hello.class.`
In `index.jsp` i'm creating the object for `hello` class.
I'm getting this error `"hello cannot be resolved to a type"`. Here is my jsp code,
```
<%@ page import="hello" %>
<%
hello h = new hello();
out.print(h.... | 2014/01/10 | [
"https://Stackoverflow.com/questions/21042325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1252297/"
] | Emacs comes with the command `comment-box` for this purpose. It produces centered comment boxes, although the width of the box varies depending on the content. E.g., with the region set around the following line:
```
This is a comment
```
when you call `M-x comment-box` the text is transformed to:
```
;;;;;;;;;;;;;... | Here's a yasnippet that you can use:
```
# -*- mode: snippet -*-
# name: huge_comment
# key: hc
# --
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%${1:$(repeat-char (- 33 (/ (length yas-text) 2)) " ")}$1${1:$(repeat-char (- 74 (length yas-text) (- 33 (/ (length yas-text) 2))) " ")... |
21,042,325 | I want to use a java class in JSP. I placed the java class file in `WEB-INF/classes/hello.class.`
In `index.jsp` i'm creating the object for `hello` class.
I'm getting this error `"hello cannot be resolved to a type"`. Here is my jsp code,
```
<%@ page import="hello" %>
<%
hello h = new hello();
out.print(h.... | 2014/01/10 | [
"https://Stackoverflow.com/questions/21042325",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1252297/"
] | Emacs comes with the command `comment-box` for this purpose. It produces centered comment boxes, although the width of the box varies depending on the content. E.g., with the region set around the following line:
```
This is a comment
```
when you call `M-x comment-box` the text is transformed to:
```
;;;;;;;;;;;;;... | The question was whether it is possible in emacs-lisp. Yes it is. There are several ways to do it.
I will show one way where you can also comment several lines of text.
Maybe, in the first line there is the title of the part of text and in the second one there is the author of this part.
A better way would be to advic... |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | It depends on the size of your project. Actually, Windev works well with HyperFileSQL. It has been designed for it ! By using another DBMS, you cut yourself some feature such as direct-reading/modifying/deleting in your tables.
Your performances will decrease significantly as soon as you have a nice amount of records ... | FYI: New in Windev version 19: Hyperfile SQL is ACID. |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | You should carefully consider what sql functions you will use. For example deg2rad, rad2deg, ... not working correctly.
Also if you want to use it on a mobile device (Windev Mobile for iOS or Android) you should use SQLLite. Because HyperFile uses a lot of memory and it will be a problem on mobile. | FYI: New in Windev version 19: Hyperfile SQL is ACID. |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | If you want a free database, use PostgreSQL, the Windev connector for PostgreSQL is free to download and install on your windev as a replacement for HFSQL, it will be way more powerful while using the usual hFunctions like you would with HFSQL, plus you will find a ton of docs on the web to do powerful stuff.
HFSQL is... | FYI: New in Windev version 19: Hyperfile SQL is ACID. |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | Adding upon what Samuël Tremblay already wrote, I would say that after 2+ years of using Windev with HFSQL (old name is HyperFile SQL), here are my conclusions (I have used Windev versions 20 and 22):
**PROS:**
* replication of a database to another server is rather easy to setup. You can choose to replicate a whole ... | FYI: New in Windev version 19: Hyperfile SQL is ACID. |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | You should carefully consider what sql functions you will use. For example deg2rad, rad2deg, ... not working correctly.
Also if you want to use it on a mobile device (Windev Mobile for iOS or Android) you should use SQLLite. Because HyperFile uses a lot of memory and it will be a problem on mobile. | In WinDev Mobile 18 and up, you can use Hyperfile on the device. And it is recommended from me, because it is faster and SQLLite restrict blob-size to 1MB!!
@Spek memory usage of HyperFile on the phone? Can you give me any values? I think if you want to make a full feature APP you cannot ignore the benefits of HyperFi... |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | It depends on the size of your project. Actually, Windev works well with HyperFileSQL. It has been designed for it ! By using another DBMS, you cut yourself some feature such as direct-reading/modifying/deleting in your tables.
Your performances will decrease significantly as soon as you have a nice amount of records ... | You should carefully consider what sql functions you will use. For example deg2rad, rad2deg, ... not working correctly.
Also if you want to use it on a mobile device (Windev Mobile for iOS or Android) you should use SQLLite. Because HyperFile uses a lot of memory and it will be a problem on mobile. |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | It depends on the size of your project. Actually, Windev works well with HyperFileSQL. It has been designed for it ! By using another DBMS, you cut yourself some feature such as direct-reading/modifying/deleting in your tables.
Your performances will decrease significantly as soon as you have a nice amount of records ... | If you want a free database, use PostgreSQL, the Windev connector for PostgreSQL is free to download and install on your windev as a replacement for HFSQL, it will be way more powerful while using the usual hFunctions like you would with HFSQL, plus you will find a ton of docs on the web to do powerful stuff.
HFSQL is... |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | Adding upon what Samuël Tremblay already wrote, I would say that after 2+ years of using Windev with HFSQL (old name is HyperFile SQL), here are my conclusions (I have used Windev versions 20 and 22):
**PROS:**
* replication of a database to another server is rather easy to setup. You can choose to replicate a whole ... | If you want a free database, use PostgreSQL, the Windev connector for PostgreSQL is free to download and install on your windev as a replacement for HFSQL, it will be way more powerful while using the usual hFunctions like you would with HFSQL, plus you will find a ton of docs on the web to do powerful stuff.
HFSQL is... |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | It depends on the size of your project. Actually, Windev works well with HyperFileSQL. It has been designed for it ! By using another DBMS, you cut yourself some feature such as direct-reading/modifying/deleting in your tables.
Your performances will decrease significantly as soon as you have a nice amount of records ... | Adding upon what Samuël Tremblay already wrote, I would say that after 2+ years of using Windev with HFSQL (old name is HyperFile SQL), here are my conclusions (I have used Windev versions 20 and 22):
**PROS:**
* replication of a database to another server is rather easy to setup. You can choose to replicate a whole ... |
11,209,457 | At my work, my co-workers are considering using hyperfile as a database server for a windev project. I don't even know that kind of database, it's from PCSOFT, the company that develops windev.
Since windev can also work with microsoft sql server, I'm looking for advice on that kind of database (performance, stability... | 2012/06/26 | [
"https://Stackoverflow.com/questions/11209457",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/918714/"
] | In WinDev Mobile 18 and up, you can use Hyperfile on the device. And it is recommended from me, because it is faster and SQLLite restrict blob-size to 1MB!!
@Spek memory usage of HyperFile on the phone? Can you give me any values? I think if you want to make a full feature APP you cannot ignore the benefits of HyperFi... | FYI: New in Windev version 19: Hyperfile SQL is ACID. |
10,539,966 | I have a form with over 100 dynamically named fields, that post to a php file, I want to take all the fields that are posted to the php file which is currently:
```
Array ( [option_page] => plugin_options
[action] => update
[_wpnonce] => a51bfc281a
[_wp_http_referer] =>/wp-admin/options-general.php page=plug.php
[... | 2012/05/10 | [
"https://Stackoverflow.com/questions/10539966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321941/"
] | You mat try this
```
$start = array_search("_wp_http_referer",array_keys($_POST))+1;
$end = array_search("submit",array_keys($_POST))-1;
$newArr=array_slice($_POST, $start, $end);
foreach($newArr as $k=>$v)
{
// $k is the key name and $v is the value of that key
//echo $k."=".$v."<br />";
$val=mysql_real... | ```
$counter = 0;
foreach($_POST as $key=>$value)
{
if($key == "_wp_http_referer")
{
$counter = 1;
}
if($counter == "1")
{
if($key != "submit")
{
mysql_query("INSERT INTO table_name(id, option_name, value) VALUES ('','".mysql_real_escape_string($key)."','".mysql_real_escape_string($value)."')");
}
}
}
``` |
10,539,966 | I have a form with over 100 dynamically named fields, that post to a php file, I want to take all the fields that are posted to the php file which is currently:
```
Array ( [option_page] => plugin_options
[action] => update
[_wpnonce] => a51bfc281a
[_wp_http_referer] =>/wp-admin/options-general.php page=plug.php
[... | 2012/05/10 | [
"https://Stackoverflow.com/questions/10539966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321941/"
] | You mat try this
```
$start = array_search("_wp_http_referer",array_keys($_POST))+1;
$end = array_search("submit",array_keys($_POST))-1;
$newArr=array_slice($_POST, $start, $end);
foreach($newArr as $k=>$v)
{
// $k is the key name and $v is the value of that key
//echo $k."=".$v."<br />";
$val=mysql_real... | You could do something like this:
```
$discard_array = array('option_page', 'action', '_wpnonce', '_wp_http_referer', 'submit', '__qca', 's_vi');
$good_array = array();
foreach ($_POST as $key => $val)
{
if (!in_array($key, $discard_array)) $good_array[$key] = $val;
}
// use $good_array to insert your data into d... |
10,539,966 | I have a form with over 100 dynamically named fields, that post to a php file, I want to take all the fields that are posted to the php file which is currently:
```
Array ( [option_page] => plugin_options
[action] => update
[_wpnonce] => a51bfc281a
[_wp_http_referer] =>/wp-admin/options-general.php page=plug.php
[... | 2012/05/10 | [
"https://Stackoverflow.com/questions/10539966",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1321941/"
] | You mat try this
```
$start = array_search("_wp_http_referer",array_keys($_POST))+1;
$end = array_search("submit",array_keys($_POST))-1;
$newArr=array_slice($_POST, $start, $end);
foreach($newArr as $k=>$v)
{
// $k is the key name and $v is the value of that key
//echo $k."=".$v."<br />";
$val=mysql_real... | The keys you want seem to be all numeric, so you could only store those. Like others before me, I also suggest using PDO for added security and convenience.
```
$dbh = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass);
foreach($_POST as $key => $value) {
if(preg_match("/^[0-9]+$/", $key) {
$stmt = ... |
16,865,294 | I am new to PHP and developing a project called BaboonHut.com, I am coding it in PHP as the best way to learn is by just diving in. Anyway to the question, the snippet of code below currently gets the name of all the folders in a certain location and displays some information, however the items are currently displaying... | 2013/05/31 | [
"https://Stackoverflow.com/questions/16865294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2433780/"
] | This will grab a list of files from a directory put them into an array then sort the array by date.
```
<?php
$dir = 'resources/';
$files = [];
foreach(glob($dir.'*', GLOB_ONLYDIR) as $resdir) {
$files[] = [
"name" => $resdir,
"time" => filectime($resdir)
];
}
// Sort files by date
usort($fil... | Using Creation Date
```
$files = glob(__DIR__ . '/*', GLOB_ONLYDIR);
// Using Creation Date
usort($files, function ($a, $b) {
return filetime($a) - filetime($b);
});
foreach($files as $file) {
printf("%s : %s\n", date("r", fileatime($file)), $file);
}
function filetime($file) {
return PHP_OS == "win" ?... |
16,865,294 | I am new to PHP and developing a project called BaboonHut.com, I am coding it in PHP as the best way to learn is by just diving in. Anyway to the question, the snippet of code below currently gets the name of all the folders in a certain location and displays some information, however the items are currently displaying... | 2013/05/31 | [
"https://Stackoverflow.com/questions/16865294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2433780/"
] | This will grab a list of files from a directory put them into an array then sort the array by date.
```
<?php
$dir = 'resources/';
$files = [];
foreach(glob($dir.'*', GLOB_ONLYDIR) as $resdir) {
$files[] = [
"name" => $resdir,
"time" => filectime($resdir)
];
}
// Sort files by date
usort($fil... | You can't beat [**`DirectoryIterator`**](http://php.net/manual/pt_BR/class.directoryiterator.php).
```
$files = array();
$dir = new DirectoryIterator('.');
foreach ($dir as $fileinfo) {
// Add only directories into a associative array, that key is it `MTime`
if($fileinfo->isDir()){
$files[$fileinfo->getMT... |
16,865,294 | I am new to PHP and developing a project called BaboonHut.com, I am coding it in PHP as the best way to learn is by just diving in. Anyway to the question, the snippet of code below currently gets the name of all the folders in a certain location and displays some information, however the items are currently displaying... | 2013/05/31 | [
"https://Stackoverflow.com/questions/16865294",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2433780/"
] | You can't beat [**`DirectoryIterator`**](http://php.net/manual/pt_BR/class.directoryiterator.php).
```
$files = array();
$dir = new DirectoryIterator('.');
foreach ($dir as $fileinfo) {
// Add only directories into a associative array, that key is it `MTime`
if($fileinfo->isDir()){
$files[$fileinfo->getMT... | Using Creation Date
```
$files = glob(__DIR__ . '/*', GLOB_ONLYDIR);
// Using Creation Date
usort($files, function ($a, $b) {
return filetime($a) - filetime($b);
});
foreach($files as $file) {
printf("%s : %s\n", date("r", fileatime($file)), $file);
}
function filetime($file) {
return PHP_OS == "win" ?... |
22,815,589 | Not sure to post here or webmasters, I apologize if I got wrong.
Does anyone know of a way to execute a short code on a image click?
I can not find anything on how to do this
Edit: My apologizes
Yes Shortcode means wordpress shortcode | 2014/04/02 | [
"https://Stackoverflow.com/questions/22815589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1304458/"
] | ==== Template page ====
```
<script>
function executeShortCode() {
var url="<?php echo get_template_directory_uri(); ?>/yourAjaxPage.php";
jQuery.post(url,function(data){
console.log(data);
});
}
</script>
```
==== Ajax page ====
```
//yourAjaxPage.php
<?php echo do_shortcode('[yourshortcode]'); ?>
`... | Get image element by it's id and attach the handler at `onclick` event something like
**html**
```
<img id="myImg" src="" />
```
**JS**
```
<script>
document.getElementById('myImg').onclick = function (){
//execute your short code here.
}
</script>
``` |
22,815,589 | Not sure to post here or webmasters, I apologize if I got wrong.
Does anyone know of a way to execute a short code on a image click?
I can not find anything on how to do this
Edit: My apologizes
Yes Shortcode means wordpress shortcode | 2014/04/02 | [
"https://Stackoverflow.com/questions/22815589",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1304458/"
] | Because I just couldn't find answers online to my own question on this, I thought I'd post my solution. Using wp\_localize\_script to load my shortcodes, here is my example:
```
// PHP (in functions.php)
<?php
add_action( 'wp_enqueue_scripts', 'custom_add_scripts' );
function custom_add_scripts() {
wp_register_scrip... | Get image element by it's id and attach the handler at `onclick` event something like
**html**
```
<img id="myImg" src="" />
```
**JS**
```
<script>
document.getElementById('myImg').onclick = function (){
//execute your short code here.
}
</script>
``` |
14,358,525 | I have a field with data like this. Here is an example row:
London;Greater London;London City
I would like to end up with the following facets
London (count 10)
Greater London (count 5)
London City (count 2)
Im just stuck as to the right query to use.
Can Solr have multiple facets within a single field?
Cheers
k | 2013/01/16 | [
"https://Stackoverflow.com/questions/14358525",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/264975/"
] | You have two options.
The best one is to use multi-valued fields. Which means you need to split your content coming in on the semi-colons. This will depend on how you are getting data in. For example, CSV allows you to just declare the field as multi-value and splitting on semi-colon. DataImportHandler has RegexTrans... | I found a pretty good option based on Alexandre Rafalovitch's suggestion. Instead of getting into Java, I created some simple javascript and called it from a StatelessScriptUpdateProcessorFactory. In my case, I have a couple fields I need to split this way, so some of my code reflects that.
I should also point out tha... |
477,721 | In many Elo rating systems, the expected value for player A with rating $R\_A$ against an opponent with rating $R\_B$ is
$$E\_A = \frac1{1+10^{(R\_B - R\_A)/c}}$$
The original Elo system is based on a normal distribution instead of a logistic distribution, so it used the error function instead of the logistic functio... | 2020/07/17 | [
"https://stats.stackexchange.com/questions/477721",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/291650/"
] | Let me answer your second question, **why they switched to the logistic function.**
The Elo rating system comes from the Chess world. The initial Elo's premise was a normal distribution, but since more chess statistics became available, FIDE (The World Chess Federation) realized that it was better to consider the logis... | This subject is discussed in Prof. Mark E. Glickman, [A Comprehensive Guide To Chess Ratings](https://www.glicko.net/research/acjpaper.pdf).
>
> It appears as though there is very little distinction between the
> shape of the logistic distribution in Figure 2 and the normal
> distribution in Figure 4. Figure 5 shows ... |
477,721 | In many Elo rating systems, the expected value for player A with rating $R\_A$ against an opponent with rating $R\_B$ is
$$E\_A = \frac1{1+10^{(R\_B - R\_A)/c}}$$
The original Elo system is based on a normal distribution instead of a logistic distribution, so it used the error function instead of the logistic functio... | 2020/07/17 | [
"https://stats.stackexchange.com/questions/477721",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/291650/"
] | Let me answer your second question, **why they switched to the logistic function.**
The Elo rating system comes from the Chess world. The initial Elo's premise was a normal distribution, but since more chess statistics became available, FIDE (The World Chess Federation) realized that it was better to consider the logis... | >
> The original Elo system is based on a normal distribution instead of a logistic distribution
>
>
> ...
>
>
> If this still works, then why would they have switched to the logistic function?
>
>
>
There hasn't been a switch. The FIDE uses Elo's original system for which a table is computed. See the [Fide ha... |
477,721 | In many Elo rating systems, the expected value for player A with rating $R\_A$ against an opponent with rating $R\_B$ is
$$E\_A = \frac1{1+10^{(R\_B - R\_A)/c}}$$
The original Elo system is based on a normal distribution instead of a logistic distribution, so it used the error function instead of the logistic functio... | 2020/07/17 | [
"https://stats.stackexchange.com/questions/477721",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/291650/"
] | This subject is discussed in Prof. Mark E. Glickman, [A Comprehensive Guide To Chess Ratings](https://www.glicko.net/research/acjpaper.pdf).
>
> It appears as though there is very little distinction between the
> shape of the logistic distribution in Figure 2 and the normal
> distribution in Figure 4. Figure 5 shows ... | >
> The original Elo system is based on a normal distribution instead of a logistic distribution
>
>
> ...
>
>
> If this still works, then why would they have switched to the logistic function?
>
>
>
There hasn't been a switch. The FIDE uses Elo's original system for which a table is computed. See the [Fide ha... |
8,760,974 | I am developing a game on Android that involves a grid of objects. Right now I am using an array to store the objects, like this:
```
public class ObjectBuffer {
private final Object[] buffer;
private final int playfieldWidth;
ObjectBuffer(int playfieldWidth, int playfieldHeight) {
super();
this.buffe... | 2012/01/06 | [
"https://Stackoverflow.com/questions/8760974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/618821/"
] | You're calling `type.getClass()` but at that point `type` is *guaranteed* to be null. No other code will have had a chance to set it yet, so how did you expect it to work? You say you're confused about why it's null - but you haven't shown anything which would make it non-null.
I suspect you want something like:
```
... | You exactly explained the problem. The `type` is null. So, what do you have to do? Make it not null. Modify constructor as folloiwing:
```
protected ExcelReader(T type){
super();
this.type = type;
resolver=ResolverFactory.createResolver(type.getClass());
}
```
Now your subclass must send this paramete... |
8,760,974 | I am developing a game on Android that involves a grid of objects. Right now I am using an array to store the objects, like this:
```
public class ObjectBuffer {
private final Object[] buffer;
private final int playfieldWidth;
ObjectBuffer(int playfieldWidth, int playfieldHeight) {
super();
this.buffe... | 2012/01/06 | [
"https://Stackoverflow.com/questions/8760974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/618821/"
] | You're calling `type.getClass()` but at that point `type` is *guaranteed* to be null. No other code will have had a chance to set it yet, so how did you expect it to work? You say you're confused about why it's null - but you haven't shown anything which would make it non-null.
I suspect you want something like:
```
... | I don't think you are trying to use the generics for the thing they were intended to use. Generics are a kind of "syntactic sugar" usable **in compile-time only** as an additional level of code validation. What you seem to want to achieve - correct me if I am wrong - is to provide the generic type to your POIReader cla... |
8,760,974 | I am developing a game on Android that involves a grid of objects. Right now I am using an array to store the objects, like this:
```
public class ObjectBuffer {
private final Object[] buffer;
private final int playfieldWidth;
ObjectBuffer(int playfieldWidth, int playfieldHeight) {
super();
this.buffe... | 2012/01/06 | [
"https://Stackoverflow.com/questions/8760974",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/618821/"
] | I don't think you are trying to use the generics for the thing they were intended to use. Generics are a kind of "syntactic sugar" usable **in compile-time only** as an additional level of code validation. What you seem to want to achieve - correct me if I am wrong - is to provide the generic type to your POIReader cla... | You exactly explained the problem. The `type` is null. So, what do you have to do? Make it not null. Modify constructor as folloiwing:
```
protected ExcelReader(T type){
super();
this.type = type;
resolver=ResolverFactory.createResolver(type.getClass());
}
```
Now your subclass must send this paramete... |
55,206,571 | I'm using Xamarin/Android (not Forms), trying to integrate the camera2basic api sample into my project.
<https://developer.xamarin.com/samples/monodroid/android5.0/Camera2Basic/>
I changed nothing in the sample, and I am only interested in using the main camera and only taking a snapshot.
My project has a MainActivit... | 2019/03/17 | [
"https://Stackoverflow.com/questions/55206571",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/6539050/"
] | As Alex Cohn pointed out, and I found when I read this article:
<https://hofmadresu.com/2018/09/11/android-camera2-trials-and-tribulations.html>
Which is an excellent resource BTW, the sample code was not releasing the stillCaptureBuilder so it can be used the second time.
```
public void CaptureStillPicture()
... | Have **stillCaptureBuilder** re-initialized when you restore the camera fragment. Even better, make sure you clean the **stillCaptureBuilder** up when the fragment is destroyed. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.