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
21,211
I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it). As it is outside my primary field of research, nobody in my direct lab vicinity c...
2014/05/20
[ "https://academia.stackexchange.com/questions/21211", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/10643/" ]
There is not much of a "formal feedback" system associated with the arxiv. I say "not much" instead of "none" because the arxiv apparently does do some degree of automatic tracking of citations to its papers. For instance [this arxiv submission](http://arxiv.org/abs/1208.0977) contains a link to a MO post in which my p...
Other questions are more on topic, but let me add that social media and open access, used wisely, are good tools for increase your audience and get more downloads, and (hopefully) more feedback. Think about: * creating a blog, maybe dedicated to your research * upload your papers in arxiv: this will give us a timesta...
21,211
I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it). As it is outside my primary field of research, nobody in my direct lab vicinity c...
2014/05/20
[ "https://academia.stackexchange.com/questions/21211", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/10643/" ]
There is not much of a "formal feedback" system associated with the arxiv. I say "not much" instead of "none" because the arxiv apparently does do some degree of automatic tracking of citations to its papers. For instance [this arxiv submission](http://arxiv.org/abs/1208.0977) contains a link to a MO post in which my p...
There are some more direct ways that are more effective than waiting for a passenger feedback and they help you gain more confidence in general in the outside field. 1. find the journals in the field of this paper, contact one of their editors in chief with the same question and disclaimer you have here to seek their ...
21,211
I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it). As it is outside my primary field of research, nobody in my direct lab vicinity c...
2014/05/20
[ "https://academia.stackexchange.com/questions/21211", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/10643/" ]
You need to find a way to advertise your work so that people find it on arXiv, use it, then eventually cite it and criticize it. The main advantages of arXiv are: * the publication timing. When you submit to some closed review journal or conference, you are months before an official decision. During this time (that c...
Other questions are more on topic, but let me add that social media and open access, used wisely, are good tools for increase your audience and get more downloads, and (hopefully) more feedback. Think about: * creating a blog, maybe dedicated to your research * upload your papers in arxiv: this will give us a timesta...
21,211
I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it). As it is outside my primary field of research, nobody in my direct lab vicinity c...
2014/05/20
[ "https://academia.stackexchange.com/questions/21211", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/10643/" ]
You need to find a way to advertise your work so that people find it on arXiv, use it, then eventually cite it and criticize it. The main advantages of arXiv are: * the publication timing. When you submit to some closed review journal or conference, you are months before an official decision. During this time (that c...
There are some more direct ways that are more effective than waiting for a passenger feedback and they help you gain more confidence in general in the outside field. 1. find the journals in the field of this paper, contact one of their editors in chief with the same question and disclaimer you have here to seek their ...
21,211
I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it). As it is outside my primary field of research, nobody in my direct lab vicinity c...
2014/05/20
[ "https://academia.stackexchange.com/questions/21211", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/10643/" ]
The arXiv is a tool for establishing a presence, but it does not market or disseminate your results. It merely places them in a certain category and presents title, author, and sometimes abstract in a summary fashion, depending on how one uses it. Some researchers get RSS and email updates in their favorite areas about...
Other questions are more on topic, but let me add that social media and open access, used wisely, are good tools for increase your audience and get more downloads, and (hopefully) more feedback. Think about: * creating a blog, maybe dedicated to your research * upload your papers in arxiv: this will give us a timesta...
21,211
I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it). As it is outside my primary field of research, nobody in my direct lab vicinity c...
2014/05/20
[ "https://academia.stackexchange.com/questions/21211", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/10643/" ]
The arXiv is a tool for establishing a presence, but it does not market or disseminate your results. It merely places them in a certain category and presents title, author, and sometimes abstract in a summary fashion, depending on how one uses it. Some researchers get RSS and email updates in their favorite areas about...
There are some more direct ways that are more effective than waiting for a passenger feedback and they help you gain more confidence in general in the outside field. 1. find the journals in the field of this paper, contact one of their editors in chief with the same question and disclaimer you have here to seek their ...
21,211
I have developed a method to process images I use for my research. It's nothing revolutionary but I think it might be useful to others than me, and why not, be worthy of being published somewhere (at least for me to cite when I use it). As it is outside my primary field of research, nobody in my direct lab vicinity c...
2014/05/20
[ "https://academia.stackexchange.com/questions/21211", "https://academia.stackexchange.com", "https://academia.stackexchange.com/users/10643/" ]
There are some more direct ways that are more effective than waiting for a passenger feedback and they help you gain more confidence in general in the outside field. 1. find the journals in the field of this paper, contact one of their editors in chief with the same question and disclaimer you have here to seek their ...
Other questions are more on topic, but let me add that social media and open access, used wisely, are good tools for increase your audience and get more downloads, and (hopefully) more feedback. Think about: * creating a blog, maybe dedicated to your research * upload your papers in arxiv: this will give us a timesta...
55,447,687
I recieved this error when I trying to debug a java program with vscode: ``` java.lang.UnsupportedClassVersionError: test (class file version 52.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 55.65535 ``` Here...
2019/04/01
[ "https://Stackoverflow.com/questions/55447687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11287916/" ]
In launch.json file, add "vmArgs": "--enable-preview" to your debug configuration. ``` { ... "vmArgs": "--enable-preview" } ```
Update: after intensive googling I think I found the answer: **This is due to a mismatch with the code version that's compiling in vscode and the JDK version you're running in your system.** 1. In your VScode, your compiler is trying to compile using (class file version 52.65535), which is **Java 8**, meanwhile you...
55,447,687
I recieved this error when I trying to debug a java program with vscode: ``` java.lang.UnsupportedClassVersionError: test (class file version 52.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 55.65535 ``` Here...
2019/04/01
[ "https://Stackoverflow.com/questions/55447687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11287916/" ]
In launch.json file, add "vmArgs": "--enable-preview" to your debug configuration. ``` { ... "vmArgs": "--enable-preview" } ```
The same error on the Intellij idea maven build. correct the JRE version of Maven to the correct version of java. [![enter image description here](https://i.stack.imgur.com/abR7Z.png)](https://i.stack.imgur.com/abR7Z.png)
55,447,687
I recieved this error when I trying to debug a java program with vscode: ``` java.lang.UnsupportedClassVersionError: test (class file version 52.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 55.65535 ``` Here...
2019/04/01
[ "https://Stackoverflow.com/questions/55447687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11287916/" ]
In launch.json file, add "vmArgs": "--enable-preview" to your debug configuration. ``` { ... "vmArgs": "--enable-preview" } ```
I solved this problem by compiling the class through the terminal itself with javac in the "src" folder and then replacing the ".class file" in the "bin" folder by the ".class file" created in the "src" folder. I believe the problem is in VSCODE, I did the same test in Eclipse and it worked without problems. Another a...
55,447,687
I recieved this error when I trying to debug a java program with vscode: ``` java.lang.UnsupportedClassVersionError: test (class file version 52.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 55.65535 ``` Here...
2019/04/01
[ "https://Stackoverflow.com/questions/55447687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11287916/" ]
Update: after intensive googling I think I found the answer: **This is due to a mismatch with the code version that's compiling in vscode and the JDK version you're running in your system.** 1. In your VScode, your compiler is trying to compile using (class file version 52.65535), which is **Java 8**, meanwhile you...
I solved this problem by compiling the class through the terminal itself with javac in the "src" folder and then replacing the ".class file" in the "bin" folder by the ".class file" created in the "src" folder. I believe the problem is in VSCODE, I did the same test in Eclipse and it worked without problems. Another a...
55,447,687
I recieved this error when I trying to debug a java program with vscode: ``` java.lang.UnsupportedClassVersionError: test (class file version 52.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 55.65535 ``` Here...
2019/04/01
[ "https://Stackoverflow.com/questions/55447687", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11287916/" ]
The same error on the Intellij idea maven build. correct the JRE version of Maven to the correct version of java. [![enter image description here](https://i.stack.imgur.com/abR7Z.png)](https://i.stack.imgur.com/abR7Z.png)
I solved this problem by compiling the class through the terminal itself with javac in the "src" folder and then replacing the ".class file" in the "bin" folder by the ".class file" created in the "src" folder. I believe the problem is in VSCODE, I did the same test in Eclipse and it worked without problems. Another a...
122,969
There are compound words in English like well-known, ill-mannered and so on. The rules tell us that they are spelled with a hyphen (well-known) if they are attributes (attributive adjectives), but without hyphen (well known) if they are predicates (predicative adjectives). It's all right. But what if they are dictiona...
2017/03/19
[ "https://ell.stackexchange.com/questions/122969", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/51028/" ]
There're no hard and fast rules whether or not we should hyphenate a compound adjective like well-known/well known. But it's far more common to hyphenate such adjectives if they are used as attributive adjectives and not to hyphenate them when used as predicative adjectives. The Free Dictionary states: "Well-known c...
The general rule is that multiword descriptions using adverbs should not be hyphenated. As 'well' is an adverb, it should never be hyphenated in multiword descriptions. However, if you consider 'well-known' to be one word, then hyphenating it would be correct in either predicate or attributive position. Considering d...
20,314,405
So I wrote a header that uses recursion to compute several mathematical functions. Including the cosine function and exponential function( e^x). Now the cosine functions works just fine but e^x produces a segmentation fault even though both use the same recursive procedure. So here is the code from the header file I cr...
2013/12/01
[ "https://Stackoverflow.com/questions/20314405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1964457/" ]
All your functions are using a variable `n` which I'm assuming is declared globally but only defined locally in `e`. You should provide a local definition of `n` for each function: `int n = 0;`.
``` double EXP(double x) { /* other code that doesn't change x */ if(n==0) { return 1.0; } else { return EXP(x) + /* other code */; } } ``` Let's say we want to calculate EXP(2). EXP starts running, gets to the second return statement, and calls EXP(2) again. Which calls EXP(2) again. ...
20,314,405
So I wrote a header that uses recursion to compute several mathematical functions. Including the cosine function and exponential function( e^x). Now the cosine functions works just fine but e^x produces a segmentation fault even though both use the same recursive procedure. So here is the code from the header file I cr...
2013/12/01
[ "https://Stackoverflow.com/questions/20314405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1964457/" ]
All your functions are using a variable `n` which I'm assuming is declared globally but only defined locally in `e`. You should provide a local definition of `n` for each function: `int n = 0;`.
A no-nonsense implementation of the cosine Taylor series is ``` #include<stdio.h> #include<math.h> double cos_taylor(double x) { double mxx=-x*x, a=1, c=0; unsigned int k=1; while(1+a!=1) { c+=a; a*=mxx/(k++)/(k++); } return c; } int main() { double x; for(x=-0.5; x<3.2; x+=0.1) printf(" x=...
20,314,405
So I wrote a header that uses recursion to compute several mathematical functions. Including the cosine function and exponential function( e^x). Now the cosine functions works just fine but e^x produces a segmentation fault even though both use the same recursive procedure. So here is the code from the header file I cr...
2013/12/01
[ "https://Stackoverflow.com/questions/20314405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1964457/" ]
Unix or the POSIX standard defines a tool named `bc`, which is a (very basic) multi-precision command line calculator. With it comes a numerical library that provides explicit implementations for exp, cos and sin and others. Study that for efficient, precise algorithms. The manpage, for instance at <http://www.gnu.org...
``` double EXP(double x) { /* other code that doesn't change x */ if(n==0) { return 1.0; } else { return EXP(x) + /* other code */; } } ``` Let's say we want to calculate EXP(2). EXP starts running, gets to the second return statement, and calls EXP(2) again. Which calls EXP(2) again. ...
20,314,405
So I wrote a header that uses recursion to compute several mathematical functions. Including the cosine function and exponential function( e^x). Now the cosine functions works just fine but e^x produces a segmentation fault even though both use the same recursive procedure. So here is the code from the header file I cr...
2013/12/01
[ "https://Stackoverflow.com/questions/20314405", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1964457/" ]
Unix or the POSIX standard defines a tool named `bc`, which is a (very basic) multi-precision command line calculator. With it comes a numerical library that provides explicit implementations for exp, cos and sin and others. Study that for efficient, precise algorithms. The manpage, for instance at <http://www.gnu.org...
A no-nonsense implementation of the cosine Taylor series is ``` #include<stdio.h> #include<math.h> double cos_taylor(double x) { double mxx=-x*x, a=1, c=0; unsigned int k=1; while(1+a!=1) { c+=a; a*=mxx/(k++)/(k++); } return c; } int main() { double x; for(x=-0.5; x<3.2; x+=0.1) printf(" x=...
9,156,259
I used this code for a button, after that I am in the Contacts Activity: ``` btnPhonebook.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent pb = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(...
2012/02/06
[ "https://Stackoverflow.com/questions/9156259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1189401/" ]
Instead of using the Built in Intent to display contacts.. why don't you build the List yourself and then do what you plan to do. **OR** Did you set your dialog to .show()?
If you want to use dialog in contact then you have to make your own custom layout for contact.. See below code for example... on button click ``` public static final int NUMBER_SELECT = 1; Intent intent = new Intent(clsBlockNumbers.this,CallLog_Activity.class); startActivityForResult(intent,NUMBER_SELECT); ``` in t...
9,156,259
I used this code for a button, after that I am in the Contacts Activity: ``` btnPhonebook.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent pb = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(...
2012/02/06
[ "https://Stackoverflow.com/questions/9156259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1189401/" ]
It is very simple, ``` progDailog = ProgressDialog.show(loginAct,"Process ", "please wait....",true,true); new Thread ( new Runnable() { public void run() { // your loading code goes here } }).start(); Handler progressHandler = new Handler() { public void handleMessage(Message msg1) ...
If you want to use dialog in contact then you have to make your own custom layout for contact.. See below code for example... on button click ``` public static final int NUMBER_SELECT = 1; Intent intent = new Intent(clsBlockNumbers.this,CallLog_Activity.class); startActivityForResult(intent,NUMBER_SELECT); ``` in t...
9,156,259
I used this code for a button, after that I am in the Contacts Activity: ``` btnPhonebook.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent pb = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(...
2012/02/06
[ "https://Stackoverflow.com/questions/9156259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1189401/" ]
You cannot show `Dialog` in native Contacts app. However you can fetch Contacts by yourself and show them in a `ListView` with `CheckBox` and proceed to next step. [Here](https://stackoverflow.com/a/3888833/593709) is a simplest `ListView` to show contacts. you can edit it by yourself.
If you want to use dialog in contact then you have to make your own custom layout for contact.. See below code for example... on button click ``` public static final int NUMBER_SELECT = 1; Intent intent = new Intent(clsBlockNumbers.this,CallLog_Activity.class); startActivityForResult(intent,NUMBER_SELECT); ``` in t...
9,156,259
I used this code for a button, after that I am in the Contacts Activity: ``` btnPhonebook.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent pb = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); startActivityForResult(...
2012/02/06
[ "https://Stackoverflow.com/questions/9156259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1189401/" ]
**I Have did this in my application how we can get contact detail from listview , using this Data you can Display your dialog.** ``` lv.setClickable(true); lv.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView <? > arg0, View arg1, int positio...
If you want to use dialog in contact then you have to make your own custom layout for contact.. See below code for example... on button click ``` public static final int NUMBER_SELECT = 1; Intent intent = new Intent(clsBlockNumbers.this,CallLog_Activity.class); startActivityForResult(intent,NUMBER_SELECT); ``` in t...
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
There are many ways. ``` SHOW TABLES ``` Is the most simple SQL statement for doing that. You can also take a look at `INFORMATION_SCHEMA.TABLES` if you want to have more details or do some filtering or such. ``` SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA LIKE 'your_database'; ```
I'd try something like: ``` function get_tables() { $tableList = array(); $res = mysqli_query($this->conn,"SHOW TABLES"); while($cRow = mysqli_fetch_array($res)) { $tableList[] = $cRow[0]; } return $tableList; } ```
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
There are many ways. ``` SHOW TABLES ``` Is the most simple SQL statement for doing that. You can also take a look at `INFORMATION_SCHEMA.TABLES` if you want to have more details or do some filtering or such. ``` SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA LIKE 'your_database'; ```
here is little example ``` class database { public $connection; function __construct() { $this->connection = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME) or die(...
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
There are many ways. ``` SHOW TABLES ``` Is the most simple SQL statement for doing that. You can also take a look at `INFORMATION_SCHEMA.TABLES` if you want to have more details or do some filtering or such. ``` SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA LIKE 'your_database'; ```
Using PHP 5.5 or later, a simple solution is using PHP's built-in [array\_column()](http://at2.php.net/array_column) function. ``` $link = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME); $listdbtables = array_column($link->query('SHOW TABLES')->fetch_all(),0); ```
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
There are many ways. ``` SHOW TABLES ``` Is the most simple SQL statement for doing that. You can also take a look at `INFORMATION_SCHEMA.TABLES` if you want to have more details or do some filtering or such. ``` SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA LIKE 'your_database'; ```
``` $link = mysqli_connect("localhost", "domain_root", "##pwd", "domain_DBname"); $query = mysqli_query($link, "SHOW TABLES IN domain_DBname"); $numrows = mysqli_num_rows($query); echo "<b>Amount of tables: ".$numrows." and their names:</b>"; while ($row = mysqli_fetch_array($query)) { echo $row[0]." "; } ```
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
I'd try something like: ``` function get_tables() { $tableList = array(); $res = mysqli_query($this->conn,"SHOW TABLES"); while($cRow = mysqli_fetch_array($res)) { $tableList[] = $cRow[0]; } return $tableList; } ```
here is little example ``` class database { public $connection; function __construct() { $this->connection = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME) or die(...
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
I'd try something like: ``` function get_tables() { $tableList = array(); $res = mysqli_query($this->conn,"SHOW TABLES"); while($cRow = mysqli_fetch_array($res)) { $tableList[] = $cRow[0]; } return $tableList; } ```
``` $link = mysqli_connect("localhost", "domain_root", "##pwd", "domain_DBname"); $query = mysqli_query($link, "SHOW TABLES IN domain_DBname"); $numrows = mysqli_num_rows($query); echo "<b>Amount of tables: ".$numrows." and their names:</b>"; while ($row = mysqli_fetch_array($query)) { echo $row[0]." "; } ```
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
Using PHP 5.5 or later, a simple solution is using PHP's built-in [array\_column()](http://at2.php.net/array_column) function. ``` $link = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME); $listdbtables = array_column($link->query('SHOW TABLES')->fetch_all(),0); ```
here is little example ``` class database { public $connection; function __construct() { $this->connection = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME) or die(...
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
``` $link = mysqli_connect("localhost", "domain_root", "##pwd", "domain_DBname"); $query = mysqli_query($link, "SHOW TABLES IN domain_DBname"); $numrows = mysqli_num_rows($query); echo "<b>Amount of tables: ".$numrows." and their names:</b>"; while ($row = mysqli_fetch_array($query)) { echo $row[0]." "; } ```
here is little example ``` class database { public $connection; function __construct() { $this->connection = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME) or die(...
4,703,111
I have looked around and still can't find how to list all my tables in a database. is it possible with MySQLi? Thanks.
2011/01/16
[ "https://Stackoverflow.com/questions/4703111", "https://Stackoverflow.com", "https://Stackoverflow.com/users/413225/" ]
Using PHP 5.5 or later, a simple solution is using PHP's built-in [array\_column()](http://at2.php.net/array_column) function. ``` $link = mysqli_connect(DBHOST, DBUSER, DBPASS, DBNAME); $listdbtables = array_column($link->query('SHOW TABLES')->fetch_all(),0); ```
``` $link = mysqli_connect("localhost", "domain_root", "##pwd", "domain_DBname"); $query = mysqli_query($link, "SHOW TABLES IN domain_DBname"); $numrows = mysqli_num_rows($query); echo "<b>Amount of tables: ".$numrows." and their names:</b>"; while ($row = mysqli_fetch_array($query)) { echo $row[0]." "; } ```
17,620,691
In my project I want to add a lot of new images and delete others and I want to get list of all my drawables in res folder in activity. How do I can get it? Or should I use assests folder and get list of images from there?
2013/07/12
[ "https://Stackoverflow.com/questions/17620691", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2209163/" ]
I think you're just looking for `HAVING`: ``` select units, count(*) from old_table group by units having count(*) > 2000 ``` * [Condensed SQL Fiddle Demo](http://sqlfiddle.com/#!2/d0a958/1)
Any where statement that references a value created in the current query needs to be embedded in a subquery. Instead, you could use: ``` select * from ( select units, count(*) as count from old_table group by units ) where count > 2000 ```
267,590
When dealing with capacitances <= 1uF ceramic is your choice. When you need more than 10uF it is economically justified to use electrolytic cap shunted with small ceramic one. But in range 1-10uF it is questionable. What do you suggest?
2016/11/04
[ "https://electronics.stackexchange.com/questions/267590", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/17902/" ]
Your question is naive in that it doesn't consider what type of capacitor best suits the target application. Consider this: - [![enter image description here](https://i.stack.imgur.com/fFSgh.png)](https://i.stack.imgur.com/fFSgh.png) So, a 1uF ceramic may not be your best choice if wanting an accurate timing circuit ...
It all comes down to the frequency of interest. Here is a typical frequency response: [![frequency response](https://i.stack.imgur.com/8NrCL.png)](https://i.stack.imgur.com/8NrCL.png) You can see that the electrolytic capacitors have the worst performance. Generally they are used for decoupling at low frequencies (kHz ...
267,590
When dealing with capacitances <= 1uF ceramic is your choice. When you need more than 10uF it is economically justified to use electrolytic cap shunted with small ceramic one. But in range 1-10uF it is questionable. What do you suggest?
2016/11/04
[ "https://electronics.stackexchange.com/questions/267590", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/17902/" ]
It all comes down to the frequency of interest. Here is a typical frequency response: [![frequency response](https://i.stack.imgur.com/8NrCL.png)](https://i.stack.imgur.com/8NrCL.png) You can see that the electrolytic capacitors have the worst performance. Generally they are used for decoupling at low frequencies (kHz ...
The OP asks about economical aspects of decoupling caps, with focus on 1uF-10uF range. Electrical aspects aside, inspecting one common supplier of components, Digi-Key, shows that a 10uF 10% 6.3V aluminum cap costs 10c in qty 1000, while a 10uF 6.3V ceramic (size 0805) is only 1.5c/1000ea. However, there are many asp...
267,590
When dealing with capacitances <= 1uF ceramic is your choice. When you need more than 10uF it is economically justified to use electrolytic cap shunted with small ceramic one. But in range 1-10uF it is questionable. What do you suggest?
2016/11/04
[ "https://electronics.stackexchange.com/questions/267590", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/17902/" ]
It all comes down to the frequency of interest. Here is a typical frequency response: [![frequency response](https://i.stack.imgur.com/8NrCL.png)](https://i.stack.imgur.com/8NrCL.png) You can see that the electrolytic capacitors have the worst performance. Generally they are used for decoupling at low frequencies (kHz ...
The choice of ripple reduction caps can be critically defined by the impedance spectrum times(x) the current pulse spectrum='voltage ripple spectrum. This requires you define I(f) and V(f) on a spectrum analyzer, then the choice of caps becomes easier with scattering parameter files from OEM... or by trial and error. ...
267,590
When dealing with capacitances <= 1uF ceramic is your choice. When you need more than 10uF it is economically justified to use electrolytic cap shunted with small ceramic one. But in range 1-10uF it is questionable. What do you suggest?
2016/11/04
[ "https://electronics.stackexchange.com/questions/267590", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/17902/" ]
Your question is naive in that it doesn't consider what type of capacitor best suits the target application. Consider this: - [![enter image description here](https://i.stack.imgur.com/fFSgh.png)](https://i.stack.imgur.com/fFSgh.png) So, a 1uF ceramic may not be your best choice if wanting an accurate timing circuit ...
The OP asks about economical aspects of decoupling caps, with focus on 1uF-10uF range. Electrical aspects aside, inspecting one common supplier of components, Digi-Key, shows that a 10uF 10% 6.3V aluminum cap costs 10c in qty 1000, while a 10uF 6.3V ceramic (size 0805) is only 1.5c/1000ea. However, there are many asp...
267,590
When dealing with capacitances <= 1uF ceramic is your choice. When you need more than 10uF it is economically justified to use electrolytic cap shunted with small ceramic one. But in range 1-10uF it is questionable. What do you suggest?
2016/11/04
[ "https://electronics.stackexchange.com/questions/267590", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/17902/" ]
Your question is naive in that it doesn't consider what type of capacitor best suits the target application. Consider this: - [![enter image description here](https://i.stack.imgur.com/fFSgh.png)](https://i.stack.imgur.com/fFSgh.png) So, a 1uF ceramic may not be your best choice if wanting an accurate timing circuit ...
The choice of ripple reduction caps can be critically defined by the impedance spectrum times(x) the current pulse spectrum='voltage ripple spectrum. This requires you define I(f) and V(f) on a spectrum analyzer, then the choice of caps becomes easier with scattering parameter files from OEM... or by trial and error. ...
267,590
When dealing with capacitances <= 1uF ceramic is your choice. When you need more than 10uF it is economically justified to use electrolytic cap shunted with small ceramic one. But in range 1-10uF it is questionable. What do you suggest?
2016/11/04
[ "https://electronics.stackexchange.com/questions/267590", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/17902/" ]
The OP asks about economical aspects of decoupling caps, with focus on 1uF-10uF range. Electrical aspects aside, inspecting one common supplier of components, Digi-Key, shows that a 10uF 10% 6.3V aluminum cap costs 10c in qty 1000, while a 10uF 6.3V ceramic (size 0805) is only 1.5c/1000ea. However, there are many asp...
The choice of ripple reduction caps can be critically defined by the impedance spectrum times(x) the current pulse spectrum='voltage ripple spectrum. This requires you define I(f) and V(f) on a spectrum analyzer, then the choice of caps becomes easier with scattering parameter files from OEM... or by trial and error. ...
10,205,873
I try to change my format Datetime on MySQL T got a table historic with some columns and some all them have this format DATETIME : ``` JJ/MM/AAAA HH:MM ``` I need to change to : ``` AAAA-MM-JJ HH:MM:SS ``` I don't have the variable for SS I would like to take 00. Example ``` 01/12/2012 12:23 > 2012-12-01 12:23...
2012/04/18
[ "https://Stackoverflow.com/questions/10205873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1324059/" ]
You need to use Format Function for that For above you can use ``` SELECT DATE_FORMAT([YOURCOLUMNNAME],'%Y-%m-%d %h:%i:%s') from [YOURTABLENAME]; ``` For all the conversion you can refer to. <http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format>
use **[date\_format()](http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format)** function Try below: ``` SELECT date_format(columnname,'%Y-%m-%d %h:%i:%s') as yourdate FROM tablename ```
10,205,873
I try to change my format Datetime on MySQL T got a table historic with some columns and some all them have this format DATETIME : ``` JJ/MM/AAAA HH:MM ``` I need to change to : ``` AAAA-MM-JJ HH:MM:SS ``` I don't have the variable for SS I would like to take 00. Example ``` 01/12/2012 12:23 > 2012-12-01 12:23...
2012/04/18
[ "https://Stackoverflow.com/questions/10205873", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1324059/" ]
You need to use Format Function for that For above you can use ``` SELECT DATE_FORMAT([YOURCOLUMNNAME],'%Y-%m-%d %h:%i:%s') from [YOURTABLENAME]; ``` For all the conversion you can refer to. <http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format>
None of the posted answers will work, as your data won't be recognized as a date. Use string conversion instead: ``` UPDATE tablename SET columnname = CONCAT(SUBSTR(columnname,7,4),'-',SUBSTR(columnname,4,2),'-',SUBSTR(columnname,1,2),SUBSTR(columname,11),':00'); ``` Hope this helps
163,912
In the U.S. GPS system, satellites are identified by the PRN number broadcast by each satellite. This ID is usually visible on most GPS receiver platforms that provide access to individual GPS satellite signal information to identify the broadcasting satellite (e.g., accessible on Android via the GPSStatus.Listener and...
2015/09/22
[ "https://gis.stackexchange.com/questions/163912", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/12198/" ]
For Android 6.0.1 (M) and lower, on Qualcomm chipsets the ID range of 301-330 has been identified for Galileo satellites via tests with the [GPSTest app](https://github.com/barbeau/gpstest) on a BQ Aquaris X5+ device (see [this issue](https://github.com/barbeau/gpstest/issues/58)). For Android 7.0 (N) and higher, Goog...
From the [IGS Galileo status](http://igs.org/mgex/status-GAL) it appears that there are "standard" PRNs assigned - as of Sep 15, it looks like E followed by the SV ID for the operational satellites. Obviously that could change as satellites are "refreshed". From that same web site, it is also possible that different re...
163,912
In the U.S. GPS system, satellites are identified by the PRN number broadcast by each satellite. This ID is usually visible on most GPS receiver platforms that provide access to individual GPS satellite signal information to identify the broadcasting satellite (e.g., accessible on Android via the GPSStatus.Listener and...
2015/09/22
[ "https://gis.stackexchange.com/questions/163912", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/12198/" ]
From the [IGS Galileo status](http://igs.org/mgex/status-GAL) it appears that there are "standard" PRNs assigned - as of Sep 15, it looks like E followed by the SV ID for the operational satellites. Obviously that could change as satellites are "refreshed". From that same web site, it is also possible that different re...
Just to provide a comprehensive general answer: ``` 'PRN E'n ⇔ 'PRN 'n + 70 ``` For example: `PRN E11 = PRN 81`
163,912
In the U.S. GPS system, satellites are identified by the PRN number broadcast by each satellite. This ID is usually visible on most GPS receiver platforms that provide access to individual GPS satellite signal information to identify the broadcasting satellite (e.g., accessible on Android via the GPSStatus.Listener and...
2015/09/22
[ "https://gis.stackexchange.com/questions/163912", "https://gis.stackexchange.com", "https://gis.stackexchange.com/users/12198/" ]
For Android 6.0.1 (M) and lower, on Qualcomm chipsets the ID range of 301-330 has been identified for Galileo satellites via tests with the [GPSTest app](https://github.com/barbeau/gpstest) on a BQ Aquaris X5+ device (see [this issue](https://github.com/barbeau/gpstest/issues/58)). For Android 7.0 (N) and higher, Goog...
Just to provide a comprehensive general answer: ``` 'PRN E'n ⇔ 'PRN 'n + 70 ``` For example: `PRN E11 = PRN 81`
2,165,267
I'm new to jquery, and I have a bit of a problem. What I need to do is have one div as my main slideshow. That seems straightforward enough. However, I would like another slideshow div to change next, ( containing a bit of text ). So the change path would be: div 1 change, div 2 change, div 1 change ,div 2 change,...
2010/01/29
[ "https://Stackoverflow.com/questions/2165267", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13202/" ]
Using the [jQuery Cycle Plugin](http://malsup.com/jquery/cycle/) you can do something like this: ``` var slide1 = $('.slideshow1'); var slide2 = $('.slideshow2'); slide1.cycle({ after:function(){ slide1.cycle('pause'); slide2.cycle('resume'); } }); slide2.cyc...
You might want to check out the [jQuery Cycle](http://malsup.com/jquery/cycle/) plugin (options [here](http://malsup.com/jquery/cycle/options.html)) and try setting it up with differing delays, but the same speed. This way the animations will begin at different times and although they are not stricly synchronous, they ...
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
I found it!! ``` setTimeout(function(){ $('#e_password').val('');}, 50); ``` Hopefully, the above works. However, I cannot give a satisfactory explanation why this small delay solves the problem...Most probably, it is a Mozilla bug.
Pure Javascript: ``` document.getElementById('e_password').value = ''; ``` Or using jQuery: ``` $('#e_password').attr('value',''); ```
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
I found it!! ``` setTimeout(function(){ $('#e_password').val('');}, 50); ``` Hopefully, the above works. However, I cannot give a satisfactory explanation why this small delay solves the problem...Most probably, it is a Mozilla bug.
$("#e\_password").val('') works for me in firefox. Can you try with this ? ``` $("#e_password").attr("value","") ```
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
I found it!! ``` setTimeout(function(){ $('#e_password').val('');}, 50); ``` Hopefully, the above works. However, I cannot give a satisfactory explanation why this small delay solves the problem...Most probably, it is a Mozilla bug.
Chrome ignore `autocomplete="off"` Use `autocomplete="new-password"` in input
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
``` document.getElementById("e_password").value = ""; ``` or ``` $('input[type="password"]#e_password').val(''); ```
$("#e\_password").val('') works for me in firefox. Can you try with this ? ``` $("#e_password").attr("value","") ```
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
I found it!! ``` setTimeout(function(){ $('#e_password').val('');}, 50); ``` Hopefully, the above works. However, I cannot give a satisfactory explanation why this small delay solves the problem...Most probably, it is a Mozilla bug.
I may be wrong but I guess it is not a code problem at all !!. It may be the saved passwords in the browser. For example when you open up the page in chrome , just check out the top right of the omnibox and you can click the cross to delete the saved password for that page. I guessed this because you say it comes only ...
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
Chrome ignore `autocomplete="off"` Use `autocomplete="new-password"` in input ``` <input type="password" autocomplete="new-password"> ``` <https://bugs.chromium.org/p/chromium/issues/detail?id=587466>
`autocomplete="off"` must be set for `form` element not `input` ``` <form autocomplete="off"> .... </form> ```
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
``` document.getElementById("e_password").value = ""; ``` or ``` $('input[type="password"]#e_password').val(''); ```
I may be wrong but I guess it is not a code problem at all !!. It may be the saved passwords in the browser. For example when you open up the page in chrome , just check out the top right of the omnibox and you can click the cross to delete the saved password for that page. I guessed this because you say it comes only ...
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
I found it!! ``` setTimeout(function(){ $('#e_password').val('');}, 50); ``` Hopefully, the above works. However, I cannot give a satisfactory explanation why this small delay solves the problem...Most probably, it is a Mozilla bug.
FF is using "change" event when auto-filling (at least in v51). try something like ``` // if your input is in html $(document).ready(function(){ /* // if you create input from code like this $("body").html('<input class="password" type="password" id="e_password">').promise().done(function(){ */ $("#e_password")...
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
Chrome ignore `autocomplete="off"` Use `autocomplete="new-password"` in input ``` <input type="password" autocomplete="new-password"> ``` <https://bugs.chromium.org/p/chromium/issues/detail?id=587466>
$("#e\_password").val('') works for me in firefox. Can you try with this ? ``` $("#e_password").attr("value","") ```
31,624,677
``` <input name="e_password" id="e_password" type="password" autocomplete="off" /> ``` The above is a password field which for some reason, is automatically filled **only in Mozilla (not in Chrome and IE11)**. Obviously it keeps the value field from previous trials. I tried so much to clear this field. The **only** w...
2015/07/25
[ "https://Stackoverflow.com/questions/31624677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1642344/" ]
Chrome ignore `autocomplete="off"` Use `autocomplete="new-password"` in input ``` <input type="password" autocomplete="new-password"> ``` <https://bugs.chromium.org/p/chromium/issues/detail?id=587466>
Chrome ignore `autocomplete="off"` Use `autocomplete="new-password"` in input
41,804,034
My problem is im working in prestashop(1.6.1.9) CMS pages, im not allowed to put any script into the cms pages source code.(im not using iframe for this, its not a solution).. So i have an dropdown menu , where each link on the drop down links to a certain page. I want to use a java-script function to do this. But be...
2017/01/23
[ "https://Stackoverflow.com/questions/41804034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6295433/" ]
I suggest making the following changes; ``` $(document).on('change', '#selectdrops', function (e) { e.preventDefault(); menu_goto(e.target.value); }); }) function menu_goto( newurl ) { var baseurl = window.document.location.protocol + '//' + window.document.location.host; if (newurl.length ...
If you want to redirect on change (not after a button click) you can use this script: ``` $(document).ready(function () { $(document).on('change', '#selectdrops', function (e) { e.preventDefault(); menu_goto(this); }); }); function menu_goto( menuform ) { if(menuform == null)...
41,804,034
My problem is im working in prestashop(1.6.1.9) CMS pages, im not allowed to put any script into the cms pages source code.(im not using iframe for this, its not a solution).. So i have an dropdown menu , where each link on the drop down links to a certain page. I want to use a java-script function to do this. But be...
2017/01/23
[ "https://Stackoverflow.com/questions/41804034", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6295433/" ]
I suggest making the following changes; ``` $(document).on('change', '#selectdrops', function (e) { e.preventDefault(); menu_goto(e.target.value); }); }) function menu_goto( newurl ) { var baseurl = window.document.location.protocol + '//' + window.document.location.host; if (newurl.length ...
You forgot to pass the form as a parameter of the `menu_goto` function (also selector was false. Here is corrected code: ```js $(document).ready(function() { $(document).on('change', '#selectdrops', function(e) { e.preventDefault(); menu_goto(this.form); }); $(document).ready(function() { $("...
73,611,259
I made a switch case statement menu with one of the options being System.exit(0);. This is all surrounded by a try, finally that calls the method all of this is in. Would you guys not recommend this style of loop or am I all good? ``` public void Run() { Scanner myObj = new Scanner(System.in); int menuInput; ...
2022/09/05
[ "https://Stackoverflow.com/questions/73611259", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19924244/" ]
No. What you have here is an infinite recursion. Eventually you'd overflow the stack. Use an actual loop instead: ``` while (true) { try { // ... } catch (Exception e) { // ... } } ``` And you *almost never* want to call `System.exit`. Just `break` the loop instead.
Is this legal code? Yes. Is what you have there recommended? No. If the method throws an exception it's likely recalling it will throw again. See the quote below. Calling it again in a tight loop without attempting remedy, at least waiting a recovery and counting failures (3 strikes out?) will just end up in a tight...
30,139,698
I am a beginner in ruby on rails. I found it quite inconvenience to add route to route.rb manually every time I add a new action or page to controller or the project. So I want to know if there is a way using command line rather than editing the route.rb file?
2015/05/09
[ "https://Stackoverflow.com/questions/30139698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4309288/" ]
Adding routes to the routes.rb file from the terminal can be easily achieved with **sed**. *Install sed using the following command (Ubuntu):* ``` sudo apt get install sed ``` Assuming you are in the root directory of your app, here is the command to add the routes:- ``` sed -i '23iresources :people' config/routes...
I don't know about a commandline way to update routes, but you might consider using wildcards instead, that way a single line in your routes file can allow you to access many pages on your site: <http://guides.rubyonrails.org/routing.html#route-globbing-and-wildcard-segments>
30,139,698
I am a beginner in ruby on rails. I found it quite inconvenience to add route to route.rb manually every time I add a new action or page to controller or the project. So I want to know if there is a way using command line rather than editing the route.rb file?
2015/05/09
[ "https://Stackoverflow.com/questions/30139698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4309288/" ]
I don't know about a commandline way to update routes, but you might consider using wildcards instead, that way a single line in your routes file can allow you to access many pages on your site: <http://guides.rubyonrails.org/routing.html#route-globbing-and-wildcard-segments>
If you do rails generate -h ``` rails generate -h Please choose a generator below. Rails: assets controller generator helper integration_test jbuilder job m...
30,139,698
I am a beginner in ruby on rails. I found it quite inconvenience to add route to route.rb manually every time I add a new action or page to controller or the project. So I want to know if there is a way using command line rather than editing the route.rb file?
2015/05/09
[ "https://Stackoverflow.com/questions/30139698", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4309288/" ]
Adding routes to the routes.rb file from the terminal can be easily achieved with **sed**. *Install sed using the following command (Ubuntu):* ``` sudo apt get install sed ``` Assuming you are in the root directory of your app, here is the command to add the routes:- ``` sed -i '23iresources :people' config/routes...
If you do rails generate -h ``` rails generate -h Please choose a generator below. Rails: assets controller generator helper integration_test jbuilder job m...
24,044
Until food can be grown or synthesized reliably and effectively in space, a manned deep space mission needs to bring all of the food with it, or cache some of it ahead of time. Roughly what would be the mass of "space food" per year per astronaut? Possibly an answer for current supplies used on the ISS would be larger...
2017/12/15
[ "https://space.stackexchange.com/questions/24044", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
So, after a lot of searching after what are the recommended daily intake in terms of nutrient requirements and other stuff, I used a couple of sources to make an average of what is actually needed, and starting from this extrapolated a need. Here are my basis per day, for the average astronaut (average between male an...
By searching "ISS food intake" on Google, I found this, which mostly answers you question: <https://www.nasa.gov/vision/earth/everydaylife/jamestown-needs-fs.html>
37,231,701
My code is getting through the first two testcases, but failing the third one. Can someone help please? **Link:** <https://www.hackerrank.com/challenges/tag-content-extractor> **Problem Statement:** In a tag-based language like XML or HTML, contents are enclosed between a start tag and an end tag. Note that the corr...
2016/05/14
[ "https://Stackoverflow.com/questions/37231701", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6324361/" ]
You can get it here: ``` import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int testCases = Integer.parseInt(in.nextLine()); while(testCases>0){ Strin...
It can be solved easily with the power of **regex** ``` import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution{ public static void main(String[] args){ Scanner in = new Scanner(System.in); int testCases = Integer.parseInt(in.n...
2,539,964
I am trying to prove the following: $Problem:$ Let $f : X \rightarrow Y$ be a function. Assume that there are $g\_{1} : Y \rightarrow X$ such that $f \circ g\_{1} = i\_{Y}$ and $g\_{1}\circ f = i\_{X}$ and $g\_{2} : Y \rightarrow X$ such that $f \circ g\_{2} = i\_{Y}$ and $g\_{2} \circ f = i\_{X}$. Show that $g\_{1} =...
2017/11/27
[ "https://math.stackexchange.com/questions/2539964", "https://math.stackexchange.com", "https://math.stackexchange.com/users/482179/" ]
Actually, you're not doing induction on two variables here at all. You're only doing induction on $y$, while $x$ is assumed to be arbitrary. But, as such, it *is* a good proof!
It's subtle but this induction is not doing: Assume true for $x$ and assume true for $y$ then show it is true for $x+1$ and $y+1$. That would *not* be valid as that proves only for $x$ and $y$ where $x - y = constant$. BUT this is actually doing something different. It is assuming it is true for $n = x+y$ and showing...
38,466,700
I'm trying to make a function that maps table names to Dataframes, my code is: ``` def tableGen(tables: Array[Any], df: DataFrame, sqlContext: SQLContext): Map[String,DataFrame]={ df.registerTempTable("TempTable") var myMap: Map[String,DataFrame] = Map() for(i <- tables){ val queryRows = sqlContex...
2016/07/19
[ "https://Stackoverflow.com/questions/38466700", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5844146/" ]
> > Although I explicitly state I want my return type to be Map[String,DataFrame] when I go outside of the function and do these: > > > Below I link to the docs of these classes. [`Map[String,DataFrame]#get(String)`](http://www.scala-lang.org/api/current/index.html#scala.collection.Map@get(key:A):Option[B]) retur...
Based on certain category column, create a map based on this column. In this case the category column is `table`. ``` val categoryCol = col("table") // category can be type String, Int, ... val categories = df.select(categoryCol).distinct.collect.map(row => row.get(0)) // result is Map[String, DataFrame] val dfs = c...
49,362,202
I need help to this select where class from wordpress database: What I would like to achieve is to display the first 6 newcomer posts/records. The path to the image, image name, property title, property features (How many Bedrooms and Bathroom etc. there is) property price and property price unit (if it $ or Danish ...
2018/03/19
[ "https://Stackoverflow.com/questions/49362202", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9516236/" ]
Your current output: ``` "0":{ "questionName":null, "AnswerHeaders":null, "AnswersOne":null, "AnswersTwo":null, "AnswersThree":null, "AnswersFour":null, "Questions":"Vraag ante 11 & Vraag post 33", "AnteOrPost":null }, ``` Means that `JsonConvert` could not convert your array to json string **OR*...
Found the issue. I was calling the Graphs class 8 times, instead of 1 time. Resulting into 232 strings for the Json. Afterwards I didn't have to give indexes anymore, either.
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
I like Rushyo's suggestion of using AT, but this is another option: ``` whoami /groups | findstr /b BUILTIN\Administrators | findstr /c:"Enabled group" && goto :isadministrator ``` This approach would also allow you to distinguish between a non-administrator and a non-elevated administrator if you wanted to. Non-ele...
Thanks Torin Darkflight, Your method is the only one that work for me on Windows 11. Here's an example script expanding on your post: ``` IF EXIST %SYSTEMROOT%\SYSTEM32\WDI\LOGFILES GOTO :Running_As_An_Admin ECHO You are NOT an Administrator. This command requires admin rights. & Echo: & Echo Quitting...... @TIMEOUT /...
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
**ADDENDUM**: For Windows 8 this will not work; see [this excellent answer](https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights#11995662) instead. --- Found this solution here: <http://www.robvanderwoude.com/clevertricks.php> ``` AT > NUL IF %ERRORLEVEL% EQU 0 ( ECHO you are Ad...
If you are running as a user with administrator rights then environment variable SessionName will NOT be defined and you still don't have administrator rights when running a batch file. You should use "net session" command and look for an error return code of "0" to verify administrator rights. Example; - the first ...
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
**ADDENDUM**: For Windows 8 this will not work; see [this excellent answer](https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights#11995662) instead. --- Found this solution here: <http://www.robvanderwoude.com/clevertricks.php> ``` AT > NUL IF %ERRORLEVEL% EQU 0 ( ECHO you are Ad...
I like Rushyo's suggestion of using AT, but this is another option: ``` whoami /groups | findstr /b BUILTIN\Administrators | findstr /c:"Enabled group" && goto :isadministrator ``` This approach would also allow you to distinguish between a non-administrator and a non-elevated administrator if you wanted to. Non-ele...
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
This trick only requires one command: type `net session` into the command prompt. If you are **NOT an admin**, you get an access is denied message. ``` System error 5 has occurred. Access is denied. ``` If you **ARE an admin**, you get a different message, the most common being: ``` There are no entries in the li...
Works for Win7 Enterprise and Win10 Enterprise ``` @if DEFINED SESSIONNAME ( @echo. @echo You must right click to "Run as administrator" @echo Try again @echo. @pause @goto :EOF ) ```
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
**ADDENDUM**: For Windows 8 this will not work; see [this excellent answer](https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights#11995662) instead. --- Found this solution here: <http://www.robvanderwoude.com/clevertricks.php> ``` AT > NUL IF %ERRORLEVEL% EQU 0 ( ECHO you are Ad...
Here's a simple method I've used on Windows 7 through Windows 10. Basically, I simply use the "IF EXIST" command to check for the Windows\System32\WDI\LogFiles folder. The WDI folder exists on every install of Windows from at least 7 onward, and it requires admin privileges to access. The WDI folder always has a LogFil...
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
This trick only requires one command: type `net session` into the command prompt. If you are **NOT an admin**, you get an access is denied message. ``` System error 5 has occurred. Access is denied. ``` If you **ARE an admin**, you get a different message, the most common being: ``` There are no entries in the li...
Unfortunately, "S-1-5-32-544" that others have suggested is not proof of elevation. Windows 10 and higher, a language independent approach is: ``` whoami /groups | find "S-1-16-12288" ``` this is the "High Mandatory Level", which is actually escalated. Regular command prompt: ``` C:\> whoami /groups | find "S-1-1...
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
This trick only requires one command: type `net session` into the command prompt. If you are **NOT an admin**, you get an access is denied message. ``` System error 5 has occurred. Access is denied. ``` If you **ARE an admin**, you get a different message, the most common being: ``` There are no entries in the li...
A "not-a-one-liner" version of <https://stackoverflow.com/a/38856823/2193477> ``` @echo off net.exe session 1>NUL 2>NUL || goto :not_admin echo SUCCESS goto :eof :not_admin echo ERROR: Please run as a local administrator. exit /b 1 ```
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
**ADDENDUM**: For Windows 8 this will not work; see [this excellent answer](https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights#11995662) instead. --- Found this solution here: <http://www.robvanderwoude.com/clevertricks.php> ``` AT > NUL IF %ERRORLEVEL% EQU 0 ( ECHO you are Ad...
Works for Win7 Enterprise and Win10 Enterprise ``` @if DEFINED SESSIONNAME ( @echo. @echo You must right click to "Run as administrator" @echo Try again @echo. @pause @goto :EOF ) ```
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
Works for Win7 Enterprise and Win10 Enterprise ``` @if DEFINED SESSIONNAME ( @echo. @echo You must right click to "Run as administrator" @echo Try again @echo. @pause @goto :EOF ) ```
Thanks Torin Darkflight, Your method is the only one that work for me on Windows 11. Here's an example script expanding on your post: ``` IF EXIST %SYSTEMROOT%\SYSTEM32\WDI\LOGFILES GOTO :Running_As_An_Admin ECHO You are NOT an Administrator. This command requires admin rights. & Echo: & Echo Quitting...... @TIMEOUT /...
7,985,755
From inside a batch file, I would like to test whether I'm running with Administrator/elevated privileges. The username doesn't change when "Run as Administrator" is selected, so that doesn't work. If there were a universally available command, which has no effect, but requires administrative privileges, then I could...
2011/11/02
[ "https://Stackoverflow.com/questions/7985755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/604049/" ]
the solution: ``` at >nul if %ErrorLevel% equ 0 ( echo Administrator ) else ( echo NOT Administrator ) ``` does not work under Windows 10 for all versions of Windows can be do so: ``` openfiles >nul 2>&1 if %ErrorLevel% equ 0 ( echo Administrator ) else ( echo NOT Administrator ) ```
A "not-a-one-liner" version of <https://stackoverflow.com/a/38856823/2193477> ``` @echo off net.exe session 1>NUL 2>NUL || goto :not_admin echo SUCCESS goto :eof :not_admin echo ERROR: Please run as a local administrator. exit /b 1 ```
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
In our research labs, we are using AI planning technology for games. AI Planning is used by NASA to build semi-autonomous robots. Planning can produce less predictable behavior than state machines, but planning is a highly complex problem, that is, solving planning problems has a huge computational complexity. AI Pla...
You seem to know already the techniques for planning and executing. Another thing that you need to do is predict the opponent's next move and maximize the expected reward of your response. I wrote a blog article about this: <http://www.masterbaboon.com/2009/05/my-ai-reads-your-mind-and-kicks-your-ass-part-2/> and <http...
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
In our research labs, we are using AI planning technology for games. AI Planning is used by NASA to build semi-autonomous robots. Planning can produce less predictable behavior than state machines, but planning is a highly complex problem, that is, solving planning problems has a huge computational complexity. AI Pla...
Another route to consider is the so called `Ghost AI` as described [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/wpj_vishnu07.pdf) & [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/CGAT_Real%20Time%20Imitaion%20Based%20Learning.pdf). As the name suggests you basically extract rules from actu...
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
In our research labs, we are using AI planning technology for games. AI Planning is used by NASA to build semi-autonomous robots. Planning can produce less predictable behavior than state machines, but planning is a highly complex problem, that is, solving planning problems has a huge computational complexity. AI Pla...
I have reverse engineered the routines related to the AI subsystem within the Street Figher II series of games. It does not incorporate any of the techniques mentioned above. It is entirely reactive and involves no planning, learning or goals. Interestingly, there is no "technique weight" system that you mention, eithe...
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
In our research labs, we are using AI planning technology for games. AI Planning is used by NASA to build semi-autonomous robots. Planning can produce less predictable behavior than state machines, but planning is a highly complex problem, that is, solving planning problems has a huge computational complexity. AI Pla...
<http://www.ice.ci.ritsumei.ac.jp/~ftgaic/index-R.html> its old but here are some examples
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
You seem to know already the techniques for planning and executing. Another thing that you need to do is predict the opponent's next move and maximize the expected reward of your response. I wrote a blog article about this: <http://www.masterbaboon.com/2009/05/my-ai-reads-your-mind-and-kicks-your-ass-part-2/> and <http...
Another route to consider is the so called `Ghost AI` as described [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/wpj_vishnu07.pdf) & [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/CGAT_Real%20Time%20Imitaion%20Based%20Learning.pdf). As the name suggests you basically extract rules from actu...
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
You seem to know already the techniques for planning and executing. Another thing that you need to do is predict the opponent's next move and maximize the expected reward of your response. I wrote a blog article about this: <http://www.masterbaboon.com/2009/05/my-ai-reads-your-mind-and-kicks-your-ass-part-2/> and <http...
<http://www.ice.ci.ritsumei.ac.jp/~ftgaic/index-R.html> its old but here are some examples
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
I have reverse engineered the routines related to the AI subsystem within the Street Figher II series of games. It does not incorporate any of the techniques mentioned above. It is entirely reactive and involves no planning, learning or goals. Interestingly, there is no "technique weight" system that you mention, eithe...
Another route to consider is the so called `Ghost AI` as described [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/wpj_vishnu07.pdf) & [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/CGAT_Real%20Time%20Imitaion%20Based%20Learning.pdf). As the name suggests you basically extract rules from actu...
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
Another route to consider is the so called `Ghost AI` as described [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/wpj_vishnu07.pdf) & [here](http://www.cp.eng.chula.ac.th/~vishnu/gameProg/papers/CGAT_Real%20Time%20Imitaion%20Based%20Learning.pdf). As the name suggests you basically extract rules from actu...
<http://www.ice.ci.ritsumei.ac.jp/~ftgaic/index-R.html> its old but here are some examples
3,733,648
There are many papers about ranged combat artificial intelligences, like Killzones's ([see this paper](http://www.cgf-ai.com/docs/straatman_remco_killzone_ai.pdf "Killzone")), or Halo. But I've not been able to find much about a fighting IA except for this [work](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1...
2010/09/17
[ "https://Stackoverflow.com/questions/3733648", "https://Stackoverflow.com", "https://Stackoverflow.com/users/448401/" ]
I have reverse engineered the routines related to the AI subsystem within the Street Figher II series of games. It does not incorporate any of the techniques mentioned above. It is entirely reactive and involves no planning, learning or goals. Interestingly, there is no "technique weight" system that you mention, eithe...
<http://www.ice.ci.ritsumei.ac.jp/~ftgaic/index-R.html> its old but here are some examples
48,374,136
My SQLite database stores location data as `latitude` and `longitude` values. I will frequently have to query the database using the following query: ``` SELECT * FROM locations WHERE latitude > 22.2 && latitude < 22.3 && longitude > 50.7 && longitude < 50.8 ``` Would a multi-column index on the `latitude` and then ...
2018/01/22
[ "https://Stackoverflow.com/questions/48374136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1111252/" ]
A2: ``` =ARRAYFORMULA("201800"&text(ROW(A$1:INDEX(B:B,COUNTA(B:B)-1)),"00")) ```
You can use formula like this in the 1st Column ``` =if(EQ(B2,),"", A1+1) ``` This will check if column 2 is empty or not if, it isn't then it'll set value of cell just above it plus one. NOTE : For 1st cell you'll need to set value 20180001 manually and apply this formula to rest of the whole column one cells.
48,374,136
My SQLite database stores location data as `latitude` and `longitude` values. I will frequently have to query the database using the following query: ``` SELECT * FROM locations WHERE latitude > 22.2 && latitude < 22.3 && longitude > 50.7 && longitude < 50.8 ``` Would a multi-column index on the `latitude` and then ...
2018/01/22
[ "https://Stackoverflow.com/questions/48374136", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1111252/" ]
A2: ``` =ARRAYFORMULA("201800"&text(ROW(A$1:INDEX(B:B,COUNTA(B:B)-1)),"00")) ```
With *2018* hardcoded in, ``` =text(row(1:1), "\2\0\1\80000") ``` Using the date from column B, ``` =year(B2)&text(COUNTIFS(B$2:B2, ">="&date(year(B2), 1, 1), B$2:B2, "<"&date(year(B2)+1, 1, 1)), "0000") ```
35,631,333
I am trying to stream a song using SoundCloud api, but apprantly it does not play it in Chrome. However it works on other browsers. ``` SC.initialize({ client_id: '65243ec784b284f1d8a8f950312240fa', redirect_uri: 'http://example.com/callback' }); SC.stream('/tracks/293').then(function(player) { player.play(); }...
2016/02/25
[ "https://Stackoverflow.com/questions/35631333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5920683/" ]
see my solution on the [open Github issue](https://github.com/soundcloud/soundcloud-javascript/issues/39) (code pasted below for convenience). If you use SoundManager2, then call setup when the dom is ready. Rather than using the stream function of the SoundCloud api, call SC.get and then create a soundobject in Sou...
This is a [known compatibility issue](https://github.com/soundcloud/soundcloud-javascript/issues/39) due to Chrome's version of Flash. There is little you can do besides disable Flash or play with the different versions of the SDK to see which one works for your specific build of Chrome.
35,631,333
I am trying to stream a song using SoundCloud api, but apprantly it does not play it in Chrome. However it works on other browsers. ``` SC.initialize({ client_id: '65243ec784b284f1d8a8f950312240fa', redirect_uri: 'http://example.com/callback' }); SC.stream('/tracks/293').then(function(player) { player.play(); }...
2016/02/25
[ "https://Stackoverflow.com/questions/35631333", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5920683/" ]
see my solution on the [open Github issue](https://github.com/soundcloud/soundcloud-javascript/issues/39) (code pasted below for convenience). If you use SoundManager2, then call setup when the dom is ready. Rather than using the stream function of the SoundCloud api, call SC.get and then create a soundobject in Sou...
As JAL said, this is unfortunately known and there doesn't seem to be a fix out there. Instead what I would suggest doing is using their widget API to create a custom iFrame (you can make it invisible if you want), and then use the `.load()` method to load whichever track, or tracks you want. You can read about that ...
7,232
For all you freelancers out there... What system do you guys use to keep track of how long a project takes you? I'm currently a 9-5er, but would much prefer to go freelance. To whit, I've got my first hourly gig coming up, and I want to make sure I'm not ripping either them or myself off. I met a guy once who told me...
2011/04/10
[ "https://sound.stackexchange.com/questions/7232", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/845/" ]
I work with a day / half-day rate system. Anything that takes me up to 5 hours, I charge half-day. 6 - 10 hours, full day rate. After 10 hours, I sometimes charge a little extra, but not always - it depends on how intense those 12 hours will be... Generally my half-day rate is somewhere around 3/4 of my full day. For...
I'm normally on a project for X weeks (16-26) where a week = 50 hours.... only very occasionally do I do hourly rate (eg prepping a trailer) but its fairly rare. My rate varies with scale and budget of the project. I've seen editors who whine if their 'usual' rate gets reduced, but they fail to take into consideration ...
7,232
For all you freelancers out there... What system do you guys use to keep track of how long a project takes you? I'm currently a 9-5er, but would much prefer to go freelance. To whit, I've got my first hourly gig coming up, and I want to make sure I'm not ripping either them or myself off. I met a guy once who told me...
2011/04/10
[ "https://sound.stackexchange.com/questions/7232", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/845/" ]
I work with a day / half-day rate system. Anything that takes me up to 5 hours, I charge half-day. 6 - 10 hours, full day rate. After 10 hours, I sometimes charge a little extra, but not always - it depends on how intense those 12 hours will be... Generally my half-day rate is somewhere around 3/4 of my full day. For...
I agree with Azimuth. Flexibility can keep clients coming back. Some clients I work with really need an hourly rate. Others I may take on at a project rate with stipulations in contract form at the beginning as to how far over the estimate time they can go before additional charges will apply. I have also done a hal...
7,232
For all you freelancers out there... What system do you guys use to keep track of how long a project takes you? I'm currently a 9-5er, but would much prefer to go freelance. To whit, I've got my first hourly gig coming up, and I want to make sure I'm not ripping either them or myself off. I met a guy once who told me...
2011/04/10
[ "https://sound.stackexchange.com/questions/7232", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/845/" ]
I find that there is no catch all answer that works in all situations. Like Colin mentions a good way to go is the Half day/full day billing system, the way Colin describes it is basically how I do it and this works well. On series work I normally charge per episode. In the first few episodes it normally takes longer t...
I'm normally on a project for X weeks (16-26) where a week = 50 hours.... only very occasionally do I do hourly rate (eg prepping a trailer) but its fairly rare. My rate varies with scale and budget of the project. I've seen editors who whine if their 'usual' rate gets reduced, but they fail to take into consideration ...
7,232
For all you freelancers out there... What system do you guys use to keep track of how long a project takes you? I'm currently a 9-5er, but would much prefer to go freelance. To whit, I've got my first hourly gig coming up, and I want to make sure I'm not ripping either them or myself off. I met a guy once who told me...
2011/04/10
[ "https://sound.stackexchange.com/questions/7232", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/845/" ]
I find that there is no catch all answer that works in all situations. Like Colin mentions a good way to go is the Half day/full day billing system, the way Colin describes it is basically how I do it and this works well. On series work I normally charge per episode. In the first few episodes it normally takes longer t...
I agree with Azimuth. Flexibility can keep clients coming back. Some clients I work with really need an hourly rate. Others I may take on at a project rate with stipulations in contract form at the beginning as to how far over the estimate time they can go before additional charges will apply. I have also done a hal...
7,232
For all you freelancers out there... What system do you guys use to keep track of how long a project takes you? I'm currently a 9-5er, but would much prefer to go freelance. To whit, I've got my first hourly gig coming up, and I want to make sure I'm not ripping either them or myself off. I met a guy once who told me...
2011/04/10
[ "https://sound.stackexchange.com/questions/7232", "https://sound.stackexchange.com", "https://sound.stackexchange.com/users/845/" ]
I'm normally on a project for X weeks (16-26) where a week = 50 hours.... only very occasionally do I do hourly rate (eg prepping a trailer) but its fairly rare. My rate varies with scale and budget of the project. I've seen editors who whine if their 'usual' rate gets reduced, but they fail to take into consideration ...
I agree with Azimuth. Flexibility can keep clients coming back. Some clients I work with really need an hourly rate. Others I may take on at a project rate with stipulations in contract form at the beginning as to how far over the estimate time they can go before additional charges will apply. I have also done a hal...
9,716,073
I have .Net 3.5 WinForms application that require access to the Internet. But my company network uses dynamic proxy settings shown below. All my attempts to retrieve and use this setting got fail. How to use this proxy in .net application? ![Proxy Settings](https://i.stack.imgur.com/3qUkk.jpg)
2012/03/15
[ "https://Stackoverflow.com/questions/9716073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/425049/" ]
Please go through the following link: <http://msdn.microsoft.com/en-us/magazine/cc300743.aspx>
By default the .NET framework will use whatever proxy settings setup on the local machine. So what you asked should be done automatically. Check DefaultProxy setting in your config file . <http://msdn.microsoft.com/en-us/library/kd3cf2ex%28v=vs.90%29.aspx>
9,716,073
I have .Net 3.5 WinForms application that require access to the Internet. But my company network uses dynamic proxy settings shown below. All my attempts to retrieve and use this setting got fail. How to use this proxy in .net application? ![Proxy Settings](https://i.stack.imgur.com/3qUkk.jpg)
2012/03/15
[ "https://Stackoverflow.com/questions/9716073", "https://Stackoverflow.com", "https://Stackoverflow.com/users/425049/" ]
Please go through the following link: <http://msdn.microsoft.com/en-us/magazine/cc300743.aspx>
But default every HttpWebRequest should automatically be filled out with this information. See [C# Getting proxy settings from Internet Explorer](https://stackoverflow.com/questions/8808052/c-sharp-getting-proxy-settings-from-internet-explorer)
3,678,334
I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place. Problem is that one template call is hanging somewhere in between. I cannot get any erro...
2010/09/09
[ "https://Stackoverflow.com/questions/3678334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91088/" ]
If you are using CF 8+, you can use the Step Debugging tools in Eclipse to step through the code: <http://www.adobe.com/devnet/coldfusion/articles/debugger.html> If you are using an earlier version, you can use a 3rd party product like Fusion Debug ( <http://www.fusion-debug.com/fd/> ) to do the same thing. If you ar...
If the built-in debugger is of no use cause the request just hang the other quick way is to just start with a cfabort at the top and keep moving it down until you hit the file causing the request to hang.
3,678,334
I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place. Problem is that one template call is hanging somewhere in between. I cannot get any erro...
2010/09/09
[ "https://Stackoverflow.com/questions/3678334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91088/" ]
If the built-in debugger is of no use cause the request just hang the other quick way is to just start with a cfabort at the top and keep moving it down until you hit the file causing the request to hang.
Have you looked at the standard coldfusion server log files to see what might be in there? Have you run the server in a console window so you can see what is appearing in the console as the templates are running (or not as the case might be)?
3,678,334
I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place. Problem is that one template call is hanging somewhere in between. I cannot get any erro...
2010/09/09
[ "https://Stackoverflow.com/questions/3678334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91088/" ]
If the built-in debugger is of no use cause the request just hang the other quick way is to just start with a cfabort at the top and keep moving it down until you hit the file causing the request to hang.
You could Take jvm thread dumps. You can do from command line or via server monitoring if you have Enterprise 8+
3,678,334
I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place. Problem is that one template call is hanging somewhere in between. I cannot get any erro...
2010/09/09
[ "https://Stackoverflow.com/questions/3678334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91088/" ]
If you are using CF 8+, you can use the Step Debugging tools in Eclipse to step through the code: <http://www.adobe.com/devnet/coldfusion/articles/debugger.html> If you are using an earlier version, you can use a 3rd party product like Fusion Debug ( <http://www.fusion-debug.com/fd/> ) to do the same thing. If you ar...
CFTrace is a great tool for this. It is native and reports time information as well.
3,678,334
I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place. Problem is that one template call is hanging somewhere in between. I cannot get any erro...
2010/09/09
[ "https://Stackoverflow.com/questions/3678334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91088/" ]
If you are using CF 8+, you can use the Step Debugging tools in Eclipse to step through the code: <http://www.adobe.com/devnet/coldfusion/articles/debugger.html> If you are using an earlier version, you can use a 3rd party product like Fusion Debug ( <http://www.fusion-debug.com/fd/> ) to do the same thing. If you ar...
Have you looked at the standard coldfusion server log files to see what might be in there? Have you run the server in a console window so you can see what is appearing in the console as the templates are running (or not as the case might be)?
3,678,334
I have some 'spaghetti'-style code that is generously saused with Custom tags and Stored procedures calls. Templates include each other, custom tags nested and stored procedures are callind other stored procedures in their place. Problem is that one template call is hanging somewhere in between. I cannot get any erro...
2010/09/09
[ "https://Stackoverflow.com/questions/3678334", "https://Stackoverflow.com", "https://Stackoverflow.com/users/91088/" ]
If you are using CF 8+, you can use the Step Debugging tools in Eclipse to step through the code: <http://www.adobe.com/devnet/coldfusion/articles/debugger.html> If you are using an earlier version, you can use a 3rd party product like Fusion Debug ( <http://www.fusion-debug.com/fd/> ) to do the same thing. If you ar...
You could Take jvm thread dumps. You can do from command line or via server monitoring if you have Enterprise 8+