qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
1,169,987
I had always assumed that AJAX-driven content was invisible to search engines. (i.e. content inserted into the DOM via XMLHTTPRequest) For example, in this site, the main content is loaded via AJAX request by the browser: <http://www.trustedsource.org/query/terra.cl> ...if you view this page with **Javascript disab...
2009/07/23
[ "https://Stackoverflow.com/questions/1169987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/52529/" ]
Following this guide from Google, AJAX sites may be made crawlable: <http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-started.html>
AJAX-driven are not crawled by search engines (or at least, not by Google). The reason you can see the page in the google cache is because in the cache, there is the full page, including .js file. So when you see the page, your browser use the google cached .js file. I don't think there is any trick to make it crawle...
1,169,987
I had always assumed that AJAX-driven content was invisible to search engines. (i.e. content inserted into the DOM via XMLHTTPRequest) For example, in this site, the main content is loaded via AJAX request by the browser: <http://www.trustedsource.org/query/terra.cl> ...if you view this page with **Javascript disab...
2009/07/23
[ "https://Stackoverflow.com/questions/1169987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/52529/" ]
If you're using something like jQuery tabs, even if you're linking to HTML files within the same directory, it degrades nicely back to normal without the javascript, and the tabs just become likes to the actual pages. It's ugly, but it works. You can also style these versions, too.
Content that gets loaded immediately (say with a secondary HTTP request as in your example after the initial pageload) is usually visible to the search engine crawler. However, if you have content that beyond this gets loaded via ajax following a user action, e.g. clicking a tab or button and such, won't be seen or in...
1,169,987
I had always assumed that AJAX-driven content was invisible to search engines. (i.e. content inserted into the DOM via XMLHTTPRequest) For example, in this site, the main content is loaded via AJAX request by the browser: <http://www.trustedsource.org/query/terra.cl> ...if you view this page with **Javascript disab...
2009/07/23
[ "https://Stackoverflow.com/questions/1169987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/52529/" ]
I have NoScript installed and active. Both links show the same content (+/- the google header bar). Therefore, the Google cache shows only what is statically there.
Google just made their crawlers run Javascript without any developer changes! <http://googlewebmastercentral.blogspot.com/2015/10/deprecating-our-ajax-crawling-scheme.html> They state: > > Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and...
1,169,987
I had always assumed that AJAX-driven content was invisible to search engines. (i.e. content inserted into the DOM via XMLHTTPRequest) For example, in this site, the main content is loaded via AJAX request by the browser: <http://www.trustedsource.org/query/terra.cl> ...if you view this page with **Javascript disab...
2009/07/23
[ "https://Stackoverflow.com/questions/1169987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/52529/" ]
Following this guide from Google, AJAX sites may be made crawlable: <http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-started.html>
If you're using something like jQuery tabs, even if you're linking to HTML files within the same directory, it degrades nicely back to normal without the javascript, and the tabs just become likes to the actual pages. It's ugly, but it works. You can also style these versions, too.
1,169,987
I had always assumed that AJAX-driven content was invisible to search engines. (i.e. content inserted into the DOM via XMLHTTPRequest) For example, in this site, the main content is loaded via AJAX request by the browser: <http://www.trustedsource.org/query/terra.cl> ...if you view this page with **Javascript disab...
2009/07/23
[ "https://Stackoverflow.com/questions/1169987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/52529/" ]
Search engines could run the JavaScript needed to index Ajax content, but it would be difficult and computationally expensive — I'm not aware of any that actually do. A well written site will, if it uses Ajax, use it according to the principles of [progressive enhancement](http://icant.co.uk/articles/pragmatic-progres...
Google just made their crawlers run Javascript without any developer changes! <http://googlewebmastercentral.blogspot.com/2015/10/deprecating-our-ajax-crawling-scheme.html> They state: > > Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and...
1,169,987
I had always assumed that AJAX-driven content was invisible to search engines. (i.e. content inserted into the DOM via XMLHTTPRequest) For example, in this site, the main content is loaded via AJAX request by the browser: <http://www.trustedsource.org/query/terra.cl> ...if you view this page with **Javascript disab...
2009/07/23
[ "https://Stackoverflow.com/questions/1169987", "https://Stackoverflow.com", "https://Stackoverflow.com/users/52529/" ]
Following this guide from Google, AJAX sites may be made crawlable: <http://code.google.com/intl/sv-SE/web/ajaxcrawling/docs/getting-started.html>
Google just made their crawlers run Javascript without any developer changes! <http://googlewebmastercentral.blogspot.com/2015/10/deprecating-our-ajax-crawling-scheme.html> They state: > > Today, as long as you're not blocking Googlebot from crawling your JavaScript or CSS files, we are generally able to render and...
1,571,962
I have the following designated initializer: ``` -(id) initWithName:(NSString*)name; ``` and the following default initializer: ``` -(id) init { return [self initWithName:@"foo"]; } ``` What kind of object does the designated initializer receive than? A released or a autoreleased? given the following initializer...
2009/10/15
[ "https://Stackoverflow.com/questions/1571962", "https://Stackoverflow.com", "https://Stackoverflow.com/users/125407/" ]
The initializer (designated or not) should never care about the ownership of objects it receives as arguments. If it wants to keep the object, it has to copy or retain it, no matter where the argument comes from. Your designated initializer `initWithName` should copy the `name` argument in its implementation. Memory m...
You should always send an autoreleased object (or release it after) to your initialisers - the memory management rules don't change in this instance. In your example, I'd do this: ``` -(id) init {return [self initWithName:[[NSString new] autorelease]]]} ``` This will fix your memory leak and still allow in place c...
32,367,775
I have a collection named **products** in which I want to update the code which have the empty field under **options.stores.code** structure is as follow:- ``` { "_id": ObjectId(), "sku": "V4696-DR-V33", "options": [ { "sku": "8903689984338", "stores": [ { "code": "AND1"...
2015/09/03
[ "https://Stackoverflow.com/questions/32367775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1065539/" ]
Hi if you want to this result than you can some modify your html code and some css code as like this ```css #my-text-box { font-size: 18px; /* or larger */ height: 1.5em; /* or larger */ width: 585px; /* or larger */ } textarea{ width:585px; height:300px; } .form-section{ overflow:hi...
You can use this style: ``` button { float:right; } ``` **[DEMO](https://jsfiddle.net/oocgkuh6/1/)**
32,367,775
I have a collection named **products** in which I want to update the code which have the empty field under **options.stores.code** structure is as follow:- ``` { "_id": ObjectId(), "sku": "V4696-DR-V33", "options": [ { "sku": "8903689984338", "stores": [ { "code": "AND1"...
2015/09/03
[ "https://Stackoverflow.com/questions/32367775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1065539/" ]
Hi if you want to this result than you can some modify your html code and some css code as like this ```css #my-text-box { font-size: 18px; /* or larger */ height: 1.5em; /* or larger */ width: 585px; /* or larger */ } textarea{ width:585px; height:300px; } .form-section{ overflow:hi...
``` you can some modify your html code and some css code as like this <h3>Test</h3> <label for="pair">Name/Value Pair</label></br> <div class="inputForm"> <input type='text' id='my-text-box' value="Name=Value" /> <button type="button" >Add</button> </div> </br> </br> </br> <label for="pairs">Name/Value Pair List</la...
32,367,775
I have a collection named **products** in which I want to update the code which have the empty field under **options.stores.code** structure is as follow:- ``` { "_id": ObjectId(), "sku": "V4696-DR-V33", "options": [ { "sku": "8903689984338", "stores": [ { "code": "AND1"...
2015/09/03
[ "https://Stackoverflow.com/questions/32367775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1065539/" ]
Hi if you want to this result than you can some modify your html code and some css code as like this ```css #my-text-box { font-size: 18px; /* or larger */ height: 1.5em; /* or larger */ width: 585px; /* or larger */ } textarea{ width:585px; height:300px; } .form-section{ overflow:hi...
Try this code: HTML ``` <div id="container"> <div id="column1"> <h3>Test</h3> <label for="pair">Name/Value Pair</label></br> <input type='text' id='my-text-box' value="Name=Value" /> </br> </br> </br> <label for="pairs">Name/Value Pair List</label></br> <textarea rows="30" cols="80"> ...
32,367,775
I have a collection named **products** in which I want to update the code which have the empty field under **options.stores.code** structure is as follow:- ``` { "_id": ObjectId(), "sku": "V4696-DR-V33", "options": [ { "sku": "8903689984338", "stores": [ { "code": "AND1"...
2015/09/03
[ "https://Stackoverflow.com/questions/32367775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1065539/" ]
Hi if you want to this result than you can some modify your html code and some css code as like this ```css #my-text-box { font-size: 18px; /* or larger */ height: 1.5em; /* or larger */ width: 585px; /* or larger */ } textarea{ width:585px; height:300px; } .form-section{ overflow:hi...
You can do this using Simple HTML HTML ```html <table> <tbody> <tr> <td> <label for="pair">Name/Value Pair</label> <br/> <input type='text' id='my-text-box' value="Name=Value" /> </td> <td> <...
46,613,954
I am using MySql as the database and aim to store the generated UUID in Binary(16) format. In the DB I have two tables: 1. To store the details of the user. 2. To store the password of the user. I have two entities UserDetails and UserLogin to represent these tables, respectively. They are as follows: **UserDetails ...
2017/10/06
[ "https://Stackoverflow.com/questions/46613954", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8138184/" ]
I would split your string and sort using that parts ``` var inputx = new string[] { "2015", "2016 New", "2016 Used", "2017 New", "2017 Used", "2018" }; var outputx = inputx.OrderByDescending(x => x.Split()[0]).ThenBy(x=>x).ToArray(); ```
To get `"2017 New"` before `"2017"`, and `"2017"` before `"2017 Used"`: ``` string[] arr = {"2018", "2017 New", "2017", "2017 Used", "2016"}; arr = arr.OrderByDescending(s => s.Split()[0]).ThenBy(s => !s.EndsWith(" New")).ToArray(); ``` or in-place sort might be a bit more efficient: ``` Array.Sort(arr, (a, b) =>...
51,728,492
I'm trying to download CSV file in ASP.NET Web API. Here is my code, and it's working in local. ``` [Route("{name?}")] public HttpResponseMessage Get(string name = "DownloadFile") { name = name.EndsWith(".csv") ? name : $"{name}.csv"; var stream = new MemoryStream(); var writer = new StreamWriter(stream); ...
2018/08/07
[ "https://Stackoverflow.com/questions/51728492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7951774/" ]
I ran into this similar problem using WebApi which worked fine locally when debugging in Visual Studio and when deployed to IIS locally. On my server, I was getting the JSON response as above. After a fresh deploy I was seeing a new error about missing method: > > Method not found: 'System.Net.Http.HttpRequestMessage...
This is what usually works for me ``` private ActionResult GetFile(string path, string fileName) { var memory = new MemoryStream(); using (var stream = new FileStream(path + fileName, FileMode.Open)) { stream.CopyTo(memory); } ...
51,728,492
I'm trying to download CSV file in ASP.NET Web API. Here is my code, and it's working in local. ``` [Route("{name?}")] public HttpResponseMessage Get(string name = "DownloadFile") { name = name.EndsWith(".csv") ? name : $"{name}.csv"; var stream = new MemoryStream(); var writer = new StreamWriter(stream); ...
2018/08/07
[ "https://Stackoverflow.com/questions/51728492", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7951774/" ]
I ran into this similar problem using WebApi which worked fine locally when debugging in Visual Studio and when deployed to IIS locally. On my server, I was getting the JSON response as above. After a fresh deploy I was seeing a new error about missing method: > > Method not found: 'System.Net.Http.HttpRequestMessage...
I faced the similar issue and answer [here](https://stackoverflow.com/a/64391748/3883342) to another SO question helped me with it. Apparently it was the conflicts in System.Net.Http assemblies causing the HttpResponse to behave abnormally. I uninstalled the System.Net.Http nuget package and installed it back. And the...
19,570,792
I'm currently working on creating a Pythonic way of parsing through OpenStreetMaps province/states dumps; which as far as I know is just knowing how to deal with very large XML files (right?). I'm currently using [lxml etree iterparse](http://lxml.de/api/lxml.etree.iterparse-class.html) module in order to parse throug...
2013/10/24
[ "https://Stackoverflow.com/questions/19570792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/721386/" ]
you problem is this `if (stringArray[j].equalsIgnoreCase(input)) {`, you refern to null element as you array do not contain nothing. You can solve this `if (input.equalsIgnoreCase(stringArray[j])) {` Now you compare the value agains the array items that may be null. Check the example code ``` private final ...
You're getting the NullPointerException because you're accessing an empty array. In the second loop you're looping over the entire stringArray array but you've inserted the first i elements. Change this: ``` for (int j = 0; j < stringArray.length; j++) { ``` with this: ``` for (int j = 0; j < i; j++) { ``` P.s. ...
19,570,792
I'm currently working on creating a Pythonic way of parsing through OpenStreetMaps province/states dumps; which as far as I know is just knowing how to deal with very large XML files (right?). I'm currently using [lxml etree iterparse](http://lxml.de/api/lxml.etree.iterparse-class.html) module in order to parse throug...
2013/10/24
[ "https://Stackoverflow.com/questions/19570792", "https://Stackoverflow.com", "https://Stackoverflow.com/users/721386/" ]
you problem is this `if (stringArray[j].equalsIgnoreCase(input)) {`, you refern to null element as you array do not contain nothing. You can solve this `if (input.equalsIgnoreCase(stringArray[j])) {` Now you compare the value agains the array items that may be null. Check the example code ``` private final ...
The problem is this inner loop: ``` for (int j = 0; j < stringArray.length; j++) { if (stringArray[j].equalsIgnoreCase(input)) { itemExists = true; out.println("Item \"" + input + "\" already exists."); break; } else...
117,434
I am reading Effective Java and it has the following sentence. > > The disadvantages of wrapper classes are few. One caveat is that wrapper > classes are not suited for use in callback frameworks, wherein objects pass selfreferences > to other objects for subsequent invocations (“callbacks”). > > > Now what is ...
2011/11/02
[ "https://softwareengineering.stackexchange.com/questions/117434", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/17887/" ]
Most GUI frameworks, and, SAX (Streaming XML) XML parsers use callbacks. The basic pattern is that you pass an instance of a handler class (or sometimes just a method reference) when you initialize another class. When a specific event occurs the "handler" class is called to deal with the event. This is typically how ...
many gui frameworks are callback frameworks (functions are called as events happen) any time you have to provide handlers for events you are using a callback framework
70,714,733
I'm supposed to code a function that *Receives a labeled dataset and splits the datapoints according to label*: ```py def get_clusters(X: np.ndarray, y: np.ndarray) -> List[np.ndarray]: """ Receives a labeled dataset and splits the datapoints according to label Args: X (np.ndarray): The dataset ...
2022/01/14
[ "https://Stackoverflow.com/questions/70714733", "https://Stackoverflow.com", "https://Stackoverflow.com/users/15367611/" ]
!pip install matplotlib --upgrade in google colab this works for me
I tried [AdriQu3](https://stackoverflow.com/users/2981685/adriqu3)'s solution (in CoLab) but got another error because of some dependecies. Solved adding `!pip install imgaug==0.2.5` before `!pip install matplotlib --upgrade`
26,490,126
**Context** I'm using the newest AppCompat v7 lib (21.0.0) and I have migrated my app from ActionBar to ToolBar **Problem** 1. Images in the ToolBar automatically receive the same background as the ToolBar Currently the SearchBox is a custom view set on the action bar (From previous implementation) I plan to switch...
2014/10/21
[ "https://Stackoverflow.com/questions/26490126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1228221/" ]
You should not be using `theme` like that: * style = local to the Toolbar * theme = global to everything inflated in the Toolbar Workaround 2, as you call it, is kind of the correct way. If you want to extract some values into a style, you can do it as so: ``` <android.support.v7.widget.Toolbar android:id="@+id/...
Never use themes to edit. Because theme defines overall app behavior. U can use two methods for that **Method:1** U can directly specify the parameters in appbar.xml as shown below in appbar.xml ```html <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar android:id="@+id/my_aweso...
52,662,103
I've created a sample promise, and everything is matching up as far as I can tell all variables are declared and all brackets are closed up but I'm getting the error cannot return then of undefined. Can anyone offer an explanation to this? Thanks for all your help. ``` function mySandwich(data) { new Promise(functio...
2018/10/05
[ "https://Stackoverflow.com/questions/52662103", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10445142/" ]
You need to return `Promise` from `mySandwich` ``` function mySandwich(data) { return new Promise(function (resolve, reject) { if (data > 5) { resolve(data); } else { reject("no data"); } }); } mySandwich(5) .then(function (data) { console.log("promi...
mySandwich is a function and not returning anything. As per your code ``` mySandwich(5) .then(function (data) { console.log("promise 1 num is" + data); }) .catch(function (err) { console.log(err); }); ``` It expects a promise returned from the function. That's why you are getting this error cannot return then of ...
16,408,016
Lets assume I have 3 classes A, B and C. All classes belong to different assemblies, for example: Class A belongs to assembly ASSEMBLY\_A, Class B belongs to assembly ASSEMBLY\_B, Class C belongs to assembly ASSEMBLY\_C Also, ASSEMBLY\_A references ASSEMBLY\_B, ASSEMBLY\_C references ASSEMBLY\_B, ASSEMBLY\_B does ...
2013/05/06
[ "https://Stackoverflow.com/questions/16408016", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1624552/" ]
You could use generics to accomplish this, but you need an interface. Create an interface like this in ASSEMBLY\_B: ``` public interface IDataType { string property1 {get; set;} int property2 {get; set; } bool property3 {get; set;} } ``` Then create a generic method like this in ASSEMBLY\_B: ``` public...
It's impossible: you can't convert an object if you don't have any information on this object. The only way will be to add interfaces in ASSEMBLY\_D: * IDataTypeA (implemented by DataTypeA) * IDataTypeC (implemented by DataTypeC) Then all assemblies reference ASSEMBLY\_D, and ASSEMBLY\_C have the information needed...
220,601
I Need to create multi level of subgroups in organic groups like [![enter image description here](https://i.stack.imgur.com/uWPuc.png)](https://i.stack.imgur.com/uWPuc.png) like a tree. I don't know how to create using organic groups. Can anyone suggest.
2016/11/17
[ "https://drupal.stackexchange.com/questions/220601", "https://drupal.stackexchange.com", "https://drupal.stackexchange.com/users/41093/" ]
modules -> migrate UI -> configure. Press on the gear and you will enter the migration process.
The path for this module's config page is example.com/upgrade.
220,601
I Need to create multi level of subgroups in organic groups like [![enter image description here](https://i.stack.imgur.com/uWPuc.png)](https://i.stack.imgur.com/uWPuc.png) like a tree. I don't know how to create using organic groups. Can anyone suggest.
2016/11/17
[ "https://drupal.stackexchange.com/questions/220601", "https://drupal.stackexchange.com", "https://drupal.stackexchange.com/users/41093/" ]
The Migrate Tools module provides tools for running and managing Drupal 8 migrations. <https://www.drupal.org/project/migrate_tools>
The path for this module's config page is example.com/upgrade.
17,725,888
I know that the RPC is asynchronous but how Can in other way (other than waiting for response) to solve this problem: ``` public static String htsl(String sentence) { final DataBaseAsync db = GWT.create(DataBase.class); String cookie = staticContent.getCookie("ll"); String shortcut = cookie.split("/")[1]; ...
2013/07/18
[ "https://Stackoverflow.com/questions/17725888", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Make `htsl` asynchronous (non-blocking, i.e. with a callack for the response rather than a return value)
Do it like so: ``` public static String htsl(String sentence, AsyncCallback<String> myCallback) { final DataBaseAsync db = GWT.create(DataBase.class); String cookie = staticContent.getCookie("ll"); String shortcut = cookie.split("/")[1]; final String[] lala = new String[1]; database.getTranslated(...
65,189,028
I have two news websites, one in Spanish and one in English: ``` es.example.com // Spanish example.com // English ``` But from the main domain (in English) I am integrating a system to be able to show news in another language for example: ``` example.com/es/url-de-la-noticia/ // Spanish ``` Based on that URL, I c...
2020/12/07
[ "https://Stackoverflow.com/questions/65189028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Perhaps J. Mick, using the session storage isn't the way to take this forward, maybe using HTML Web Storage is a better fit? At least that way, you don't have to page fresh in order to update cookie values etc, it can be wrote and read straight from JavaScript. Here's a simple example of writing and reading to the sto...
Cookies can be sent and received for all requests made from your browser, be it AJAX. You would also be able to update the already set cookie using `setcookie` which your're already seem to be doing. You can verify the same by looking under `Request Headers` and `Response Headers` in `Networks` tab. There might me som...
65,189,028
I have two news websites, one in Spanish and one in English: ``` es.example.com // Spanish example.com // English ``` But from the main domain (in English) I am integrating a system to be able to show news in another language for example: ``` example.com/es/url-de-la-noticia/ // Spanish ``` Based on that URL, I c...
2020/12/07
[ "https://Stackoverflow.com/questions/65189028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Server-Side Ajax Call (Fix) --------------------------- in your **language.ini.php** you have to change the line: ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'es.example.com'); ``` to : ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'example.com'); ``` because if you specify **domain ...
Perhaps J. Mick, using the session storage isn't the way to take this forward, maybe using HTML Web Storage is a better fit? At least that way, you don't have to page fresh in order to update cookie values etc, it can be wrote and read straight from JavaScript. Here's a simple example of writing and reading to the sto...
65,189,028
I have two news websites, one in Spanish and one in English: ``` es.example.com // Spanish example.com // English ``` But from the main domain (in English) I am integrating a system to be able to show news in another language for example: ``` example.com/es/url-de-la-noticia/ // Spanish ``` Based on that URL, I c...
2020/12/07
[ "https://Stackoverflow.com/questions/65189028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Perhaps J. Mick, using the session storage isn't the way to take this forward, maybe using HTML Web Storage is a better fit? At least that way, you don't have to page fresh in order to update cookie values etc, it can be wrote and read straight from JavaScript. Here's a simple example of writing and reading to the sto...
You appear to have multiple UIs for the same thing. You have an English and a Spanish website. Since the domains are different, I would not be surprised if you had different sessions and cookies on the separate domains. However, in order to avoid duplicating code and features, at least the underlying logic could be av...
65,189,028
I have two news websites, one in Spanish and one in English: ``` es.example.com // Spanish example.com // English ``` But from the main domain (in English) I am integrating a system to be able to show news in another language for example: ``` example.com/es/url-de-la-noticia/ // Spanish ``` Based on that URL, I c...
2020/12/07
[ "https://Stackoverflow.com/questions/65189028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Perhaps J. Mick, using the session storage isn't the way to take this forward, maybe using HTML Web Storage is a better fit? At least that way, you don't have to page fresh in order to update cookie values etc, it can be wrote and read straight from JavaScript. Here's a simple example of writing and reading to the sto...
Using chrome extensions you can modify easily with javascript api the server cookies or any cookie you want <https://developers.chrome.com/docs/extensions/reference/cookies/> This way you can access any cookie Unlike regular DOM javascript which will get you access only to non httpOnly cookies for examples. <https://...
65,189,028
I have two news websites, one in Spanish and one in English: ``` es.example.com // Spanish example.com // English ``` But from the main domain (in English) I am integrating a system to be able to show news in another language for example: ``` example.com/es/url-de-la-noticia/ // Spanish ``` Based on that URL, I c...
2020/12/07
[ "https://Stackoverflow.com/questions/65189028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Server-Side Ajax Call (Fix) --------------------------- in your **language.ini.php** you have to change the line: ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'es.example.com'); ``` to : ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'example.com'); ``` because if you specify **domain ...
Cookies can be sent and received for all requests made from your browser, be it AJAX. You would also be able to update the already set cookie using `setcookie` which your're already seem to be doing. You can verify the same by looking under `Request Headers` and `Response Headers` in `Networks` tab. There might me som...
65,189,028
I have two news websites, one in Spanish and one in English: ``` es.example.com // Spanish example.com // English ``` But from the main domain (in English) I am integrating a system to be able to show news in another language for example: ``` example.com/es/url-de-la-noticia/ // Spanish ``` Based on that URL, I c...
2020/12/07
[ "https://Stackoverflow.com/questions/65189028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Server-Side Ajax Call (Fix) --------------------------- in your **language.ini.php** you have to change the line: ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'es.example.com'); ``` to : ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'example.com'); ``` because if you specify **domain ...
You appear to have multiple UIs for the same thing. You have an English and a Spanish website. Since the domains are different, I would not be surprised if you had different sessions and cookies on the separate domains. However, in order to avoid duplicating code and features, at least the underlying logic could be av...
65,189,028
I have two news websites, one in Spanish and one in English: ``` es.example.com // Spanish example.com // English ``` But from the main domain (in English) I am integrating a system to be able to show news in another language for example: ``` example.com/es/url-de-la-noticia/ // Spanish ``` Based on that URL, I c...
2020/12/07
[ "https://Stackoverflow.com/questions/65189028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Server-Side Ajax Call (Fix) --------------------------- in your **language.ini.php** you have to change the line: ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'es.example.com'); ``` to : ``` setcookie ('language', 'es', time()+60*60*24*365, '/', 'example.com'); ``` because if you specify **domain ...
Using chrome extensions you can modify easily with javascript api the server cookies or any cookie you want <https://developers.chrome.com/docs/extensions/reference/cookies/> This way you can access any cookie Unlike regular DOM javascript which will get you access only to non httpOnly cookies for examples. <https://...
386,119
There's [DSL](http://jalingo.sourceforge.net/dictionaries/) format for creating and distributing dictionaries. Every dictionary article in such formats looks like this: ``` algorithm [m0][b]al·go·rithm[/b] {{id=000001018}} [c rosybrown]\[[/c][c darkslategray][b]algorithm[/b][/c] [c darkslategray][b]algorithms[/b][...
2019/01/25
[ "https://softwareengineering.stackexchange.com/questions/386119", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/161072/" ]
You could build a bunch of regex expressions and then write a bunch of code that will figure out when which regex should be used. This is actually not a terrible idea for something fairly simple. For something like this, you probably want define a [grammar](https://en.wikipedia.org/wiki/Parsing_expression_grammar) and ...
**Why not convert it to a form where existing tools can parse it?** This DSL looks like it could easily be converted to XML. There appear to be four types of 'Elements' in the example. * Elements that follow the pattern [tag-name]\*[/tag-name] * Elements that follow the pattern {{tag-name}}\*{{/tag-name}} * Self-clo...
386,119
There's [DSL](http://jalingo.sourceforge.net/dictionaries/) format for creating and distributing dictionaries. Every dictionary article in such formats looks like this: ``` algorithm [m0][b]al·go·rithm[/b] {{id=000001018}} [c rosybrown]\[[/c][c darkslategray][b]algorithm[/b][/c] [c darkslategray][b]algorithms[/b][...
2019/01/25
[ "https://softwareengineering.stackexchange.com/questions/386119", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/161072/" ]
You could build a bunch of regex expressions and then write a bunch of code that will figure out when which regex should be used. This is actually not a terrible idea for something fairly simple. For something like this, you probably want define a [grammar](https://en.wikipedia.org/wiki/Parsing_expression_grammar) and ...
You can find a live example how it can converted into HTML in simple and dirty way in the project [ebview dictionary viewer application](https://github.com/eb4j/ebviewer/blob/main/src/main/java/io/github/eb4j/ebview/dictionary/lingvo/LingvoDSLDictionary.java) You can find a manual of tags at [ABBYY lingvo site](http:/...
386,119
There's [DSL](http://jalingo.sourceforge.net/dictionaries/) format for creating and distributing dictionaries. Every dictionary article in such formats looks like this: ``` algorithm [m0][b]al·go·rithm[/b] {{id=000001018}} [c rosybrown]\[[/c][c darkslategray][b]algorithm[/b][/c] [c darkslategray][b]algorithms[/b][...
2019/01/25
[ "https://softwareengineering.stackexchange.com/questions/386119", "https://softwareengineering.stackexchange.com", "https://softwareengineering.stackexchange.com/users/161072/" ]
**Why not convert it to a form where existing tools can parse it?** This DSL looks like it could easily be converted to XML. There appear to be four types of 'Elements' in the example. * Elements that follow the pattern [tag-name]\*[/tag-name] * Elements that follow the pattern {{tag-name}}\*{{/tag-name}} * Self-clo...
You can find a live example how it can converted into HTML in simple and dirty way in the project [ebview dictionary viewer application](https://github.com/eb4j/ebviewer/blob/main/src/main/java/io/github/eb4j/ebview/dictionary/lingvo/LingvoDSLDictionary.java) You can find a manual of tags at [ABBYY lingvo site](http:/...
34,225,233
in my create function, I pass my view a list of users which I then display. However, I have changed it to the following ``` <select class="internalWork" name="internalWork"> <option value=""></option> @foreach($users as $user) <option value="{{ $user->userName }}">{{ $user->userName }}</option> @en...
2015/12/11
[ "https://Stackoverflow.com/questions/34225233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4905433/" ]
I downloaded CefSharp and used the default WinForms example. I had issues building in x64 so I skipped that and used x86. This had a problem with the oneclick launcher. The logfile said it was crashing due to a manifest issue. [I found this](https://stackoverflow.com/questions/5337458/error-deploying-clickonce-appli...
After a couple of days, finally I did it. The solution for the problem is the follow: 1. Right click on the project ---> Unload Project 2. Then Right click on the project again ---> Edit projectname.csproj 3. At the and of the file, just before the closing tag add the following code: <http://codepaste.net/ir2h7s> (The...
34,225,233
in my create function, I pass my view a list of users which I then display. However, I have changed it to the following ``` <select class="internalWork" name="internalWork"> <option value=""></option> @foreach($users as $user) <option value="{{ $user->userName }}">{{ $user->userName }}</option> @en...
2015/12/11
[ "https://Stackoverflow.com/questions/34225233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4905433/" ]
I also ran into this issue recently while deploying a ClickOnce application. I found the solution for this problem on the CefSharp Issues page 1314 by the user @CRoemheld [at this link here](https://github.com/cefsharp/CefSharp/issues/1314). As noted elsewhere, ClickOnce will only bundle up managed .DLL's as part of ...
I downloaded CefSharp and used the default WinForms example. I had issues building in x64 so I skipped that and used x86. This had a problem with the oneclick launcher. The logfile said it was crashing due to a manifest issue. [I found this](https://stackoverflow.com/questions/5337458/error-deploying-clickonce-appli...
34,225,233
in my create function, I pass my view a list of users which I then display. However, I have changed it to the following ``` <select class="internalWork" name="internalWork"> <option value=""></option> @foreach($users as $user) <option value="{{ $user->userName }}">{{ $user->userName }}</option> @en...
2015/12/11
[ "https://Stackoverflow.com/questions/34225233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4905433/" ]
I downloaded CefSharp and used the default WinForms example. I had issues building in x64 so I skipped that and used x86. This had a problem with the oneclick launcher. The logfile said it was crashing due to a manifest issue. [I found this](https://stackoverflow.com/questions/5337458/error-deploying-clickonce-appli...
I have practically the same [answer as @Ocean Airdrop's](https://stackoverflow.com/a/39675335), but also with the following additional things: 1. Mind the CEF version. I have `69.0.0` 2. Mind the `cef.redist` version. It should be the same as the one you have on your project. Mine was `3.3497.1841`; 3. Include x64 as ...
34,225,233
in my create function, I pass my view a list of users which I then display. However, I have changed it to the following ``` <select class="internalWork" name="internalWork"> <option value=""></option> @foreach($users as $user) <option value="{{ $user->userName }}">{{ $user->userName }}</option> @en...
2015/12/11
[ "https://Stackoverflow.com/questions/34225233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4905433/" ]
I also ran into this issue recently while deploying a ClickOnce application. I found the solution for this problem on the CefSharp Issues page 1314 by the user @CRoemheld [at this link here](https://github.com/cefsharp/CefSharp/issues/1314). As noted elsewhere, ClickOnce will only bundle up managed .DLL's as part of ...
After a couple of days, finally I did it. The solution for the problem is the follow: 1. Right click on the project ---> Unload Project 2. Then Right click on the project again ---> Edit projectname.csproj 3. At the and of the file, just before the closing tag add the following code: <http://codepaste.net/ir2h7s> (The...
34,225,233
in my create function, I pass my view a list of users which I then display. However, I have changed it to the following ``` <select class="internalWork" name="internalWork"> <option value=""></option> @foreach($users as $user) <option value="{{ $user->userName }}">{{ $user->userName }}</option> @en...
2015/12/11
[ "https://Stackoverflow.com/questions/34225233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4905433/" ]
I also ran into this issue recently while deploying a ClickOnce application. I found the solution for this problem on the CefSharp Issues page 1314 by the user @CRoemheld [at this link here](https://github.com/cefsharp/CefSharp/issues/1314). As noted elsewhere, ClickOnce will only bundle up managed .DLL's as part of ...
I have practically the same [answer as @Ocean Airdrop's](https://stackoverflow.com/a/39675335), but also with the following additional things: 1. Mind the CEF version. I have `69.0.0` 2. Mind the `cef.redist` version. It should be the same as the one you have on your project. Mine was `3.3497.1841`; 3. Include x64 as ...
36,157,707
I have a java application deployed in Websphere server. I am using the thread pool in my application with size 150. apart from these, application server threads will be running. So is there a way to determine the maximum number of threads that can run in the application at any time? EDIT: I mean is there a way I say t...
2016/03/22
[ "https://Stackoverflow.com/questions/36157707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
You have to use *table* variables: ``` declare @userId table (uid int) declare @feedId table (id int) insert into @userid(uid) select id from Users where name = @userName insert into @feedid(id) select feedid from userstofeed where userid in (select uid from @userId) select * from feed where id in (select id fr...
``` CREATE PROC spGetItemsByUser ( @userName NVARCHAR(50) ) AS BEGIN SET NOCOUNT ON; DECLARE @userId INT SELECT @userId = ID FROM users WHERE name = @userName SELECT * FROM feed f WHERE EXISTS( SELECT * FROM userstofeed uf WHERE f.ID = uf.feedid ...
36,157,707
I have a java application deployed in Websphere server. I am using the thread pool in my application with size 150. apart from these, application server threads will be running. So is there a way to determine the maximum number of threads that can run in the application at any time? EDIT: I mean is there a way I say t...
2016/03/22
[ "https://Stackoverflow.com/questions/36157707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
You have to use *table* variables: ``` declare @userId table (uid int) declare @feedId table (id int) insert into @userid(uid) select id from Users where name = @userName insert into @feedid(id) select feedid from userstofeed where userid in (select uid from @userId) select * from feed where id in (select id fr...
Or just go by simple and plain join ``` create proc spGetItemsByUser @userName nvarchar(50) as begin select * from Users usr join UsersToFeed utf on usr.id = utf.userID join feed fee on utf.feedid = fee.id where usr.name = @userName end ```
36,157,707
I have a java application deployed in Websphere server. I am using the thread pool in my application with size 150. apart from these, application server threads will be running. So is there a way to determine the maximum number of threads that can run in the application at any time? EDIT: I mean is there a way I say t...
2016/03/22
[ "https://Stackoverflow.com/questions/36157707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
You have to use *table* variables: ``` declare @userId table (uid int) declare @feedId table (id int) insert into @userid(uid) select id from Users where name = @userName insert into @feedid(id) select feedid from userstofeed where userid in (select uid from @userId) select * from feed where id in (select id fr...
The problem is that you're trying to do this in steps. Your variables are only going to ever hold a single variable at any given time, even if you set it in a `SELECT` query that has multiple results. Just put this all into one query and you should be fine: ``` SELECT F.feed_id, F.other_columns -- NEVER use...
36,157,707
I have a java application deployed in Websphere server. I am using the thread pool in my application with size 150. apart from these, application server threads will be running. So is there a way to determine the maximum number of threads that can run in the application at any time? EDIT: I mean is there a way I say t...
2016/03/22
[ "https://Stackoverflow.com/questions/36157707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
You have to use *table* variables: ``` declare @userId table (uid int) declare @feedId table (id int) insert into @userid(uid) select id from Users where name = @userName insert into @feedid(id) select feedid from userstofeed where userid in (select uid from @userId) select * from feed where id in (select id fr...
``` CREATE PROC spGetItemsByUser @userName NVARCHAR(50) AS BEGIN DECLARE @userId INT, @feedId INT; SELECT @userId = ID FROM users WHERE name = @userName SELECT * FROM feed WHERE ID IN ( SELECT feedid FROM userstofeed WHERE userid = @userId ) EN...
36,157,707
I have a java application deployed in Websphere server. I am using the thread pool in my application with size 150. apart from these, application server threads will be running. So is there a way to determine the maximum number of threads that can run in the application at any time? EDIT: I mean is there a way I say t...
2016/03/22
[ "https://Stackoverflow.com/questions/36157707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
Or just go by simple and plain join ``` create proc spGetItemsByUser @userName nvarchar(50) as begin select * from Users usr join UsersToFeed utf on usr.id = utf.userID join feed fee on utf.feedid = fee.id where usr.name = @userName end ```
``` CREATE PROC spGetItemsByUser ( @userName NVARCHAR(50) ) AS BEGIN SET NOCOUNT ON; DECLARE @userId INT SELECT @userId = ID FROM users WHERE name = @userName SELECT * FROM feed f WHERE EXISTS( SELECT * FROM userstofeed uf WHERE f.ID = uf.feedid ...
36,157,707
I have a java application deployed in Websphere server. I am using the thread pool in my application with size 150. apart from these, application server threads will be running. So is there a way to determine the maximum number of threads that can run in the application at any time? EDIT: I mean is there a way I say t...
2016/03/22
[ "https://Stackoverflow.com/questions/36157707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
Or just go by simple and plain join ``` create proc spGetItemsByUser @userName nvarchar(50) as begin select * from Users usr join UsersToFeed utf on usr.id = utf.userID join feed fee on utf.feedid = fee.id where usr.name = @userName end ```
The problem is that you're trying to do this in steps. Your variables are only going to ever hold a single variable at any given time, even if you set it in a `SELECT` query that has multiple results. Just put this all into one query and you should be fine: ``` SELECT F.feed_id, F.other_columns -- NEVER use...
36,157,707
I have a java application deployed in Websphere server. I am using the thread pool in my application with size 150. apart from these, application server threads will be running. So is there a way to determine the maximum number of threads that can run in the application at any time? EDIT: I mean is there a way I say t...
2016/03/22
[ "https://Stackoverflow.com/questions/36157707", "https://Stackoverflow.com", "https://Stackoverflow.com/users/241717/" ]
Or just go by simple and plain join ``` create proc spGetItemsByUser @userName nvarchar(50) as begin select * from Users usr join UsersToFeed utf on usr.id = utf.userID join feed fee on utf.feedid = fee.id where usr.name = @userName end ```
``` CREATE PROC spGetItemsByUser @userName NVARCHAR(50) AS BEGIN DECLARE @userId INT, @feedId INT; SELECT @userId = ID FROM users WHERE name = @userName SELECT * FROM feed WHERE ID IN ( SELECT feedid FROM userstofeed WHERE userid = @userId ) EN...
50,323,460
Pandas seems to ignore the extra (invalid) parameters. For e.g. ``` import pandas as pd df=pd.read_excel('myfile.xlsx', some_dummy_param=True) ``` I expected **(but did not get)** an error something like ... ``` TypeError: __init__() got an unexpected keyword argument 'some_dummy_param' ``` The problem is, since ...
2018/05/14
[ "https://Stackoverflow.com/questions/50323460", "https://Stackoverflow.com", "https://Stackoverflow.com/users/139150/" ]
No, not really. Keyword arguments are often passed in Pandas through [`**kwargs`](https://stackoverflow.com/questions/1769403/understanding-kwargs-in-python), which is either forwarded or treated as a `dict`. The functions that use this `dict` are free to check if there are keys other than those they expect or not. ...
Yeah, this isn't going to be a trivial problem to solve. `pd.read_excel` accepts `**kwargs` in its signature. This means that you can pass whatever keyword arguments you please, because `read_excel` is not going to do anything with keyword arguments that it doesn't *need* to use. One way of approaching this problem is...
2,434,510
How do I prove $$S\rightarrow \exists xP(x) \vdash \exists x(S\rightarrow P(x))$$ using natural deduction? Just an alignment of which axioms or rules that one could use would be much appreciated.
2017/09/18
[ "https://math.stackexchange.com/questions/2434510", "https://math.stackexchange.com", "https://math.stackexchange.com/users/482000/" ]
1. $S \to \exists x P(x)$ [P] 2. 1. $S$ [A] 2. $S \to \exists x P(x)$ [1 R] 3. $\exists x P(x)$ [2.2 2.1 $\to$E] 4. 1. $P(a)$ [A] 2. 1. $S$ [A] 2. $P(a)$ [2.4.1 R] 3. $S \to P(a)$ [2.4.2.1 2.4.2.2 $\to$I] 4. $\exists x [S \to P(x)]$ [2.4.3 $\exists$I] 5. $\exists x [S \to P(x)]$ [2.3 2.4.1 2.4.4 $\exists$E...
Here is a proof in the Fitch formal proof system: [![enter image description here](https://i.stack.imgur.com/wzOij.png)](https://i.stack.imgur.com/wzOij.png)
16,060,421
I have found a reference in the tutorials that this 0 returns the first row but I "Don't Get It" What if there's more than 1 row such as in the function below?? (ie: I have a table of 200 users and this column "UsersName" is just one among 10 others so why the Zero?) Could someone please spell out why this 0 is in thi...
2013/04/17
[ "https://Stackoverflow.com/questions/16060421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Couldn't you have looked up the PHP documentation? It's rather good... ``` string mysql_result ( resource $result , int $row [, mixed $field = 0 ] ) ``` > > row > > > The row number from the result that's being retrieved. Row numbers > start at 0. > > > <http://php.net/manual/en/function.mysql-result.php> I...
look this page <http://php.net/manual/en/function.mysql-result.php> ``` mysql_result ( resource $result , int $row [, mixed $field = 0 ] ) ``` Retrieves the contents of one cell from a MySQL result set. When working on large result sets, you should consider using one of the functions that fetch an entire row (spec...
16,060,421
I have found a reference in the tutorials that this 0 returns the first row but I "Don't Get It" What if there's more than 1 row such as in the function below?? (ie: I have a table of 200 users and this column "UsersName" is just one among 10 others so why the Zero?) Could someone please spell out why this 0 is in thi...
2013/04/17
[ "https://Stackoverflow.com/questions/16060421", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Couldn't you have looked up the PHP documentation? It's rather good... ``` string mysql_result ( resource $result , int $row [, mixed $field = 0 ] ) ``` > > row > > > The row number from the result that's being retrieved. Row numbers > start at 0. > > > <http://php.net/manual/en/function.mysql-result.php> I...
Right, it returns the first row. The query you've posted also returns one row. Read about the function COUNT() in MySQL. You also can use that for several reasons, i.e. if the first row is also the admin user in users table and you only need it, no matter what's the autoincrement ID or username/password, etc.
195,951
The Free Dictionary collates a number of definitions for ["take into account."](http://idioms.thefreedictionary.com/take+into+account) > > 1. **take someone or something into account** and **take into account someone or something** > > to remember to consider someone or something [McGraw-Hill] > 2. **take somethi...
2014/09/11
[ "https://english.stackexchange.com/questions/195951", "https://english.stackexchange.com", "https://english.stackexchange.com/users/59795/" ]
The question is really about the distinction between 1 and 2 (which is the same as between 3 and 4). Here's an example of 1: Alice says to Bob and Carol, "We can split the cake into 3 pieces." Carol responds, "You're not taking Dave into account." An example of 2: An engineer says, "Is this bridge strong enough, i...
2, 3 and 4 are basically the same, the only different one is number 1; Although their meaning are almost the same, they're not immediately interchangeable As @user90041 demonstrated, the first meaning is usually used to draw someone/something's attention to someone/something else that they may not be aware of. That so...
195,951
The Free Dictionary collates a number of definitions for ["take into account."](http://idioms.thefreedictionary.com/take+into+account) > > 1. **take someone or something into account** and **take into account someone or something** > > to remember to consider someone or something [McGraw-Hill] > 2. **take somethi...
2014/09/11
[ "https://english.stackexchange.com/questions/195951", "https://english.stackexchange.com", "https://english.stackexchange.com/users/59795/" ]
The question is really about the distinction between 1 and 2 (which is the same as between 3 and 4). Here's an example of 1: Alice says to Bob and Carol, "We can split the cake into 3 pieces." Carol responds, "You're not taking Dave into account." An example of 2: An engineer says, "Is this bridge strong enough, i...
Everything is context-sensitive in this world, and so is English language, you cannot always judge about a sentence without having the context, and 1 and 2 will in most cases differ by the context only. The same sentence can be considered under 1 and 2 simultaneously if there is no context. Let me give an example: 1. ...
195,951
The Free Dictionary collates a number of definitions for ["take into account."](http://idioms.thefreedictionary.com/take+into+account) > > 1. **take someone or something into account** and **take into account someone or something** > > to remember to consider someone or something [McGraw-Hill] > 2. **take somethi...
2014/09/11
[ "https://english.stackexchange.com/questions/195951", "https://english.stackexchange.com", "https://english.stackexchange.com/users/59795/" ]
2, 3 and 4 are basically the same, the only different one is number 1; Although their meaning are almost the same, they're not immediately interchangeable As @user90041 demonstrated, the first meaning is usually used to draw someone/something's attention to someone/something else that they may not be aware of. That so...
Everything is context-sensitive in this world, and so is English language, you cannot always judge about a sentence without having the context, and 1 and 2 will in most cases differ by the context only. The same sentence can be considered under 1 and 2 simultaneously if there is no context. Let me give an example: 1. ...
29,343,233
I am working with an Application where I enabled runProguard true in my build.gradle file of my app. When I go for building signed apk I am getting warnings and build process failed. **Log File:** ``` Warning:com.google.common.base.Absent: can't find referenced class javax.annotation.Nullable Warning:com.google.comm...
2015/03/30
[ "https://Stackoverflow.com/questions/29343233", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3351125/" ]
I think I finally figured this one out! gradle dependency: ``` dependencies { ... compile 'com.google.guava:guava:18.0' /* Required for using guava with proguard */ compile 'javax.annotation:jsr250-api:1.0' } ``` Additions to my proguard configuration: ``` ##-------------Begin Settings For Guava --...
You can't use proguard anymore, you need use ``` minifyEnabled false ```
209,863
I am working on a livery of F1 car (it's my first project after tutorials) and want to achieve a V-shaped car livery like on this photo: [![Mclaren](https://i.stack.imgur.com/iJg0I.jpg)](https://i.stack.imgur.com/iJg0I.jpg) I created a gradient texture with texture coordinate on an empty, like the guy in this video: [...
2021/01/29
[ "https://blender.stackexchange.com/questions/209863", "https://blender.stackexchange.com", "https://blender.stackexchange.com/users/115816/" ]
You were so nearly there... :D At the risk of starting a game of Node Golf, if the question is: ['How do I make a procedural chevron?'](https://blender.stackexchange.com/questions/45167/how-to-create-a-procedural-chevron-like-texture-material) ...then a minimal answer could be something like this, mirroring in X by us...
Try something like this. You may need to adjust the values to fit the size of your object, but the idea is the same - to use wave textures, scaled down so they're only one or 2 stripes, then adding them together on 45 degree angles so they cross in the center of the object. That in mind, using object texture coordinate...
4,947
I have to show that any line parallel to $Ax+ By + c =0$ is of the form $Ax + By + k =0$ How do I show this? Thank you!
2010/09/18
[ "https://math.stackexchange.com/questions/4947", "https://math.stackexchange.com", "https://math.stackexchange.com/users/1968/" ]
Examples don't show it in any case. You cannot prove that something holds for infinitely many things by doing nothing except checking finitely many examples. What you need to do is remember that two lines are parallel if and only if they have the same slope or they are both vertical (of the form $x=k$ for some constan...
You can solve the following system of equations: $$ \begin{cases} Ax+By+c=0,\\ Ax+By+k=0 \end{cases} $$ If you subtract the second line from the firs, you obtain $c-k=0$. Then, if $c\ne k$, you have no solution: the lines are parallel.
4,947
I have to show that any line parallel to $Ax+ By + c =0$ is of the form $Ax + By + k =0$ How do I show this? Thank you!
2010/09/18
[ "https://math.stackexchange.com/questions/4947", "https://math.stackexchange.com", "https://math.stackexchange.com/users/1968/" ]
(Based on [zar's answer](https://math.stackexchange.com/questions/4947/equation-of-a-line/4950#4950) and Moron's comment there.) If two lines $Ax+By+C=0$ and $Dx+Ey+F=0$ are parallel, then they have no points of intersection (or infinitely many if you allow a line to be parallel to itself). In either case, the system ...
Examples don't show it in any case. You cannot prove that something holds for infinitely many things by doing nothing except checking finitely many examples. What you need to do is remember that two lines are parallel if and only if they have the same slope or they are both vertical (of the form $x=k$ for some constan...
4,947
I have to show that any line parallel to $Ax+ By + c =0$ is of the form $Ax + By + k =0$ How do I show this? Thank you!
2010/09/18
[ "https://math.stackexchange.com/questions/4947", "https://math.stackexchange.com", "https://math.stackexchange.com/users/1968/" ]
(Based on [zar's answer](https://math.stackexchange.com/questions/4947/equation-of-a-line/4950#4950) and Moron's comment there.) If two lines $Ax+By+C=0$ and $Dx+Ey+F=0$ are parallel, then they have no points of intersection (or infinitely many if you allow a line to be parallel to itself). In either case, the system ...
You can solve the following system of equations: $$ \begin{cases} Ax+By+c=0,\\ Ax+By+k=0 \end{cases} $$ If you subtract the second line from the firs, you obtain $c-k=0$. Then, if $c\ne k$, you have no solution: the lines are parallel.
4,947
I have to show that any line parallel to $Ax+ By + c =0$ is of the form $Ax + By + k =0$ How do I show this? Thank you!
2010/09/18
[ "https://math.stackexchange.com/questions/4947", "https://math.stackexchange.com", "https://math.stackexchange.com/users/1968/" ]
It is a preliminary and useful exercise to show that the line $Ax+By+C=0$ and the vector $v=(A,B)$ are perpendicular (one says that $v$ is the normal vector of the line). With these, all amounts to observe that two lines are parallel if and only if their normal vectors are parallel.
You can solve the following system of equations: $$ \begin{cases} Ax+By+c=0,\\ Ax+By+k=0 \end{cases} $$ If you subtract the second line from the firs, you obtain $c-k=0$. Then, if $c\ne k$, you have no solution: the lines are parallel.
4,947
I have to show that any line parallel to $Ax+ By + c =0$ is of the form $Ax + By + k =0$ How do I show this? Thank you!
2010/09/18
[ "https://math.stackexchange.com/questions/4947", "https://math.stackexchange.com", "https://math.stackexchange.com/users/1968/" ]
(Based on [zar's answer](https://math.stackexchange.com/questions/4947/equation-of-a-line/4950#4950) and Moron's comment there.) If two lines $Ax+By+C=0$ and $Dx+Ey+F=0$ are parallel, then they have no points of intersection (or infinitely many if you allow a line to be parallel to itself). In either case, the system ...
It is a preliminary and useful exercise to show that the line $Ax+By+C=0$ and the vector $v=(A,B)$ are perpendicular (one says that $v$ is the normal vector of the line). With these, all amounts to observe that two lines are parallel if and only if their normal vectors are parallel.
62,950,772
Pardon if this question has already been answered however I'm struggling to find the any answers to it. I'm looking to see if I can convert variable types to a string in the code below. ``` input = prompt('Type something please', 'your input here') alert(input + ' is a ' + typeof input) ``` i.e. if the user were to...
2020/07/17
[ "https://Stackoverflow.com/questions/62950772", "https://Stackoverflow.com", "https://Stackoverflow.com/users/13947062/" ]
Your property syntax > > usepkcewithauthorizationcodegrant > > > is not correct: Here is the right property for PKCE: ``` springdoc.swagger-ui.oauth.use-pkce-with-authorization-code-grant=true ``` To fill, the client id, just use: ``` springdoc.swagger-ui.oauth.client-id=yourSPAClientId ``` For your remark...
it is some time since you asked the question but I will respond for others information. The major issue is the misleading implementation of the UI. You are forced to use the authorization code flow in the configuration because the authorization code with PKCE is missing. So you must use the authorization code (because ...
1,117,541
I've wanted this for years, but have never come across anything; a program for Windows to find the closest function to fit arbitrary data. The data I feed it is simple: A table with two columns comprising an initial number on the left side, and the converted number on the right. This below is a very simple example. T...
2015/01/24
[ "https://math.stackexchange.com/questions/1117541", "https://math.stackexchange.com", "https://math.stackexchange.com/users/32273/" ]
Use Excel. Make a chart from your values, and then use the "Add Trendline" function. It allows you to choose polynomial, logarithmic, exponential formulae to do the fitting. By adjusting the parameters, you can make trade-offs between the simplicity of the formula and the goodness of fit. If you choose the option to "...
Polynomial fitting comes to mind for me as well (per @bubba). A genetic algorithm approach could be something like this: Define a chromosome as $[P\_1,exp(P\_2),F(P\_3)]$ where $P\_i$ represents a fitted polynomial, $E$ an exponential function, and $T$ a finite trigonometric series. The Fitness function could be the ...
1,117,541
I've wanted this for years, but have never come across anything; a program for Windows to find the closest function to fit arbitrary data. The data I feed it is simple: A table with two columns comprising an initial number on the left side, and the converted number on the right. This below is a very simple example. T...
2015/01/24
[ "https://math.stackexchange.com/questions/1117541", "https://math.stackexchange.com", "https://math.stackexchange.com/users/32273/" ]
I once had a testversion of "graphprism" and learned that it just did what you are asking for: trying various models, from simple to complex, to fit data. The functions to be involved could be configured (polynomial, exponential, trigonometric,..., mixed...) as well as something like the "difficulty degree" - it was re...
Polynomial fitting comes to mind for me as well (per @bubba). A genetic algorithm approach could be something like this: Define a chromosome as $[P\_1,exp(P\_2),F(P\_3)]$ where $P\_i$ represents a fitted polynomial, $E$ an exponential function, and $T$ a finite trigonometric series. The Fitness function could be the ...
1,117,541
I've wanted this for years, but have never come across anything; a program for Windows to find the closest function to fit arbitrary data. The data I feed it is simple: A table with two columns comprising an initial number on the left side, and the converted number on the right. This below is a very simple example. T...
2015/01/24
[ "https://math.stackexchange.com/questions/1117541", "https://math.stackexchange.com", "https://math.stackexchange.com/users/32273/" ]
This is **hard**. It depends a lot on what you have experience with. Suppose I gave you $$1 \to 31\\2 \to 52\\3 \to 86\\ 4 \to 141\\5 \to 230$$ Would you recognize the outputs as three less than Fibonacci numbers? In this case you could take the log of the output and find it is not far from a straight line. [Douglas Ho...
Polynomial fitting comes to mind for me as well (per @bubba). A genetic algorithm approach could be something like this: Define a chromosome as $[P\_1,exp(P\_2),F(P\_3)]$ where $P\_i$ represents a fitted polynomial, $E$ an exponential function, and $T$ a finite trigonometric series. The Fitness function could be the ...
22,256,520
What's the best way to change a div element to active when you click on a marker? How to do this when you have dozens or hundreds of markers? For example, when you click on a marker on a Leaflet map, how to make it so the sidebar element that's related to it will be active? I can write the sudo code but I'm missing ...
2014/03/07
[ "https://Stackoverflow.com/questions/22256520", "https://Stackoverflow.com", "https://Stackoverflow.com/users/949255/" ]
It really depends on how you have architected everything, but assuming you have the map pushpin's hold a ref to the sidebar in some way or another, just add a quick click handler. I've never done anything with leaflet before, but it looks like they support all of the events you need for the markers: <http://leafletjs.c...
You should try use the sidebar plugin, its very simple to use. I've tested it with 4000 makers and it works very well. You can find it here: <https://github.com/turbo87/leaflet-sidebar/>
2,088,221
I have an application that changes some registry values during installation. I am changing ProxyEnable and ProxyServer in HKEY\_CURRENT\_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings. This works great when installing as "Just Me" in the .NET installer however I would like to set these values for al...
2010/01/18
[ "https://Stackoverflow.com/questions/2088221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/99344/" ]
1. Getting the "name" ===== It's called the context path. If your code is running within the web app request context, you can get it by calling [`HttpServletRequest#getContextPath()`](http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html#getContextPath()). 2. Accessing the physical/real resou...
> > what i'm trying to do is load a properties file in webapps/myapp/WEB-INF/classes/reportCustom.properties > > > Since the file is in the `classes` directory, you can load it using the [ClassLoader](http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html#getResourceAsStream(java.lang.String)) (the usual...
50,127,342
I'm trying to run a project based on session timeout in reactjs.. But unfortunately an error occurs.. This is the error, `'react-router' does not contain an export named 'browserHistory'.`
2018/05/02
[ "https://Stackoverflow.com/questions/50127342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9491140/" ]
I'm afraid that the only option is by doing: 1. execute `terraform state rm RESOURCE` example: `terraform state rm aws_ebs_volume.volume`. 2. Manually remove the resource from your cloud provider.
I was able to get out of this state by making sure the trailing comma was removed from the cloud provider resource definition (on AWS). Then I refreshed the state with `terraform refresh`. After that I was able to plan and apply again.
50,127,342
I'm trying to run a project based on session timeout in reactjs.. But unfortunately an error occurs.. This is the error, `'react-router' does not contain an export named 'browserHistory'.`
2018/05/02
[ "https://Stackoverflow.com/questions/50127342", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9491140/" ]
you can run the below to view all current resources still live from the project directory: ``` $ terraform state list ``` to destroy each resource run the below on each individual resource: ``` $ terraform destroy --target=resource.name ``` could write a script to loop through the 'terraform state list' output i...
I was able to get out of this state by making sure the trailing comma was removed from the cloud provider resource definition (on AWS). Then I refreshed the state with `terraform refresh`. After that I was able to plan and apply again.
245,400
I am looking at [this MCU](http://www.st.com/content/ccc/resource/technical/document/datasheet/0a/d2/ad/ae/d4/04/44/e3/DM00098745.pdf/files/DM00098745.pdf/jcr:content/translations/en.DM00098745.pdf) and was wondering if it makes sense to use an external crystal. Extracted from the datasheet pg1, \*Clock management ...
2016/07/11
[ "https://electronics.stackexchange.com/questions/245400", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/76826/" ]
The internal oscillator is much less stable than an external crystal oscillator. If I'm reading the datasheet correctly, the internal 48 MHz oscillator is only factory calibrated to within 2.9% of the specified frequency - not even good enough for RS-232. There are ways to synchronize it to an external clock, I think ...
The internal is an oscillator, usually an RC oscillator. These oscillators are far less accurate than crystals. Also these oscillators tend to drift with temperature changes. Crystals on the other hand can be as accurate as the money you want to spend. The accuracy is needed when, for example, high speed communicatio...
245,400
I am looking at [this MCU](http://www.st.com/content/ccc/resource/technical/document/datasheet/0a/d2/ad/ae/d4/04/44/e3/DM00098745.pdf/files/DM00098745.pdf/jcr:content/translations/en.DM00098745.pdf) and was wondering if it makes sense to use an external crystal. Extracted from the datasheet pg1, \*Clock management ...
2016/07/11
[ "https://electronics.stackexchange.com/questions/245400", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/76826/" ]
The internal oscillator is much less stable than an external crystal oscillator. If I'm reading the datasheet correctly, the internal 48 MHz oscillator is only factory calibrated to within 2.9% of the specified frequency - not even good enough for RS-232. There are ways to synchronize it to an external clock, I think ...
See this diagram on page 16: [![ST clock tree](https://i.stack.imgur.com/h0UpJ.png)](https://i.stack.imgur.com/h0UpJ.png) It looks like you can also use the crystal as an input to the PLL, allowing you to achieve internal clock speeds of 48MHz from a slower crystal.
245,400
I am looking at [this MCU](http://www.st.com/content/ccc/resource/technical/document/datasheet/0a/d2/ad/ae/d4/04/44/e3/DM00098745.pdf/files/DM00098745.pdf/jcr:content/translations/en.DM00098745.pdf) and was wondering if it makes sense to use an external crystal. Extracted from the datasheet pg1, \*Clock management ...
2016/07/11
[ "https://electronics.stackexchange.com/questions/245400", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/76826/" ]
The internal oscillator is much less stable than an external crystal oscillator. If I'm reading the datasheet correctly, the internal 48 MHz oscillator is only factory calibrated to within 2.9% of the specified frequency - not even good enough for RS-232. There are ways to synchronize it to an external clock, I think ...
The crystal oscillator feeds into an on-chip Phased Locked Loop (PLL) which can multiply and divide the crystal frequency by values between 1 and 16. So with a 8MHz crystal you can generate a 48MHz main clock for the processor. As others have said, an external crystal is more accurate and stable than the on-chip high s...
14,798,904
My binder: ``` $("#wrapper").on("focusin", ".someInputField", function(e, a) { /* do something */ }); ``` My trigger: ``` $('.someInputField').trigger("focus", ["extra", "data"]); ``` How do I get to the "extra" and "data" values? `e.data` and `a` are always undefined. (Firefox 18) However related question: ...
2013/02/10
[ "https://Stackoverflow.com/questions/14798904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058937/" ]
This syntax may be useful here: ``` CKEDITOR.instances['editor1'].setData(t); // where editor1 is id ``` OR try this ``` edt.setData(t); ```
Check in your browser's console for errors first. Also observe what is rendered from your backend code into this template. Most likely what you're missing are quotation marks `""` and/or your rendered string contains unescaped apostrophes/quot. marks. Console is everything.
14,798,904
My binder: ``` $("#wrapper").on("focusin", ".someInputField", function(e, a) { /* do something */ }); ``` My trigger: ``` $('.someInputField').trigger("focus", ["extra", "data"]); ``` How do I get to the "extra" and "data" values? `e.data` and `a` are always undefined. (Firefox 18) However related question: ...
2013/02/10
[ "https://Stackoverflow.com/questions/14798904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058937/" ]
``` <script> function SetContents(value ) { var oEditor = CKEDITOR.instances.MainContent_editor1; var t = document.getElementById('<%=editor1.ClientID %>').value ; oEditor.setData(t); } </script> <script type="text/javascript"> var ckEditor = CKEDITOR.re...
Check in your browser's console for errors first. Also observe what is rendered from your backend code into this template. Most likely what you're missing are quotation marks `""` and/or your rendered string contains unescaped apostrophes/quot. marks. Console is everything.
14,798,904
My binder: ``` $("#wrapper").on("focusin", ".someInputField", function(e, a) { /* do something */ }); ``` My trigger: ``` $('.someInputField').trigger("focus", ["extra", "data"]); ``` How do I get to the "extra" and "data" values? `e.data` and `a` are always undefined. (Firefox 18) However related question: ...
2013/02/10
[ "https://Stackoverflow.com/questions/14798904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058937/" ]
This syntax may be useful here: ``` CKEDITOR.instances['editor1'].setData(t); // where editor1 is id ``` OR try this ``` edt.setData(t); ```
this post is quote old but I hope I am not too late for others to see this: You forgot to enclose the server side code with quotes: > > var t = "<%=editortext.InnerText %>"; > > > the page will be rendered like this: ``` var t = "your text here"; ``` instead of > > var t = your text here; > > > using y...
14,798,904
My binder: ``` $("#wrapper").on("focusin", ".someInputField", function(e, a) { /* do something */ }); ``` My trigger: ``` $('.someInputField').trigger("focus", ["extra", "data"]); ``` How do I get to the "extra" and "data" values? `e.data` and `a` are always undefined. (Firefox 18) However related question: ...
2013/02/10
[ "https://Stackoverflow.com/questions/14798904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058937/" ]
This syntax may be useful here: ``` CKEDITOR.instances['editor1'].setData(t); // where editor1 is id ``` OR try this ``` edt.setData(t); ```
``` <script> function SetContents(value ) { var oEditor = CKEDITOR.instances.MainContent_editor1; var t = document.getElementById('<%=editor1.ClientID %>').value ; oEditor.setData(t); } </script> <script type="text/javascript"> var ckEditor = CKEDITOR.re...
14,798,904
My binder: ``` $("#wrapper").on("focusin", ".someInputField", function(e, a) { /* do something */ }); ``` My trigger: ``` $('.someInputField').trigger("focus", ["extra", "data"]); ``` How do I get to the "extra" and "data" values? `e.data` and `a` are always undefined. (Firefox 18) However related question: ...
2013/02/10
[ "https://Stackoverflow.com/questions/14798904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058937/" ]
This syntax may be useful here: ``` CKEDITOR.instances['editor1'].setData(t); // where editor1 is id ``` OR try this ``` edt.setData(t); ```
You just put double quotes for example :- var mata = CKEDITOR.replace('meta\_des'); var editor = CKEDITOR.replace('des1'); mata.setData("meta\_des; ?>"); editor.setData("description1 ;?>"); here my meta\_des is ckeditor and i want past my value in that ckeditor i will just put double quotes on my php tag...
14,798,904
My binder: ``` $("#wrapper").on("focusin", ".someInputField", function(e, a) { /* do something */ }); ``` My trigger: ``` $('.someInputField').trigger("focus", ["extra", "data"]); ``` How do I get to the "extra" and "data" values? `e.data` and `a` are always undefined. (Firefox 18) However related question: ...
2013/02/10
[ "https://Stackoverflow.com/questions/14798904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058937/" ]
``` <script> function SetContents(value ) { var oEditor = CKEDITOR.instances.MainContent_editor1; var t = document.getElementById('<%=editor1.ClientID %>').value ; oEditor.setData(t); } </script> <script type="text/javascript"> var ckEditor = CKEDITOR.re...
this post is quote old but I hope I am not too late for others to see this: You forgot to enclose the server side code with quotes: > > var t = "<%=editortext.InnerText %>"; > > > the page will be rendered like this: ``` var t = "your text here"; ``` instead of > > var t = your text here; > > > using y...
14,798,904
My binder: ``` $("#wrapper").on("focusin", ".someInputField", function(e, a) { /* do something */ }); ``` My trigger: ``` $('.someInputField').trigger("focus", ["extra", "data"]); ``` How do I get to the "extra" and "data" values? `e.data` and `a` are always undefined. (Firefox 18) However related question: ...
2013/02/10
[ "https://Stackoverflow.com/questions/14798904", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2058937/" ]
``` <script> function SetContents(value ) { var oEditor = CKEDITOR.instances.MainContent_editor1; var t = document.getElementById('<%=editor1.ClientID %>').value ; oEditor.setData(t); } </script> <script type="text/javascript"> var ckEditor = CKEDITOR.re...
You just put double quotes for example :- var mata = CKEDITOR.replace('meta\_des'); var editor = CKEDITOR.replace('des1'); mata.setData("meta\_des; ?>"); editor.setData("description1 ;?>"); here my meta\_des is ckeditor and i want past my value in that ckeditor i will just put double quotes on my php tag...
53,348,612
How do I use Java Stream given an integer N of which actions are, if N is odd, subtract 1 from it and if N is even, divide it by 2 until N becomes 0? This is my working code using procedural style: ``` public static int solution(int num) { int counter = 0; while(num != 0) { num = (num % 2 == 0) ? num ...
2018/11/17
[ "https://Stackoverflow.com/questions/53348612", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7738040/" ]
You can use `IntStream.iterate` with the same logic: ``` public static long solutionStream(int num) { return IntStream.iterate(num, i -> i % 2 == 0 ? i / 2 : i -1) .takeWhile(i -> i > 0) .count(); } ``` Just note that `takeWhile` is only available in Java 9+, and it's necessary here to en...
With Java9+ an [alternative to ernest's solution](https://stackoverflow.com/a/53348642/1746118) could be using `IntStream iterate(int seed, IntPredicate hasNext, IntUnaryOperator next)` could be as follows : ``` public static int solution(int num) { return (int) IntStream.iterate(num, i -> i > 0, i -> i % 2 == 0 ?...
1,132
I would like to learn more about mythology, but I'm unsure where to start. Could anyone recommend some good websites or books for me to take a look at? --- *Related meta discussion: [Helping users with recomendations for sources](https://mythology.meta.stackexchange.com/q/292/62)*
2015/10/07
[ "https://mythology.stackexchange.com/questions/1132", "https://mythology.stackexchange.com", "https://mythology.stackexchange.com/users/-1/" ]
Welcome to the site, and welcome to the interesting world of mythology! Here are some resources for you to get started with. By far the easiest way to learn more about mythology is to go to [your local library](https://www.worldcat.org/libraries) and borrow one of their books about mythology. Don't worry about selecti...
I recently read Kenneth Davis' book titled Don't Know Much About Mythology. Well compiled and a breezy read about various mythologies ranging from Egyptian, Mesopotamian, Greek, Roman, with a sprinkling of Celtic, Indian, African, and Pacific(Australian) thrown in at the end. Would be a good starter, before you ventu...
1,132
I would like to learn more about mythology, but I'm unsure where to start. Could anyone recommend some good websites or books for me to take a look at? --- *Related meta discussion: [Helping users with recomendations for sources](https://mythology.meta.stackexchange.com/q/292/62)*
2015/10/07
[ "https://mythology.stackexchange.com/questions/1132", "https://mythology.stackexchange.com", "https://mythology.stackexchange.com/users/-1/" ]
Welcome to the site, and welcome to the interesting world of mythology! Here are some resources for you to get started with. By far the easiest way to learn more about mythology is to go to [your local library](https://www.worldcat.org/libraries) and borrow one of their books about mythology. Don't worry about selecti...
Here are some other sources for Greek and Egyptian myths: [THEOI.com](http://www.theoi.com/) for Greek mythology [Ancient Egypt Online](http://www.ancientegyptonline.co.uk/) for the Gods and Goddesses [Egyptian Gods and Goddesses](http://egyptian-gods.org/) Ancient Egypt, the section on [Pharaonic Religion](htt...
1,132
I would like to learn more about mythology, but I'm unsure where to start. Could anyone recommend some good websites or books for me to take a look at? --- *Related meta discussion: [Helping users with recomendations for sources](https://mythology.meta.stackexchange.com/q/292/62)*
2015/10/07
[ "https://mythology.stackexchange.com/questions/1132", "https://mythology.stackexchange.com", "https://mythology.stackexchange.com/users/-1/" ]
Welcome to the site, and welcome to the interesting world of mythology! Here are some resources for you to get started with. By far the easiest way to learn more about mythology is to go to [your local library](https://www.worldcat.org/libraries) and borrow one of their books about mythology. Don't worry about selecti...
If you are interested in Summerian mythology you can check out the Oracc Project here: [Link to the Oracc Project](http://oracc.museum.upenn.edu/projectlist.html)
41,019,946
I want to disable the light bulb (lint checking / intentions) in Android Studio: [![enter image description here](https://i.stack.imgur.com/4Dv2L.png)](https://i.stack.imgur.com/4Dv2L.png) Some clarifications: 1. The main reason I want to disable this light bulb, is because I find myself several times copying and pa...
2016/12/07
[ "https://Stackoverflow.com/questions/41019946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658323/" ]
This is currently not possible. However when it is visible, pressing `Esc` will make the light bulb disappear. See also [this issue](https://youtrack.jetbrains.com/issue/IDEA-94381).
(Workaround) If you disable the entries that appear as suggestions on the light bulb, it will disappear. (Direct disabling is not possible) ``` 1. Settings > Editor > Inspections > Language Injection 2. Settings > Editor > Intentions > Android > Override Resource in Other Configuration ... ``` Thanks, Sriram
41,019,946
I want to disable the light bulb (lint checking / intentions) in Android Studio: [![enter image description here](https://i.stack.imgur.com/4Dv2L.png)](https://i.stack.imgur.com/4Dv2L.png) Some clarifications: 1. The main reason I want to disable this light bulb, is because I find myself several times copying and pa...
2016/12/07
[ "https://Stackoverflow.com/questions/41019946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658323/" ]
This is currently not possible. However when it is visible, pressing `Esc` will make the light bulb disappear. See also [this issue](https://youtrack.jetbrains.com/issue/IDEA-94381).
I find it sometimes annoying, but its very good handy & i'm sure you don't want it to be disabled forever. however what you can do is, you could click **right-arrow** on `Typo:Change to..` & click on **disable inspection** as a fast way to do it only for the meantime & not forever.
41,019,946
I want to disable the light bulb (lint checking / intentions) in Android Studio: [![enter image description here](https://i.stack.imgur.com/4Dv2L.png)](https://i.stack.imgur.com/4Dv2L.png) Some clarifications: 1. The main reason I want to disable this light bulb, is because I find myself several times copying and pa...
2016/12/07
[ "https://Stackoverflow.com/questions/41019946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658323/" ]
Uncheck `Show intention bulb` under `Settings > Editor > General > Appearance`
This is currently not possible. However when it is visible, pressing `Esc` will make the light bulb disappear. See also [this issue](https://youtrack.jetbrains.com/issue/IDEA-94381).
41,019,946
I want to disable the light bulb (lint checking / intentions) in Android Studio: [![enter image description here](https://i.stack.imgur.com/4Dv2L.png)](https://i.stack.imgur.com/4Dv2L.png) Some clarifications: 1. The main reason I want to disable this light bulb, is because I find myself several times copying and pa...
2016/12/07
[ "https://Stackoverflow.com/questions/41019946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658323/" ]
(Workaround) If you disable the entries that appear as suggestions on the light bulb, it will disappear. (Direct disabling is not possible) ``` 1. Settings > Editor > Inspections > Language Injection 2. Settings > Editor > Intentions > Android > Override Resource in Other Configuration ... ``` Thanks, Sriram
I find it sometimes annoying, but its very good handy & i'm sure you don't want it to be disabled forever. however what you can do is, you could click **right-arrow** on `Typo:Change to..` & click on **disable inspection** as a fast way to do it only for the meantime & not forever.
41,019,946
I want to disable the light bulb (lint checking / intentions) in Android Studio: [![enter image description here](https://i.stack.imgur.com/4Dv2L.png)](https://i.stack.imgur.com/4Dv2L.png) Some clarifications: 1. The main reason I want to disable this light bulb, is because I find myself several times copying and pa...
2016/12/07
[ "https://Stackoverflow.com/questions/41019946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658323/" ]
Uncheck `Show intention bulb` under `Settings > Editor > General > Appearance`
(Workaround) If you disable the entries that appear as suggestions on the light bulb, it will disappear. (Direct disabling is not possible) ``` 1. Settings > Editor > Inspections > Language Injection 2. Settings > Editor > Intentions > Android > Override Resource in Other Configuration ... ``` Thanks, Sriram
41,019,946
I want to disable the light bulb (lint checking / intentions) in Android Studio: [![enter image description here](https://i.stack.imgur.com/4Dv2L.png)](https://i.stack.imgur.com/4Dv2L.png) Some clarifications: 1. The main reason I want to disable this light bulb, is because I find myself several times copying and pa...
2016/12/07
[ "https://Stackoverflow.com/questions/41019946", "https://Stackoverflow.com", "https://Stackoverflow.com/users/658323/" ]
Uncheck `Show intention bulb` under `Settings > Editor > General > Appearance`
I find it sometimes annoying, but its very good handy & i'm sure you don't want it to be disabled forever. however what you can do is, you could click **right-arrow** on `Typo:Change to..` & click on **disable inspection** as a fast way to do it only for the meantime & not forever.
848,401
I have an issue with removing logical volume from Centos. Unfortunately I have no information what was done with it before, so I can only write how it looks right now: 1) ``` #lvremove -vf /dev/mapper/XXX_rootimg Using logical volume(s) on command line Can't remove open logical volume "XXX_rootimg" ``` 2) ``` #dms...
2017/05/05
[ "https://serverfault.com/questions/848401", "https://serverfault.com", "https://serverfault.com/users/167402/" ]
dmsetup Looks like, that there is a mapping VG0-XXX\_rootimg1 (with the 1 at the END). Could you please remove the mapping: ``` kpartx -dv /dev/mapper/VG0-XXX_rootimg1. ``` After this, it should be possible the remove the LV.
I have been struggling with it for more than hour without any ideas, but I have found almost immediately after posting question that there was an also: ``` # dmsetup info -c VG0-XXX_rootimg1 ``` That caused all the problems, at this host there are many LVMs, they seem to be not alphabetic ordered, and I simply miss...
25,495,943
I'm watching a course online learning C and I stumbled upon something that is crashing my program. In the video they show the following code snippet : ``` #include <stdio.h> int main() { char* ch; int num = 12345; sprintf(ch, "%d", num); printf("%s\n", ch); return(0); } ``` I've decided to make ...
2014/08/25
[ "https://Stackoverflow.com/questions/25495943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3977057/" ]
> > In the video they show the following code snippet: [...] > > > If this is a snippet that they say should work, stop watching that video: the snippet has undefined behavior, there is no chance that it would work properly unless by an unlucky coincidence. > > I've decided to make my own little program and test...
The problem is here: ``` char* ch; ``` this is just a char pointer, it needs to point to allocated memory to hold the string: ``` char ch[32]; ```
25,495,943
I'm watching a course online learning C and I stumbled upon something that is crashing my program. In the video they show the following code snippet : ``` #include <stdio.h> int main() { char* ch; int num = 12345; sprintf(ch, "%d", num); printf("%s\n", ch); return(0); } ``` I've decided to make ...
2014/08/25
[ "https://Stackoverflow.com/questions/25495943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3977057/" ]
You need to alocate memory for ch or else use an array instead of a pointer. ``` char* ch = malloc(sizeyouwant * sizeof(char)); ``` Where sizeyouwant is the number of characters you will store.
The problem is here: ``` char* ch; ``` this is just a char pointer, it needs to point to allocated memory to hold the string: ``` char ch[32]; ```
25,495,943
I'm watching a course online learning C and I stumbled upon something that is crashing my program. In the video they show the following code snippet : ``` #include <stdio.h> int main() { char* ch; int num = 12345; sprintf(ch, "%d", num); printf("%s\n", ch); return(0); } ``` I've decided to make ...
2014/08/25
[ "https://Stackoverflow.com/questions/25495943", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3977057/" ]
> > In the video they show the following code snippet: [...] > > > If this is a snippet that they say should work, stop watching that video: the snippet has undefined behavior, there is no chance that it would work properly unless by an unlucky coincidence. > > I've decided to make my own little program and test...
You need to alocate memory for ch or else use an array instead of a pointer. ``` char* ch = malloc(sizeyouwant * sizeof(char)); ``` Where sizeyouwant is the number of characters you will store.
8,814,296
The text in italics describes my general goal, if anyone is interested. Question is underneath. *I am trying to graph the energy levels of simple molecules using Mathematica 8. My method is crude, and goes as this:* 1. *Find eigenvalues of simple Hückel matrix.* 2. *Delete duplicates and determine size of list.* 3. *...
2012/01/11
[ "https://Stackoverflow.com/questions/8814296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142160/" ]
The inner `Part` gives you the first occurance of the maximum. `Position` returns a list of positions, even if there is only one element that has the maximum value, like this: ``` M = {{2, 2}, {2, 3}, {2, 2}, {1, 1}} {{2, 2}, {2, 3}, {2, 2}, {1, 1}} Position[M, Max[M[[All, 2]]]] {{2, 2}} ``` So you want the f...
``` m = {{1, 2}, {3, 1}, {-1, 1}} max = Max[m[[All, 2]]] ``` So find the position of the max and replace the second column with the first: ``` pos=Position[m, max] /. {x_,_}:>{x,1} {{1,1}} ``` Then take the first element from pos, i.e. {1,1} and sub use it in `Part` ``` m[[Sequence @@ First[pos]]] 1 ``` But hav...
8,814,296
The text in italics describes my general goal, if anyone is interested. Question is underneath. *I am trying to graph the energy levels of simple molecules using Mathematica 8. My method is crude, and goes as this:* 1. *Find eigenvalues of simple Hückel matrix.* 2. *Delete duplicates and determine size of list.* 3. *...
2012/01/11
[ "https://Stackoverflow.com/questions/8814296", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1142160/" ]
The inner `Part` gives you the first occurance of the maximum. `Position` returns a list of positions, even if there is only one element that has the maximum value, like this: ``` M = {{2, 2}, {2, 3}, {2, 2}, {1, 1}} {{2, 2}, {2, 3}, {2, 2}, {1, 1}} Position[M, Max[M[[All, 2]]]] {{2, 2}} ``` So you want the f...
If you only want a single column one value in the case of duplicate maximum values in column two I suggest that you make use of `Ordering`: ``` m = {{1, 3}, {1, 8}, {5, 7}, {2, 2}, {1, 9}, {4, 9}, {5, 6}}; m[[ Ordering[m[[All, 2]], -1], 1 ]] ``` ``` {4} ```
38,288,372
I have imported a Excel sheet into pandas. It has 7 columns which are numeric and 1 column which is a string (a flag). After converting the flag to a categorical variable, I am trying to drop the string column from the Pandas dataframe. However, I am not able to do it. Here's the code: ``` [In] parts_median_temp.col...
2016/07/10
[ "https://Stackoverflow.com/questions/38288372", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1345888/" ]
You have to use the ***inplace*** and ***axis*** parameter: ``` parts_median_temp.drop('Flag_median', axis=1, inplace=True) ``` The default value of 'inplace' is **False**, and axis' default is **0**. axis=0 means dropping by index, whereas axis=1 will drop by column.
You can try this: ``` parts_median_temp = parts_median_temp.drop('Flag_median', axis=1) ```
21,909,132
I have a string which I would like to remove the first three characters from. How do I go about this using substrings, or is there any other way? ``` string temp = "01_Barnsley" string textIWant = "Barnsley" ``` Thank you
2014/02/20
[ "https://Stackoverflow.com/questions/21909132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2834084/" ]
You can use [`String.Substring(Int32)` method](http://msdn.microsoft.com/en-us/library/hxthx5h6%28v=vs.110%29.aspx). > > Retrieves a substring from this instance. The substring **starts at a > specified character position and continues to the end of the string.** > > > ``` string textIWant = temp.Substring(3); ...
you can use [String.Substring Method (Int32)](http://msdn.microsoft.com/en-us/library/hxthx5h6%28v=vs.110%29.aspx) ``` string textIWant = temp.Substring(3); ``` or [String.Remove Method (Int32, Int32)](http://msdn.microsoft.com/en-us/library/d8d7z2kk%28v=vs.110%29.aspx) ``` string textIWant = temp.Remove(0,3); ```
21,909,132
I have a string which I would like to remove the first three characters from. How do I go about this using substrings, or is there any other way? ``` string temp = "01_Barnsley" string textIWant = "Barnsley" ``` Thank you
2014/02/20
[ "https://Stackoverflow.com/questions/21909132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2834084/" ]
You can use [`String.Substring(Int32)` method](http://msdn.microsoft.com/en-us/library/hxthx5h6%28v=vs.110%29.aspx). > > Retrieves a substring from this instance. The substring **starts at a > specified character position and continues to the end of the string.** > > > ``` string textIWant = temp.Substring(3); ...
A solution using LINQ: ``` string temp = "01_Barnsley"; string textIWant = new string(temp.Skip(3).ToArray()); ```
21,909,132
I have a string which I would like to remove the first three characters from. How do I go about this using substrings, or is there any other way? ``` string temp = "01_Barnsley" string textIWant = "Barnsley" ``` Thank you
2014/02/20
[ "https://Stackoverflow.com/questions/21909132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2834084/" ]
You can use [`String.Substring(Int32)` method](http://msdn.microsoft.com/en-us/library/hxthx5h6%28v=vs.110%29.aspx). > > Retrieves a substring from this instance. The substring **starts at a > specified character position and continues to the end of the string.** > > > ``` string textIWant = temp.Substring(3); ...
If there is a pattern to the data, one can use that to extract out what is needed using Regular Expressions. So if one knows there are numbers (`\d` regex for digits and with 1 or more with a `+`) followed by an under bar; that is the pattern to exclude. Now we tell the parser what we want *to capture* by saying we w...
21,909,132
I have a string which I would like to remove the first three characters from. How do I go about this using substrings, or is there any other way? ``` string temp = "01_Barnsley" string textIWant = "Barnsley" ``` Thank you
2014/02/20
[ "https://Stackoverflow.com/questions/21909132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2834084/" ]
you can use [String.Substring Method (Int32)](http://msdn.microsoft.com/en-us/library/hxthx5h6%28v=vs.110%29.aspx) ``` string textIWant = temp.Substring(3); ``` or [String.Remove Method (Int32, Int32)](http://msdn.microsoft.com/en-us/library/d8d7z2kk%28v=vs.110%29.aspx) ``` string textIWant = temp.Remove(0,3); ```
A solution using LINQ: ``` string temp = "01_Barnsley"; string textIWant = new string(temp.Skip(3).ToArray()); ```
21,909,132
I have a string which I would like to remove the first three characters from. How do I go about this using substrings, or is there any other way? ``` string temp = "01_Barnsley" string textIWant = "Barnsley" ``` Thank you
2014/02/20
[ "https://Stackoverflow.com/questions/21909132", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2834084/" ]
you can use [String.Substring Method (Int32)](http://msdn.microsoft.com/en-us/library/hxthx5h6%28v=vs.110%29.aspx) ``` string textIWant = temp.Substring(3); ``` or [String.Remove Method (Int32, Int32)](http://msdn.microsoft.com/en-us/library/d8d7z2kk%28v=vs.110%29.aspx) ``` string textIWant = temp.Remove(0,3); ```
If there is a pattern to the data, one can use that to extract out what is needed using Regular Expressions. So if one knows there are numbers (`\d` regex for digits and with 1 or more with a `+`) followed by an under bar; that is the pattern to exclude. Now we tell the parser what we want *to capture* by saying we w...