qid int64 1 74.7M | question stringlengths 0 58.3k | date stringlengths 10 10 | metadata list | response_j stringlengths 2 48.3k | response_k stringlengths 2 40.5k |
|---|---|---|---|---|---|
35,807,588 | How can fix it (zend version 2.5) ?
ServiceLocatorAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceLocatorAwareInitializer. Please update your class Teacher\Controller\TeacherController to remove the implementation, and start injecting your dependencies via factory instead
I trie... | 2016/03/04 | [
"https://Stackoverflow.com/questions/35807588",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2017595/"
] | Have a look [here](https://github.com/zendframework/zend-mvc/issues/87). The patch is already merged. Here is the [link to the patch](https://github.com/zendframework/zend-mvc/pull/88).
[This Link](http://www.zfdaily.com/2012/07/getting-dependencies-into-zf2-controllers/) helped me to inject dependencies right. | You need add **~E\_USER\_DEPRECATED**
You can add in the public/index.php
```
ini_set ( "error_reporting", E_ALL & ~ E_DEPRECATED & ~E_USER_DEPRECATED & ~ E_STRICT );
```
or
```
error_reporting ( E_ALL & ~ E_DEPRECATED & ~ E_USER_DEPRECATED & ~ E_STRICT );
```
>
> User-generated warning message. This is like ... |
39,440,027 | Edit: the problem didn't lie in NtQuerySystemInformation but in the file type (bObjectType) having changed in this new edition of Windows 10 to the value 34. in Creators Update it's 35.
I have been using the following code successfully to retrieve a list of files in use by a given process, but since the Windows 10 "an... | 2016/09/11 | [
"https://Stackoverflow.com/questions/39440027",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/623437/"
] | The next code (in C++) works 100% correct on all Windows versions (Win 10 1607 as well). Also, I use `SystemExtendedHandleInformation` in place of `SystemHandleInformation`, and advise you to do so, too. It is present from XP onwards. However, the code with `SystemHandleInformation` also works correctly, I just checked... | I just tested the code from my blog article "[Running multiple instances of Microsoft Lync](http://www.remkoweijnen.nl/blog/2012/03/07/running-multiple-instances-of-lync-howto/)" on Windows 10 Anniversary Update on it appears to work without any issues.
Here's the code that I tested (takes process name eg foobar.exe a... |
31,073,977 | I have been searching through stackOverflow and whatever google proposes but I wasn't able to get it to work. I am intending to draw a simple 2D Graph in a scrollview, the distance between my datapoints is `kStepX` and I want the scrollview to be at least the width of the screen, if I have more datapoints it should scr... | 2015/06/26 | [
"https://Stackoverflow.com/questions/31073977",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3545176/"
] | You should not be setting the `contentSize` of the `scrollView` when using auto layout. That should be calculated from your constraints if they are setup correctly.
What you are missing is to set a width and height constraints on the view inside the scrollView. A `scrollView` determines it's `contentSize` based on the... | Take ScrollView in side in your Main View and give `Top`,`Bottom`,`Leading`,`Trailing`,`Center X` and `Center Y`.
after take `GraphView` inside you `scrollview` and also set constrain of `GraphView`.
set height of `GraphView`
```
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *HeightGraphView;
```
whenEv... |
6,564,962 | I'm trying to get a jQuery accordion/tab Shortcode to look like this
```
[accordions]
[accordion title="Accordion 1"]Accordion 1 Content[/accordion]
[accordion title="Accordion 2"]Accordion 2 Content[/accordion]
[accordion title="Accordion 3"]Accordion 3 Content[/accordion]
[/accordions]
```
I've tried many ways but... | 2011/07/03 | [
"https://Stackoverflow.com/questions/6564962",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/493600/"
] | It seems to me that your problem is not with multi-threading, but with inputting something in a GUI from the application fetching the URLs from the database.
Why don't you simply reuse the class (or some of the code, if it's impossible to reuse the classes as is) of your GUI application (i.e. the URL indexing method) ... | [`SwingWorker`](http://download.oracle.com/javase/6/docs/api/javax/swing/SwingWorker.html), shown [here](https://stackoverflow.com/questions/4637215/can-a-progress-bar-be-used-in-a-class-outside-main/4637725#4637725), is a good choice. |
3,792,402 | I have an update to my app that has been reviewed and is **Pending Developer Release**.
I have found a bug in this version and would actually like to reject this binary and keep my existing binary.
Once I fix the bug, I would like to re-upload a new binary. Is this possible? | 2010/09/25 | [
"https://Stackoverflow.com/questions/3792402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/457940/"
] | It took me a little while to find the answer to this. It can be done, but the answer isn't very intuitive.
In iTunes Connect, select your new application & load the details for it. Click the "Binary Details" link. Once this screen is open, there will be a "Reject this Binary" button on this screen.
I found this withi... | From the [iTunes Connect Developer Guide:](http://itunesconnect.apple.com/docs/iTunesConnect_DeveloperGuide.pdf)
NOTE: You can only use the Version Release Control on app updates. It is not available for the first version of your app since you already have the ability to control when your first version goes live, usin... |
3,792,402 | I have an update to my app that has been reviewed and is **Pending Developer Release**.
I have found a bug in this version and would actually like to reject this binary and keep my existing binary.
Once I fix the bug, I would like to re-upload a new binary. Is this possible? | 2010/09/25 | [
"https://Stackoverflow.com/questions/3792402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/457940/"
] | Attaching screenshots from the App Store Connect (previously known as iTunes Connect) interface:
Select the version, then click on "cancel this release"
>
> You can only edit some information while your version is pending developer release. To edit all information, **cancel this release**.
>
>
>
[
NOTE: You can only use the Version Release Control on app updates. It is not available for the first version of your app since you already have the ability to control when your first version goes live, usin... |
3,792,402 | I have an update to my app that has been reviewed and is **Pending Developer Release**.
I have found a bug in this version and would actually like to reject this binary and keep my existing binary.
Once I fix the bug, I would like to re-upload a new binary. Is this possible? | 2010/09/25 | [
"https://Stackoverflow.com/questions/3792402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/457940/"
] | Explanation to kernix answer:
* select app in itunesconnect;
* select app version;
* you will see "You can only edit some information while your version is pending developer release. To edit all information, cancel this release." at the top of the page. Just click on "cancel this release" link. | From the [iTunes Connect Developer Guide:](http://itunesconnect.apple.com/docs/iTunesConnect_DeveloperGuide.pdf)
NOTE: You can only use the Version Release Control on app updates. It is not available for the first version of your app since you already have the ability to control when your first version goes live, usin... |
3,792,402 | I have an update to my app that has been reviewed and is **Pending Developer Release**.
I have found a bug in this version and would actually like to reject this binary and keep my existing binary.
Once I fix the bug, I would like to re-upload a new binary. Is this possible? | 2010/09/25 | [
"https://Stackoverflow.com/questions/3792402",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/457940/"
] | It took me a little while to find the answer to this. It can be done, but the answer isn't very intuitive.
In iTunes Connect, select your new application & load the details for it. Click the "Binary Details" link. Once this screen is open, there will be a "Reject this Binary" button on this screen.
I found this withi... | Attaching screenshots from the App Store Connect (previously known as iTunes Connect) interface:
Select the version, then click on "cancel this release"
>
> You can only edit some information while your version is pending developer release. To edit all information, **cancel this release**.
>
>
>
[ interface:
Select the version, then click on "cancel this release"
>
> You can only edit some information while your version is pending developer release. To edit all information, **cancel this release**.
>
>
>
[? Google Analytics JS api doesn't like the filter command.
```
{
"rows": [
[
"Load",
"11"
],
[
"No Thanks",
... | 2014/12/14 | [
"https://Stackoverflow.com/questions/27472505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1830549/"
] | Just use a for loop...
```
var submitFound
for(var i = 0; i < rows.length; i++) {
var row = rows[i]
if (row[0] === 'Submit') {
submitFound = true
break
}
}
if (submitFound) // do stuff
``` | Assuming the structure you have in your question is assigned to returnData:
```
var returnedData = {...}; //Structure from the question
var value = -1;
for(var i = 0; i < returnedData.rows.length; i++){
var row = returnedData.rows[i];
if (row[0] == 'Submit') {
value = row[1];
break;
}
}
if... |
27,472,505 | Under `rows`, I want to check and see if I have a value of `Submit` and the integer value that comes after it. How can I retrieve these two values without using Array.filter()? Google Analytics JS api doesn't like the filter command.
```
{
"rows": [
[
"Load",
"11"
],
[
"No Thanks",
... | 2014/12/14 | [
"https://Stackoverflow.com/questions/27472505",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1830549/"
] | Just use a for loop...
```
var submitFound
for(var i = 0; i < rows.length; i++) {
var row = rows[i]
if (row[0] === 'Submit') {
submitFound = true
break
}
}
if (submitFound) // do stuff
``` | Here is an alternative, if you don't wanna use a loop try this :
```
// this object is simplified for test
var json={
"rows": [
[
"Load",
"11"
],
[
"Submit",
"30"
]
]
};
var stringJson=JSON.stringify(json);
var valueOfSubmit= stringJson.match("\"Submit\"\,\"([^)]+)\"\... |
13,515,083 | I am building an entire system using PHP and MySQL.
I want to create usergroups.
For example
I want *ADMIN1* to be able to **ADD USER**, and **REMOVE USER**
BUT
I want *ADMIN2* to be able to **ADD USER** only
What is the standard way to do this?
Thanks. | 2012/11/22 | [
"https://Stackoverflow.com/questions/13515083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1799131/"
] | You can use system used in drupal ("table\_name"):
"users" [uid, name]
"users\_roles" [uid, rid]
"role" [rid, name]
"permission" [pid, rid, name] | I create roles for this, for example ADMIN1, ADMIN2 or whatever descriptive names suits best. Each user is then assigned a Role, and for pages or functions with limited access I check if the logged on user is part of the required role. |
13,515,083 | I am building an entire system using PHP and MySQL.
I want to create usergroups.
For example
I want *ADMIN1* to be able to **ADD USER**, and **REMOVE USER**
BUT
I want *ADMIN2* to be able to **ADD USER** only
What is the standard way to do this?
Thanks. | 2012/11/22 | [
"https://Stackoverflow.com/questions/13515083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1799131/"
] | You could use a simple login system and use sessions to allow access to certain pages e.g.
```
session_start();
if (!(isset($_SESSION['login']) && $_SESSION['login'] != '')) {
header ("Location: login.php");
}
```
This example just stops the user from accessing any other pages without first logging in. The login pag... | I create roles for this, for example ADMIN1, ADMIN2 or whatever descriptive names suits best. Each user is then assigned a Role, and for pages or functions with limited access I check if the logged on user is part of the required role. |
13,515,083 | I am building an entire system using PHP and MySQL.
I want to create usergroups.
For example
I want *ADMIN1* to be able to **ADD USER**, and **REMOVE USER**
BUT
I want *ADMIN2* to be able to **ADD USER** only
What is the standard way to do this?
Thanks. | 2012/11/22 | [
"https://Stackoverflow.com/questions/13515083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1799131/"
] | You can use system used in drupal ("table\_name"):
"users" [uid, name]
"users\_roles" [uid, rid]
"role" [rid, name]
"permission" [pid, rid, name] | There aren't *usergroups* in mysql. You'll need to use the grant syntax: <https://dev.mysql.com/doc/refman/5.5/en/grant.html> |
13,515,083 | I am building an entire system using PHP and MySQL.
I want to create usergroups.
For example
I want *ADMIN1* to be able to **ADD USER**, and **REMOVE USER**
BUT
I want *ADMIN2* to be able to **ADD USER** only
What is the standard way to do this?
Thanks. | 2012/11/22 | [
"https://Stackoverflow.com/questions/13515083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1799131/"
] | You could use a simple login system and use sessions to allow access to certain pages e.g.
```
session_start();
if (!(isset($_SESSION['login']) && $_SESSION['login'] != '')) {
header ("Location: login.php");
}
```
This example just stops the user from accessing any other pages without first logging in. The login pag... | There aren't *usergroups* in mysql. You'll need to use the grant syntax: <https://dev.mysql.com/doc/refman/5.5/en/grant.html> |
13,515,083 | I am building an entire system using PHP and MySQL.
I want to create usergroups.
For example
I want *ADMIN1* to be able to **ADD USER**, and **REMOVE USER**
BUT
I want *ADMIN2* to be able to **ADD USER** only
What is the standard way to do this?
Thanks. | 2012/11/22 | [
"https://Stackoverflow.com/questions/13515083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1799131/"
] | You can use system used in drupal ("table\_name"):
"users" [uid, name]
"users\_roles" [uid, rid]
"role" [rid, name]
"permission" [pid, rid, name] | Are you looking for something like this?
```
Create user ‘admin1’ identified by ‘YOUR_PASSWORD’;
Revoke all on * from ‘admin1’;
Grant insert, delete, update, select on YOUR_TABLE to ‘admin1’;
Create user ‘admin2’ identified by ‘YOUR_PASSWORD’;
Revoke all on * from ‘admin2’;
Grant insert on YOUR_TABLE to ‘admin2’;
``... |
13,515,083 | I am building an entire system using PHP and MySQL.
I want to create usergroups.
For example
I want *ADMIN1* to be able to **ADD USER**, and **REMOVE USER**
BUT
I want *ADMIN2* to be able to **ADD USER** only
What is the standard way to do this?
Thanks. | 2012/11/22 | [
"https://Stackoverflow.com/questions/13515083",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1799131/"
] | You could use a simple login system and use sessions to allow access to certain pages e.g.
```
session_start();
if (!(isset($_SESSION['login']) && $_SESSION['login'] != '')) {
header ("Location: login.php");
}
```
This example just stops the user from accessing any other pages without first logging in. The login pag... | Are you looking for something like this?
```
Create user ‘admin1’ identified by ‘YOUR_PASSWORD’;
Revoke all on * from ‘admin1’;
Grant insert, delete, update, select on YOUR_TABLE to ‘admin1’;
Create user ‘admin2’ identified by ‘YOUR_PASSWORD’;
Revoke all on * from ‘admin2’;
Grant insert on YOUR_TABLE to ‘admin2’;
``... |
17,736,419 | I am trying to resize the buttons in a button array I made, but I don't know how
Here's my code
```
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.game);
final TableLayout container = (TableLayout) findViewById(R.id.tableLayout5);... | 2013/07/19 | [
"https://Stackoverflow.com/questions/17736419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2585782/"
] | ```
var p = System.Diagnostics.Process.Start("notepad");
p.WaitForExit();
``` | You can use the Process class to start external processes.
It will let you start arbitrary programs
<http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx> |
17,736,419 | I am trying to resize the buttons in a button array I made, but I don't know how
Here's my code
```
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.game);
final TableLayout container = (TableLayout) findViewById(R.id.tableLayout5);... | 2013/07/19 | [
"https://Stackoverflow.com/questions/17736419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2585782/"
] | You can use the `Process` class. It lets you specify some options about how you want to execute it, and also provides a method which waits the process to exit before executing the next statement.
look at this link (the msdn reference):
<http://msdn.microsoft.com/fr-fr/library/system.diagnostics.process.aspx>
basicall... | You can use the Process class to start external processes.
It will let you start arbitrary programs
<http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx> |
17,736,419 | I am trying to resize the buttons in a button array I made, but I don't know how
Here's my code
```
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.game);
final TableLayout container = (TableLayout) findViewById(R.id.tableLayout5);... | 2013/07/19 | [
"https://Stackoverflow.com/questions/17736419",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2585782/"
] | You can use the `Process` class. It lets you specify some options about how you want to execute it, and also provides a method which waits the process to exit before executing the next statement.
look at this link (the msdn reference):
<http://msdn.microsoft.com/fr-fr/library/system.diagnostics.process.aspx>
basicall... | ```
var p = System.Diagnostics.Process.Start("notepad");
p.WaitForExit();
``` |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Looks like this problem is due to the default browser for Eclipse not having the required libraries.
Try below steps to add the required library:
Project -> Properties -> JavaScript -> JavaScript Libraries -> Libraries(tab) -> Add Runtime Library -> select 'Internet Explorer Library'
This should resolve the issue. It... | After hours of looking around I have found how to definetly remove JS validation.
This means editing your .project file, so back it up before just in case.
* Close Eclipse
* Open your .project file
* look for the following line : <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
* delete it
* save your file and sta... |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Apparently to fully disable the validation you should also disable "Report problems as you type" under JavaScript -> Editor. | The answer of user85835 helped me a bit but I also needed to follow these two extra steps.
First in order to actually remove the warnings and errors and avoid having them recreated immediately do like this:
1. Disable automatic immediate rebuild after clean which is done in the Clean... window.
2. Clean project
Th... |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Looks like this problem is due to the default browser for Eclipse not having the required libraries.
Try below steps to add the required library:
Project -> Properties -> JavaScript -> JavaScript Libraries -> Libraries(tab) -> Add Runtime Library -> select 'Internet Explorer Library'
This should resolve the issue. It... | I found that old validation errors will stick around in the problems view and highlighted in the files until after you tell it to validate again, so after saving your JSP validation preferences, right click on a project to validate everything in it; that will make the errors go away. |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Looks like this problem is due to the default browser for Eclipse not having the required libraries.
Try below steps to add the required library:
Project -> Properties -> JavaScript -> JavaScript Libraries -> Libraries(tab) -> Add Runtime Library -> select 'Internet Explorer Library'
This should resolve the issue. It... | Apparently to fully disable the validation you should also disable "Report problems as you type" under JavaScript -> Editor. |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Looks like this problem is due to the default browser for Eclipse not having the required libraries.
Try below steps to add the required library:
Project -> Properties -> JavaScript -> JavaScript Libraries -> Libraries(tab) -> Add Runtime Library -> select 'Internet Explorer Library'
This should resolve the issue. It... | This is very painful. One way to solve the problem for me was to exclude all the js files from the build. Properties->javascript->Libraries->Source tab and exclude all the files that give you problems....its a pitty because I wanted some autocomplete.... : ( but need to finish the project for work....
If somebody has a... |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Unfortunately, you might just have to scrap the JavaScript validation.
In my experience, the JavaScript tools which come bundled with Eclipse 3.4 have a hard time... well, *understanding* JavaScript at all, generating bogus warnings and errors as a result.
For example, the common practice of using an `Object` as a po... | Apparently to fully disable the validation you should also disable "Report problems as you type" under JavaScript -> Editor. |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | This is very painful. One way to solve the problem for me was to exclude all the js files from the build. Properties->javascript->Libraries->Source tab and exclude all the files that give you problems....its a pitty because I wanted some autocomplete.... : ( but need to finish the project for work....
If somebody has a... | I found that old validation errors will stick around in the problems view and highlighted in the files until after you tell it to validate again, so after saving your JSP validation preferences, right click on a project to validate everything in it; that will make the errors go away. |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Unfortunately, you might just have to scrap the JavaScript validation.
In my experience, the JavaScript tools which come bundled with Eclipse 3.4 have a hard time... well, *understanding* JavaScript at all, generating bogus warnings and errors as a result.
For example, the common practice of using an `Object` as a po... | After hours of looking around I have found how to definetly remove JS validation.
This means editing your .project file, so back it up before just in case.
* Close Eclipse
* Open your .project file
* look for the following line : <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
* delete it
* save your file and sta... |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | This is very painful. One way to solve the problem for me was to exclude all the js files from the build. Properties->javascript->Libraries->Source tab and exclude all the files that give you problems....its a pitty because I wanted some autocomplete.... : ( but need to finish the project for work....
If somebody has a... | After hours of looking around I have found how to definetly remove JS validation.
This means editing your .project file, so back it up before just in case.
* Close Eclipse
* Open your .project file
* look for the following line : <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
* delete it
* save your file and sta... |
261,045 | I just upgraded to Eclipse 3.4 for the second time and I think its for good now. The first time (right when it was released) was too buggy for me to stomach (mainly the PDT 2.0 plug-in); but now it seems to be all worked out.
My problem is the Javascript validator. If I define a class in one JS file in my project, the... | 2008/11/04 | [
"https://Stackoverflow.com/questions/261045",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/-1/"
] | Unfortunately, you might just have to scrap the JavaScript validation.
In my experience, the JavaScript tools which come bundled with Eclipse 3.4 have a hard time... well, *understanding* JavaScript at all, generating bogus warnings and errors as a result.
For example, the common practice of using an `Object` as a po... | I found that old validation errors will stick around in the problems view and highlighted in the files until after you tell it to validate again, so after saving your JSP validation preferences, right click on a project to validate everything in it; that will make the errors go away. |
23,771,787 | I have Drupal 7 Open Atrium 2 site hosted on Pantheon. While doing some performance profiling, I looked into the Inspector, in the Networks tab, and saw that I had a 404, as well as a loading of a CSS file that was taking a long time. This css file was essentially a link to the domain. I don't understand where or why D... | 2014/05/20 | [
"https://Stackoverflow.com/questions/23771787",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1432612/"
] | One trick in the Sql Server world that I'm sure easily translates to other Sql environments is to test for a value in the update, and if null, just use the existing value.
```
UPDATE city
SET
Population = @population --sql server syntax for parameters,
...--other columns
IDTimeZone = Case When @IDTimeZone IS NULL Then... | My first question to you would be: can't you cache the time zone data somewhere rather than query it every time?
Ok, that out of the way, if I understand your question, you want to issue the update though the user may not have selected a timezone. As far as the database is concerned, the foreign key field of your CITY... |
51,551,370 | I'm using *Ubuntu 18.04* and *boost.asio* to send a POST request to a rest API. When the server is receiving the request it catches it but I can't seem to define its content type. I have a function `collectRequestData` that is supposed to parse the body of the request and return it where it is then saved to a MySQL dat... | 2018/07/27 | [
"https://Stackoverflow.com/questions/51551370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9986496/"
] | You are missing an end of line
```
request_stream << "User-Agent: C/1.0";
```
should be
```
request_stream << "User-Agent: C/1.0\r\n";
```
Means your content type header never gets recognised because it isn't on a separate line | I'm assuming you're using nodeJS for the server
nodejs gives you the request header in lower case
so
```
function collectRequestData(request, callback) {
console.log(request.headers['content-type']);
const FORM_URLENCODED = 'application/json';
if(request.headers['content-type'] === FORM_URLENCODED) {
... |
51,551,370 | I'm using *Ubuntu 18.04* and *boost.asio* to send a POST request to a rest API. When the server is receiving the request it catches it but I can't seem to define its content type. I have a function `collectRequestData` that is supposed to parse the body of the request and return it where it is then saved to a MySQL dat... | 2018/07/27 | [
"https://Stackoverflow.com/questions/51551370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9986496/"
] | You are missing an end of line
```
request_stream << "User-Agent: C/1.0";
```
should be
```
request_stream << "User-Agent: C/1.0\r\n";
```
Means your content type header never gets recognised because it isn't on a separate line | First of all, i think you should double check whether the server is right or not. Offering one method:
```
curl "http://localhost:8080/licence" --data "{json format text}" -v
```
If this command responses the same result as yours, it is the problem of server.
If not, try to assemble the same request package content ... |
51,551,370 | I'm using *Ubuntu 18.04* and *boost.asio* to send a POST request to a rest API. When the server is receiving the request it catches it but I can't seem to define its content type. I have a function `collectRequestData` that is supposed to parse the body of the request and return it where it is then saved to a MySQL dat... | 2018/07/27 | [
"https://Stackoverflow.com/questions/51551370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9986496/"
] | It feels a web-server issue, you are probably not compliant with the http protocol specification. Try using boost::beast, available in boost 1.66 and over. It's a wrapper over boost::asio that adds high level web-server and web-socket functionality. You don't need to bother with low-level HTTP implementation.
[sample ... | I'm assuming you're using nodeJS for the server
nodejs gives you the request header in lower case
so
```
function collectRequestData(request, callback) {
console.log(request.headers['content-type']);
const FORM_URLENCODED = 'application/json';
if(request.headers['content-type'] === FORM_URLENCODED) {
... |
51,551,370 | I'm using *Ubuntu 18.04* and *boost.asio* to send a POST request to a rest API. When the server is receiving the request it catches it but I can't seem to define its content type. I have a function `collectRequestData` that is supposed to parse the body of the request and return it where it is then saved to a MySQL dat... | 2018/07/27 | [
"https://Stackoverflow.com/questions/51551370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9986496/"
] | The correct solution is a combination of what @john and @Jaromanda X said and I also had to change `const FORM_URLENCODED = 'application/json';` to `const FORM_URLENCODED = 'application/json; charset=utf-8'` | I'm assuming you're using nodeJS for the server
nodejs gives you the request header in lower case
so
```
function collectRequestData(request, callback) {
console.log(request.headers['content-type']);
const FORM_URLENCODED = 'application/json';
if(request.headers['content-type'] === FORM_URLENCODED) {
... |
51,551,370 | I'm using *Ubuntu 18.04* and *boost.asio* to send a POST request to a rest API. When the server is receiving the request it catches it but I can't seem to define its content type. I have a function `collectRequestData` that is supposed to parse the body of the request and return it where it is then saved to a MySQL dat... | 2018/07/27 | [
"https://Stackoverflow.com/questions/51551370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9986496/"
] | It feels a web-server issue, you are probably not compliant with the http protocol specification. Try using boost::beast, available in boost 1.66 and over. It's a wrapper over boost::asio that adds high level web-server and web-socket functionality. You don't need to bother with low-level HTTP implementation.
[sample ... | First of all, i think you should double check whether the server is right or not. Offering one method:
```
curl "http://localhost:8080/licence" --data "{json format text}" -v
```
If this command responses the same result as yours, it is the problem of server.
If not, try to assemble the same request package content ... |
51,551,370 | I'm using *Ubuntu 18.04* and *boost.asio* to send a POST request to a rest API. When the server is receiving the request it catches it but I can't seem to define its content type. I have a function `collectRequestData` that is supposed to parse the body of the request and return it where it is then saved to a MySQL dat... | 2018/07/27 | [
"https://Stackoverflow.com/questions/51551370",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/9986496/"
] | The correct solution is a combination of what @john and @Jaromanda X said and I also had to change `const FORM_URLENCODED = 'application/json';` to `const FORM_URLENCODED = 'application/json; charset=utf-8'` | First of all, i think you should double check whether the server is right or not. Offering one method:
```
curl "http://localhost:8080/licence" --data "{json format text}" -v
```
If this command responses the same result as yours, it is the problem of server.
If not, try to assemble the same request package content ... |
62,292,427 | I have the following text file: **file.text**
```
Cygwin
value: c
Unix-keep
value: u
Linux
value: l
Unix-16
value: u
Solaris
value: s
Unix-replace-1
value: u
Unix-replace-2
value: u
```
I want to replace all lines values based on previous string : starting with **Unix-** but excluding containing string **keep**
So ... | 2020/06/09 | [
"https://Stackoverflow.com/questions/62292427",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1778639/"
] | ```
$ awk -v new='NEW_VERSION' 'f{$0=$1 FS new} {f=(/^Unix-/ && !/keep/)} 1' file
Cygwin
value: c
Unix-keep
value: u
Linux
value: l
Unix-16
value: NEW_VERSION
Solaris
value: s
Unix-replace-1
value: NEW_VERSION
Unix-replace-2
value: NEW_VERSION
``` | Using a proper [xml](/questions/tagged/xml "show questions tagged 'xml'") parser (**the question was originally plain XML before edited by OP**):
The XML edited to be valid (closing tags missing) :
```
<project>
<Cygwin>
<version>c</version>
</Cygwin>
<Unix-keep>
<version>u</version>
<... |
2,372,627 | I have the following XML:
```
<Content name="contentName1">
<!-- Some sub elements here -->
</Content>
<Sequence Name="sequenceName1">
<Content name="contentName1" />
<!-- Some sub elements here -->
</Sequence>
```
with the following XSD
```
<xs:element maxOccurs="unbounded" name="Content">
<xs:com... | 2010/03/03 | [
"https://Stackoverflow.com/questions/2372627",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/155166/"
] | Identity constraint definitions are used for enforcing the unique, primary key and foreign key relations. you need to first define a key element for the content element and then use a keyref in the inner content element for the schema validator to enforce the condition you mentioned.
Refer the below link it has some... | i am not good in xsd too, but maybe you will change `<xs:attribute name="Name" type="xs:string" use="required" />` to `<xs:attribute name="Name" type="contentNames" use="required" />`
and create
```
<xs:simpleType name="contentNames" >
<xs:restriction base="xs:token">
<xs:enumeration value="contentName1"... |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | Check out the content property in the [TextArea docs](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/TextArea.html?allClasses=1). Note the example at the end of the page.. it shows how to embed HTML. | Can also use :
```
(myTextArea.textDisplay as StyleableTextField).htmlText = text;
``` |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | If you're using the **RichEditableText** component instead, you can do it this way using the TextConverter class
```
var myStr:String = "I contain <b>html</b> tags!";
myRichEditableText.textFlow = TextConverter.importToFlow(myStr, TextConverter.TEXT_FIELD_HTML_FORMAT);
``` | Check out the content property in the [TextArea docs](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/TextArea.html?allClasses=1). Note the example at the end of the page.. it shows how to embed HTML. |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | body.textFlow = TextFlowUtil.importFromString(yourHTMLString); | I don't think you can. You should stick to using the Halo TextArea component or you should investigate the Text Layout Framework to accomplish your goals. |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | It can be also used in spark textArea:
>
> var myStr:String = "I contain **html** tags!";
>
> textAarea.textFlow = TextConverter.importToFlow(myStr, TextConverter.TEXT\_FIELD\_HTML\_FORMAT);
>
>
>
This sometime will not work, if the HTML code is big and have some tags that can`t be rendered
TextFlowUtil.impor... | David Gassner's Flashbuilder 4 & Flex 4 has a section on this.
Take a look at TextFlowUtil. If you want to embed the HTML directly into the Spark TextArea (or RichText / RichEditableText), you can use the content tag as a child, then add the p or span tags thereafter - The supported HTML tags are part of the s namespac... |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | If you're using the **RichEditableText** component instead, you can do it this way using the TextConverter class
```
var myStr:String = "I contain <b>html</b> tags!";
myRichEditableText.textFlow = TextConverter.importToFlow(myStr, TextConverter.TEXT_FIELD_HTML_FORMAT);
``` | I don't think you can. You should stick to using the Halo TextArea component or you should investigate the Text Layout Framework to accomplish your goals. |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | body.textFlow = TextFlowUtil.importFromString(yourHTMLString); | Can also use :
```
(myTextArea.textDisplay as StyleableTextField).htmlText = text;
``` |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | Check out the content property in the [TextArea docs](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/TextArea.html?allClasses=1). Note the example at the end of the page.. it shows how to embed HTML. | I don't think you can. You should stick to using the Halo TextArea component or you should investigate the Text Layout Framework to accomplish your goals. |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | If you're using the **RichEditableText** component instead, you can do it this way using the TextConverter class
```
var myStr:String = "I contain <b>html</b> tags!";
myRichEditableText.textFlow = TextConverter.importToFlow(myStr, TextConverter.TEXT_FIELD_HTML_FORMAT);
``` | It can be also used in spark textArea:
>
> var myStr:String = "I contain **html** tags!";
>
> textAarea.textFlow = TextConverter.importToFlow(myStr, TextConverter.TEXT\_FIELD\_HTML\_FORMAT);
>
>
>
This sometime will not work, if the HTML code is big and have some tags that can`t be rendered
TextFlowUtil.impor... |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | It can be also used in spark textArea:
>
> var myStr:String = "I contain **html** tags!";
>
> textAarea.textFlow = TextConverter.importToFlow(myStr, TextConverter.TEXT\_FIELD\_HTML\_FORMAT);
>
>
>
This sometime will not work, if the HTML code is big and have some tags that can`t be rendered
TextFlowUtil.impor... | I don't think you can. You should stick to using the Halo TextArea component or you should investigate the Text Layout Framework to accomplish your goals. |
3,326,334 | The Below code is running well...
```
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" >
<fx:Declarations>
<mx:HTTPService id="httpRSS" url="http://www.petefreitag.com/rs... | 2010/07/24 | [
"https://Stackoverflow.com/questions/3326334",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/401185/"
] | If you're using the **RichEditableText** component instead, you can do it this way using the TextConverter class
```
var myStr:String = "I contain <b>html</b> tags!";
myRichEditableText.textFlow = TextConverter.importToFlow(myStr, TextConverter.TEXT_FIELD_HTML_FORMAT);
``` | Can also use :
```
(myTextArea.textDisplay as StyleableTextField).htmlText = text;
``` |
14,614,856 | I have been looking for hours for a way of setting a condition on the list of items that an APYDataGridBundle grid should return but could not find an answer.
Is there a way to set a DQL Query and pass it to the grid to display the exact query results I want to fetch?
This is the code:
```
public function filteredli... | 2013/01/30 | [
"https://Stackoverflow.com/questions/14614856",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1607360/"
] | You can add a callback (closure or callable) to run before `QueryBuilder` execution - its done like this :
```
$source->manipulateQuery(
function ($query)
{
$query->resetDQLPart('orderBy');
}
);
$grid->setSource($source);
```
`$query` is an instance of `QueryBuilder` so you can change whatever y... | A more "complicated" query.
```
$estaActivo = 'ACTIVO';
$tableAlias = $source->getTableAlias();
$source->manipulateQuery(
function ($query) use ($tableAlias, $estaActivo)
{
$query->andWhere($tableAlias . '.estado = :estaActivo')
... |
42,215,380 | Full code: <https://github.com/kenpeter/test_infinite_scroll_1>
I have a reducer. It has a prop called `list`. `createList([], 0)` calls remote api and gets data, then assign to `list`.
./reducers/loadMore.js
```
import { MORE_LIST } from "../actions/types";
import { createList } from "../utils/func";
const initSt... | 2017/02/13 | [
"https://Stackoverflow.com/questions/42215380",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/350878/"
] | I feel that making ajax requests in your initial state for your reducer is an anti-pattern.
Instead, I would just have the initial state as an empty array and then either as your app starts or in an appropriate component's lifecycle (`componentWillMount` for example) I would dispatch an action to fetch the data.
You... | Your createList returns a Promise. So in your `client/actions/loadMore.js` you need to do:
```
return createList(list, list.length+1).then((tmpList) => {
dispatch({
type: MORE_LIST,
list: tmpList
});
});
```
Also, as [patric](https://stackoverflow.com/users/3363019/patrick "patrick") mentioned, t... |
72,470,998 | What is the best way to pass data between two components which don't have parent-child relation in Angular 13 | 2022/06/02 | [
"https://Stackoverflow.com/questions/72470998",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/8844206/"
] | **1. Shared service.**
Shared service
```
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
@Injectable({ providedIn: 'root' })
export class MessageService {
private subject = new Subject<any>();
sendMessage(message: string) {
this.subject.next({ text: message }... | Here is a little example, this example shares the value of current theme of page to any component
```
component1.html
<div (click)="switchTheme()"></div>
```
---
```
component1.ts
import { Component, OnInit } from '@angular/core';
import { SwitcherService } from 'services/switcher.service';
@Component({
select... |
40,016,807 | Hi I am creating one html page in which I am dragging some `buttons` in one `Div`using jQuery-ui and jquery-ui-punch. But dragging and dropping not happening .
I don't understand why it's not working. `sourcePopover` is popover which having buttons which I want to drag in `fav_id`.
Here is my HTML/JavaScript code.
... | 2016/10/13 | [
"https://Stackoverflow.com/questions/40016807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1139398/"
] | `Buttons` can be made to be **draggable** and **droppable** adding a simple functionality to the **draggable class** as shown.
By using `cancel:false`
So your function will look like this after the implementation -
```
$(function () {
$("#dvSource button").draggable({
cancel :false,
revert: "inva... | for touch event in mobile using jquery you have to include below like file
```
<script src="file:///android_asset/jquery/jquery.ui.touch-punch.min.js" type="text/javascript"></script>
```
you can get this file from here : <https://github.com/furf/jquery-ui-touch-punch>
make sure to include this after `jquery-ui.min... |
40,016,807 | Hi I am creating one html page in which I am dragging some `buttons` in one `Div`using jQuery-ui and jquery-ui-punch. But dragging and dropping not happening .
I don't understand why it's not working. `sourcePopover` is popover which having buttons which I want to drag in `fav_id`.
Here is my HTML/JavaScript code.
... | 2016/10/13 | [
"https://Stackoverflow.com/questions/40016807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1139398/"
] | @pritishvaidya has answered that you should add attribute `cancel:false` in draggable, that is absolutely correct.
Apart from this I have changed some code that was not working. Changes I have done listed below.
1.
In `stop` function inside draggable you are trying to get image name but It is not working. This is al... | for touch event in mobile using jquery you have to include below like file
```
<script src="file:///android_asset/jquery/jquery.ui.touch-punch.min.js" type="text/javascript"></script>
```
you can get this file from here : <https://github.com/furf/jquery-ui-touch-punch>
make sure to include this after `jquery-ui.min... |
40,016,807 | Hi I am creating one html page in which I am dragging some `buttons` in one `Div`using jQuery-ui and jquery-ui-punch. But dragging and dropping not happening .
I don't understand why it's not working. `sourcePopover` is popover which having buttons which I want to drag in `fav_id`.
Here is my HTML/JavaScript code.
... | 2016/10/13 | [
"https://Stackoverflow.com/questions/40016807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1139398/"
] | for touch event in mobile using jquery you have to include below like file
```
<script src="file:///android_asset/jquery/jquery.ui.touch-punch.min.js" type="text/javascript"></script>
```
you can get this file from here : <https://github.com/furf/jquery-ui-touch-punch>
make sure to include this after `jquery-ui.min... | You are trying to drag your button then you have to prevent button default behavior. like: button, select tag etc has default behavior, when you try to do something with click or touch it will fire that default event. So you just have to prevent that default event by using `cancel: false` on `draggable()` see more abou... |
40,016,807 | Hi I am creating one html page in which I am dragging some `buttons` in one `Div`using jQuery-ui and jquery-ui-punch. But dragging and dropping not happening .
I don't understand why it's not working. `sourcePopover` is popover which having buttons which I want to drag in `fav_id`.
Here is my HTML/JavaScript code.
... | 2016/10/13 | [
"https://Stackoverflow.com/questions/40016807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1139398/"
] | @pritishvaidya has answered that you should add attribute `cancel:false` in draggable, that is absolutely correct.
Apart from this I have changed some code that was not working. Changes I have done listed below.
1.
In `stop` function inside draggable you are trying to get image name but It is not working. This is al... | `Buttons` can be made to be **draggable** and **droppable** adding a simple functionality to the **draggable class** as shown.
By using `cancel:false`
So your function will look like this after the implementation -
```
$(function () {
$("#dvSource button").draggable({
cancel :false,
revert: "inva... |
40,016,807 | Hi I am creating one html page in which I am dragging some `buttons` in one `Div`using jQuery-ui and jquery-ui-punch. But dragging and dropping not happening .
I don't understand why it's not working. `sourcePopover` is popover which having buttons which I want to drag in `fav_id`.
Here is my HTML/JavaScript code.
... | 2016/10/13 | [
"https://Stackoverflow.com/questions/40016807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1139398/"
] | `Buttons` can be made to be **draggable** and **droppable** adding a simple functionality to the **draggable class** as shown.
By using `cancel:false`
So your function will look like this after the implementation -
```
$(function () {
$("#dvSource button").draggable({
cancel :false,
revert: "inva... | You are trying to drag your button then you have to prevent button default behavior. like: button, select tag etc has default behavior, when you try to do something with click or touch it will fire that default event. So you just have to prevent that default event by using `cancel: false` on `draggable()` see more abou... |
40,016,807 | Hi I am creating one html page in which I am dragging some `buttons` in one `Div`using jQuery-ui and jquery-ui-punch. But dragging and dropping not happening .
I don't understand why it's not working. `sourcePopover` is popover which having buttons which I want to drag in `fav_id`.
Here is my HTML/JavaScript code.
... | 2016/10/13 | [
"https://Stackoverflow.com/questions/40016807",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/1139398/"
] | @pritishvaidya has answered that you should add attribute `cancel:false` in draggable, that is absolutely correct.
Apart from this I have changed some code that was not working. Changes I have done listed below.
1.
In `stop` function inside draggable you are trying to get image name but It is not working. This is al... | You are trying to drag your button then you have to prevent button default behavior. like: button, select tag etc has default behavior, when you try to do something with click or touch it will fire that default event. So you just have to prevent that default event by using `cancel: false` on `draggable()` see more abou... |
25,256,023 | I am inputting the following things:
* book
* 12.46
* music cd
For some reason, the prompt for cost comes up and the next output line comes on the same line. Could someone help me to spot my mistake?
```
public class SalesTax {
public static void main(String[] args) {
// Input items for shopping cart
... | 2014/08/12 | [
"https://Stackoverflow.com/questions/25256023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3930524/"
] | **problem:**
```
String item = input.next();
```
By the time you input `music cd` it will consume **music** by `item` and `price` will consume the **cd** thus skipping it.
**solution:**
you need to call `input.nextLine();` to consume the whole line of string | you are using `System.out.print()` instead use System.out.println();
`print()` will just print the word and stays on the same line.
`println()` will print the whole line and cursor goes to second line .
And don't use the spaces while reading as you are writing it as
`input.next();`
>
> The next() and hasNext() ... |
25,256,023 | I am inputting the following things:
* book
* 12.46
* music cd
For some reason, the prompt for cost comes up and the next output line comes on the same line. Could someone help me to spot my mistake?
```
public class SalesTax {
public static void main(String[] args) {
// Input items for shopping cart
... | 2014/08/12 | [
"https://Stackoverflow.com/questions/25256023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3930524/"
] | **problem:**
```
String item = input.next();
```
By the time you input `music cd` it will consume **music** by `item` and `price` will consume the **cd** thus skipping it.
**solution:**
you need to call `input.nextLine();` to consume the whole line of string | By default, `next()` just gets input upto a whitespace so you'd have to use `nextLine()` instead, which will read in the whole line of input upto a carriage return. |
25,256,023 | I am inputting the following things:
* book
* 12.46
* music cd
For some reason, the prompt for cost comes up and the next output line comes on the same line. Could someone help me to spot my mistake?
```
public class SalesTax {
public static void main(String[] args) {
// Input items for shopping cart
... | 2014/08/12 | [
"https://Stackoverflow.com/questions/25256023",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3930524/"
] | **problem:**
```
String item = input.next();
```
By the time you input `music cd` it will consume **music** by `item` and `price` will consume the **cd** thus skipping it.
**solution:**
you need to call `input.nextLine();` to consume the whole line of string | use `input.nextLine()` to read an entire line from the keyboard. Means what ever the user typed till the user presses the enter key.
One thing that I did not understand is, what is the use of having this in your code
```
if(item.contains("book"))
{
goods = false;
}
else i... |
1,523,300 | I have a bat that starts 3 separate java windows like so:
```
start java -jar somejar.jar
start java -jar _the_jar_I_want_to_close_.jar
start java -jar someotherjar.jar
```
I need a bat command that closes ***ONLY*** \_the\_jar\_I\_want\_to\_close\_.jar. Unfortunately the only thing that differentiates these windows... | 2020/02/06 | [
"https://superuser.com/questions/1523300",
"https://superuser.com",
"https://superuser.com/users/232563/"
] | You can use `plink.exe` to start your existing putty session.
Create a new profile entry for Windows Terminal like this, where `putty-session` is the name of your putty session:
```
{
"guid": "{141d171c-4fd9-426d-9008-8cbc4b0b05d3}",
"name": "putty-session",
"icon" : "ms-appx:///ProfileIcons/{9acb9455-ca4... | There is a *fork* of Putty that has a robust preferences menu where you can configure it to run in windows terminal.
As documented [here](https://www.vcloudinfo.com/2019/06/putty-putty-putty-windows-terminal.html)
As far as I know, there is currently no way to enable *standard* Putty to run within Windows Terminal.
A... |
69,125 | I am not a mathematician. I have searched the internet about KL Divergence. What I learned is the the KL divergence measures the information lost when we approximate distribution of a model with respect to the input distribution. I have seen these between any two continuous or discrete distributions. Can we do it betwe... | 2013/09/03 | [
"https://stats.stackexchange.com/questions/69125",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/29874/"
] | No: KL divergence is only defined on distributions over a common space. It asks about the probability density of a point $x$ under two different distributions, $p(x)$ and $q(x)$. If $p$ is a distribution on $\mathbb{R}^3$ and $q$ a distribution on $\mathbb{Z}$, then $q(x)$ doesn't make sense for points $p \in \mathbb{R... | Not in general. The KL divergence is
$$
D\_{KL}(P \ || \ Q) = \int\_{\mathcal{X}} \log \left(\frac{dP}{dQ}\right)dP
$$
provided that $P$ is absolutely continuous with respect to $Q$ and both $P$ and $Q$ are $\sigma$-finite (i.e. under conditions where $\frac{dP}{dQ}$ is well-defined).
For a 'continuous-to-discrete' ... |
69,125 | I am not a mathematician. I have searched the internet about KL Divergence. What I learned is the the KL divergence measures the information lost when we approximate distribution of a model with respect to the input distribution. I have seen these between any two continuous or discrete distributions. Can we do it betwe... | 2013/09/03 | [
"https://stats.stackexchange.com/questions/69125",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/29874/"
] | Yes, the KL divergence between continuous and discrete random variables is well defined. If $P$ and $Q$ are distributions on some space $\mathbb{X}$, then both $P$ and $Q$ have densities $f$, $g$ with respect to $\mu = P+Q$ and
$$
D\_{KL}(P,Q) = \int\_{\mathbb{X}} f \log\frac{f}{g}d\mu.
$$
For example, if $\mathbb{X} ... | Not in general. The KL divergence is
$$
D\_{KL}(P \ || \ Q) = \int\_{\mathcal{X}} \log \left(\frac{dP}{dQ}\right)dP
$$
provided that $P$ is absolutely continuous with respect to $Q$ and both $P$ and $Q$ are $\sigma$-finite (i.e. under conditions where $\frac{dP}{dQ}$ is well-defined).
For a 'continuous-to-discrete' ... |
60,291,808 | The snippet shows my html and js. In my php controller I just print\_r($\_POST) but I only see the form data for myName I can't figure out how to access zzz
UPDATE: I added some code to make sure the send request is complete. However, if I don't submit the form the controller doesn't execute from just issuing the xhtt... | 2020/02/19 | [
"https://Stackoverflow.com/questions/60291808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4398966/"
] | When you pass a value to `useState` that value is used to initialize the state. It does not get set every time the component rerenders, so in your case the `path` is only ever set when the component mounts.
Even if the props change, the `path` state will not.
As your initial state depends on a prop, all you need to d... | You can use the hook **useMemo**, it returns the value to your const, it receives the function that returns the value and also an array, send an empty one to calculate just once, you can send some dependencies, props or state if needed to recalculate the value when they change.
In your case you can do something like t... |
60,291,808 | The snippet shows my html and js. In my php controller I just print\_r($\_POST) but I only see the form data for myName I can't figure out how to access zzz
UPDATE: I added some code to make sure the send request is complete. However, if I don't submit the form the controller doesn't execute from just issuing the xhtt... | 2020/02/19 | [
"https://Stackoverflow.com/questions/60291808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4398966/"
] | An even more elegant option is to use the callback form of `useState`. If you pass it a function, that function will be called only when the initial state needs to be calculated - that is, on the initial render:
```
const [path, setPath] = React.useState(heavyCalculation);
```
```js
const heavyCalculation = () => {
... | You can use the hook **useMemo**, it returns the value to your const, it receives the function that returns the value and also an array, send an empty one to calculate just once, you can send some dependencies, props or state if needed to recalculate the value when they change.
In your case you can do something like t... |
60,291,808 | The snippet shows my html and js. In my php controller I just print\_r($\_POST) but I only see the form data for myName I can't figure out how to access zzz
UPDATE: I added some code to make sure the send request is complete. However, if I don't submit the form the controller doesn't execute from just issuing the xhtt... | 2020/02/19 | [
"https://Stackoverflow.com/questions/60291808",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/4398966/"
] | When you pass a value to `useState` that value is used to initialize the state. It does not get set every time the component rerenders, so in your case the `path` is only ever set when the component mounts.
Even if the props change, the `path` state will not.
As your initial state depends on a prop, all you need to d... | An even more elegant option is to use the callback form of `useState`. If you pass it a function, that function will be called only when the initial state needs to be calculated - that is, on the initial render:
```
const [path, setPath] = React.useState(heavyCalculation);
```
```js
const heavyCalculation = () => {
... |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | You don't say whether you are using Eclipse or Android Studio. In Android Studio, you would add,
```
import org.apache.commons.lang3.StringUtils;
```
to your source code file. In build.gradle, you need to change your dependency from something like,
```
dependencies {
compile 'com.android.support:support-v4:+'
}... | Apache Commons lang is a separate library. You can find it [here](http://commons.apache.org/lang/). |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | Apache Commons lang is a separate library. You can find it [here](http://commons.apache.org/lang/). | If you are using Android Studio try to use workflow provided to add dependencies rather than manually adding the downloaded library or manually changing gradle files.
1. File -> Project Structure -> Modules -> app -> Dependencies Tab
2. Click '+' in the bottom left corner and select "Library dependency"
3. In the sea... |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | Apache Commons lang is a separate library. You can find it [here](http://commons.apache.org/lang/). | just add following dependency in module level gradle file(build.gradle)
```
implementation 'org.apache.commons:commons-lang3:3.7'
``` |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | You don't say whether you are using Eclipse or Android Studio. In Android Studio, you would add,
```
import org.apache.commons.lang3.StringUtils;
```
to your source code file. In build.gradle, you need to change your dependency from something like,
```
dependencies {
compile 'com.android.support:support-v4:+'
}... | Android offers a subset of that functionality in [android.text.TextUtils](http://developer.android.com/reference/android/text/TextUtils.html).
Depending on what you need from StringUtils, that might be an option. E.g., it has join, split. |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | Android offers a subset of that functionality in [android.text.TextUtils](http://developer.android.com/reference/android/text/TextUtils.html).
Depending on what you need from StringUtils, that might be an option. E.g., it has join, split. | If you are using Android Studio try to use workflow provided to add dependencies rather than manually adding the downloaded library or manually changing gradle files.
1. File -> Project Structure -> Modules -> app -> Dependencies Tab
2. Click '+' in the bottom left corner and select "Library dependency"
3. In the sea... |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | Android offers a subset of that functionality in [android.text.TextUtils](http://developer.android.com/reference/android/text/TextUtils.html).
Depending on what you need from StringUtils, that might be an option. E.g., it has join, split. | just add following dependency in module level gradle file(build.gradle)
```
implementation 'org.apache.commons:commons-lang3:3.7'
``` |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | You don't say whether you are using Eclipse or Android Studio. In Android Studio, you would add,
```
import org.apache.commons.lang3.StringUtils;
```
to your source code file. In build.gradle, you need to change your dependency from something like,
```
dependencies {
compile 'com.android.support:support-v4:+'
}... | If you are using Android Studio try to use workflow provided to add dependencies rather than manually adding the downloaded library or manually changing gradle files.
1. File -> Project Structure -> Modules -> app -> Dependencies Tab
2. Click '+' in the bottom left corner and select "Library dependency"
3. In the sea... |
2,808,733 | Why **import org.apache.commons.lang.StringUtils** cannot be imported in android by default.
Do i have to include an external library? Then where can i find that library on the web?
```
package com.myapps.urlencoding;
import android.app.Activity;
import org.apache.commons.lang.StringUtils;
public class EncodeIdUtil... | 2010/05/11 | [
"https://Stackoverflow.com/questions/2808733",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2355649/"
] | You don't say whether you are using Eclipse or Android Studio. In Android Studio, you would add,
```
import org.apache.commons.lang3.StringUtils;
```
to your source code file. In build.gradle, you need to change your dependency from something like,
```
dependencies {
compile 'com.android.support:support-v4:+'
}... | just add following dependency in module level gradle file(build.gradle)
```
implementation 'org.apache.commons:commons-lang3:3.7'
``` |
25,424,816 | In my windows 8 application, I would like to read a PDF line by line then I would like to assign a String array. How can I do it?
```
public StringBuilder addd= new StringBuilder();
string[] array;
private async void btndosyasec_Click(object sender, RoutedEventArgs e)
{
FileOpenPicker openPick... | 2014/08/21 | [
"https://Stackoverflow.com/questions/25424816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3963572/"
] | Hi I had this problem too, I used this code, it worked.
You will need a reference to the iTextSharp lib.
```
using iTextSharp.text.pdf;
using iTextSharp.text.pdf.parser;
PdfReader reader = new PdfReader(@"D:\test pdf\Blood Journal.pdf");
int intPageNum = reader.NumberOfPages;
string[] words;
string line;
for (i... | If you are looking for something **Licence Free/Open Source** with basic text extraction from PDF, then you can go for **PdfClown** which has Support for both .Net Framework as well as .NET CORE (though Beta version w.r.t .NET Standard 2.0). For More Info or Samples, take look at
<https://www.nuget.org/packages/PdfCl... |
25,424,816 | In my windows 8 application, I would like to read a PDF line by line then I would like to assign a String array. How can I do it?
```
public StringBuilder addd= new StringBuilder();
string[] array;
private async void btndosyasec_Click(object sender, RoutedEventArgs e)
{
FileOpenPicker openPick... | 2014/08/21 | [
"https://Stackoverflow.com/questions/25424816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3963572/"
] | Hi I had this problem too, I used this code, it worked.
You will need a reference to the iTextSharp lib.
```
using iTextSharp.text.pdf;
using iTextSharp.text.pdf.parser;
PdfReader reader = new PdfReader(@"D:\test pdf\Blood Journal.pdf");
int intPageNum = reader.NumberOfPages;
string[] words;
string line;
for (i... | Below code work for iText7
```
using iText.Kernel.Pdf;
using iText.Kernel.Pdf.Canvas.Parser;
using iText.Kernel.Pdf.Canvas.Parser.Listener;
public void ExtractTextFromPDF(string filePath)
{
PdfReader pdfReader = new PdfReader(filePath);
PdfDocument pdfDoc = new PdfDocument(pdfReader);
for (int page = 1; ... |
25,424,816 | In my windows 8 application, I would like to read a PDF line by line then I would like to assign a String array. How can I do it?
```
public StringBuilder addd= new StringBuilder();
string[] array;
private async void btndosyasec_Click(object sender, RoutedEventArgs e)
{
FileOpenPicker openPick... | 2014/08/21 | [
"https://Stackoverflow.com/questions/25424816",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/3963572/"
] | Below code work for iText7
```
using iText.Kernel.Pdf;
using iText.Kernel.Pdf.Canvas.Parser;
using iText.Kernel.Pdf.Canvas.Parser.Listener;
public void ExtractTextFromPDF(string filePath)
{
PdfReader pdfReader = new PdfReader(filePath);
PdfDocument pdfDoc = new PdfDocument(pdfReader);
for (int page = 1; ... | If you are looking for something **Licence Free/Open Source** with basic text extraction from PDF, then you can go for **PdfClown** which has Support for both .Net Framework as well as .NET CORE (though Beta version w.r.t .NET Standard 2.0). For More Info or Samples, take look at
<https://www.nuget.org/packages/PdfCl... |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Have you tried the Bell Tree? It's definitely the staple for that type of sound. Check out the samples [here](http://www.compositiontoday.com/sound_bank/percussion/bell_tree.asp). It is a bit of a cliché, but you can always process it more to make it more unique.
Perhaps also think about other layers to go with it. Th... | You can always use matchstick striking sounds instead of white noise. They have their own dynamics, and i find them very easy to use on abstract sounds. |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Have you tried the Bell Tree? It's definitely the staple for that type of sound. Check out the samples [here](http://www.compositiontoday.com/sound_bank/percussion/bell_tree.asp). It is a bit of a cliché, but you can always process it more to make it more unique.
Perhaps also think about other layers to go with it. Th... | I like Mark's answer, seconded. Done this sound numerous times. There's a lot of freedom but I've found most people like something sparkly, often some processed bell tree works. |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Have you tried the Bell Tree? It's definitely the staple for that type of sound. Check out the samples [here](http://www.compositiontoday.com/sound_bank/percussion/bell_tree.asp). It is a bit of a cliché, but you can always process it more to make it more unique.
Perhaps also think about other layers to go with it. Th... | Crystallizer does a great job. I would start by processing ice in a glass, glass debris, or a bell tree and then chop off the attack and doppler it or futz with the spacial feeling in Enigma. You can then layer and blend it with some sand blowing in the wind or wind buffets.
I did something similar for Science Channe... |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Crystallizer does a great job. I would start by processing ice in a glass, glass debris, or a bell tree and then chop off the attack and doppler it or futz with the spacial feeling in Enigma. You can then layer and blend it with some sand blowing in the wind or wind buffets.
I did something similar for Science Channe... | I like Mark's answer, seconded. Done this sound numerous times. There's a lot of freedom but I've found most people like something sparkly, often some processed bell tree works. |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Crystallizer does a great job. I would start by processing ice in a glass, glass debris, or a bell tree and then chop off the attack and doppler it or futz with the spacial feeling in Enigma. You can then layer and blend it with some sand blowing in the wind or wind buffets.
I did something similar for Science Channe... | Bell tree with a white noise swoosh. Resonant filter the whole sound to give it movement. Also some kind of envelope to give the sound some impact if it's coming from a wand or something. |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Have you tried the Bell Tree? It's definitely the staple for that type of sound. Check out the samples [here](http://www.compositiontoday.com/sound_bank/percussion/bell_tree.asp). It is a bit of a cliché, but you can always process it more to make it more unique.
Perhaps also think about other layers to go with it. Th... | Thanks for the tips guys. Really great advice.
I have had fun experimenting with some of these techniques and have managed to create some pretty cool fairy dust.
Cheers
Tom |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Crystallizer does a great job. I would start by processing ice in a glass, glass debris, or a bell tree and then chop off the attack and doppler it or futz with the spacial feeling in Enigma. You can then layer and blend it with some sand blowing in the wind or wind buffets.
I did something similar for Science Channe... | Theres an absynth effect called Atherizer that makes sparkly sounds. I highly suggest. Also GRM tools has a combfilter plug that works towards the sparklies. Working with granulator plugins might prove sparkley |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Crystallizer does a great job. I would start by processing ice in a glass, glass debris, or a bell tree and then chop off the attack and doppler it or futz with the spacial feeling in Enigma. You can then layer and blend it with some sand blowing in the wind or wind buffets.
I did something similar for Science Channe... | You can always use matchstick striking sounds instead of white noise. They have their own dynamics, and i find them very easy to use on abstract sounds. |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Crystallizer does a great job. I would start by processing ice in a glass, glass debris, or a bell tree and then chop off the attack and doppler it or futz with the spacial feeling in Enigma. You can then layer and blend it with some sand blowing in the wind or wind buffets.
I did something similar for Science Channe... | Thanks for the tips guys. Really great advice.
I have had fun experimenting with some of these techniques and have managed to create some pretty cool fairy dust.
Cheers
Tom |
13,525 | Hi guys,
I'm working on the sound design for an animation and I need to create the sound of fairy dust. Visually think magic wand, or the sparkles that surround Tinkerbell. Light and magical and darting around.
I'm thinking the sounds needs to be light, high frequency and glistening, maybe chime like but not too musi... | 2012/04/13 | [
"https://sound.stackexchange.com/questions/13525",
"https://sound.stackexchange.com",
"https://sound.stackexchange.com/users/3766/"
] | Have you tried the Bell Tree? It's definitely the staple for that type of sound. Check out the samples [here](http://www.compositiontoday.com/sound_bank/percussion/bell_tree.asp). It is a bit of a cliché, but you can always process it more to make it more unique.
Perhaps also think about other layers to go with it. Th... | Theres an absynth effect called Atherizer that makes sparkly sounds. I highly suggest. Also GRM tools has a combfilter plug that works towards the sparklies. Working with granulator plugins might prove sparkley |
880,497 | I'm using a ‘session group’, to keep multiple OS-level, window-managed terminal windows open to different `tmux` ‘windows’ (so they share a default working-directory, `tmux` settings, etceteras.) Those Terminal windows are different sizes.
Normally, from a larger Terminal, I can do the following to start a new command... | 2015/02/20 | [
"https://superuser.com/questions/880497",
"https://superuser.com",
"https://superuser.com/users/22030/"
] | Perhaps enabling the aggressive-resize option will help:
```
set-window-option -g aggressive-resize
```
A good overview of tmux options is given [here](https://mutelight.org/practical-tmux). | When attach screen you may use detach mode
>
> tmux attach -d
> with will resize screen after disconnect other clients from the sessions (and someone who used small screen)
>
>
>
Or you can interactively detach by pressing Ctrl-B-Shift-D |
880,497 | I'm using a ‘session group’, to keep multiple OS-level, window-managed terminal windows open to different `tmux` ‘windows’ (so they share a default working-directory, `tmux` settings, etceteras.) Those Terminal windows are different sizes.
Normally, from a larger Terminal, I can do the following to start a new command... | 2015/02/20 | [
"https://superuser.com/questions/880497",
"https://superuser.com",
"https://superuser.com/users/22030/"
] | Perhaps enabling the aggressive-resize option will help:
```
set-window-option -g aggressive-resize
```
A good overview of tmux options is given [here](https://mutelight.org/practical-tmux). | Starting with tmux 3.1, the default option for `window-size` is `latest`. So all you need to do is upgrade. |
880,497 | I'm using a ‘session group’, to keep multiple OS-level, window-managed terminal windows open to different `tmux` ‘windows’ (so they share a default working-directory, `tmux` settings, etceteras.) Those Terminal windows are different sizes.
Normally, from a larger Terminal, I can do the following to start a new command... | 2015/02/20 | [
"https://superuser.com/questions/880497",
"https://superuser.com",
"https://superuser.com/users/22030/"
] | When attach screen you may use detach mode
>
> tmux attach -d
> with will resize screen after disconnect other clients from the sessions (and someone who used small screen)
>
>
>
Or you can interactively detach by pressing Ctrl-B-Shift-D | Starting with tmux 3.1, the default option for `window-size` is `latest`. So all you need to do is upgrade. |
65,949,029 | I am trying to make a box with Header and I want some text inside the box. Below is what I want:
[](https://i.stack.imgur.com/CSUe0.png)
any help will be highly appreciated. | 2021/01/29 | [
"https://Stackoverflow.com/questions/65949029",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/10443857/"
] | After doing some looking, I found another [post on ServerFault](https://serverfault.com/questions/894878/subprocess-installed-pre-removal-script-returned-error-exit-status-5) that details issues with the install script. I was having this same issue, and after ensuring that all MySQL files were removed I went to `/var/l... | ```sh
cd /var/lib/dpkg/info
sudo rm -rf ./mysql-*
sudo dpkg --remove --force-remove-reinstreq mysql-server-8.0
```
It is ok! |
66,310,700 | I'm new to Redis and would like to get advice from the experts on my use case. I have an event object that has start\_time\_of\_event and end\_time\_of\_event as two of the attributes(there are plenty more attributes in the object). I have millions of these events and need to store them in Redis so that I can query the... | 2021/02/22 | [
"https://Stackoverflow.com/questions/66310700",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/2869520/"
] | You should store events in two of Redis ZSETs, for one set score should be `start_time_of_event` and for another, the score would be `end_time_of_event`
Let's call them `start_events` and `end_events` respectively.
Add:
```
ZADD start_events start_time event
ZADD end_events end_time event
```
Search
```
-- random... | Another option would be to use [zeeSQL](https://zeesql.com) to store those informations inside a secondary index (an SQL table).
Once those data are in a table, you can query them using standard SQL.
It would be just a simple SQL query, without the need of maintaing the Redis structures. |
13,776,174 | Most of the Google Management APIs seem to have been enabled for Service Accounts. For example, I can retrieve calendars like so:
```
string scope = Google.Apis.Calendar.v3.CalendarService.Scopes.Calendar.ToString().ToLower();
string scope_url = "https://www.googleapis.com/auth/" + scope;
string client_id = "999...@de... | 2012/12/08 | [
"https://Stackoverflow.com/questions/13776174",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/389034/"
] | This is a block pointer. If you are unfamiliar with blocks, this basically lets you assign an annonymous function inline as a parameter. The signature here says that the block takes an NSString as a parameter, and returns nothing. You would use it like this:
```
- (void)login:(NSString *)username password:(NSString *)... | It denotes a [block](http://developer.apple.com/library/ios/#documentation/cocoa/Conceptual/Blocks/Articles/00_Introduction.html) - it's essentially a closure (lambda function, whatever you call it) - Apple's addition to the C language. In this case, it returns `void` and accepts an `NSString` object as its only argume... |
226,554 | I use a Monte-Carlo algorithm to estimate a target value `y=f(x)` that depends on a single input parameter `x`. Because the Monte-Carlo algorithm is stochastic, the target value `y` fluctuates. I now want to find the value of `x` that minimizes `y`. Obviously, I cannot use most of the standard optimization algorithms (... | 2016/07/31 | [
"https://stats.stackexchange.com/questions/226554",
"https://stats.stackexchange.com",
"https://stats.stackexchange.com/users/88762/"
] | It sounds like you're interested in 'stochastic optimization', where the goal is to optimize a stochastic objective function (typically its expected value). Note that some people take this term to include methods for optimizing deterministic functions where the solver uses randomness (not what you want).
These referen... | You are trying to optimize a stochastic objective function because of random noise component in the objective function. For a noisy function like yours, You could use an [evolutionary optimization](https://en.wikipedia.org/wiki/Evolutionary_algorithm) methods such as genetic algortithm to solve stochastic optimization ... |
5,713,653 | I'm using a search view in my application. Now i just want to get the text typed in the SearchView text box and display it on another textview. If i typed the text and click a button i can do the same. But i don't want to use any extra buttons. I just want to display the result when i am pressing enter key. | 2011/04/19 | [
"https://Stackoverflow.com/questions/5713653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/669322/"
] | The above answer is good but not complete actually you need to set an action listener for your Search view . you can do this in two ways create a class that implements the necessary classes to be an OnQueryTextListener and make a new object of that and use it as your search view query text listener or use the following... | This is what I have inside the `onCreateOptionsMenu(Menu menu)` function on my main activity:
```
MenuItem searchItem = menu.findItem(R.id.search);
SearchView searchView = (SearchView) searchItem.getActionView();
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean ... |
5,713,653 | I'm using a search view in my application. Now i just want to get the text typed in the SearchView text box and display it on another textview. If i typed the text and click a button i can do the same. But i don't want to use any extra buttons. I just want to display the result when i am pressing enter key. | 2011/04/19 | [
"https://Stackoverflow.com/questions/5713653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/669322/"
] | It also can be done with RXAndroid and RxBinding by Jake Wharton like this:
```
RxSearchView.queryTextChanges(searchView)
.debounce(500, TimeUnit.MILLISECONDS)
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Action1<CharSequence>() {
@Override
... | This is what I have inside the `onCreateOptionsMenu(Menu menu)` function on my main activity:
```
MenuItem searchItem = menu.findItem(R.id.search);
SearchView searchView = (SearchView) searchItem.getActionView();
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean ... |
5,713,653 | I'm using a search view in my application. Now i just want to get the text typed in the SearchView text box and display it on another textview. If i typed the text and click a button i can do the same. But i don't want to use any extra buttons. I just want to display the result when i am pressing enter key. | 2011/04/19 | [
"https://Stackoverflow.com/questions/5713653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/669322/"
] | Try to use [setOnQueryTextListener](http://developer.android.com/reference/android/widget/SearchView.html#setOnQueryTextListener%28android.widget.SearchView.OnQueryTextListener%29) of SearchView
```
new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextChange(String newText) {
// y... | This is what I have inside the `onCreateOptionsMenu(Menu menu)` function on my main activity:
```
MenuItem searchItem = menu.findItem(R.id.search);
SearchView searchView = (SearchView) searchItem.getActionView();
searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean ... |
5,713,653 | I'm using a search view in my application. Now i just want to get the text typed in the SearchView text box and display it on another textview. If i typed the text and click a button i can do the same. But i don't want to use any extra buttons. I just want to display the result when i am pressing enter key. | 2011/04/19 | [
"https://Stackoverflow.com/questions/5713653",
"https://Stackoverflow.com",
"https://Stackoverflow.com/users/669322/"
] | The right way to solve this is to use **setOnQueryTextListener**
This is a small exmple using Kotlin:
```
txtSearch = rootView.searchView
txtSearch.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
override fun onQueryTextChange(newText: String): Boolean {
return false
}
... | with extension functions, create `SearchViewExtensions.kt`
```
import android.view.View
import androidx.appcompat.widget.SearchView
inline fun SearchView.onQueryTextChanged(crossinline listener: (String) -> Unit) {
this.setOnQueryTextListener(object: SearchView.OnQueryTextListener {
override fun onQueryTe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.