qid
int64
1
74.6M
question
stringlengths
45
24.2k
date
stringlengths
10
10
metadata
stringlengths
101
178
response_j
stringlengths
32
23.2k
response_k
stringlengths
21
13.2k
230,343
I asked a question here [how can i see if my data are coming from two different population?](https://stats.stackexchange.com/questions/230255/how-can-i-see-if-my-data-are-coming-from-two-different-population) and seems like I cannot correctly communicate and the person who is writing to me is making me confused. So I...
2016/08/17
['https://stats.stackexchange.com/questions/230343', 'https://stats.stackexchange.com', 'https://stats.stackexchange.com/users/127951/']
From reading your previous post, I see that you have two groups with 15 subjects, each with multiple observations (3 each). Each subject appears in each group, except subject 15 who has 0 observation in group 1. So, basically, you have a paired design. A way to test whether Group 1 and Group 2 are different is by usin...
For comparing means of populations with different samples, the standard practice is applying a two-sample location test. Depending on the size of your data, you could implement either a t-test or a z-test (t-test is recommended for smaller sample sizes). In any case, since you want to find out if the groups are *diff...
230,343
I asked a question here [how can i see if my data are coming from two different population?](https://stats.stackexchange.com/questions/230255/how-can-i-see-if-my-data-are-coming-from-two-different-population) and seems like I cannot correctly communicate and the person who is writing to me is making me confused. So I...
2016/08/17
['https://stats.stackexchange.com/questions/230343', 'https://stats.stackexchange.com', 'https://stats.stackexchange.com/users/127951/']
When thinking about a statistical problem, you should ask yourself what experiment you have. You have two groups, with different sample size. You can calculate arithmetic mean over all your replicates. You will be able to use the means for comparison. 1:) Check if you can assume normality. Because your data is simple...
For comparing means of populations with different samples, the standard practice is applying a two-sample location test. Depending on the size of your data, you could implement either a t-test or a z-test (t-test is recommended for smaller sample sizes). In any case, since you want to find out if the groups are *diff...
4,490,227
Does anyone know how to build automatic tagging (blog post/document) algorithm? Any example will be appreciated.
2010/12/20
['https://Stackoverflow.com/questions/4490227', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/548690/']
Heroku creates a database for each application deployed to it (no need to run `heroku rake db:create`. Here are the commands you should be using to deploy a Rails application to Heroku: ``` git init git add . git commit -m "initial import" heroku create git push heroku master heroku rake db:migrate heroku open ```
I believe Heroku creates a new database.yml for you on deploy if you have no production according to the [Docs](http://groups.google.com/group/heroku/browse_thread/thread/cfa3ad5263a9e967?pli=1).
4,490,227
Does anyone know how to build automatic tagging (blog post/document) algorithm? Any example will be appreciated.
2010/12/20
['https://Stackoverflow.com/questions/4490227', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/548690/']
It's not telling you that you have no Database. It's telling you that it can't find a specific record ``` (Couldn't find Drummer with ID=1): ``` It's likely that you have code that's doing `Drummer.find(1)` and that doesn't exist on your production environment. Recommend you either: * create a seeds file (heroku...
Heroku creates a database for each application deployed to it (no need to run `heroku rake db:create`. Here are the commands you should be using to deploy a Rails application to Heroku: ``` git init git add . git commit -m "initial import" heroku create git push heroku master heroku rake db:migrate heroku open ```
4,490,227
Does anyone know how to build automatic tagging (blog post/document) algorithm? Any example will be appreciated.
2010/12/20
['https://Stackoverflow.com/questions/4490227', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/548690/']
It's not telling you that you have no Database. It's telling you that it can't find a specific record ``` (Couldn't find Drummer with ID=1): ``` It's likely that you have code that's doing `Drummer.find(1)` and that doesn't exist on your production environment. Recommend you either: * create a seeds file (heroku...
I believe Heroku creates a new database.yml for you on deploy if you have no production according to the [Docs](http://groups.google.com/group/heroku/browse_thread/thread/cfa3ad5263a9e967?pli=1).
36,534,043
Given day in week (let's say Monday), I need to find closest date (in future) to given date (for example 9-4-2016) which is this day in week (for these examples, it should be 11-4-2016).
2016/04/10
['https://Stackoverflow.com/questions/36534043', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1767332/']
This is a pure Ruby solution. ``` require 'date' d = Date.strptime('9-4-2016', '%d-%m-%Y') #=> #<Date: 2016-04-09 ((2457488j,0s,0n),+0s,2299161j)> d + (1 - d.wday) % 7 #=> #<Date: 2016-04-11 ((2457490j,0s,0n),+0s,2299161j)> ``` `1` is Monday's offset. `d.wday #=> 6`. I have assumed that if the date falls on ...
You can find this date in the nearest week of your `date`: ``` date = Date.parse('9-4-2016') (date..date + 6).find {|d| d.strftime("%A") == "Monday"} #=> Mon, 11 Apr 2016 ```
4,030,546
I'm developing a football manager website, but I can't figure out how to use properly the background-thread plugin and Quartz plugin (there is no much docs). My problem is.. I have a Controller of a Match class, with a function that I need to start at some time. With quartz I have tried to create a job but then I canno...
2010/10/27
['https://Stackoverflow.com/questions/4030546', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/488413/']
(March 2012) It looks like this is finally going to be possible soon -- git 1.7.10 is going to support this syntax in `.gitconfig`: ``` [include] path = /path/to/file ``` See [here](https://github.com/gitster/git/commit/9b25a0b52e09400719366f0a33d0d0da98bbf7b0) for a detailed description of the git change and it...
(March 2012): As mentioned in [Mike Morearty](https://stackoverflow.com/users/179675/mike-morearty)'s [answer](https://stackoverflow.com/a/9733336/6309) (which I upvoted), git 1.7.10+ will support this feature. --- Original answer (October 2010): Currently, no. As I mentioned in [Is it possible to include a file i...
71,266,586
I try to see when I click navbar then I want to see the topic, but it is showing the topic under navbar. I try to give margin, but it doesn't work. Is someone help me with how can I solve this problem. [Web site showing like that](https://i.stack.imgur.com/g4vki.png) [But I want to see like that](https://i.stack.imgu...
2022/02/25
['https://Stackoverflow.com/questions/71266586', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14349341/']
Here is a generator which meets your requirements: ``` def dict_generator(dictionary, previous=None): previous = previous[:] if previous else [] if isinstance(dictionary, dict): for key, value in dictionary.items(): if isinstance(value, dict): for d in dict_generator(value,...
Preparation: ------------ [`jsonpath-ng`](https://github.com/h2non/jsonpath-ng) can parse even such a nested json object very easily. It can be installed by the following command: ```sh pip install --upgrade jsonpath-ng ``` Code: ----- ```py import jsonpath_ng as jp # Create the sample json data = {"Assets/Custom...
71,266,586
I try to see when I click navbar then I want to see the topic, but it is showing the topic under navbar. I try to give margin, but it doesn't work. Is someone help me with how can I solve this problem. [Web site showing like that](https://i.stack.imgur.com/g4vki.png) [But I want to see like that](https://i.stack.imgu...
2022/02/25
['https://Stackoverflow.com/questions/71266586', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/14349341/']
Here is a generator which meets your requirements: ``` def dict_generator(dictionary, previous=None): previous = previous[:] if previous else [] if isinstance(dictionary, dict): for key, value in dictionary.items(): if isinstance(value, dict): for d in dict_generator(value,...
What almost helped me completely is that piece of code <https://stackoverflow.com/a/59186999/18018783> ``` def dict_generator(indict, pre=None): pre = pre[:] if pre else [] if isinstance(indict, dict): for key, value in indict.items(): if isinstance(value, dict): for d in dict_generator(value, ...
38,659,730
We have an extremely large nvarchar(max) field that contains html. Within this html is an img tag. Example: ``` <img style="float:right" src="data:image/png;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/7gAOQW.... ``` The length of this column is 1645151, although what is being replace is a bit less than this, but not a lot. ...
2016/07/29
['https://Stackoverflow.com/questions/38659730', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1192535/']
I had the same error, but on a different function. The fault was that my pattern has longer than my expression, which means that your search pattern will be truncated. I hope this helps someone. Also, make sure you put pattern and expression in the right location of your function.
Instead of doing the replace, can you rebuilt the entire field by parsing out the rest of the img tag? Something like: ``` declare @Field nvarchar(max) = '<img style="float:right" src="data:image/png;base64,/9j/4AAQSkZJRgA....BAQEBLAEsAAD/7gAOQW" />' declare @Source nvarchar(max) = 'data:image/png;base64,/9j/4AAQSkZJ...
13,630,967
I found two bubble algorithms but I not sure which one is right... First example: ``` for (int i = 1; i < input.Length-1; i++) for (int j = 0; j < input.Length - 1 - i; j++) if (input[j] > input[j + 1]) swap(input, j, j + 1); ``` Second example: ``` for (int i = 1; i < input.Length-1; i++) ...
2012/11/29
['https://Stackoverflow.com/questions/13630967', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1424127/']
First algorithm is incorrect. It will fail if last element in the array is not the greatest. Specifically, iteration on 'j': ``` for (int j = 0; j < input.Length - 1 - i; j++) ``` seems to skip last element. If your input is {0, 2, 2, 1} Then your input.Length = 4 for loop above will have condition j < 4 - 1 - i,...
*I found two bubble algorithms but I not sure which one is right..* I'm sure they're both right. The only difference is your second code has to loop through the sorted array one last time.
13,630,967
I found two bubble algorithms but I not sure which one is right... First example: ``` for (int i = 1; i < input.Length-1; i++) for (int j = 0; j < input.Length - 1 - i; j++) if (input[j] > input[j + 1]) swap(input, j, j + 1); ``` Second example: ``` for (int i = 1; i < input.Length-1; i++) ...
2012/11/29
['https://Stackoverflow.com/questions/13630967', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1424127/']
First algorithm is incorrect. It will fail if last element in the array is not the greatest. Specifically, iteration on 'j': ``` for (int j = 0; j < input.Length - 1 - i; j++) ``` seems to skip last element. If your input is {0, 2, 2, 1} Then your input.Length = 4 for loop above will have condition j < 4 - 1 - i,...
Both are right. First one is comparatively more efficient.
13,630,967
I found two bubble algorithms but I not sure which one is right... First example: ``` for (int i = 1; i < input.Length-1; i++) for (int j = 0; j < input.Length - 1 - i; j++) if (input[j] > input[j + 1]) swap(input, j, j + 1); ``` Second example: ``` for (int i = 1; i < input.Length-1; i++) ...
2012/11/29
['https://Stackoverflow.com/questions/13630967', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1424127/']
First algorithm is incorrect. It will fail if last element in the array is not the greatest. Specifically, iteration on 'j': ``` for (int j = 0; j < input.Length - 1 - i; j++) ``` seems to skip last element. If your input is {0, 2, 2, 1} Then your input.Length = 4 for loop above will have condition j < 4 - 1 - i,...
without doing too much thinking, It looks like they're both correct, but the first one seems to do less redundant operations, and therefore takes less time to execute The first seems to depend on the fact that your last i blocks are correct, therefore it doesn't even bother with them.
13,630,967
I found two bubble algorithms but I not sure which one is right... First example: ``` for (int i = 1; i < input.Length-1; i++) for (int j = 0; j < input.Length - 1 - i; j++) if (input[j] > input[j + 1]) swap(input, j, j + 1); ``` Second example: ``` for (int i = 1; i < input.Length-1; i++) ...
2012/11/29
['https://Stackoverflow.com/questions/13630967', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1424127/']
First algorithm is incorrect. It will fail if last element in the array is not the greatest. Specifically, iteration on 'j': ``` for (int j = 0; j < input.Length - 1 - i; j++) ``` seems to skip last element. If your input is {0, 2, 2, 1} Then your input.Length = 4 for loop above will have condition j < 4 - 1 - i,...
In a bubble sort, after the first pass, you are guaranteed that the largest value will occupy the last position in the array. This is because by definition, the bubble sort swaps the highest value toward the end of the array. This means that on the second pass, you do not need to compare the last value again, because ...
13,630,967
I found two bubble algorithms but I not sure which one is right... First example: ``` for (int i = 1; i < input.Length-1; i++) for (int j = 0; j < input.Length - 1 - i; j++) if (input[j] > input[j + 1]) swap(input, j, j + 1); ``` Second example: ``` for (int i = 1; i < input.Length-1; i++) ...
2012/11/29
['https://Stackoverflow.com/questions/13630967', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1424127/']
First algorithm is incorrect. It will fail if last element in the array is not the greatest. Specifically, iteration on 'j': ``` for (int j = 0; j < input.Length - 1 - i; j++) ``` seems to skip last element. If your input is {0, 2, 2, 1} Then your input.Length = 4 for loop above will have condition j < 4 - 1 - i,...
The first one is what's called optimized bubble sort <http://en.wikipedia.org/wiki/Bubble_sort#Optimizing_bubble_sort> the second one is the "classic" bubble sort.
171,510
I have developed an app that will live at `xyzdomain.com/app` on our dedicated hosting setup. My client wants the app to be accessible at `clientdomain.com/app`. What options exist for transparently proxying or redirecting requests for `clientdomain.com/app/whatever` to `xyzdomain.com/app/whatever` such that the origin...
2010/08/17
['https://serverfault.com/questions/171510', 'https://serverfault.com', 'https://serverfault.com/users/11577/']
I only see two ways of doing this. One is to use a reverse proxy setup like you say... However, according to your description I would advise against it. The other solution is to have a server on your client reply to every request with with a HTTP 302 for the corresponding URL on the other side but again I would advise...
You will need a virtual server for clientdomain.com on the dedicated hosting setup. Then the issue becomed transperently proxying the request from clientdomain.com to the dedicated server (by IP address). If clientdomain.com is not dedicated to the application, using a subdomain would be simpler. This also would need...
171,510
I have developed an app that will live at `xyzdomain.com/app` on our dedicated hosting setup. My client wants the app to be accessible at `clientdomain.com/app`. What options exist for transparently proxying or redirecting requests for `clientdomain.com/app/whatever` to `xyzdomain.com/app/whatever` such that the origin...
2010/08/17
['https://serverfault.com/questions/171510', 'https://serverfault.com', 'https://serverfault.com/users/11577/']
I only see two ways of doing this. One is to use a reverse proxy setup like you say... However, according to your description I would advise against it. The other solution is to have a server on your client reply to every request with with a HTTP 302 for the corresponding URL on the other side but again I would advise...
The easiest solution is to define an domain alias within the webserver. This is much the same method that www.blah.com is the same site as blah.com. This can be configured in most major web servers (e.g. IIS and Apache). If you specify your web server technology, I might be able to supply some instructions ;)
206,311
I am trying to do an export of approx 30,000 attachments in our Salesforce Org, Would anyone have been through a similar exercise and can advise best practice or the best way / tool to do this? Kind Regards matt
2018/01/30
['https://salesforce.stackexchange.com/questions/206311', 'https://salesforce.stackexchange.com', 'https://salesforce.stackexchange.com/users/34616/']
The first thing I would try is the (relatively) new [SFDX](https://developer.salesforce.com/tools/sfdxcli) tooling. See the SFDX documentation [Example: Export and Import Data Between Orgs](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_test_data_example.htm). The export would follow...
If you don’t want to perform a manual entry and save time, check out Data2CRM - an automated migration tool that can transfer your attachments.
59,944,235
In my react component I have added video tag like: ``` <video controls ref="video"> <source src="VIDEO SOURCE" type="video/mp4" /> </video> ``` And I have added play button like: ``` <button onClick={() => {this.refs.video.play()}}>Play Button</button> ``` This code is working for single video when using `ref` ...
2020/01/28
['https://Stackoverflow.com/questions/59944235', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4316024/']
The file is serializable in theory (base64 for example) but it would probably make using the devtools harder or cause other unexpected side effects with that much data. I agree that it's valid to not store the actual file content in action payloads. You could save a hash of the file (or simply the name and a timesta...
I faced the same issue. This is how had configured my store. ``` export default configureStore({ reducer: { vehicles: vehicleReducer, }, middleware: [...getDefaultMiddleware(), apiMiddleware], }); ``` Once I got rid of `getDefaultMiddleware`, the error was gone for me.
59,944,235
In my react component I have added video tag like: ``` <video controls ref="video"> <source src="VIDEO SOURCE" type="video/mp4" /> </video> ``` And I have added play button like: ``` <button onClick={() => {this.refs.video.play()}}>Play Button</button> ``` This code is working for single video when using `ref` ...
2020/01/28
['https://Stackoverflow.com/questions/59944235', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4316024/']
The file is serializable in theory (base64 for example) but it would probably make using the devtools harder or cause other unexpected side effects with that much data. I agree that it's valid to not store the actual file content in action payloads. You could save a hash of the file (or simply the name and a timesta...
```js export default configureStore({ reducer: { \\Put your reducers here }, middleware:getDefaultMiddleware({ \\this way you don't remove the middlewares serializableCheck:false, }), }); ```
59,944,235
In my react component I have added video tag like: ``` <video controls ref="video"> <source src="VIDEO SOURCE" type="video/mp4" /> </video> ``` And I have added play button like: ``` <button onClick={() => {this.refs.video.play()}}>Play Button</button> ``` This code is working for single video when using `ref` ...
2020/01/28
['https://Stackoverflow.com/questions/59944235', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4316024/']
```js export default configureStore({ reducer: { \\Put your reducers here }, middleware:getDefaultMiddleware({ \\this way you don't remove the middlewares serializableCheck:false, }), }); ```
I faced the same issue. This is how had configured my store. ``` export default configureStore({ reducer: { vehicles: vehicleReducer, }, middleware: [...getDefaultMiddleware(), apiMiddleware], }); ``` Once I got rid of `getDefaultMiddleware`, the error was gone for me.
18,834,713
I need to allow certain users limited access to the lab server. The server is RHEL 5.6. However, I don't want to give them the root access. Basically, we have configured a LDAP server where all the users have centralized NFS and LDAP login from any of the client machines in the network. So, the LDAP users home area is ...
2013/09/16
['https://Stackoverflow.com/questions/18834713', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1742825/']
When you are authenicating users with ldap and nfs mounted share, as such users of ldap or without ldap would be restricted to work in their home directory only. Thanks & Regards, Alok Thaker
Basically, as you giving all users access as users not as root hence all users will not have root access either using local authentication or remote authentication. I hope the users don't know your root password. :) SUDO is used only when you want to give some users privilege to run the command as root like a normal u...
452,083
I have just installed the latest Ubuntu 14.04 and I would like to install KDE along side my Gnome/Unity that I have now. How can I do this? Thanks!
2014/04/21
['https://askubuntu.com/questions/452083', 'https://askubuntu.com', 'https://askubuntu.com/users/2975/']
You can install kde 4.12 easily on ubuntu 14.04 , open terminal : ``` sudo apt-get update sudo apt-get install kubuntu-desktop ``` Enjoy using **KDE**
Good answers here, but when installing you'll be asked a question in a terminal about choosing between lightdm and kdm. Either works well and lightdm should be selected by default, just press [ENTER}. Reboot/logout, and when you go to login again, you'll see a "gear" icon next to your password window. Click it and sel...
40,447,377
I have a problem sorting a table. My table HTML is this: ``` <table> <tr> <td>3</td> <td>1</td> </tr> <tr> <td>2</td> <td>4</td> </tr> </table> ``` And I want it to look like this: ``` <table> <tr> <td>1</td> <td>2</td> </tr> <tr> <td>3</td> <td>4</td> </tr> </table> ``` Here is my current sorti...
2016/11/06
['https://Stackoverflow.com/questions/40447377', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7121533/']
It's simple. 1. Store all the numbers from `td` in an array. 2. Sort the array. 3. Modify the `td`s according to array. Here's how you'd do it in JS: ``` var tds= [].slice.call(document.getElementsByTagName("td")); //Find <td> and store in array var tdsa=tds.map(function (a) {return Number(a.innerHTML);}); //Take th...
Try this - method: * get the items of the table into an array * sort the array * rebuild the rows ```js var columnCount = 2; var items = []; $('td').each(function (idx, obj) { items.push(obj.innerHTML); }); items.sort(); $('table tr').remove(); for(var i=0; i<items.length; i+=2) { var row = '<tr>'; for(var j=0...
34,575,731
I am unable to disable/remove some extensions in Visual Studio 2015, including extensions like the "Multilingual App Toolkit" and "MySQL for Visual Studio" that I have installed myself. In several cases, both the `Disable` and `Uninstall` buttons are grayed out in the Extensions and Updates manager. [![Visual Studio E...
2016/01/03
['https://Stackoverflow.com/questions/34575731', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1624894/']
You can manage extensions from Visual Studio only if they use standard .vsix installer. If they use other installer like .msi you typically use Control Panel - Programs and Features to uninstall them.
Windows *Control Panel -> Programs and Features* can uninstall most of those addons. For anything else, there is an awesome simple utility: [Total-Uninstaller](https://github.com/tsasioglu/Total-Uninstaller). It can uninstall virtually anything, including hidden stuff. Warning: uninstalling too much can make Visual...
18,861,370
Need to remove everything between .jpg and > on all instances like these below: * .jpg|500|756|20121231-just-some-image-3.jpg)%> * .jpg|500|729|)%> * .jpg|500|700|)%> * .jpg|500|756|test-43243.jpg)%> So everything becomes .jpg> Any suggestions using preg\_replace?
2013/09/17
['https://Stackoverflow.com/questions/18861370', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1550196/']
``` preg_replace('/\.jpg[^>]+>/', '.jpg>', $your_string); ```
``` $str = '.jpg|500|756|20121231-just-some-image-3.jpg)%>'; preg_replace('/[^\.jpg][^>]+/', '', $str); ```
149,106
Is anyone familiar with this error? It is causing TinyMCE to break in my Wordpress theme. In console it gives me these two errors both seem to originate from wp-admin/post-new.php > > Uncaught ReferenceError:switchEditors is not defined > > > Uncaught TypeError: undefined is not a function /wp-admin/load-scripts.p...
2014/06/10
['https://wordpress.stackexchange.com/questions/149106', 'https://wordpress.stackexchange.com', 'https://wordpress.stackexchange.com/users/45362/']
it might me entirely different solution that i am providing but it solved the problem for me. I followed these steps: 1. Open the user that is getting error. (Wordpress admin menu > users > your profile) 2. Changed the setting of "Disable the visual editor when writing" and saved the settings 3. Again disabled this f...
You are most probably having a conflict with some plugin or the theme (bad javascript usually). If you got some kind of an adblocker, this might be another reason too, so you'd better check them all and see if it is a browser-sensitive problem.
149,106
Is anyone familiar with this error? It is causing TinyMCE to break in my Wordpress theme. In console it gives me these two errors both seem to originate from wp-admin/post-new.php > > Uncaught ReferenceError:switchEditors is not defined > > > Uncaught TypeError: undefined is not a function /wp-admin/load-scripts.p...
2014/06/10
['https://wordpress.stackexchange.com/questions/149106', 'https://wordpress.stackexchange.com', 'https://wordpress.stackexchange.com/users/45362/']
it might me entirely different solution that i am providing but it solved the problem for me. I followed these steps: 1. Open the user that is getting error. (Wordpress admin menu > users > your profile) 2. Changed the setting of "Disable the visual editor when writing" and saved the settings 3. Again disabled this f...
You can disable concatenation by defining `CONCATENATE_SCRIPTS` constant to false. In `wp-config.php` would be fitting: ``` define('CONCATENATE_SCRIPTS', false); ``` W3TC shouldn't affect anything on admin side.
149,106
Is anyone familiar with this error? It is causing TinyMCE to break in my Wordpress theme. In console it gives me these two errors both seem to originate from wp-admin/post-new.php > > Uncaught ReferenceError:switchEditors is not defined > > > Uncaught TypeError: undefined is not a function /wp-admin/load-scripts.p...
2014/06/10
['https://wordpress.stackexchange.com/questions/149106', 'https://wordpress.stackexchange.com', 'https://wordpress.stackexchange.com/users/45362/']
it might me entirely different solution that i am providing but it solved the problem for me. I followed these steps: 1. Open the user that is getting error. (Wordpress admin menu > users > your profile) 2. Changed the setting of "Disable the visual editor when writing" and saved the settings 3. Again disabled this f...
This fixed my issue - I added this line to the bottom of wp-config.php and BOOM! define('CONCATENATE\_SCRIPTS', false);
70,809,910
I have a function that is intended to rotate polygons by 5 degrees left or right and return their new points. This function is as follows, along with the function `player_center` that it requires. ``` # finds center of player shape # finds slope and midpoint of each vertice-midpoint line on the longer sides, # then ...
2022/01/22
['https://Stackoverflow.com/questions/70809910', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/17769030/']
Too much irrelevant code, a lot of magic like this `while (point_sin > 1): point_sin -= 1` - so hard to reproduce. To rotate point around some center, you need just this (where `cos(fi), sin(fi)` are precalculated value in your case): ``` new_x = center_x + (old_x - center_x) * cos(fi) - (old_y - center_y) * sin(fi) ...
This is a built-in capability of RegularPolygon in SymPy: ``` >>> from sympy import RegularPolygon, rad >>> p = RegularPolygon((0,0), 1, 5) >>> p.vertices[0] Point2D(1, 0) >>> p.rotate(rad(30)) # or rad(-30) >>> p.vertices[0] Point2D(sqrt(3)/2, 1/2) ```
23,576,155
I’m trying to learn a few things about scripting and Linux systems, so I started learning `bash` scripting. For an exercise, I’m trying to program a script that would install all programs that user chooses. I worked out a skeleton of installation part, but I’m stuck at determining users answer. Here is my code: ```...
2014/05/10
['https://Stackoverflow.com/questions/23576155', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3622290/']
``` thing="Gimp" answer_Gimp="Yes" variableName="answer_$thing" echo "The value of $variableName is ${!variableName}" ```
If you have bash version 4, you can use an associative array: ``` declare -a instal_list=("Gimp" "VLC" "Gedit") declare -a to_install declare -A answers for prog in "${instal_list[@]}"; do read -p "Do you want to install $prog? [y/n] " answer["$prog"] if [[ "${answer["$prog"],,}" == y* ]]; then to_ins...
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
I know this is old, but I just ran into the same problem. My issue was that multiple projects in the solution used Newtonsoft.Json, but some were at different versions. I updated all of them to the most recent (9.0.1 as I type) and the problem went away. Anyway... if anyone is still dealing with this, make sure to upd...
run this command in the package manager console: ``` PM> Install-Package Newtonsoft.Json -Version 6.0.1 ```
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
After trying much of the above (and some other posts), I uninstalled with the package manager all of the following from the project affected: ``` Microsoft.AspNet.WebApi Microsoft.AspNet.Client Microsoft.AspNet.Core Microsoft.AspNet.WebHost Newtonsoft.Json ``` Then reinstalled Microsoft.AspNet.WebApi, which auto ins...
check the 'Newtonsoft.Json' version in the project references. Add that version in the Web config. It will work. For Example: your Webconfig look like this: ``` <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json"publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-7.0.0....
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
After trying much of the above (and some other posts), I uninstalled with the package manager all of the following from the project affected: ``` Microsoft.AspNet.WebApi Microsoft.AspNet.Client Microsoft.AspNet.Core Microsoft.AspNet.WebHost Newtonsoft.Json ``` Then reinstalled Microsoft.AspNet.WebApi, which auto ins...
In my case, the following code was present in my local debug version of the solution, but not in my live server version of code. Adding the code to my server Web.config file fixed the problem. ``` <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Ent...
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
After trying much of the above (and some other posts), I uninstalled with the package manager all of the following from the project affected: ``` Microsoft.AspNet.WebApi Microsoft.AspNet.Client Microsoft.AspNet.Core Microsoft.AspNet.WebHost Newtonsoft.Json ``` Then reinstalled Microsoft.AspNet.WebApi, which auto ins...
Run `Update-Package Newtonsoft.Json -Reinstall` It should remove the reference to your 4.5 version, and reinstall the newer version referenced in your package.config. It will also update the binding redirect, which should then be as follows: ```xml <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" public...
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
I know this is old, but I just ran into the same problem. My issue was that multiple projects in the solution used Newtonsoft.Json, but some were at different versions. I updated all of them to the most recent (9.0.1 as I type) and the problem went away. Anyway... if anyone is still dealing with this, make sure to upd...
check the 'Newtonsoft.Json' version in the project references. Add that version in the Web config. It will work. For Example: your Webconfig look like this: ``` <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json"publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-7.0.0....
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
Run `Update-Package Newtonsoft.Json -Reinstall` It should remove the reference to your 4.5 version, and reinstall the newer version referenced in your package.config. It will also update the binding redirect, which should then be as follows: ```xml <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" public...
1. In your VS solution explorer, remove the Newtonsoft.Json reference. 2. Download the 6.0 binary files at Newtonsoft binary files [here](https://github.com/JamesNK/Newtonsoft.Json/releases/download/6.0.8/Json60r8.zip) 3. Extract the files 4. Add the Newtonsoft library manually. From Visual Studio, right click Referenc...
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
I had this error myself, and first used `Update-Package –reinstall Newtonsoft.Json -IncludePrerelease` it didn't work, then used `Install-Package Newtonsoft.Json` . it worked.
run this command in the package manager console: ``` PM> Install-Package Newtonsoft.Json -Version 6.0.1 ```
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
Add Newtonsoft reference in my MVC project solves the problem for me.
run this command in the package manager console: ``` PM> Install-Package Newtonsoft.Json -Version 6.0.1 ```
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
I know this is old, but I just ran into the same problem. My issue was that multiple projects in the solution used Newtonsoft.Json, but some were at different versions. I updated all of them to the most recent (9.0.1 as I type) and the problem went away. Anyway... if anyone is still dealing with this, make sure to upd...
1. In your VS solution explorer, remove the Newtonsoft.Json reference. 2. Download the 6.0 binary files at Newtonsoft binary files [here](https://github.com/JamesNK/Newtonsoft.Json/releases/download/6.0.8/Json60r8.zip) 3. Extract the files 4. Add the Newtonsoft library manually. From Visual Studio, right click Referenc...
32,806,744
First, It is not just duplicate. None of answers from following questions are working for me. <http://goo.gl/tS40cn> <http://goo.gl/pH6v2T> I've just updated all my packages using Nuget Package Manager and I started receiving this error. **Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture...
2015/09/27
['https://Stackoverflow.com/questions/32806744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1306394/']
Run `Update-Package Newtonsoft.Json -Reinstall` It should remove the reference to your 4.5 version, and reinstall the newer version referenced in your package.config. It will also update the binding redirect, which should then be as follows: ```xml <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" public...
run this command in the package manager console: ``` PM> Install-Package Newtonsoft.Json -Version 6.0.1 ```
16,982,818
(I'm not sure about the correctness of title) I have an `numpy.array` `f` as follows: ``` # id frame x y z ``` What I want to do is to extract the trajectories for some specific `id`. For `id==1` I get for instance: ``` f_1 = f[ f[:,0]==1 ] ``` and get ``` array([[ 1. , 55. , 381.51 , -135.476 ,...
2013/06/07
['https://Stackoverflow.com/questions/16982818', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1213793/']
For a 2D array asking only one index returns the line (with all columns) corresponding to that index, so that: ``` np.all( a[0] == a[0,:] ) #True ``` When you do `a[0]==1` you get a boolean array, like: ``` b = a[0]==1 #array([True, True, False, False, True], dtype=bool) ``` Which you can use through fancy indexi...
Quoting from the [Tentative Numpy Tutorial](http://wiki.scipy.org/Tentative_NumPy_Tutorial): > > ...When fewer indices are provided than the number of axes, the missing indices are considered complete slices... > > > So `f[f[:,0]==1]` gets translated to `f[f[:,0]==1,:]` (or equivalently, to `f[f[:,0]==1,...]`) wh...
42,574,844
[![enter image description here](https://i.stack.imgur.com/Iovci.png)](https://i.stack.imgur.com/Iovci.png) this is my project structure, Failed to load resource: the server responded with a status of 404 (), ShowDetail.jsp is not found, which path i need to give in Route templateURL ? [![enter image description here...
2017/03/03
['https://Stackoverflow.com/questions/42574844', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3639244/']
You can create a Map and map the integer to the String Value. Iterate the reference array and get it listed based on your order. Snippet: ``` Map<Integer,String> maps = new HashMap<Integer,String>(); maps.put(1,"Red"); maps.put(2,"White"); for(Integer a : values){ System.out.println(maps.get(a)); } ```
You can use ``` Collections.swap(test,1,2); Collections.swap(test,2,3); ``` Documentation [Here](http://docs.oracle.com/javase/7/docs/api/java/util/Collections.html#swap%28java.util.List,%20int,%20int%29)
54,014,687
I have a DataFrame ``` >> test = pd.DataFrame({'A': ['a', 'b', 'b', 'b'], 'B': [1, 2, 3, 4], 'C': [np.nan, np.nan, np.nan, np.nan], 'D': [np.nan, np.nan, np.nan, np.nan]}) A B C D 0 a 1 1 b 2 2 b 3 3 b 4 ``` I also have a dictionary, where `b` in `input_b` signif...
2019/01/02
['https://Stackoverflow.com/questions/54014687', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6503670/']
This may not be the most efficient solution, but from what I understand it got the job done: ``` import pandas as pd import numpy as np test = pd.DataFrame({'A': ['a', 'b', 'b', 'b'], 'B': [1, 2, 3, 4], 'C': [np.nan, np.nan, np.nan, np.nan], 'D': [np.nan, np.nan, np.nan, np....
Using `update` ``` test=test.set_index('B') test.update(pd.DataFrame(input_b,index=['C','D']).T) test=test.reset_index() test B A C D 0 1 a NaN NaN 1 2 b Moon Elephant 2 3 b NaN NaN 3 4 b Sun Mouse ```
54,014,687
I have a DataFrame ``` >> test = pd.DataFrame({'A': ['a', 'b', 'b', 'b'], 'B': [1, 2, 3, 4], 'C': [np.nan, np.nan, np.nan, np.nan], 'D': [np.nan, np.nan, np.nan, np.nan]}) A B C D 0 a 1 1 b 2 2 b 3 3 b 4 ``` I also have a dictionary, where `b` in `input_b` signif...
2019/01/02
['https://Stackoverflow.com/questions/54014687', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6503670/']
This may not be the most efficient solution, but from what I understand it got the job done: ``` import pandas as pd import numpy as np test = pd.DataFrame({'A': ['a', 'b', 'b', 'b'], 'B': [1, 2, 3, 4], 'C': [np.nan, np.nan, np.nan, np.nan], 'D': [np.nan, np.nan, np.nan, np....
You can use [`loc`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html) indexing after setting your index to `B`: ``` test = test.set_index('B') test.loc[input_b, ['C', 'D']] = list(input_b.values()) test = test.reset_index() print(test) B A C D 0 1 a NaN NaN 1...
54,014,687
I have a DataFrame ``` >> test = pd.DataFrame({'A': ['a', 'b', 'b', 'b'], 'B': [1, 2, 3, 4], 'C': [np.nan, np.nan, np.nan, np.nan], 'D': [np.nan, np.nan, np.nan, np.nan]}) A B C D 0 a 1 1 b 2 2 b 3 3 b 4 ``` I also have a dictionary, where `b` in `input_b` signif...
2019/01/02
['https://Stackoverflow.com/questions/54014687', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6503670/']
Using `apply` ``` test['C'] = test['B'].map(input_b).apply(lambda x: x[0] if type(x)==list else x) test['D'] = test['B'].map(input_b).apply(lambda x: x[1] if type(x)==list else x) ``` yields ``` A B C D 0 a 1 NaN NaN 1 b 2 Moon Elephant 2 b 3 NaN NaN 3 b 4 Sun Mouse ...
Using `update` ``` test=test.set_index('B') test.update(pd.DataFrame(input_b,index=['C','D']).T) test=test.reset_index() test B A C D 0 1 a NaN NaN 1 2 b Moon Elephant 2 3 b NaN NaN 3 4 b Sun Mouse ```
54,014,687
I have a DataFrame ``` >> test = pd.DataFrame({'A': ['a', 'b', 'b', 'b'], 'B': [1, 2, 3, 4], 'C': [np.nan, np.nan, np.nan, np.nan], 'D': [np.nan, np.nan, np.nan, np.nan]}) A B C D 0 a 1 1 b 2 2 b 3 3 b 4 ``` I also have a dictionary, where `b` in `input_b` signif...
2019/01/02
['https://Stackoverflow.com/questions/54014687', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6503670/']
Using `apply` ``` test['C'] = test['B'].map(input_b).apply(lambda x: x[0] if type(x)==list else x) test['D'] = test['B'].map(input_b).apply(lambda x: x[1] if type(x)==list else x) ``` yields ``` A B C D 0 a 1 NaN NaN 1 b 2 Moon Elephant 2 b 3 NaN NaN 3 b 4 Sun Mouse ...
You can use [`loc`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html) indexing after setting your index to `B`: ``` test = test.set_index('B') test.loc[input_b, ['C', 'D']] = list(input_b.values()) test = test.reset_index() print(test) B A C D 0 1 a NaN NaN 1...
3,169,164
Using asp.net profiles, I've stored a complex type (class) and retrieved it. But it is returning a new object that is not initialized instead of null? Is this the expected behavior, if so how can I determine if I've saved data for the given user? should be some easy points for someone to pick up..
2010/07/02
['https://Stackoverflow.com/questions/3169164', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/254428/']
Your question is a little unclear, but I think you're asking why there's a non-null profile data object for a user who you haven't stored data for yet? [This article](http://msdn.microsoft.com/en-us/magazine/cc163724.aspx#S4) might hopefully clear it up for you. Some of the relevant bits: > > A user profile is a col...
A little late, but [UsingDefaultValue](https://learn.microsoft.com/en-us/dotnet/api/system.configuration.settingspropertyvalue.usingdefaultvalue?view=dotnet-plat-ext-3.1) tells you if the property value is coming from the user profile settings or if it's using a default. Another way you can get, kind of, the same resul...
19,778
i am stuck to an issue where i have a List ID - list of Ids i have to find the LoginName of SPUser or SPGroup with the id in the ListID i tried the following but it threws exception as it did not find user when group id is there ``` foreach (var id in ID) { SPUser spU...
2011/09/20
['https://sharepoint.stackexchange.com/questions/19778', 'https://sharepoint.stackexchange.com', 'https://sharepoint.stackexchange.com/users/2310/']
After breaking the inheritance of an item (item,list,web) you have to call `update()` on that object to make sure the settings are saved to the database. Once these are saved you can start adding/changing the permissions for that item. BreakRoleInheritance(false) will not copy the permissions of the parent to the new ...
You need to take advantage of [SPQuery class](http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spquery.aspx). Using CAML query is much, much, much more faster then doing foreach. Here is script you 'really' want: ``` $webUrl = "http://inside.national.com/Sales" $listName = "2011Sales" $ctname = "2011Sales...
19,778
i am stuck to an issue where i have a List ID - list of Ids i have to find the LoginName of SPUser or SPGroup with the id in the ListID i tried the following but it threws exception as it did not find user when group id is there ``` foreach (var id in ID) { SPUser spU...
2011/09/20
['https://sharepoint.stackexchange.com/questions/19778', 'https://sharepoint.stackexchange.com', 'https://sharepoint.stackexchange.com/users/2310/']
After breaking the inheritance of an item (item,list,web) you have to call `update()` on that object to make sure the settings are saved to the database. Once these are saved you can start adding/changing the permissions for that item. BreakRoleInheritance(false) will not copy the permissions of the parent to the new ...
Here is the working code in case someone needs it. ``` $webUrl = "http://inside.national.com/Sales" $web = Get-SPWeb $webUrl $list = $web.Lists["2011Sales"] $ct = "2011 Marketing" $spgroup = "Custom SP Group" $rd="Contribute" foreach ($item in $list.items) { If ($item.ContentType.Name -eq $ct) { $i...
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
I had the same problem, also on Lion. Strangely, my solution was the opposite of Jeremy's. I had a whole bunch of someproject.dev entries on one line in /etc/hosts. Loading a site on any of them the first time took forever, like a minute or so. If I used it again within 5 seconds or so it was very fast, but much long...
The trick that did it for me was adding ``` 127.0.0.1 locahost ``` on the first line of the host file. From all my virtual hosts, only the ones using a database were slow. I believe it's because the process of looking up "localhost" for the database connection slowed things down, since I only added the addresses fo...
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
I had the same problem and found it to be caused by enabling IPv6 on my LAN, but not having IPv6 configured correctly between my network and my ISP. Apparently the IPv6 DNS-server takes precedence over IPv4 DNS when the client is given both. It took a couple of seconds (on every attempt) for the client to find that the...
This helped me: [Apache HTTP localhost randomly taking 5 seconds on macOS Monterey but fast on HTTPS](https://stackoverflow.com/questions/70698918/apache-http-localhost-randomly-taking-5-seconds-on-macos-monterey-but-fast-on-ht) ``` Turn off Keep Alive by adding: KeepAlive Off To your http.conf ```
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
There's another issue 10.7.\* to 10.8.4 for sites ending in `.local` which causes five second lookups. Details and solution courtesy Bram Van Damme’s [blog post found here](http://www.bram.us/2011/12/12/mamp-pro-slow-name-resolving-with-local-vhosts-in-lion-fix/). > > “By default, any hostname ending in `.local` is t...
This helped me: [Apache HTTP localhost randomly taking 5 seconds on macOS Monterey but fast on HTTPS](https://stackoverflow.com/questions/70698918/apache-http-localhost-randomly-taking-5-seconds-on-macos-monterey-but-fast-on-ht) ``` Turn off Keep Alive by adding: KeepAlive Off To your http.conf ```
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
Ensuring that the host names are defined at the beginning of the file made the difference for me. By default the line 127.0.0.1 localhost is already at the beginning, just add your entries on the same line.
The trick that did it for me was adding ``` 127.0.0.1 locahost ``` on the first line of the host file. From all my virtual hosts, only the ones using a database were slow. I believe it's because the process of looking up "localhost" for the database connection slowed things down, since I only added the addresses fo...
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
There's another issue 10.7.\* to 10.8.4 for sites ending in `.local` which causes five second lookups. Details and solution courtesy Bram Van Damme’s [blog post found here](http://www.bram.us/2011/12/12/mamp-pro-slow-name-resolving-with-local-vhosts-in-lion-fix/). > > “By default, any hostname ending in `.local` is t...
A dumb issue that led me to waste some considerable time: after applying [@Cleverlemming's answer](https://stackoverflow.com/a/17982964/1588706), I figured out that there were duplicated entries on the hosts file. Something like: ``` ::1 site1.local site2.local site1.local site3.local site4.local fe80::1%lo0 ...
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
Make sure to put the IP v6 entries not in the line with localhost ``` ::1 localhost ``` the IP v6 entries go in a separate line ``` fe80::1%lo0 here and_here ``` It is sometimes really fast now, but there are rare exceptions where the old lags come back. They might however be based on other reasons.
I had this same problem and finally realized I had the same host entry twice on the same line: e.g. ``` 127.0.0.1 localhost host1 host2 host3 host4 host5 host1 host6 ``` I removed the second instance of the same host (in the example above - host1) - and things immediately sped up. Felt a little silly when I discov...
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
I had the exact same problem and it was driving me crazy! Put all your hosts file entries for localhost into one line like so: ``` 127.0.0.1 localhost myproject.dev myotherproject.dev ::1 localhost fe80::1%lo0 localhost ``` Worked like a charm for me. Seems like a bug in Lion.
A dumb issue that led me to waste some considerable time: after applying [@Cleverlemming's answer](https://stackoverflow.com/a/17982964/1588706), I figured out that there were duplicated entries on the hosts file. Something like: ``` ::1 site1.local site2.local site1.local site3.local site4.local fe80::1%lo0 ...
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
I had the same problem, also on Lion. Strangely, my solution was the opposite of Jeremy's. I had a whole bunch of someproject.dev entries on one line in /etc/hosts. Loading a site on any of them the first time took forever, like a minute or so. If I used it again within 5 seconds or so it was very fast, but much long...
Specifying same host for IPv6 ::1 helped me. ``` 127.0.0.1 something.local.mydomain.org ::1 something.local.mydomain.org ```
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
There's another issue 10.7.\* to 10.8.4 for sites ending in `.local` which causes five second lookups. Details and solution courtesy Bram Van Damme’s [blog post found here](http://www.bram.us/2011/12/12/mamp-pro-slow-name-resolving-with-local-vhosts-in-lion-fix/). > > “By default, any hostname ending in `.local` is t...
I've run into this a bunch, too. I have a bunch of vhosts defined on two lines, one for IPv4 and one for IPv6. Moving the host I was trying to resolve to be first in the list sped it up. ``` 127.0.0.1 faster.example.dev host1.example.dev host2.example.dev host3.example.dev host4.example.dev host5.example.dev host6.exa...
10,064,581
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minu...
2012/04/08
['https://Stackoverflow.com/questions/10064581', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/61232/']
On OSX El Capitan what worked for me was making a duplicate IPv6 entry right above the IPv4 entry like so ``` fe80::1%lo0 demo.test.dev 127.0.0.1 demo.test.dev ```
Note: I am using Windows and XAMPP, however while researching the problem many people have had the same issue on Windows and Mac. Answer for reference for anyone finding this question as I have spent hours trying to find a solution that works for me: I have tried many solutions for the same problem including putting a...
15,011,569
Lets say I have tables Student and Mentor Does anyone use naming convention for relationship as below? I think this way is good to see the relationships quickly. Would anyone suggest a better way? Student StudentID StudentName Student2MentorID
2013/02/21
['https://Stackoverflow.com/questions/15011569', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/783411/']
To start from scratch, - you probably know this already - there are several ways to represent your database schema, I mean, by using diagrams, for example [ER-diagrams](http://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model#Diagramming_conventions) that helps you (and your team) stay up to date with your databa...
It is better to use underscores... I suggest to simply use existing naming convention rules such as this one: <http://www.oracle-base.com/articles/misc/naming-conventions.php>
15,011,569
Lets say I have tables Student and Mentor Does anyone use naming convention for relationship as below? I think this way is good to see the relationships quickly. Would anyone suggest a better way? Student StudentID StudentName Student2MentorID
2013/02/21
['https://Stackoverflow.com/questions/15011569', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/783411/']
I think: you can add prefix (3 letters) to table depending that module represents (scholar,sales,store) module: scholar ->**sc** table: **scStudent** ( IdStudent,nameStudent..) table: **scMentor**(IdMentor,nameMentor...) relationship **scMentorStudent** (**IdMentorStudent** pk..) You can use Microsoft's EF not...
It is better to use underscores... I suggest to simply use existing naming convention rules such as this one: <http://www.oracle-base.com/articles/misc/naming-conventions.php>
72,461,386
Consider the following event: ``` $(`#selectpicker).on('change', function(){ if(condition) {} else { //canceel event change } }); ``` How to cancel the change event based on specific condition therefore maintaining the same select picker value.
2022/06/01
['https://Stackoverflow.com/questions/72461386', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5946983/']
Is this what you are looking for? Set a variable for the current value and if an undesired value is selected we set the value of the select field back to the recent value. ``` <select id="selectpicker"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> </select> let currentV...
While you can stop the execution of the callback with `return false`, the value will already have changed when this event is triggered. If you want to return to the previous value, you have to store it somehow, either in a variable or in a `data` property on the element. Then you can set the value back in your conditio...
18,400,673
In my rails app I have two tables - `device_ports` and `circuits`. My goal is to get a list of `device_ports` whose `id` is not being used in the `physical_port_id` column of the `circuits` table. I have done something similar before on other tables but here my query only returns one row when it should return 23 rows ...
2013/08/23
['https://Stackoverflow.com/questions/18400673', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/634120/']
You could try using a LEFT OUTER JOIN: ``` SELECT DISTINCT d.id, d.name, d.device_id, d.multiuse FROM device_ports d LEFT OUTER JOIN circuits c ON c.physical_port_id = d.id WHERE (c.physical_port_id IS NULL AND d.device_id = 6) OR (d.multiuse = 1 AND d.device_id = 6) ORDER BY d.id ``` There are several tec...
``` SELECT p.* FROM device_ports p LEFT JOIN circuits c ON c.physical_port_id = p.id WHERE p.device_id = 6 AND multiuse = 1 AND c.id IS NULL; ```
29,765,504
Currently coding in C#, I wonder if there is a way to factor the code as presented below ``` Entity1 = GetByName("EntityName1"); Entity2 = GetByName("EntityName2"); Entity3 = GetByName("EntityName3"); ``` The idea would be to get a single call in the code, factoring the code by placing the `entities` and the `string...
2015/04/21
['https://Stackoverflow.com/questions/29765504', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4311207/']
You can use LINQ: ``` var names=new[]{"EntityName1","EntityName2","EntityName3",.....}; var entities=names.Select(name=>GetByName(name)).ToArray(); ``` Without `ToArray`, `Select` will return an IEnumerable that will be reevalueated each time you enumerate it - that is, `GetByName` will be called each time you enume...
Do you mean something like the below (where `entities` is the collection of `Entity1`, `Entity1` & `Entity3`): ``` var results = entities.Select(e => GetByName(e.Name)); ```
29,765,504
Currently coding in C#, I wonder if there is a way to factor the code as presented below ``` Entity1 = GetByName("EntityName1"); Entity2 = GetByName("EntityName2"); Entity3 = GetByName("EntityName3"); ``` The idea would be to get a single call in the code, factoring the code by placing the `entities` and the `string...
2015/04/21
['https://Stackoverflow.com/questions/29765504', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4311207/']
You can use LINQ: ``` var names=new[]{"EntityName1","EntityName2","EntityName3",.....}; var entities=names.Select(name=>GetByName(name)).ToArray(); ``` Without `ToArray`, `Select` will return an IEnumerable that will be reevalueated each time you enumerate it - that is, `GetByName` will be called each time you enume...
It depends on what you're looking for. If you need to set the variables in a single line, that won't work. You could play with reflection if you're dealing with fields or properties, but honestly that seems messier than what you've got already. If the data-structure doesn't matter, and you just need the data and are a...
29,765,504
Currently coding in C#, I wonder if there is a way to factor the code as presented below ``` Entity1 = GetByName("EntityName1"); Entity2 = GetByName("EntityName2"); Entity3 = GetByName("EntityName3"); ``` The idea would be to get a single call in the code, factoring the code by placing the `entities` and the `string...
2015/04/21
['https://Stackoverflow.com/questions/29765504', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4311207/']
You can use LINQ: ``` var names=new[]{"EntityName1","EntityName2","EntityName3",.....}; var entities=names.Select(name=>GetByName(name)).ToArray(); ``` Without `ToArray`, `Select` will return an IEnumerable that will be reevalueated each time you enumerate it - that is, `GetByName` will be called each time you enume...
Ok, here is an idea. You can declare this function. ``` IReadOnlyDictionary<string, T> InstantiateByName<T>( Func<string, T> instantiator params string[] names) { return names.Distinct().ToDictionary( name => name, name => instantiator(name)) } ``` which you could call like this,...
29,765,504
Currently coding in C#, I wonder if there is a way to factor the code as presented below ``` Entity1 = GetByName("EntityName1"); Entity2 = GetByName("EntityName2"); Entity3 = GetByName("EntityName3"); ``` The idea would be to get a single call in the code, factoring the code by placing the `entities` and the `string...
2015/04/21
['https://Stackoverflow.com/questions/29765504', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4311207/']
Do you mean something like the below (where `entities` is the collection of `Entity1`, `Entity1` & `Entity3`): ``` var results = entities.Select(e => GetByName(e.Name)); ```
Ok, here is an idea. You can declare this function. ``` IReadOnlyDictionary<string, T> InstantiateByName<T>( Func<string, T> instantiator params string[] names) { return names.Distinct().ToDictionary( name => name, name => instantiator(name)) } ``` which you could call like this,...
29,765,504
Currently coding in C#, I wonder if there is a way to factor the code as presented below ``` Entity1 = GetByName("EntityName1"); Entity2 = GetByName("EntityName2"); Entity3 = GetByName("EntityName3"); ``` The idea would be to get a single call in the code, factoring the code by placing the `entities` and the `string...
2015/04/21
['https://Stackoverflow.com/questions/29765504', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4311207/']
It depends on what you're looking for. If you need to set the variables in a single line, that won't work. You could play with reflection if you're dealing with fields or properties, but honestly that seems messier than what you've got already. If the data-structure doesn't matter, and you just need the data and are a...
Ok, here is an idea. You can declare this function. ``` IReadOnlyDictionary<string, T> InstantiateByName<T>( Func<string, T> instantiator params string[] names) { return names.Distinct().ToDictionary( name => name, name => instantiator(name)) } ``` which you could call like this,...
517,315
I have created some domain users in ADUC and added them to the "Domain Admins" group. On a domain server when I try run a batch file that restart some services, with "net stop ", "net start " and "taskkill ", I get the following error message: ``` System error 5 has occured. Access id denied. ``` And if I try to r...
2012/12/10
['https://superuser.com/questions/517315', 'https://superuser.com', 'https://superuser.com/users/179239/']
* insert a blank column in column C * in `C1` put `=IF(A1="gmail.com","EN",B1)` and copy down * copy and paste special value column C over the values in Column B * delete the working column C For a partial search try something like `=IF(ISERROR(SEARCH("gmail.com",A1)>0),B1,"EN")` in `C1` then copy down etc
Use `Sort & Filter`. Select column A and B (entirely) and apply the (auto)filter; select filter options on column A and chose text filters: contains. Set contains to "gmail.com", and apply filter. Column B will be filtered accordingly. Change the first cell in column B, and copy it (`Ctrl C`). Then select the remai...
517,315
I have created some domain users in ADUC and added them to the "Domain Admins" group. On a domain server when I try run a batch file that restart some services, with "net stop ", "net start " and "taskkill ", I get the following error message: ``` System error 5 has occured. Access id denied. ``` And if I try to r...
2012/12/10
['https://superuser.com/questions/517315', 'https://superuser.com', 'https://superuser.com/users/179239/']
* insert a blank column in column C * in `C1` put `=IF(A1="gmail.com","EN",B1)` and copy down * copy and paste special value column C over the values in Column B * delete the working column C For a partial search try something like `=IF(ISERROR(SEARCH("gmail.com",A1)>0),B1,"EN")` in `C1` then copy down etc
Use an `IF` statement combined with a `RIGHT` function in column B. Place this formula in `B1`. ``` =IF(RIGHT(A1,9)="gmail.com","EN", "HR") ``` This will look for the `gmail.com` and if it exists will populate the cell with `EN`, otherwise it will make it `HR`. To copy it down all the rows in the column, double cl...
517,315
I have created some domain users in ADUC and added them to the "Domain Admins" group. On a domain server when I try run a batch file that restart some services, with "net stop ", "net start " and "taskkill ", I get the following error message: ``` System error 5 has occured. Access id denied. ``` And if I try to r...
2012/12/10
['https://superuser.com/questions/517315', 'https://superuser.com', 'https://superuser.com/users/179239/']
Use an `IF` statement combined with a `RIGHT` function in column B. Place this formula in `B1`. ``` =IF(RIGHT(A1,9)="gmail.com","EN", "HR") ``` This will look for the `gmail.com` and if it exists will populate the cell with `EN`, otherwise it will make it `HR`. To copy it down all the rows in the column, double cl...
Use `Sort & Filter`. Select column A and B (entirely) and apply the (auto)filter; select filter options on column A and chose text filters: contains. Set contains to "gmail.com", and apply filter. Column B will be filtered accordingly. Change the first cell in column B, and copy it (`Ctrl C`). Then select the remai...
8,727,018
I have been using some P/Invoke code to simulate a key press, but I can't work out how to press more than one key at once. I am trying to simulate pressing and holding CTRL and then pressing C and then V, so just a copy and paste. The code I am using so far is this, but so far I can only manage to press CTRL, not hold...
2012/01/04
['https://Stackoverflow.com/questions/8727018', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/799586/']
The `dwFlags` controls if the key is released or not. Try the following: ``` keybd_event(VK_CONTROL, 0, 0, 0);// presses ctrl keybd_event(0x43, 0, 0, 0); // presses c keybd_event(0x43, 0, 2, 0); //releases c keybd_event(VK_CONTROL, 0, 2, 0); //releases ctrl ```
keybd\_event should be called twice for each keystroke, once to press it down, and once to release it, with the third argument including the bit KEYEVENTF\_KEYUP. You should of course press both keys down before releasing either. See [here](http://social.msdn.microsoft.com/Forums/en/netfxcompact/thread/d5d6097e-f221-45...
7,026,438
I am in the process of writing my own gridview implementation( Based of the tableview pattern). I have followed a datasource model similar to table view, but when I check if the data source responds to the message the call always fails. I have tried putting in break points and following execution, I even tried missing...
2011/08/11
['https://Stackoverflow.com/questions/7026438', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/299450/']
Is your `dataSource` object `nil`? Any message sent to `nil` will return `NO` for boolean results *(0 for numbers, and `nil` for objects as well)*.
Have you checked whether `dataSource` is non-nil?
13,124
``` \documentclass{article} \usepackage{tikz} \begin{document} % DOES NOT WORK %\tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p and 1); %WORKS \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (1 and \p); \end{document} ``` `(1 and \p)` works but `(\p and 1)` does not, why?
2011/03/10
['https://tex.stackexchange.com/questions/13124', 'https://tex.stackexchange.com', 'https://tex.stackexchange.com/users/2099/']
The `(<x radius> and <y radius>)` syntax is old and, if not deprecated, at least not encouraged any more. The current way to do is is to use `[x radius]` and `[y radius]`: ``` \documentclass{article} \usepackage{tikz} \begin{document} % WORKS with current syntax \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse...
``` \documentclass{article} \usepackage{tikz} \begin{document} \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p cm and 1 cm); \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (1 cm and \p cm); \end{document} ``` problem with the parser, I suppose ! and the remark of Jake is fine, bett...
13,124
``` \documentclass{article} \usepackage{tikz} \begin{document} % DOES NOT WORK %\tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p and 1); %WORKS \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (1 and \p); \end{document} ``` `(1 and \p)` works but `(\p and 1)` does not, why?
2011/03/10
['https://tex.stackexchange.com/questions/13124', 'https://tex.stackexchange.com', 'https://tex.stackexchange.com/users/2099/']
Spaces after TeX commands are ignored, thus by using `\p and 1` you'll get an equivalent of, say, `1and 1`, which you can verify to give the same error. Therefore we just need to restore the space: ``` \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p{} and 1); ``` Note that, as Jake mentions, this syntax is...
``` \documentclass{article} \usepackage{tikz} \begin{document} \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p cm and 1 cm); \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (1 cm and \p cm); \end{document} ``` problem with the parser, I suppose ! and the remark of Jake is fine, bett...
13,124
``` \documentclass{article} \usepackage{tikz} \begin{document} % DOES NOT WORK %\tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p and 1); %WORKS \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (1 and \p); \end{document} ``` `(1 and \p)` works but `(\p and 1)` does not, why?
2011/03/10
['https://tex.stackexchange.com/questions/13124', 'https://tex.stackexchange.com', 'https://tex.stackexchange.com/users/2099/']
Spaces after TeX commands are ignored, thus by using `\p and 1` you'll get an equivalent of, say, `1and 1`, which you can verify to give the same error. Therefore we just need to restore the space: ``` \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse (\p{} and 1); ``` Note that, as Jake mentions, this syntax is...
The `(<x radius> and <y radius>)` syntax is old and, if not deprecated, at least not encouraged any more. The current way to do is is to use `[x radius]` and `[y radius]`: ``` \documentclass{article} \usepackage{tikz} \begin{document} % WORKS with current syntax \tikz \foreach \p in {1,2,...,3} \draw (\p,0) ellipse...
26,009,586
I've had a look into the Documentation and Examples (`http://83.212.101.132/`) but I can't find anything. Is it even possible? In large scale projects, like the one I'm working on right now, I most definitely prefer to use OOP. And not being able to support it would be a big letdown.
2014/09/24
['https://Stackoverflow.com/questions/26009586', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4037009/']
I assume you have a toolchain that lets you build applications for your embedded linux platform. This should include gdb (named something like arm-linux-gdb). Next check if linux for your board already includes gdb/gdbserver. If it does, you don't have to build anything. If it does not, configure gdb like this: ``` ....
Remote debugging of embedded systems: GDB, as a server, must be compiled into the debugging target build in order to support connected GDB clients. When running on the client side, there must exist a copy of the target source as well as an unstripped (of symbols) version of the executable. GCC compilation should be do...
26,009,586
I've had a look into the Documentation and Examples (`http://83.212.101.132/`) but I can't find anything. Is it even possible? In large scale projects, like the one I'm working on right now, I most definitely prefer to use OOP. And not being able to support it would be a big letdown.
2014/09/24
['https://Stackoverflow.com/questions/26009586', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4037009/']
Have you already looked at [Buildroot](http://buildroot.uclibc.org/)? It will take care of cross-compiler and root file system. You can choose to compile host and target gdb/gdbserver, so that you'll have everything from one hand. See BR's [documentation](http://nightly.buildroot.org/manual.html#_advanced_usage).
Remote debugging of embedded systems: GDB, as a server, must be compiled into the debugging target build in order to support connected GDB clients. When running on the client side, there must exist a copy of the target source as well as an unstripped (of symbols) version of the executable. GCC compilation should be do...
26,009,586
I've had a look into the Documentation and Examples (`http://83.212.101.132/`) but I can't find anything. Is it even possible? In large scale projects, like the one I'm working on right now, I most definitely prefer to use OOP. And not being able to support it would be a big letdown.
2014/09/24
['https://Stackoverflow.com/questions/26009586', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4037009/']
Remote debugging of embedded systems: GDB, as a server, must be compiled into the debugging target build in order to support connected GDB clients. When running on the client side, there must exist a copy of the target source as well as an unstripped (of symbols) version of the executable. GCC compilation should be do...
Remote debugging of embedded systems: GDB, as a server, must be compiled into the debugging target build in order to support connected GDB clients. When running on the client side, there must exist a copy of the target source as well as an unstripped (of symbols) version of the executable. GCC compilation should be do...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
The line-of-sight benefits are not actually very much, if any. If you've every played wargames with model-based LOS, you're familiar with the excruciating process of eyeballing, using bits of string, and finally arguing over whether being able to draw LOS to a teeny bit of the tip of a sword sticking up above terrain c...
If you are free to alter the dimensions of your planet, you can use any [one of these nice projections](http://en.wikipedia.org/wiki/List_of_map_projections) of a sphere's surface. Note that the projections have 24 squares across and top to bottom (15 degrees lat/long each) ie. a 24x24 grid. At 5' per grid square you...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
The line-of-sight benefits are not actually very much, if any. If you've every played wargames with model-based LOS, you're familiar with the excruciating process of eyeballing, using bits of string, and finally arguing over whether being able to draw LOS to a teeny bit of the tip of a sword sticking up above terrain c...
3d movement in D&D is made by dividing the space in cubes. Each cube that's less than 50% filled is a void space, each cube that's not is all filled. If you build a sphere made of cubes you'll get sections similar to a small circle drawn in Paint. If you get a sphere, sunlight (which rays are parallel) and a transpare...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
Mike Krahulik of Penny Arcade modeled spherical, planar combat in *[D&D in the Elemental Chaos part 1](http://www.penny-arcade.com/2010/06/28/dd-in-the-elemental-chaos-part-1)* and *[D&D in the Elemental Chaos part 2](http://www.penny-arcade.com/2010/06/30/dd-in-the-elemental-chaos-part-2)*. A concern exists that LOE ...
If you are free to alter the dimensions of your planet, you can use any [one of these nice projections](http://en.wikipedia.org/wiki/List_of_map_projections) of a sphere's surface. Note that the projections have 24 squares across and top to bottom (15 degrees lat/long each) ie. a 24x24 grid. At 5' per grid square you...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
Mike Krahulik of Penny Arcade modeled spherical, planar combat in *[D&D in the Elemental Chaos part 1](http://www.penny-arcade.com/2010/06/28/dd-in-the-elemental-chaos-part-1)* and *[D&D in the Elemental Chaos part 2](http://www.penny-arcade.com/2010/06/30/dd-in-the-elemental-chaos-part-2)*. A concern exists that LOE ...
3d movement in D&D is made by dividing the space in cubes. Each cube that's less than 50% filled is a void space, each cube that's not is all filled. If you build a sphere made of cubes you'll get sections similar to a small circle drawn in Paint. If you get a sphere, sunlight (which rays are parallel) and a transpare...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
I would print out a [flattened geodesic sphere](http://sci-toys.com/scitoys/scitoys/mathematics/dome/paper_dome/color_complete.gif) for the minis alongside a printed out and [assembled version of the same](http://sci-toys.com/scitoys/scitoys/mathematics/dome/dome.html#paper_dome), using post-it notes or similar to refe...
If you are free to alter the dimensions of your planet, you can use any [one of these nice projections](http://en.wikipedia.org/wiki/List_of_map_projections) of a sphere's surface. Note that the projections have 24 squares across and top to bottom (15 degrees lat/long each) ie. a 24x24 grid. At 5' per grid square you...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
I would print out a [flattened geodesic sphere](http://sci-toys.com/scitoys/scitoys/mathematics/dome/paper_dome/color_complete.gif) for the minis alongside a printed out and [assembled version of the same](http://sci-toys.com/scitoys/scitoys/mathematics/dome/dome.html#paper_dome), using post-it notes or similar to refe...
3d movement in D&D is made by dividing the space in cubes. Each cube that's less than 50% filled is a void space, each cube that's not is all filled. If you build a sphere made of cubes you'll get sections similar to a small circle drawn in Paint. If you get a sphere, sunlight (which rays are parallel) and a transpare...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
1. Buy a soccer ball 2. Add velcro 3. ??? 4. Profit On a more serious note, you'd need to sort out how movement would work, and possibly subdivide each patch into 5 or 6 triangles depending on the size of the pieces you're velcroing on. Additionally, you might want to prop the soccer ball up on stilts so that you cou...
If you are free to alter the dimensions of your planet, you can use any [one of these nice projections](http://en.wikipedia.org/wiki/List_of_map_projections) of a sphere's surface. Note that the projections have 24 squares across and top to bottom (15 degrees lat/long each) ie. a 24x24 grid. At 5' per grid square you...
29,234
In an upcoming campaign I'm planning, I would like a combat encounter to take place on a small sphere, with gravity pointing in towards the center. I'd like a sphere about 50' in diameter - something large enough to allow plenty of movement on its surface, but small enough so that players can typically run around it in...
2013/10/07
['https://rpg.stackexchange.com/questions/29234', 'https://rpg.stackexchange.com', 'https://rpg.stackexchange.com/users/2161/']
1. Buy a soccer ball 2. Add velcro 3. ??? 4. Profit On a more serious note, you'd need to sort out how movement would work, and possibly subdivide each patch into 5 or 6 triangles depending on the size of the pieces you're velcroing on. Additionally, you might want to prop the soccer ball up on stilts so that you cou...
3d movement in D&D is made by dividing the space in cubes. Each cube that's less than 50% filled is a void space, each cube that's not is all filled. If you build a sphere made of cubes you'll get sections similar to a small circle drawn in Paint. If you get a sphere, sunlight (which rays are parallel) and a transpare...
34,569,249
I saw the following program on a site and I cannot understand the output . <http://codepad.org/T0qblfYg> ``` #include <iostream> using namespace std; int i; class A { public: ~A() { i=10; } }; int foo() { i=3; A ob; return i; } int main() { cout <<"\n 1) Before calling i is "<<...
2016/01/02
['https://Stackoverflow.com/questions/34569249', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1636300/']
The order of evaluation is not what you would expect. When calling functions, the arguments to the functions can be evaluated in any order and even interleaved. So if you call ``` f( g(), h(), i() ); ``` the order in which `g()`, `h()` and `i()` are called is up to the compiler. *This also applies to operators.* Whe...
> > why did i see this and where exactly is destruction getting called . > > > I believe the instance destructor is called when that instance goes out of scope. You might test it the following way (by controlling the scope of the instance -- see bar() below) Note - to reduce confusion, I 1) renamed the global and...
34,569,249
I saw the following program on a site and I cannot understand the output . <http://codepad.org/T0qblfYg> ``` #include <iostream> using namespace std; int i; class A { public: ~A() { i=10; } }; int foo() { i=3; A ob; return i; } int main() { cout <<"\n 1) Before calling i is "<<...
2016/01/02
['https://Stackoverflow.com/questions/34569249', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1636300/']
Destructors run **after** the expression in the `return` statement is evaluated. If it was the other way around you'd be in deep trouble: ``` std::string f() { std::string res = "abcd"; return res; } ``` This function should return a string object that holds `"abcd"`, not a copy of a string object that has already b...
> > why did i see this and where exactly is destruction getting called . > > > I believe the instance destructor is called when that instance goes out of scope. You might test it the following way (by controlling the scope of the instance -- see bar() below) Note - to reduce confusion, I 1) renamed the global and...
39,332
> > [Galatians 5:19 Now](https://biblehub.com/galatians/5-19.htm) the works of the flesh are manifest, which are > these; Adultery, fornication, uncleanness, lasciviousness, > > > What is the difference between adultery, fornication, uncleanness & lasciviousness in the verse above? I looked into the Greek from [t...
2019/03/06
['https://hermeneutics.stackexchange.com/questions/39332', 'https://hermeneutics.stackexchange.com', 'https://hermeneutics.stackexchange.com/users/26800/']
The word ἀδελφός (adelphos) occurs well over 300 times in the NT for which BDAG has two basic meanings: > > (1) **a male from the same womb as the reference person, *brother***, > eg, **Matt 1:2, 11, 4:18, 21, Gal 1:19**, etc. … Hence there is no > doubt that in Luke 21:16 that the plural "adelphoi" = brothers and ...
In I John 2:12, the very next verse, John speaks to 'little children'. In such a context, it is my own understanding that the 'brother' referred to in the previous few verses would be a sibling. Or like a sibling - namely a brother in Christ. To hate one's own Christian brother is a terrible thing. I believe that is ...
39,332
> > [Galatians 5:19 Now](https://biblehub.com/galatians/5-19.htm) the works of the flesh are manifest, which are > these; Adultery, fornication, uncleanness, lasciviousness, > > > What is the difference between adultery, fornication, uncleanness & lasciviousness in the verse above? I looked into the Greek from [t...
2019/03/06
['https://hermeneutics.stackexchange.com/questions/39332', 'https://hermeneutics.stackexchange.com', 'https://hermeneutics.stackexchange.com/users/26800/']
The word ἀδελφός (adelphos) occurs well over 300 times in the NT for which BDAG has two basic meanings: > > (1) **a male from the same womb as the reference person, *brother***, > eg, **Matt 1:2, 11, 4:18, 21, Gal 1:19**, etc. … Hence there is no > doubt that in Luke 21:16 that the plural "adelphoi" = brothers and ...
The definition is found in Greek Lexicon de Thayer: Thayer’s Greek Lexicon Strong’s NT 80: ἀδελφός ἀδελφός, (οῦ, ὁ (from ἆ copulative and δελφύς, **from the same womb**), however, the word was used for the father Jacob in Genesis 37:3-4 with four different wives (septuagint). There was an advance of meaning of the word...
39,332
> > [Galatians 5:19 Now](https://biblehub.com/galatians/5-19.htm) the works of the flesh are manifest, which are > these; Adultery, fornication, uncleanness, lasciviousness, > > > What is the difference between adultery, fornication, uncleanness & lasciviousness in the verse above? I looked into the Greek from [t...
2019/03/06
['https://hermeneutics.stackexchange.com/questions/39332', 'https://hermeneutics.stackexchange.com', 'https://hermeneutics.stackexchange.com/users/26800/']
The word ἀδελφός (adelphos) occurs well over 300 times in the NT for which BDAG has two basic meanings: > > (1) **a male from the same womb as the reference person, *brother***, > eg, **Matt 1:2, 11, 4:18, 21, Gal 1:19**, etc. … Hence there is no > doubt that in Luke 21:16 that the plural "adelphoi" = brothers and ...
**What's the meaning of brother in 1 John 2.9-11?** In context of John's writings,the expression "brothers" refers to the anointed brothers of Christ, more commonly known as "saints" they are also referred to as "the least of these brothers or sisters of mine. Matthew 25:40 NET > > 40" And the king will answer the...
34,459,128
I have Form1 and Form2 simultaneously active, Form2 has a TabControl and I want button click event on Form1 to change 'Enable' property of tabControl on Form2 TabControl on Form2 is set to `tabControl1.enabled = false;` and Form1 acts as a login form for Form2, so I need a Login button on Form1 to enable 'tabControl1'...
2015/12/25
['https://Stackoverflow.com/questions/34459128', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2095012/']
You get this error since `xxxSlider.value` is of type `Float`, whereas `UIColor` initialiser calls for type `CGFloat` for all four arguments. You can redeem this error by changing the line into: ``` colorView.backgroundColor = UIColor(red: CGFloat(redSlider.value), green: CGFloat(greenSlider.value), blue: CGFloat(blu...
`CGFloat` and `Float` are technically different types. The Swift programming language does not do any numeric type conversion / coercion. As such, you must explicitly convert from `Float` to `CGFloat` using one of the constructors on `CGFloat`. ``` colorView.backgroundColor = UIColor(red: CGFloat(redSlider.value), gre...
34,459,128
I have Form1 and Form2 simultaneously active, Form2 has a TabControl and I want button click event on Form1 to change 'Enable' property of tabControl on Form2 TabControl on Form2 is set to `tabControl1.enabled = false;` and Form1 acts as a login form for Form2, so I need a Login button on Form1 to enable 'tabControl1'...
2015/12/25
['https://Stackoverflow.com/questions/34459128', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2095012/']
You get this error since `xxxSlider.value` is of type `Float`, whereas `UIColor` initialiser calls for type `CGFloat` for all four arguments. You can redeem this error by changing the line into: ``` colorView.backgroundColor = UIColor(red: CGFloat(redSlider.value), green: CGFloat(greenSlider.value), blue: CGFloat(blu...
In my app using Swift 4, I am using this to convert Float to CGFloat: ``` let slider = sender as? UISlider let val = CGFloat((slider?.value)!) ``` And then using the variable val as needed, which in my case is for hue, saturation and brightness, e.g. ``` coolButton.saturation = val ```
34,459,128
I have Form1 and Form2 simultaneously active, Form2 has a TabControl and I want button click event on Form1 to change 'Enable' property of tabControl on Form2 TabControl on Form2 is set to `tabControl1.enabled = false;` and Form1 acts as a login form for Form2, so I need a Login button on Form1 to enable 'tabControl1'...
2015/12/25
['https://Stackoverflow.com/questions/34459128', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2095012/']
`CGFloat` and `Float` are technically different types. The Swift programming language does not do any numeric type conversion / coercion. As such, you must explicitly convert from `Float` to `CGFloat` using one of the constructors on `CGFloat`. ``` colorView.backgroundColor = UIColor(red: CGFloat(redSlider.value), gre...
In my app using Swift 4, I am using this to convert Float to CGFloat: ``` let slider = sender as? UISlider let val = CGFloat((slider?.value)!) ``` And then using the variable val as needed, which in my case is for hue, saturation and brightness, e.g. ``` coolButton.saturation = val ```
92,034
The gospel of Matthew records that after Jesus’ death, the Pharisees and teachers of the Law went to Pilate to ask for a guard, since they remembered that Jesus said he would rise again on the third day. > > “The next day, the one after Preparation Day, the chief priests and the Pharisees went to Pilate. “Sir,” they ...
2022/07/30
['https://christianity.stackexchange.com/questions/92034', 'https://christianity.stackexchange.com', 'https://christianity.stackexchange.com/users/59680/']
The Pharisees did not believe that a crucified Jesus of Nazareth would ever rise from the dead. Had they believed he was the foretold Messiah, they would have taken the possibility of that seriously. Given that they wanted this Jesus out of the way due to his claims, they wanted him to stay out of the way once they'd g...
**The Pharisees' reasoning** The Pharisees did not believe Jesus would rise on the third day. They knew that Jesus had prophesied it would happen, and they wanted to prevent anyone from believing the prophecy had been fulfilled through deception on the part of the disciples (by stealing the body). The Pharisees did n...
92,034
The gospel of Matthew records that after Jesus’ death, the Pharisees and teachers of the Law went to Pilate to ask for a guard, since they remembered that Jesus said he would rise again on the third day. > > “The next day, the one after Preparation Day, the chief priests and the Pharisees went to Pilate. “Sir,” they ...
2022/07/30
['https://christianity.stackexchange.com/questions/92034', 'https://christianity.stackexchange.com', 'https://christianity.stackexchange.com/users/59680/']
The Pharisees did not believe that a crucified Jesus of Nazareth would ever rise from the dead. Had they believed he was the foretold Messiah, they would have taken the possibility of that seriously. Given that they wanted this Jesus out of the way due to his claims, they wanted him to stay out of the way once they'd g...
The leaders of the people requested a guard be posted because they listened and understood what was spoken to them. They identified Jesus of Nazareth as the Christ, and wanted him dead. Once dead, they where concerned an event would happen. They likely where unsure what exactly would happen. Jesus mentioned he would r...
17,269,744
HTML: ```html <input id="otherCheckbox2" type="checkbox" value="Accepted" style="color: Black" class="chkdisplay" onchange="javascript:othercheckbxdisplay();" /> <span style="color: Black">Accepted</span> <br /> <input id="otherCheckbox3" type="checkbox" value="Contracted" style="color: Black" class="chkdisplay" o...
2013/06/24
['https://Stackoverflow.com/questions/17269744', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2194674/']
You have a typo, `.ckhdisplay` should be `.chkdisplay`. Because of that, your `.each` call has no elements to iterate over because there are none with the given class. ``` function ShowHideDxColumn() { alert("hi"); $(".chkdisplay").each(function (index) { if ($(this).is(":checked")) { ...
Please try this: ``` $.each($(".chkdisplay"), function(index, element) { if ($(this).attr('checked')){ alert(index); } }); ```
37,694,419
I need to pass checkbox Boolean value(True or False) from below java method to java script function. Java Method:: ``` M1() { generatedXML.append("<div id=checkboxes> "); generatedXML.append("<input type=checkbox "); generatedXML.append(" onchange=\"setValue('"); generatedXML.append(obj); generatedXML.appen...
2016/06/08
['https://Stackoverflow.com/questions/37694419', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4873517/']
You should add an id attribute to the checkbox and in the javascript access the checkbox itself by its own id. Something like ``` document.getElementById('checkIdHere'); ```
Assign your checkbox with an ID and in `onchange` function access checkbox with that id or you can pass the instance of checkbox to `onchange` function and directly access the value of checkbox. ``` var value = document.getElementById("chkTest").checked ``` And if you want to access value without `id` than pass `thi...