qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
70,993
We know through [General Relativity](http://en.wikipedia.org/wiki/General_relativity) (GR) that matter curves spacetime (ST) like a "ball curves a trampoline" but then how energy curves spacetime? Is it just like matter curvature of ST?
2013/07/13
[ "https://physics.stackexchange.com/questions/70993", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/25589/" ]
Theoretical viewpoint: ---------------------- Einstein field equations can be written in the form: $$\color{blue}{G\_{\mu\nu}}=\color{red}{\frac{8\pi G}{c^{4}}} \color{darkgreen}{T\_{\mu\nu}}$$ We can write in simple terms: $$\rm \color{blue}{Space-time \,\,geometry}=\color{red}{const.}\,\,\color{darkgreen}{Material \...
The source of gravity in GR is not just mass, but the full energy-momentum tensor; this tensorial quantity is a measure of energy, momentum and stress, and applies to ALL forms of matter and all fields that are non-gravitational. Furthermore, there exists a quantity in differential geometry which is automatically conse...
70,993
We know through [General Relativity](http://en.wikipedia.org/wiki/General_relativity) (GR) that matter curves spacetime (ST) like a "ball curves a trampoline" but then how energy curves spacetime? Is it just like matter curvature of ST?
2013/07/13
[ "https://physics.stackexchange.com/questions/70993", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/25589/" ]
According to Newtonian gravity if you made 100 million cannon balls (10kg each) and shipped them to deep space assembled them with some explosives and exploded it with enough force so none get hurt but they all went out spherically to a maximum of 2 miles (if you don't know what a mile is, just read it as a km and none...
The source of gravity in GR is not just mass, but the full energy-momentum tensor; this tensorial quantity is a measure of energy, momentum and stress, and applies to ALL forms of matter and all fields that are non-gravitational. Furthermore, there exists a quantity in differential geometry which is automatically conse...
70,993
We know through [General Relativity](http://en.wikipedia.org/wiki/General_relativity) (GR) that matter curves spacetime (ST) like a "ball curves a trampoline" but then how energy curves spacetime? Is it just like matter curvature of ST?
2013/07/13
[ "https://physics.stackexchange.com/questions/70993", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/25589/" ]
Theoretical viewpoint: ---------------------- Einstein field equations can be written in the form: $$\color{blue}{G\_{\mu\nu}}=\color{red}{\frac{8\pi G}{c^{4}}} \color{darkgreen}{T\_{\mu\nu}}$$ We can write in simple terms: $$\rm \color{blue}{Space-time \,\,geometry}=\color{red}{const.}\,\,\color{darkgreen}{Material \...
According to Newtonian gravity if you made 100 million cannon balls (10kg each) and shipped them to deep space assembled them with some explosives and exploded it with enough force so none get hurt but they all went out spherically to a maximum of 2 miles (if you don't know what a mile is, just read it as a km and none...
63,514,476
I am attempting to create a regular expression for validating edu emails which may or may not have a sub domain. Some schools have emails like "example@hms.harvard.edu" while other schools have emails like "example@stanford.edu". ``` ([0-9]|[a-z]|[A-Z])+@([0-9]|[a-z]|[A-Z])+([0-9]|[a-z]|[A-Z])\.edu$" ``` This is the...
2020/08/20
[ "https://Stackoverflow.com/questions/63514476", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14140227/" ]
Didn't implement NLP for verb / noun separation, just added a list of good words. They can be extracted and normalized with [spacy](https://spacy.io/) relatively easy. Please note that `walk` occurs in 1,2,5 sentences and forms a triad. ```py import re import networkx as nx import matplotlib.pyplot as plt plt.style.u...
One way to handle this is to tokenize, remove the stop words and create the vocabulary. Then draw the graph based on this vocabulary. I am showing below and example on unigram based tokens but much better approach will be to identify phrases (ngrams) and use them as vocabulary instead of unigrams. Sentence similarly wi...
920
It is well-known that we can learn a lot about the structure of the lower crust, mantle, and core by observing the ways in which they refract different kinds of seismic waves. Do we have any *other* ways of imaging the deeper parts of the Earth, though?
2014/05/13
[ "https://earthscience.stackexchange.com/questions/920", "https://earthscience.stackexchange.com", "https://earthscience.stackexchange.com/users/67/" ]
Gravity can be used to investigate the lower crust and upper mantle (see for example [Fullea et al, 2014](http://dx.doi.org/10.1016%2Fj.jag.2014.02.003)). Satellite measurements of gravity could even be used to investigate deeper structures in the mantle, like subducting slabs ([Panet, 2014](http://dx.doi.org/10.1038%2...
One interesting and relatively new technique is by the detection of [geoneutrinos](http://en.wikipedia.org/wiki/Geoneutrino). These particles are produced by radioactive decay in the Earth's interior. They are uncommonly suitable for probing the deep Earth because -- unlike most particles and waves -- they can travel t...
920
It is well-known that we can learn a lot about the structure of the lower crust, mantle, and core by observing the ways in which they refract different kinds of seismic waves. Do we have any *other* ways of imaging the deeper parts of the Earth, though?
2014/05/13
[ "https://earthscience.stackexchange.com/questions/920", "https://earthscience.stackexchange.com", "https://earthscience.stackexchange.com/users/67/" ]
Gravity can be used to investigate the lower crust and upper mantle (see for example [Fullea et al, 2014](http://dx.doi.org/10.1016%2Fj.jag.2014.02.003)). Satellite measurements of gravity could even be used to investigate deeper structures in the mantle, like subducting slabs ([Panet, 2014](http://dx.doi.org/10.1038%2...
Inverse problems are some of the most important mathematical problems in science and mathematics. Inverse problems arise in many branches of geophysics, medical imaging, remote sensing, ocean acoustic tomography, nondestructive testing, astronomy, physics and many other fields. Geophysicists remotely measure the seism...
920
It is well-known that we can learn a lot about the structure of the lower crust, mantle, and core by observing the ways in which they refract different kinds of seismic waves. Do we have any *other* ways of imaging the deeper parts of the Earth, though?
2014/05/13
[ "https://earthscience.stackexchange.com/questions/920", "https://earthscience.stackexchange.com", "https://earthscience.stackexchange.com/users/67/" ]
One interesting and relatively new technique is by the detection of [geoneutrinos](http://en.wikipedia.org/wiki/Geoneutrino). These particles are produced by radioactive decay in the Earth's interior. They are uncommonly suitable for probing the deep Earth because -- unlike most particles and waves -- they can travel t...
Inverse problems are some of the most important mathematical problems in science and mathematics. Inverse problems arise in many branches of geophysics, medical imaging, remote sensing, ocean acoustic tomography, nondestructive testing, astronomy, physics and many other fields. Geophysicists remotely measure the seism...
30,662,784
I am trying to add validation check on this auto complete, however for some reason because its in an `each()` block it's causing me so many problems. Full code: ``` <input type="text" class="productOptionSerialNumber" value="@opt.SerialNumber" data-part-num="@opt.PartNumber" /> ``` ```js $(".productOptionSerialNum...
2015/06/05
[ "https://Stackoverflow.com/questions/30662784", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2519466/" ]
Without additional information I don't know what kind of problems you are experiencing with the each() loop, however what you are trying to accomplish is certainly do-able. Here is an example, hopefully it will help you fill in anything you are missing on your end. HTML ``` <label>productOption aaa:</label> <input t...
If there isn't specifically a reason it needs to only execute after autocomplete (i.e. validation can occur whenever there is a change -- which, from my understanding is what occurs in the old, working code), you can still bind your validation to $(this). Also,is there a reason you removed .change() from the new code?...
19,574,593
OK, so I have an Item class that has a many-to-many attribute to User through a 'Roles' class. I am trying to create a django-table for the Items such that out of any of the roles attached to the item, if the current User is attached to that role, the name of the role displays. I hope that makes some sort of sense. Her...
2013/10/24
[ "https://Stackoverflow.com/questions/19574593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1695507/" ]
You can get the `request` object from `self.context`. So if you only need `request.user`, that's one way to do it. ``` class OwnedTable(tables.Table): roles = tables.Column(empty_values=()) def render_roles(self): user = self.context["request"].user ... ``` Otherwise, @mariodev's solution wo...
It seems like there's no way of using auth user without some overriding. You can override `__init__` for our table class like this: ``` class OwnedTable(tables.Table): def __init__(self, *args, **kwargs): self.user = kwargs.pop('user', None) super(OwnedTable, self).__init__(*args, **kwargs) ``` ...
19,574,593
OK, so I have an Item class that has a many-to-many attribute to User through a 'Roles' class. I am trying to create a django-table for the Items such that out of any of the roles attached to the item, if the current User is attached to that role, the name of the role displays. I hope that makes some sort of sense. Her...
2013/10/24
[ "https://Stackoverflow.com/questions/19574593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1695507/" ]
It seems like there's no way of using auth user without some overriding. You can override `__init__` for our table class like this: ``` class OwnedTable(tables.Table): def __init__(self, *args, **kwargs): self.user = kwargs.pop('user', None) super(OwnedTable, self).__init__(*args, **kwargs) ``` ...
Another solution is shown on <https://github.com/bradleyayers/django-tables2/issues/156>, which worked for me after some adjustments for my setup. Given that a Person would have an M2M to Contacts, and you want to display all contacts for that Person in django-tables2, then the following would do: ``` class PersonTa...
19,574,593
OK, so I have an Item class that has a many-to-many attribute to User through a 'Roles' class. I am trying to create a django-table for the Items such that out of any of the roles attached to the item, if the current User is attached to that role, the name of the role displays. I hope that makes some sort of sense. Her...
2013/10/24
[ "https://Stackoverflow.com/questions/19574593", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1695507/" ]
You can get the `request` object from `self.context`. So if you only need `request.user`, that's one way to do it. ``` class OwnedTable(tables.Table): roles = tables.Column(empty_values=()) def render_roles(self): user = self.context["request"].user ... ``` Otherwise, @mariodev's solution wo...
Another solution is shown on <https://github.com/bradleyayers/django-tables2/issues/156>, which worked for me after some adjustments for my setup. Given that a Person would have an M2M to Contacts, and you want to display all contacts for that Person in django-tables2, then the following would do: ``` class PersonTa...
3,370,823
I am trying to solve this task > > Consider the measure space $([0,1],\mathcal{B}([0,1]),\mu:=2\lambda\_1+3\delta\_{1})$ and the measurable function $f(\omega)=2-\omega$. Find $$\int\_{[0,1]}f\,d\mu$$ > > > My Solution $$\int\_{a}^{b} f(x) d x=\int\_{[a, b]} f d \lambda\_{1}$$ We know Thus $$\int\_{[0,1]} f ...
2019/09/26
[ "https://math.stackexchange.com/questions/3370823", "https://math.stackexchange.com", "https://math.stackexchange.com/users/699012/" ]
I pressume that $\delta\_1$ is the Dirac measure and $\lambda\_1$ the Lebesgue measure. If so,then you are correct. Indeed: So $$\int\_0^1f(x)d\mu(x)=2\int\_0^1(2-x)d\lambda\_1(x)+3\int\_0^1f(x)d\delta\_1(x)$$ $$=2\int\_0^1(2-x)dx+3 f(1)=2(2-\frac{1}{2})+3=6$$
Marios answer is correct Just wanted to note to the OP some general facts. It can be checked for simple functions, and then proven in general, that for $a,b$ non-negative and $\mu = a\lambda + b\delta$ where $\lambda,\delta$ finite on the measurable set $A$, we have $$ \int\_{A} f d\mu = a\int\_{A} f d\lambda + b\int\...
30,123,332
I'm trying to test my local storage so I've tried a few examples. this example worked before but now its not. not sure what happened <https://stackoverflow.com/questions/30116818/how-to-use-local-storage-form-with-html-and-javascript?noredirect=1#comment48344527_30116818/> Now I am trying this code and nothing pops u...
2015/05/08
[ "https://Stackoverflow.com/questions/30123332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4796973/" ]
You should open your page using a webserver and not your local file system. The browser saves the localstorage data based on the host(domain). This prevents cross site local storage access.
There is no issue with your method, but I didn't see any call to this method. To make it functional, you need to call it with some event. Like: button / anchor onlick, window load / ready as following: **Javascript:** ``` window.onload = function(){lsTest();} ``` **jQuery:** ``` jQuery(document).ready(function(...
30,123,332
I'm trying to test my local storage so I've tried a few examples. this example worked before but now its not. not sure what happened <https://stackoverflow.com/questions/30116818/how-to-use-local-storage-form-with-html-and-javascript?noredirect=1#comment48344527_30116818/> Now I am trying this code and nothing pops u...
2015/05/08
[ "https://Stackoverflow.com/questions/30123332", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4796973/" ]
You should open your page using a webserver and not your local file system. The browser saves the localstorage data based on the host(domain). This prevents cross site local storage access.
Try this, using a webserver as Nimrodx said. ```js window.onload = function(){ function lsTest(){ var test = 'test'; try { localStorage.setItem(test, test); localStorage.removeItem(test); return true; } catch(e) { console.log(e); return false; } } var elem = document.getElem...
2,059,606
I've got a list with list-style-none which needs to be able to add new items to itself via Ajax and have the background expand appropriately when it does. Adding via Ajax is easy, but every solution I try for the background fails me. I don't know if it's even possible; is it? I'm using a grid like this one: <http://jq...
2010/01/13
[ "https://Stackoverflow.com/questions/2059606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/250151/" ]
This is something I've run into a number of times. The problem is that floated elements aren't part of the normal box model, so they don't cause their parent elements to expand **unless** their parent elements are also floated. So if possible, float the ul or containing div. Edit: See [quirksmode](http://www.quirksmod...
Could you provide a sample of your code? Also, why does the list have display:none set? For instance, should be as simple as this: HTML: ``` <ul id="dest"></ul> ``` JS: ``` // Simplified example, most likely wrapped in $.ajax // This is the AJAX response function function(data, response) { var items = json....
2,059,606
I've got a list with list-style-none which needs to be able to add new items to itself via Ajax and have the background expand appropriately when it does. Adding via Ajax is easy, but every solution I try for the background fails me. I don't know if it's even possible; is it? I'm using a grid like this one: <http://jq...
2010/01/13
[ "https://Stackoverflow.com/questions/2059606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/250151/" ]
Could you provide a sample of your code? Also, why does the list have display:none set? For instance, should be as simple as this: HTML: ``` <ul id="dest"></ul> ``` JS: ``` // Simplified example, most likely wrapped in $.ajax // This is the AJAX response function function(data, response) { var items = json....
For dealing with the float element, maybe you should know it's characteristic, gotcha, and how to deal with it. See the links below, it also have demo, so you can understand the concept: 1. <http://www.smashingmagazine.com/2009/10/19/the-mystery-of-css-float-property/> 2. <http://www.smashingmagazine.com/2007/05/01/cs...
2,059,606
I've got a list with list-style-none which needs to be able to add new items to itself via Ajax and have the background expand appropriately when it does. Adding via Ajax is easy, but every solution I try for the background fails me. I don't know if it's even possible; is it? I'm using a grid like this one: <http://jq...
2010/01/13
[ "https://Stackoverflow.com/questions/2059606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/250151/" ]
This is something I've run into a number of times. The problem is that floated elements aren't part of the normal box model, so they don't cause their parent elements to expand **unless** their parent elements are also floated. So if possible, float the ul or containing div. Edit: See [quirksmode](http://www.quirksmod...
You need to explicitly set the width and height for the area. Check out this link for Horizontal Scrolling: <http://valums.com/scroll-menu-jquery/> Here is the script: ``` $(function(){ //Get our elements for faster access and set overlay width var div = $('div.sc_menu'), ul = $('ul.sc_menu'), ...
2,059,606
I've got a list with list-style-none which needs to be able to add new items to itself via Ajax and have the background expand appropriately when it does. Adding via Ajax is easy, but every solution I try for the background fails me. I don't know if it's even possible; is it? I'm using a grid like this one: <http://jq...
2010/01/13
[ "https://Stackoverflow.com/questions/2059606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/250151/" ]
This is something I've run into a number of times. The problem is that floated elements aren't part of the normal box model, so they don't cause their parent elements to expand **unless** their parent elements are also floated. So if possible, float the ul or containing div. Edit: See [quirksmode](http://www.quirksmod...
For dealing with the float element, maybe you should know it's characteristic, gotcha, and how to deal with it. See the links below, it also have demo, so you can understand the concept: 1. <http://www.smashingmagazine.com/2009/10/19/the-mystery-of-css-float-property/> 2. <http://www.smashingmagazine.com/2007/05/01/cs...
2,059,606
I've got a list with list-style-none which needs to be able to add new items to itself via Ajax and have the background expand appropriately when it does. Adding via Ajax is easy, but every solution I try for the background fails me. I don't know if it's even possible; is it? I'm using a grid like this one: <http://jq...
2010/01/13
[ "https://Stackoverflow.com/questions/2059606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/250151/" ]
You need to explicitly set the width and height for the area. Check out this link for Horizontal Scrolling: <http://valums.com/scroll-menu-jquery/> Here is the script: ``` $(function(){ //Get our elements for faster access and set overlay width var div = $('div.sc_menu'), ul = $('ul.sc_menu'), ...
For dealing with the float element, maybe you should know it's characteristic, gotcha, and how to deal with it. See the links below, it also have demo, so you can understand the concept: 1. <http://www.smashingmagazine.com/2009/10/19/the-mystery-of-css-float-property/> 2. <http://www.smashingmagazine.com/2007/05/01/cs...
17,011,831
I am trying to googling for passing in acceptable parameters for setting up cronJobs based on a users timeZone. Im using a cronJob module which can be found here. <https://github.com/ncb000gt/node-cron> The problem is I need to pass different timeZones but I can't seem to find the acceptable parameters and format for...
2013/06/09
[ "https://Stackoverflow.com/questions/17011831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1382927/" ]
malloc returns a void\*. You need to cast the returned value. ``` HugeInteger *ptr = (HugeInteger*)malloc(sizeof(HugeInteger) * INIT_MEMO_SIZE); ```
Your comment says that this code "creates and initializes a Memo struct" however, I see no place where it either creates or initializes a `Memo` `struct`. In fact, the function doesn't even return such a struct (unless memory allocation failed). Perhaps you want something like this: ``` Memo *createMemo(void) { M...
50,861,823
i have something like this: ``` DELETE FROM `history` WHERE `date_field` <= now() - INTERVAL 10 DAY ``` but if all records is older than 10 days - this query deletes all! i want to keep last 20 records, even if they too old ! Please help, what and how i need to upd my code, and what will be better use limit+offset ...
2018/06/14
[ "https://Stackoverflow.com/questions/50861823", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5809937/" ]
Join with a subquery that gets the most recent 20 days and excludes them. ``` DELETE h1 FROM history AS h1 LEFT JOIN ( SELECT id FROM history ORDER BY date_field DESC LIMIT 20 ) AS h2 ON h1.id = h2.id WHERE date_field < now() - INTERVAL 10 DAY AND h2.id IS NULL; ```
How about not using `delete` at all? Write a query to save the records you want. Then truncate the table and insert them back in: ``` create temporary table tokeep as select h.* from history h where `date_field` > now() - INTERVAL 10 DAY union select h.* from history h order by date_field d...
13,102
I am in the process of building a dining table out of solid walnut. I don't have the skills or equipment to make the tabletop myself, so I got my wood supplier to do it for me. The tabletop is 6/4 walnut, 7' long by 40" wide, and is made up of 6 smaller boards glued together. The shop is reputable and seems to know wha...
2021/09/18
[ "https://woodworking.stackexchange.com/questions/13102", "https://woodworking.stackexchange.com", "https://woodworking.stackexchange.com/users/2909/" ]
> > Any advice would be greatly appreciated. > > > 3/16” over the length and width of the table isn’t much; if you put the top on the base and leave it unattached, it might flatten out on its own after a week or two. You could encourage it by putting something heavy, like a box of books (or two) in the middle. Whe...
There are a couple reasons for cupping like this. The first is assembly if you don't pay attention to the glue up job or don't actually make your joints square, you can get this, sometimes with rather exaggerated bends. It doesn't really sound like that is the case here, and I would certainly hope that a professional s...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
If you want to get really bummed out for 'what could have been', check out the Wikipedia page for [List of manned Mars mission plans](https://en.wikipedia.org/wiki/List_of_manned_Mars_mission_plans). The earliest plan to get to Mars was [written by von Braun in 1948](http://www.wlym.com/archive/oakland/docs/MarsProjec...
I second what Edlothiad suggested, Mars Direct would have been perfectly feasible. Mars Direct was created and proposed mainly by Dr. Robert Zubrin. His approach to a human Mars mission was precisely to find a way to do it using the available technology and not using technologies that are still in development or experi...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
If you want to get really bummed out for 'what could have been', check out the Wikipedia page for [List of manned Mars mission plans](https://en.wikipedia.org/wiki/List_of_manned_Mars_mission_plans). The earliest plan to get to Mars was [written by von Braun in 1948](http://www.wlym.com/archive/oakland/docs/MarsProjec...
**Probably yes**. To add to the other already excellent answers: There is the very relevant blog [Spaceflight History](https://spaceflighthistory.blogspot.com/) which focusses on "space exploration history told through missions & programs that didn't happen". It has many [postings regarding Mars](https://spaceflighthi...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
If you want to get really bummed out for 'what could have been', check out the Wikipedia page for [List of manned Mars mission plans](https://en.wikipedia.org/wiki/List_of_manned_Mars_mission_plans). The earliest plan to get to Mars was [written by von Braun in 1948](http://www.wlym.com/archive/oakland/docs/MarsProjec...
There's always the thought that if you put enough money/resources behind a project, you can do anything, and while this is true in many cases, the amount of resources needed without key innovations can be astronomical and ultimately prohibitive. An example I often cite is the Pyramids- they were built without the wheel...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
If you want to get really bummed out for 'what could have been', check out the Wikipedia page for [List of manned Mars mission plans](https://en.wikipedia.org/wiki/List_of_manned_Mars_mission_plans). The earliest plan to get to Mars was [written by von Braun in 1948](http://www.wlym.com/archive/oakland/docs/MarsProjec...
It seems strange to me that no one has mentioned Project Orion (1958-1965), a theoretical study of using atomic bombs to launch rockets and propel them in interplanetary space. That would have been many times more efficient than chemical rockets and the members of project Orion hoped that it would enable manned lunar ...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
I second what Edlothiad suggested, Mars Direct would have been perfectly feasible. Mars Direct was created and proposed mainly by Dr. Robert Zubrin. His approach to a human Mars mission was precisely to find a way to do it using the available technology and not using technologies that are still in development or experi...
There's always the thought that if you put enough money/resources behind a project, you can do anything, and while this is true in many cases, the amount of resources needed without key innovations can be astronomical and ultimately prohibitive. An example I often cite is the Pyramids- they were built without the wheel...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
I second what Edlothiad suggested, Mars Direct would have been perfectly feasible. Mars Direct was created and proposed mainly by Dr. Robert Zubrin. His approach to a human Mars mission was precisely to find a way to do it using the available technology and not using technologies that are still in development or experi...
It seems strange to me that no one has mentioned Project Orion (1958-1965), a theoretical study of using atomic bombs to launch rockets and propel them in interplanetary space. That would have been many times more efficient than chemical rockets and the members of project Orion hoped that it would enable manned lunar ...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
**Probably yes**. To add to the other already excellent answers: There is the very relevant blog [Spaceflight History](https://spaceflighthistory.blogspot.com/) which focusses on "space exploration history told through missions & programs that didn't happen". It has many [postings regarding Mars](https://spaceflighthi...
There's always the thought that if you put enough money/resources behind a project, you can do anything, and while this is true in many cases, the amount of resources needed without key innovations can be astronomical and ultimately prohibitive. An example I often cite is the Pyramids- they were built without the wheel...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
**Probably yes**. To add to the other already excellent answers: There is the very relevant blog [Spaceflight History](https://spaceflighthistory.blogspot.com/) which focusses on "space exploration history told through missions & programs that didn't happen". It has many [postings regarding Mars](https://spaceflighthi...
It seems strange to me that no one has mentioned Project Orion (1958-1965), a theoretical study of using atomic bombs to launch rockets and propel them in interplanetary space. That would have been many times more efficient than chemical rockets and the members of project Orion hoped that it would enable manned lunar ...
27,969
In an "alternate universe" where NASA continued to receive a mandate, funding and public support at say peak Apollo levels, could another ten or twenty years have gotten boots on Mars, with astronauts in those boots? Or would there be some clear technical challenge that really needed several more decades of developmen...
2018/06/20
[ "https://space.stackexchange.com/questions/27969", "https://space.stackexchange.com", "https://space.stackexchange.com/users/12102/" ]
It seems strange to me that no one has mentioned Project Orion (1958-1965), a theoretical study of using atomic bombs to launch rockets and propel them in interplanetary space. That would have been many times more efficient than chemical rockets and the members of project Orion hoped that it would enable manned lunar ...
There's always the thought that if you put enough money/resources behind a project, you can do anything, and while this is true in many cases, the amount of resources needed without key innovations can be astronomical and ultimately prohibitive. An example I often cite is the Pyramids- they were built without the wheel...
20,873,246
I've spent far too long messing with this before asking for help. I can't seem to get RSpec and Sorcery to play together nicely. I've read through the docs on [Integration testing with Sorcery](https://github.com/NoamB/sorcery/wiki/Integration-Testing-with-Rspec,-Capybara-and-Fabricator) and can post the login action p...
2014/01/01
[ "https://Stackoverflow.com/questions/20873246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1467579/" ]
I just went through this yesterday. Here's what I did, if it helps. Sorcery provides a test helper `login_user` that relies on a `@controller` object being available. This works great in controller specs, but doesn't work in integration tests. So the workaround in integration tests is to write another method (like the...
The way you pass a password is probably wrong. It may be encrypted at this point. In provided example I will try to do this at first: ``` describe 'user access' do let (:user) { create(:user, password: 'secret') } before :each do login_user(user[:email], 'secret') end it "should log in the user...
20,873,246
I've spent far too long messing with this before asking for help. I can't seem to get RSpec and Sorcery to play together nicely. I've read through the docs on [Integration testing with Sorcery](https://github.com/NoamB/sorcery/wiki/Integration-Testing-with-Rspec,-Capybara-and-Fabricator) and can post the login action p...
2014/01/01
[ "https://Stackoverflow.com/questions/20873246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1467579/" ]
I just went through this yesterday. Here's what I did, if it helps. Sorcery provides a test helper `login_user` that relies on a `@controller` object being available. This works great in controller specs, but doesn't work in integration tests. So the workaround in integration tests is to write another method (like the...
Did you try adding to spec/spec\_helpers. ``` RSpec.configure do |config| # ... config.include Sorcery::TestHelpers::Rails::Controller end ``` Nota that you need to include `Sorcery::TestHelpers::Rails::Controller`, not just `Sorcery::TestHelpers::Rails`. Then you will be able to `login_user` from any controlle...
20,873,246
I've spent far too long messing with this before asking for help. I can't seem to get RSpec and Sorcery to play together nicely. I've read through the docs on [Integration testing with Sorcery](https://github.com/NoamB/sorcery/wiki/Integration-Testing-with-Rspec,-Capybara-and-Fabricator) and can post the login action p...
2014/01/01
[ "https://Stackoverflow.com/questions/20873246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1467579/" ]
I just went through this yesterday. Here's what I did, if it helps. Sorcery provides a test helper `login_user` that relies on a `@controller` object being available. This works great in controller specs, but doesn't work in integration tests. So the workaround in integration tests is to write another method (like the...
This seems to be very poorly documented. The above solutions did not work for me. Here's how I got it to work: Check your `sessions_url`. Make sure it is correct. Also, check what params are necessary to log in. It may be `email`, `username`, etc. ``` module Sorcery module TestHelpers module Rails def log...
20,873,246
I've spent far too long messing with this before asking for help. I can't seem to get RSpec and Sorcery to play together nicely. I've read through the docs on [Integration testing with Sorcery](https://github.com/NoamB/sorcery/wiki/Integration-Testing-with-Rspec,-Capybara-and-Fabricator) and can post the login action p...
2014/01/01
[ "https://Stackoverflow.com/questions/20873246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1467579/" ]
Did you try adding to spec/spec\_helpers. ``` RSpec.configure do |config| # ... config.include Sorcery::TestHelpers::Rails::Controller end ``` Nota that you need to include `Sorcery::TestHelpers::Rails::Controller`, not just `Sorcery::TestHelpers::Rails`. Then you will be able to `login_user` from any controlle...
The way you pass a password is probably wrong. It may be encrypted at this point. In provided example I will try to do this at first: ``` describe 'user access' do let (:user) { create(:user, password: 'secret') } before :each do login_user(user[:email], 'secret') end it "should log in the user...
20,873,246
I've spent far too long messing with this before asking for help. I can't seem to get RSpec and Sorcery to play together nicely. I've read through the docs on [Integration testing with Sorcery](https://github.com/NoamB/sorcery/wiki/Integration-Testing-with-Rspec,-Capybara-and-Fabricator) and can post the login action p...
2014/01/01
[ "https://Stackoverflow.com/questions/20873246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1467579/" ]
Did you try adding to spec/spec\_helpers. ``` RSpec.configure do |config| # ... config.include Sorcery::TestHelpers::Rails::Controller end ``` Nota that you need to include `Sorcery::TestHelpers::Rails::Controller`, not just `Sorcery::TestHelpers::Rails`. Then you will be able to `login_user` from any controlle...
This seems to be very poorly documented. The above solutions did not work for me. Here's how I got it to work: Check your `sessions_url`. Make sure it is correct. Also, check what params are necessary to log in. It may be `email`, `username`, etc. ``` module Sorcery module TestHelpers module Rails def log...
68,138,677
I was wondering how I can count the number of unique words that I have in a list from a specific data frame. For example, let's say I have a list = `['John','Bob,'Hannah']` Next, I have a data frame with a column called sentences ``` df = ['sentences'] 0 Bob went to the shop 1 John visited Hannah 2 Hannah ...
2021/06/26
[ "https://Stackoverflow.com/questions/68138677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16319156/" ]
You can use `Series.str.contains` and call the `sum` to get the number of occurances of a word in the given column, just iterate over the list for all the substrings and do the same for each word, store the result as dictionary. ```py list1 = ['John','Bob','Hannah'] output = {} for word in list1: output[word] = df...
You also may use `str.split`, `explode`, and `value_counts` ``` l = ['John', 'Bob', 'Hannah'] df.sentences.str.split().explode().value_counts()[l] Out[239]: John 1 Bob 1 Hannah 2 Name: sentences, dtype: int64 ``` However, I think `dict comprehension` is faster.
68,138,677
I was wondering how I can count the number of unique words that I have in a list from a specific data frame. For example, let's say I have a list = `['John','Bob,'Hannah']` Next, I have a data frame with a column called sentences ``` df = ['sentences'] 0 Bob went to the shop 1 John visited Hannah 2 Hannah ...
2021/06/26
[ "https://Stackoverflow.com/questions/68138677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16319156/" ]
You can use `Series.str.contains` and call the `sum` to get the number of occurances of a word in the given column, just iterate over the list for all the substrings and do the same for each word, store the result as dictionary. ```py list1 = ['John','Bob','Hannah'] output = {} for word in list1: output[word] = df...
In your case ``` list1 = ['John','Bob','Hannah'] df.Col1.str.findall('|'.join(list1)).explode().value_counts() Hannah 2 Bob 1 John 1 Name: Col1, dtype: int64 ```
7,737,028
I need help in a Math logic issue. Let say I have an object that can be manipulate (move) by user. After the user moved the object I would like the object to continue moving and decelerate to a stop. Example, when a user move an object from point A to B with a total distance of 100pixel in X axis, after user release a...
2011/10/12
[ "https://Stackoverflow.com/questions/7737028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986916/" ]
d = ½at² + vit + d0 d0 is the point at which the user "let go". Calculate vi from the motion before letting go. Set a to something negative; you'll have to fiddle with this to get it to feel right. Increment t from 0 through 2. d is where the object will end up. Remember that a and vi are **vectors** pointing in oppos...
If the acceleration, a, is constant you can use the formula: d = ½at² With t = 2s you get d = 2a. The acceleration is enough to accelerate to v in 2s, so a = v/2. You get: d = v So if v= 100 pixels per second, the object should continue 100 pixels if it stops in 2 seconds under constant deceleration.
7,737,028
I need help in a Math logic issue. Let say I have an object that can be manipulate (move) by user. After the user moved the object I would like the object to continue moving and decelerate to a stop. Example, when a user move an object from point A to B with a total distance of 100pixel in X axis, after user release a...
2011/10/12
[ "https://Stackoverflow.com/questions/7737028", "https://Stackoverflow.com", "https://Stackoverflow.com/users/986916/" ]
d = ½at² + vit + d0 d0 is the point at which the user "let go". Calculate vi from the motion before letting go. Set a to something negative; you'll have to fiddle with this to get it to feel right. Increment t from 0 through 2. d is where the object will end up. Remember that a and vi are **vectors** pointing in oppos...
If all you want is the *distance* from **B** to **C**, that's easy. If the object went a distance N pixels (say 100) from **A** to **B** in k seconds, then the distance from **B** to **C** will be N/k. If you want the *location* of **C**, so that A, B and C are integers on the x-axis, C = B+(B-A)/k. If you want to *a...
198,714
Consider \$3\$ binary strings of length \$n\$ chosen independently and uniformly at random. We are interested in computing the exact expected minimum [Hamming distance](https://en.wikipedia.org/wiki/Hamming_distance) between any pair. The Hamming distance between two strings of equal length is the number of positions a...
2020/01/31
[ "https://codegolf.stackexchange.com/questions/198714", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/-1/" ]
[Pari/GP](http://pari.math.u-bordeaux.fr/), ~~92~~ 90 bytes =========================================================== 2 bytes saved thanks to @Nicolas! ``` n->sum(a=0,n,sum(b=0,n-a,sum(c=0,n-a-b,n!/a!/b!/c!/(n-a-b-c)!*min(a+b,min(a+c,b+c)))))/4^n ``` [Try it online!](https://tio.run/##JcpBCsMwDATAr8Q9KY2EEmiPzlMK...
[Jelly](https://github.com/DennisMitchell/jelly), 31 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page) ==================================================================================================================== ``` Ḷṗ4S⁼¥Ƈɓ!×Ṗṁ4SƝṂƲ}:!P$}ð€S,4*$} ``` A monadic Link accepting an integer which y...
198,714
Consider \$3\$ binary strings of length \$n\$ chosen independently and uniformly at random. We are interested in computing the exact expected minimum [Hamming distance](https://en.wikipedia.org/wiki/Hamming_distance) between any pair. The Hamming distance between two strings of equal length is the number of positions a...
2020/01/31
[ "https://codegolf.stackexchange.com/questions/198714", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/-1/" ]
[Pari/GP](http://pari.math.u-bordeaux.fr/), ~~92~~ 90 bytes =========================================================== 2 bytes saved thanks to @Nicolas! ``` n->sum(a=0,n,sum(b=0,n-a,sum(c=0,n-a-b,n!/a!/b!/c!/(n-a-b-c)!*min(a+b,min(a+c,b+c)))))/4^n ``` [Try it online!](https://tio.run/##JcpBCsMwDATAr8Q9KY2EEmiPzlMK...
[05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), 26 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage) ============================================================================================================================ ``` Ý4ãʒOQ}ε¨Ćü+ßI!*y!P÷}O4Im‚ ``` Port of [*@JonathanAllan*'s Jell...
19,663,048
Hello I have a page where the code was working perfectly that would launch a video when an an element with ".onclick" is assigned. Howvever it only seems to work in Chrome. There was even an instance when one page's video would work (in all browsers) but now neither of them work. This works perfectly fine in Chrome th...
2013/10/29
[ "https://Stackoverflow.com/questions/19663048", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2554449/" ]
Care to share your code because I cannot seem to get it to work in FF. Works great in other browsers though. Here is the code I am using. JS ``` var video = document.getElementById('video'); video.addEventListener('click',function(){ video.play(); },false); ``` HTML ``` <video src="your_video" width="250" height...
Actually I found the issue. Firefox makes you put a "#" inside the A href tag for this situation. Thanks for anyone who actually looked into it for me.
40,749,024
Please help me with the query Below are the table and requirement details [![enter image description here](https://i.stack.imgur.com/ux4O6.png)](https://i.stack.imgur.com/ux4O6.png)
2016/11/22
[ "https://Stackoverflow.com/questions/40749024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6874511/" ]
Case statement constructs one variable. For your example you can try this, with one statement of Case : ``` data example; input x $; datalines; A A A B B ; run; proc sql; create table make_two_from_one_2 as select * , case when x = 'A' then 'Result1A,Result2A' when x = 'B' then 'R...
In your case, maybe you could try this: ``` proc sql; create table make_two_from_one as select * , case when x = 'A' then 'Result1A' when x = 'B' then 'Result1B' else 'Error' end as thing1, translate(calculated thing1,'2','1') as thing2 from example ; quit; ```
40,749,024
Please help me with the query Below are the table and requirement details [![enter image description here](https://i.stack.imgur.com/ux4O6.png)](https://i.stack.imgur.com/ux4O6.png)
2016/11/22
[ "https://Stackoverflow.com/questions/40749024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6874511/" ]
Case statement constructs one variable. For your example you can try this, with one statement of Case : ``` data example; input x $; datalines; A A A B B ; run; proc sql; create table make_two_from_one_2 as select * , case when x = 'A' then 'Result1A,Result2A' when x = 'B' then 'R...
Personally I think this need, i.e., to overcome a cumbersome syntactic barrier with something that can be maintained in one place, is a good use case for SAS macro. The macro version also avoids the perils of parsing, is nicely tabular, and makes no type assumptions. ``` %macro _case(when_A, when_B, error='Error'); ...
40,749,024
Please help me with the query Below are the table and requirement details [![enter image description here](https://i.stack.imgur.com/ux4O6.png)](https://i.stack.imgur.com/ux4O6.png)
2016/11/22
[ "https://Stackoverflow.com/questions/40749024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6874511/" ]
Just for completeness, this is straightforward in a data step, using `select`, `when`, `do`, `otherwise`. Or you could just use `if`, `then`, `do`, `else`. ``` data want; set example; select (x); when ('A') do; thing1 = 'Result1A'; thing2 = 'Result2A'; end; when ('B') do; thing1...
In your case, maybe you could try this: ``` proc sql; create table make_two_from_one as select * , case when x = 'A' then 'Result1A' when x = 'B' then 'Result1B' else 'Error' end as thing1, translate(calculated thing1,'2','1') as thing2 from example ; quit; ```
40,749,024
Please help me with the query Below are the table and requirement details [![enter image description here](https://i.stack.imgur.com/ux4O6.png)](https://i.stack.imgur.com/ux4O6.png)
2016/11/22
[ "https://Stackoverflow.com/questions/40749024", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6874511/" ]
Just for completeness, this is straightforward in a data step, using `select`, `when`, `do`, `otherwise`. Or you could just use `if`, `then`, `do`, `else`. ``` data want; set example; select (x); when ('A') do; thing1 = 'Result1A'; thing2 = 'Result2A'; end; when ('B') do; thing1...
Personally I think this need, i.e., to overcome a cumbersome syntactic barrier with something that can be maintained in one place, is a good use case for SAS macro. The macro version also avoids the perils of parsing, is nicely tabular, and makes no type assumptions. ``` %macro _case(when_A, when_B, error='Error'); ...
16,006
From <http://en.wikipedia.org/wiki/Mutant_%28fictional%29#DC_Comics> > > Mutants play a smaller, but still substantial role in DC Comics > > > However, that particular Wiki article only mentions very few mutants (Captain Comet, and a couple of Batman adversaries), neither of whom strike me as important enough to...
2012/05/03
[ "https://scifi.stackexchange.com/questions/16006", "https://scifi.stackexchange.com", "https://scifi.stackexchange.com/users/976/" ]
The issue at hand is the DC Universe's definition of mutant. Finishing off your quote: > > DC Comics **does not make a semantic or an abstract distinction between humans (or superheroes/villains) born with mutations making them different from humans mutated by outside sources**. > > > This is to say by DC standar...
DC steers away from the Marvel version of *mutant*, perhaps because it plays such a major role at the *House of Ideas* or simply because they feel no need. There are mutants within the DC Universe and have been for some time; the first I can recall is ***Captain Comet*** who, if memory serves, left the Earth *because* ...
20,131,226
I am parsing XML in PHP with SimpleXML and have an XML like this: ``` <xml> <element> textpart1 <subelement>subcontent1</subelement> textpart2 <subelement>subcontent2</subelement> textpart3 </element> </xml> ``` When I do `$xml->element` it naturally gives me t...
2013/11/21
[ "https://Stackoverflow.com/questions/20131226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1648520/" ]
You are actually looking for all text-nodes that are descendants of the `element` element node. This can be expressed as the following xpath: ``` /*/element//text() ``` Even SimpleXML has an `xpath` method that does execute this query without any errors, the actual text-nodes are converted to their parents element n...
The simple answer is no. SimpleXML does not implement any kind of support for text nodes. In this case your best and preferred option is to use [DOMDocument](http://docs.php.net/manual/en/book.dom.php).
20,131,226
I am parsing XML in PHP with SimpleXML and have an XML like this: ``` <xml> <element> textpart1 <subelement>subcontent1</subelement> textpart2 <subelement>subcontent2</subelement> textpart3 </element> </xml> ``` When I do `$xml->element` it naturally gives me t...
2013/11/21
[ "https://Stackoverflow.com/questions/20131226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1648520/" ]
As others have said, SimpleXML doesn't have any support for accessing individual text nodes as separate entities, so you will need to supplement it with some DOM methods. Thankfully, you can switch between the two at will using [`dom_import_simplexml`](http://php.net/dom_import_simplexml) and [`simplexml_import_dom`](h...
The simple answer is no. SimpleXML does not implement any kind of support for text nodes. In this case your best and preferred option is to use [DOMDocument](http://docs.php.net/manual/en/book.dom.php).
20,131,226
I am parsing XML in PHP with SimpleXML and have an XML like this: ``` <xml> <element> textpart1 <subelement>subcontent1</subelement> textpart2 <subelement>subcontent2</subelement> textpart3 </element> </xml> ``` When I do `$xml->element` it naturally gives me t...
2013/11/21
[ "https://Stackoverflow.com/questions/20131226", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1648520/" ]
As others have said, SimpleXML doesn't have any support for accessing individual text nodes as separate entities, so you will need to supplement it with some DOM methods. Thankfully, you can switch between the two at will using [`dom_import_simplexml`](http://php.net/dom_import_simplexml) and [`simplexml_import_dom`](h...
You are actually looking for all text-nodes that are descendants of the `element` element node. This can be expressed as the following xpath: ``` /*/element//text() ``` Even SimpleXML has an `xpath` method that does execute this query without any errors, the actual text-nodes are converted to their parents element n...
12,013,956
I've got a container div with a bunch of scrollable content (for the record I'm using iScroll - if that changes the solution). When I scroll to the top I want to load content above the current scroll position. If I simply prepend the div using jQuery "prepend();" the contents in my scrollable area shift down. Ideally w...
2012/08/17
[ "https://Stackoverflow.com/questions/12013956", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1118481/" ]
According to [the iScroll website](http://cubiq.org/iscroll), it has a method called `scrollToElement`: > > **`scrollToElement(el, runtime)`**: scrolls to any element inside the scrolling area. `el` must be a CSS3 selector. Eg: `scrollToElement("#elementID", '400ms')` > > > If you always prepend a fixed amount of...
After a quick look through iScroll's source, here's what I've found: * The current `x` and `y` are always available through `myScroll.x` and `myScroll.y`. * iScroll has an internal function `_offset(el)`, which returns the `left` and `top` offset of any given element. This basically opens up two solutions: 1. Use `_...
29,723,423
Today I made a small typo in my program, and was wandering why I wasn't getting any output, although the program compiled fine. Basically it reduces to this: ``` #include <iostream> int main() { std::cout < "test"; // no << but < } ``` I have absolutely no idea what kind of implicit conversion is performed here...
2015/04/18
[ "https://Stackoverflow.com/questions/29723423", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3093378/" ]
Yes, the compiler is converting `cout` to a `void*`. If you use the `-S` switch to get the code's disassembly, you'll see something like this: ``` mov edi, OFFSET FLAT:std::cout+8 call std::basic_ios<char, std::char_traits<char> >::operator void*() const cmp rax, OFFSET FLAT:.LC0 setb al test...
This is only valid before C++11. You're basically doing: `((void *) std::cout) < ((char *) "test")`
14,832,221
I have a DF where I want to add a new variable called "B" into the 2nd position. ``` A C D 1 1 5 2 2 3 3 7 3 6 2 3 4 6 4 8 5 1 1 2 ``` Anyone have an idea?
2013/02/12
[ "https://Stackoverflow.com/questions/14832221", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2061634/" ]
The easiest way would be to add the columns you want and then reorder them: ``` dat$B <- 1:5 newdat <- dat[, c("A", "B", "C", "D")] ``` Another way: ``` newdat <- cbind(dat[1], B=1:5, dat[,2:3]) ``` If you're concerned about overhead, perhaps a `data.table` solution? (With help from [this answer](https://stackove...
``` dat$B <- 1:5 ind <- c(1:which(names(data) == "A"),ncol(data),(which(names(data) == "A")+1):ncol(data)-1) data <- data[,ind] ``` Create the variable at the end of the data.frame and then using an indicator vector signaling how to reorder the columns. ind is just a vector of numbers
30,072
So far in Dead Island I've noticed white, green, blue, and purple items. These seem to indicate different rarities, similar to the classification system used in Borderlands, but I don't know what these colors actually mean. Is green more rare than blue? What are the different rarity colors?
2011/09/10
[ "https://gaming.stackexchange.com/questions/30072", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/207/" ]
So far, here are all the colors I've found ordered in quality (based on overall stats when compared to one of lesser color and also how often I see weapons of that color): white->green->blue->purple->orange The in game text during loading says that some of the quest rewards gives you unique weapons, and (assuming Gab...
Orange are the super rare or legendary weapons. Purple are rare, blue and green are rare but tend to be less rare than others.
30,072
So far in Dead Island I've noticed white, green, blue, and purple items. These seem to indicate different rarities, similar to the classification system used in Borderlands, but I don't know what these colors actually mean. Is green more rare than blue? What are the different rarity colors?
2011/09/10
[ "https://gaming.stackexchange.com/questions/30072", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/207/" ]
So far, here are all the colors I've found ordered in quality (based on overall stats when compared to one of lesser color and also how often I see weapons of that color): white->green->blue->purple->orange The in game text during loading says that some of the quest rewards gives you unique weapons, and (assuming Gab...
As Ashley Nunn points out in an [answer to another question](https://gaming.stackexchange.com/a/46137/8366), the Dead Island wiki [explains each color in detail](http://deadisland.wikia.com/wiki/Item_Rarity): > > There are a total of FIVE different levels of rarity for an item in Dead Island. These are: > > > * Whi...
2,436,502
Is it possible, in the `expr` expression of the `with()` function, to access the `data` argument directly? Here's what I mean conceptually: ``` > print(df) result qid f1 f2 f3 1 -1 1 0.0000 0.1253 0.0000 2 -1 1 0.0098 0.0000 0.0000 3 1 1 0.0000 0.0000 0.1941 4 -1 2 0.0000 0.2863 ...
2010/03/12
[ "https://Stackoverflow.com/questions/2436502", "https://Stackoverflow.com", "https://Stackoverflow.com/users/169947/" ]
Using `parent.frame()`: ``` # sample data: set.seed(2436502) dfrm <- data.frame(x1 = rnorm(100), x2 = rnorm(100), g1 = sample(letters, 100, TRUE)) # how to use it: with(subset(dfrm, x1<0), { str(parent.frame(2)$data) "Hello!" }) # 'data.frame': 47 obs. of 3 variables: # $ x1: num -0.836 -0.343 -0.341 -1...
I tend to invert it, i.e. put the `with()` outside and have `subset()` work on its data: ``` R> data(mtcars) R> with(subset(mtcars, gear==4), lm(mpg ~ wt)) # no data arg Call: lm(formula = mpg ~ wt) Coefficients: (Intercept) wt 42.49 -6.86 ``` This is also a silly example because `lm(mpg...
4,836,038
I need to decode: ``` file://localhost/G:/test/%E6%B0%97%E3%81%BE%E3%81%90%E3%82%8C%E3%83%AD%E3%83%9E%E3%83%B3%E3%83%86%E3%82%A3%E3%83%83%E3%82%AF.mp3 ``` into ``` file://localhost/G:/test/気まぐれロマンティック.mp3 ``` How to do it in Delphi prior 2009 (I use Delphi 2006) ?
2011/01/29
[ "https://Stackoverflow.com/questions/4836038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/193431/" ]
The Indy TIdURI class in IdURI unit contains UrlDecode / UrlEncode functions. You could try it with a recent version (10.5.8) of Indy, which has encoding parameters: ``` class function TIdURI.URLDecode(ASrc: string; AByteEncoding: TIdTextEncoding = nil {$IFDEF STRING_IS_ANSI}; ADestEncoding: TIdTextEncoding = nil{$E...
mjn may be correct, but I would strongly advise that if you are going to be handling any kind of Unicode within Delphi, try to persuade your bosses to upgrade to the latest version of Delphi (or just Delphi 2009). The Unicode support in Delphi 2009 is very good, and just works out of the box. If you really cant do this...
4,836,038
I need to decode: ``` file://localhost/G:/test/%E6%B0%97%E3%81%BE%E3%81%90%E3%82%8C%E3%83%AD%E3%83%9E%E3%83%B3%E3%83%86%E3%82%A3%E3%83%83%E3%82%AF.mp3 ``` into ``` file://localhost/G:/test/気まぐれロマンティック.mp3 ``` How to do it in Delphi prior 2009 (I use Delphi 2006) ?
2011/01/29
[ "https://Stackoverflow.com/questions/4836038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/193431/" ]
I have no Delphi 2006, so I tested the code on Delphi 2007; you should: convert the string with "%" characters to plain UTF8 string; convert UTF8 string to Wide String (UTF8Decode); convert Wide String to Ansi String with Japanese encoding (WideCharToMultiByte): ``` const SrcStr = 'file://localhost/G:/test/%E6%B0...
mjn may be correct, but I would strongly advise that if you are going to be handling any kind of Unicode within Delphi, try to persuade your bosses to upgrade to the latest version of Delphi (or just Delphi 2009). The Unicode support in Delphi 2009 is very good, and just works out of the box. If you really cant do this...
4,836,038
I need to decode: ``` file://localhost/G:/test/%E6%B0%97%E3%81%BE%E3%81%90%E3%82%8C%E3%83%AD%E3%83%9E%E3%83%B3%E3%83%86%E3%82%A3%E3%83%83%E3%82%AF.mp3 ``` into ``` file://localhost/G:/test/気まぐれロマンティック.mp3 ``` How to do it in Delphi prior 2009 (I use Delphi 2006) ?
2011/01/29
[ "https://Stackoverflow.com/questions/4836038", "https://Stackoverflow.com", "https://Stackoverflow.com/users/193431/" ]
I've found the solution, I got a pointer here: [delphigroups.info/2/5/209620.html](http://www.delphigroups.info/2/5/209620.html) then experiment with HttpDecode in httpApp.pas, the solution is: ``` TntEdit2.Text := UTF8Decode(HTTPDecode('file://localhost/G:/test/%E6%B0%97%E3%81%BE%E3%81%90%E3%82%8C%E3%83%AD%E3%83%9E%...
mjn may be correct, but I would strongly advise that if you are going to be handling any kind of Unicode within Delphi, try to persuade your bosses to upgrade to the latest version of Delphi (or just Delphi 2009). The Unicode support in Delphi 2009 is very good, and just works out of the box. If you really cant do this...
38,353,992
So I am currently reading through [Clean Code](https://rads.stackoverflow.com/amzn/click/com/0132350882) and I really like the idea of super small functions that each tell their own "story". I also really like the way he puts how code should be written to be read in terms of "TO paragraphs", which I've decided to kind ...
2016/07/13
[ "https://Stackoverflow.com/questions/38353992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1370270/" ]
You should define default router for `''` like: ``` const routes: RouterConfig = [ { path: '', component: Home }, { path: 'page2', component: Page2 } ]; ``` Or by using redirect: ``` const routes: RouterConfig = [ { path: '', redirectTo: '/page2', pathMatch: 'full' }, { path: 'page2', component: Page2 } ]...
to be my understanding , you want to use as app.ts page default page and loaded page2 by click **Page2**? **Option1:** *quick solve issue* By solving your current console error you can add to your *app.route.ts* ``` import { App} from './app'; const routes: RouterConfig = [ { path: '', component: App, useAsDefa...
38,353,992
So I am currently reading through [Clean Code](https://rads.stackoverflow.com/amzn/click/com/0132350882) and I really like the idea of super small functions that each tell their own "story". I also really like the way he puts how code should be written to be read in terms of "TO paragraphs", which I've decided to kind ...
2016/07/13
[ "https://Stackoverflow.com/questions/38353992", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1370270/" ]
You need to specify a route for the case where the user is at the index page of your app, that route is the path '' and it should look like this: `{ path: '', component: MyComponent }` If you want your default page to be page2 you must tell your index path to redirect to it like this: ``` { path: 'page2', component: ...
to be my understanding , you want to use as app.ts page default page and loaded page2 by click **Page2**? **Option1:** *quick solve issue* By solving your current console error you can add to your *app.route.ts* ``` import { App} from './app'; const routes: RouterConfig = [ { path: '', component: App, useAsDefa...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
Use AM > HM on $\frac{a+b+c}{a+b}, \frac{a+b+c}{b+c}$ and $\frac{a+b+c}{c+a}$.
Here is another nice proof. We have to prove; $$\frac{a}{b+c}+\frac{b}{a+c}+\frac{c}{a+b}\geq \frac{3}{2}\\\frac{a+b+c}{b+c}+\frac{a+b+c}{a+c}+\frac{a+b+c}{a+b}\geq \frac{3}{2}+3\\(a+b+c)\left(\frac{1}{b+c}+\frac{1}{a+c}+\frac{1}{a+b}\right)\geq \frac{9}{2}\\([b+c]+[a+c]+[a+b])\left(\frac{1}{b+c}+\frac{1}{a+c}+\frac{...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
By Cauchy-Schwarz $$\begin{align}\sum\_{cyc}\frac{a}{b+c}&=\sum\_{cyc}\left(\frac{a}{b+c}+1\right)-3\\ &=\sum\_{cyc}a\sum\_{cyc}\frac{1}{b+c}-3\\ &=\frac{1}{2}\sum\_{cyc}(b+c)\sum\_{cyc}\frac{1}{b+c}-3\\ &\geq\frac{1}{2}\cdot9-3=\frac{3}{2}.\end{align}$$ Done! Another way. By C-S $$\sum\limits\_{cyc}\frac{a}{b+c}=\su...
We can also use rearrangement inequality to prove it. $\displaystyle\frac a{b+c}+\frac b{a+c}+\frac c{a+b}$ $\displaystyle=\frac12\left(\left(\frac a{b+c}+\frac b{a+c}+\frac c{a+b}\right)+\left(\frac a{b+c}+\frac b{a+c}+\frac c{a+b}\right)\right)$ $\displaystyle\geq\frac12\left(\left(\frac a{a+c}+\frac b{a+b}+\...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
By Cauchy-Schwarz $$\begin{align}\sum\_{cyc}\frac{a}{b+c}&=\sum\_{cyc}\left(\frac{a}{b+c}+1\right)-3\\ &=\sum\_{cyc}a\sum\_{cyc}\frac{1}{b+c}-3\\ &=\frac{1}{2}\sum\_{cyc}(b+c)\sum\_{cyc}\frac{1}{b+c}-3\\ &\geq\frac{1}{2}\cdot9-3=\frac{3}{2}.\end{align}$$ Done! Another way. By C-S $$\sum\limits\_{cyc}\frac{a}{b+c}=\su...
Here is another nice proof. We have to prove; $$\frac{a}{b+c}+\frac{b}{a+c}+\frac{c}{a+b}\geq \frac{3}{2}\\\frac{a+b+c}{b+c}+\frac{a+b+c}{a+c}+\frac{a+b+c}{a+b}\geq \frac{3}{2}+3\\(a+b+c)\left(\frac{1}{b+c}+\frac{1}{a+c}+\frac{1}{a+b}\right)\geq \frac{9}{2}\\([b+c]+[a+c]+[a+b])\left(\frac{1}{b+c}+\frac{1}{a+c}+\frac{...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
By Cauchy-Schwarz $$\begin{align}\sum\_{cyc}\frac{a}{b+c}&=\sum\_{cyc}\left(\frac{a}{b+c}+1\right)-3\\ &=\sum\_{cyc}a\sum\_{cyc}\frac{1}{b+c}-3\\ &=\frac{1}{2}\sum\_{cyc}(b+c)\sum\_{cyc}\frac{1}{b+c}-3\\ &\geq\frac{1}{2}\cdot9-3=\frac{3}{2}.\end{align}$$ Done! Another way. By C-S $$\sum\limits\_{cyc}\frac{a}{b+c}=\su...
\begin{eqnarray\*} % \nonumber to remove numbering (before each equation) && \frac{x}{y+z}+\frac{y}{z+x}+\frac{z}{x+y}-\frac{3}{2}\\ &=& \frac{2(x^3+y^3+z^3)-(x^2y+xy^2+y^2z+yz^2+z^2x+zx^2)}{2 (x + y) (x + z) (y + z)}\\ &=& \frac{(x+y)(x-y)^2+(y+z)(y-z)^2+(z+x)(z-x)^2}{2 (x + y) (x + z) (y + z)}\geq0 \end{eqnarray...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
Use AM > HM on $\frac{a+b+c}{a+b}, \frac{a+b+c}{b+c}$ and $\frac{a+b+c}{c+a}$.
We can also use rearrangement inequality to prove it. $\displaystyle\frac a{b+c}+\frac b{a+c}+\frac c{a+b}$ $\displaystyle=\frac12\left(\left(\frac a{b+c}+\frac b{a+c}+\frac c{a+b}\right)+\left(\frac a{b+c}+\frac b{a+c}+\frac c{a+b}\right)\right)$ $\displaystyle\geq\frac12\left(\left(\frac a{a+c}+\frac b{a+b}+\...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
If we denote $s:=a+b+c$, we have to minimize $$\frac{a}{s-a}+\frac{b}{s-b}+\frac{c}{s-c}$$ for $a,b,c>0$. Using new variables $x:=a/s$, $y:=b/s$, $z:=c/s$ we can see, that this is equivalent to minimizing $$\frac{x}{1-x}+\frac{y}{1-y}+\frac{z}{1-z}$$ for $x+y+z=1$. If we notice that [the function](http://www.wolframa...
Here is another nice proof. We have to prove; $$\frac{a}{b+c}+\frac{b}{a+c}+\frac{c}{a+b}\geq \frac{3}{2}\\\frac{a+b+c}{b+c}+\frac{a+b+c}{a+c}+\frac{a+b+c}{a+b}\geq \frac{3}{2}+3\\(a+b+c)\left(\frac{1}{b+c}+\frac{1}{a+c}+\frac{1}{a+b}\right)\geq \frac{9}{2}\\([b+c]+[a+c]+[a+b])\left(\frac{1}{b+c}+\frac{1}{a+c}+\frac{...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
Use AM > HM on $\frac{a+b+c}{a+b}, \frac{a+b+c}{b+c}$ and $\frac{a+b+c}{c+a}$.
By Cauchy-Schwarz $$\begin{align}\sum\_{cyc}\frac{a}{b+c}&=\sum\_{cyc}\left(\frac{a}{b+c}+1\right)-3\\ &=\sum\_{cyc}a\sum\_{cyc}\frac{1}{b+c}-3\\ &=\frac{1}{2}\sum\_{cyc}(b+c)\sum\_{cyc}\frac{1}{b+c}-3\\ &\geq\frac{1}{2}\cdot9-3=\frac{3}{2}.\end{align}$$ Done! Another way. By C-S $$\sum\limits\_{cyc}\frac{a}{b+c}=\su...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
Use AM > HM on $\frac{a+b+c}{a+b}, \frac{a+b+c}{b+c}$ and $\frac{a+b+c}{c+a}$.
\begin{eqnarray\*} % \nonumber to remove numbering (before each equation) && \frac{x}{y+z}+\frac{y}{z+x}+\frac{z}{x+y}-\frac{3}{2}\\ &=& \frac{2(x^3+y^3+z^3)-(x^2y+xy^2+y^2z+yz^2+z^2x+zx^2)}{2 (x + y) (x + z) (y + z)}\\ &=& \frac{(x+y)(x-y)^2+(y+z)(y-z)^2+(z+x)(z-x)^2}{2 (x + y) (x + z) (y + z)}\geq0 \end{eqnarray...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
If we denote $s:=a+b+c$, we have to minimize $$\frac{a}{s-a}+\frac{b}{s-b}+\frac{c}{s-c}$$ for $a,b,c>0$. Using new variables $x:=a/s$, $y:=b/s$, $z:=c/s$ we can see, that this is equivalent to minimizing $$\frac{x}{1-x}+\frac{y}{1-y}+\frac{z}{1-z}$$ for $x+y+z=1$. If we notice that [the function](http://www.wolframa...
\begin{eqnarray\*} % \nonumber to remove numbering (before each equation) && \frac{x}{y+z}+\frac{y}{z+x}+\frac{z}{x+y}-\frac{3}{2}\\ &=& \frac{2(x^3+y^3+z^3)-(x^2y+xy^2+y^2z+yz^2+z^2x+zx^2)}{2 (x + y) (x + z) (y + z)}\\ &=& \frac{(x+y)(x-y)^2+(y+z)(y-z)^2+(z+x)(z-x)^2}{2 (x + y) (x + z) (y + z)}\geq0 \end{eqnarray...
855,289
How to find the limit $$\lim\_{x \rightarrow \infty} x^{2/3} -(x^2+1)^{1/3}$$ I've tried: $$\lim x^{2/3} -(x^2+1)^{1/3} = \lim x^{2/3} \cdot \lim \left[1 - \left(1+\frac{1}{x^2}\right)^{1/3} \right] = \infty \cdot 0$$ Any help, please?
2014/07/03
[ "https://math.stackexchange.com/questions/855289", "https://math.stackexchange.com", "https://math.stackexchange.com/users/161448/" ]
If we denote $s:=a+b+c$, we have to minimize $$\frac{a}{s-a}+\frac{b}{s-b}+\frac{c}{s-c}$$ for $a,b,c>0$. Using new variables $x:=a/s$, $y:=b/s$, $z:=c/s$ we can see, that this is equivalent to minimizing $$\frac{x}{1-x}+\frac{y}{1-y}+\frac{z}{1-z}$$ for $x+y+z=1$. If we notice that [the function](http://www.wolframa...
We can also use rearrangement inequality to prove it. $\displaystyle\frac a{b+c}+\frac b{a+c}+\frac c{a+b}$ $\displaystyle=\frac12\left(\left(\frac a{b+c}+\frac b{a+c}+\frac c{a+b}\right)+\left(\frac a{b+c}+\frac b{a+c}+\frac c{a+b}\right)\right)$ $\displaystyle\geq\frac12\left(\left(\frac a{a+c}+\frac b{a+b}+\...
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
You can use any sequence
The order of attributes in HTML elements doesn't matter at all. You can write the attributes in any order you like.
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
You can use any sequence
my preference is: id, name, type, class, attributes (like selected, checked), value
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
Already been answered, but my full and expanded answer is: * There is no predefined order for the attributes in terms of passing w3c validation... it's completely up to you. However, you should introduce your own standard and stick to it. If there are multiple coders working on the application they should all stick ...
You can use any sequence
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
You can use any sequence
Here's code guide from [Mark Otto](https://twitter.com/mdo) [General attribute order guide](http://codeguide.co/#html-attribute-order) He gives a general guideline to HTML CSS and JS although nothing specific about input tags alone. I think it's a good read.
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
The order of attributes in HTML elements doesn't matter at all. You can write the attributes in any order you like.
my preference is: id, name, type, class, attributes (like selected, checked), value
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
Already been answered, but my full and expanded answer is: * There is no predefined order for the attributes in terms of passing w3c validation... it's completely up to you. However, you should introduce your own standard and stick to it. If there are multiple coders working on the application they should all stick ...
The order of attributes in HTML elements doesn't matter at all. You can write the attributes in any order you like.
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
Already been answered, but my full and expanded answer is: * There is no predefined order for the attributes in terms of passing w3c validation... it's completely up to you. However, you should introduce your own standard and stick to it. If there are multiple coders working on the application they should all stick ...
my preference is: id, name, type, class, attributes (like selected, checked), value
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
Here's code guide from [Mark Otto](https://twitter.com/mdo) [General attribute order guide](http://codeguide.co/#html-attribute-order) He gives a general guideline to HTML CSS and JS although nothing specific about input tags alone. I think it's a good read.
my preference is: id, name, type, class, attributes (like selected, checked), value
2,720,618
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links. we all daily face `<input>` type tag and their attributes (`type, class, id, value, name, size, maxlength, tabindex etc..`), I just want to know * is there any specific order required for a...
2010/04/27
[ "https://Stackoverflow.com/questions/2720618", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155861/" ]
Already been answered, but my full and expanded answer is: * There is no predefined order for the attributes in terms of passing w3c validation... it's completely up to you. However, you should introduce your own standard and stick to it. If there are multiple coders working on the application they should all stick ...
Here's code guide from [Mark Otto](https://twitter.com/mdo) [General attribute order guide](http://codeguide.co/#html-attribute-order) He gives a general guideline to HTML CSS and JS although nothing specific about input tags alone. I think it's a good read.
27,736,680
How can I transform the string "Test(5)" into "Test\(5\)" dynamically? (JQuery or Javascript) I have tried this but with no success ``` var string = "Test(5)"; string = string.replace("(","\("); string = string.replace(")","\)"); console.log(string); ``` <http://jsfiddle.net/mvehkkfe/>
2015/01/02
[ "https://Stackoverflow.com/questions/27736680", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3115251/" ]
I assume you meant > > replace the string "Test(5)" into "Test\(5\)" > > > In which case: ``` var string = "Test(5)"; string = string.replace("(","\\("); string = string.replace(")","\\)"); console.log(string); ``` Escape the backslash
If you want to replace the string "Test(5)" into "Test\(5\)", you can use below code ``` var string = "Test(5)"; string = string.replace("(","\\("); string = string.replace(")","\\)"); console.log(string); ```
58,701,672
The `create_mileage(exclude=None)` function creates a new two-dimensional dictionary with data from the three-dimensional `VEHICLES` dictionary and the default `"unknown"` value. The `exclude` parameter can contain a dictionary with key-value pairs to be excluded from the new dictionary. Unfortunately this does not wo...
2019/11/04
[ "https://Stackoverflow.com/questions/58701672", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7481773/" ]
`items()` returns a `tuple`, not a `dict`: ``` def create_mileage(exclude=None): result = dict() eItems = exclude.items() for vehicle_type, vehicle_model in VEHICLES.items(): if (vehicle_type, vehicle_model) not in eItems: result[vehicle_type] = dict.fromkeys(vehicle_model, "unknown") ...
`dict.items()` returns the key:value pairs as tuples, not dictionaries. ``` print({'a':1} in {'a':1,'b':2}.items()) False print(('a',1) in {'a':1,'b':2}.items()) True ``` You're checking for `{vehicle_type: vehicle_model}`, try checking for `(vehicle_type, vehicle_model)` instead
2,602,791
I'm trying to figure out the best way to use agents to consume items from a Message Queue (Amazon SQS). Right now I have a function (process-queue-item) that grabs an items from the queue, and processes it. I want to process these items concurrently, but I can't wrap my head around how to control the agents. Basically...
2010/04/08
[ "https://Stackoverflow.com/questions/2602791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/126617/" ]
What you are asking for is a way to keep handing out tasks but with some upper limit. One simple approach to this is to use a semaphore to coordinate the limit. Here is how I would approach it: ``` (let [limit (.availableProcessors (Runtime/getRuntime)) ; note: you might choose limit 20 based upon your problem d...
Perhaps you could use the `seque` function? Quoting `(doc seque)`: ``` clojure.core/seque ([s] [n-or-q s]) Creates a queued seq on another (presumably lazy) seq s. The queued seq will produce a concrete seq in the background, and can get up to n items ahead of the consumer. n-or-q can be an integer n buffer si...
2,602,791
I'm trying to figure out the best way to use agents to consume items from a Message Queue (Amazon SQS). Right now I have a function (process-queue-item) that grabs an items from the queue, and processes it. I want to process these items concurrently, but I can't wrap my head around how to control the agents. Basically...
2010/04/08
[ "https://Stackoverflow.com/questions/2602791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/126617/" ]
``` (let [switch (atom true) ; a switch to stop workers workers (doall (repeatedly 20 ; 20 workers pulling and processing items from SQS #(future (while @switch (retrieve item from Amazon SQS and process)))))] (Thread/sleep 100000) ; arbitrary rul...
What you are asking for is a way to keep handing out tasks but with some upper limit. One simple approach to this is to use a semaphore to coordinate the limit. Here is how I would approach it: ``` (let [limit (.availableProcessors (Runtime/getRuntime)) ; note: you might choose limit 20 based upon your problem d...
2,602,791
I'm trying to figure out the best way to use agents to consume items from a Message Queue (Amazon SQS). Right now I have a function (process-queue-item) that grabs an items from the queue, and processes it. I want to process these items concurrently, but I can't wrap my head around how to control the agents. Basically...
2010/04/08
[ "https://Stackoverflow.com/questions/2602791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/126617/" ]
What you are asking for is a way to keep handing out tasks but with some upper limit. One simple approach to this is to use a semaphore to coordinate the limit. Here is how I would approach it: ``` (let [limit (.availableProcessors (Runtime/getRuntime)) ; note: you might choose limit 20 based upon your problem d...
Not sure how idiomatic this is, as I'm still a newbie with the language, but the following solution works for me: ``` (let [number-of-messages-per-time 2 await-timeout 1000] (doseq [p-messages (partition number-of-messages-per-time messages)] (let [agents (map agent p-messages)] (doseq [a agents] (se...
2,602,791
I'm trying to figure out the best way to use agents to consume items from a Message Queue (Amazon SQS). Right now I have a function (process-queue-item) that grabs an items from the queue, and processes it. I want to process these items concurrently, but I can't wrap my head around how to control the agents. Basically...
2010/04/08
[ "https://Stackoverflow.com/questions/2602791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/126617/" ]
``` (let [switch (atom true) ; a switch to stop workers workers (doall (repeatedly 20 ; 20 workers pulling and processing items from SQS #(future (while @switch (retrieve item from Amazon SQS and process)))))] (Thread/sleep 100000) ; arbitrary rul...
Perhaps you could use the `seque` function? Quoting `(doc seque)`: ``` clojure.core/seque ([s] [n-or-q s]) Creates a queued seq on another (presumably lazy) seq s. The queued seq will produce a concrete seq in the background, and can get up to n items ahead of the consumer. n-or-q can be an integer n buffer si...
2,602,791
I'm trying to figure out the best way to use agents to consume items from a Message Queue (Amazon SQS). Right now I have a function (process-queue-item) that grabs an items from the queue, and processes it. I want to process these items concurrently, but I can't wrap my head around how to control the agents. Basically...
2010/04/08
[ "https://Stackoverflow.com/questions/2602791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/126617/" ]
Perhaps you could use the `seque` function? Quoting `(doc seque)`: ``` clojure.core/seque ([s] [n-or-q s]) Creates a queued seq on another (presumably lazy) seq s. The queued seq will produce a concrete seq in the background, and can get up to n items ahead of the consumer. n-or-q can be an integer n buffer si...
Not sure how idiomatic this is, as I'm still a newbie with the language, but the following solution works for me: ``` (let [number-of-messages-per-time 2 await-timeout 1000] (doseq [p-messages (partition number-of-messages-per-time messages)] (let [agents (map agent p-messages)] (doseq [a agents] (se...
2,602,791
I'm trying to figure out the best way to use agents to consume items from a Message Queue (Amazon SQS). Right now I have a function (process-queue-item) that grabs an items from the queue, and processes it. I want to process these items concurrently, but I can't wrap my head around how to control the agents. Basically...
2010/04/08
[ "https://Stackoverflow.com/questions/2602791", "https://Stackoverflow.com", "https://Stackoverflow.com/users/126617/" ]
``` (let [switch (atom true) ; a switch to stop workers workers (doall (repeatedly 20 ; 20 workers pulling and processing items from SQS #(future (while @switch (retrieve item from Amazon SQS and process)))))] (Thread/sleep 100000) ; arbitrary rul...
Not sure how idiomatic this is, as I'm still a newbie with the language, but the following solution works for me: ``` (let [number-of-messages-per-time 2 await-timeout 1000] (doseq [p-messages (partition number-of-messages-per-time messages)] (let [agents (map agent p-messages)] (doseq [a agents] (se...
26,487,801
**What's been done so far:** * I was on Django 1.5 and upgraded to 1.6 (cannot go higher as we are on Python 2.6) and this did not solve the problem. * I have researched this issue to death and cannot seem to find a definite answer. Looking through the Django Project Bug Tracker, I have seen similar issues but none se...
2014/10/21
[ "https://Stackoverflow.com/questions/26487801", "https://Stackoverflow.com", "https://Stackoverflow.com/users/898635/" ]
Use [NSSound](https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSSound_Class/) instead: Get list of audio devices with `CoreAudio` functions. Then get the devices' unique identifiers: ``` //... address.mSelector = kAudioDevicePropertyDeviceUID; CFStringRef uid = NULL; UInt3...
Opened a DTS case with Apple and they said it was not possible (as i need to support 10.8). If you only need to support 10.9 and above AVPlayerAudioDeviceSupport should work.
53,783,166
I'm getting an error on iOS only: ``` TypeError: undefined is not an object (evaluating 'this._callListeners.bind') This error is located at: in DrawerLayout (at DrawerView.js:161) ... ``` Project dependencies: ``` "dependencies": { "@babel/runtime": "7.2.0", "@babel/plugin-proposal-async-generator-fun...
2018/12/14
[ "https://Stackoverflow.com/questions/53783166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1366972/" ]
The [`calloc`](https://en.cppreference.com/w/c/memory/calloc) sets all bytes of the allocated memory to zero. As it happens, that's also the valid [IEEE754](https://en.wikipedia.org/wiki/IEEE_754) (which is the most common format for floating point values on computers) representation for `0.0`. IIRC there's no part o...
All bytes zero for a `float` does not mean `0.0`. From [here](https://en.cppreference.com/w/c/memory/calloc) > > Initialization to all bits zero does not guarantee that a floating-point or a pointer would be initialized to 0.0 and the null pointer value, respectively (although that is true on all common platforms) >...
53,783,166
I'm getting an error on iOS only: ``` TypeError: undefined is not an object (evaluating 'this._callListeners.bind') This error is located at: in DrawerLayout (at DrawerView.js:161) ... ``` Project dependencies: ``` "dependencies": { "@babel/runtime": "7.2.0", "@babel/plugin-proposal-async-generator-fun...
2018/12/14
[ "https://Stackoverflow.com/questions/53783166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1366972/" ]
The [`calloc`](https://en.cppreference.com/w/c/memory/calloc) sets all bytes of the allocated memory to zero. As it happens, that's also the valid [IEEE754](https://en.wikipedia.org/wiki/IEEE_754) (which is the most common format for floating point values on computers) representation for `0.0`. IIRC there's no part o...
C11 documentation has this explicit notice for `calloc` > > Footnotes > > > 296. Note that this need not be the same as the representation of > floating-point zero or a null pointer constant. > > > In practice, all zero bits is a (or the) representation for 0.0 on all major platforms as they use IEEE 754 repres...
53,783,166
I'm getting an error on iOS only: ``` TypeError: undefined is not an object (evaluating 'this._callListeners.bind') This error is located at: in DrawerLayout (at DrawerView.js:161) ... ``` Project dependencies: ``` "dependencies": { "@babel/runtime": "7.2.0", "@babel/plugin-proposal-async-generator-fun...
2018/12/14
[ "https://Stackoverflow.com/questions/53783166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1366972/" ]
The [`calloc`](https://en.cppreference.com/w/c/memory/calloc) sets all bytes of the allocated memory to zero. As it happens, that's also the valid [IEEE754](https://en.wikipedia.org/wiki/IEEE_754) (which is the most common format for floating point values on computers) representation for `0.0`. IIRC there's no part o...
[C standard](http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf) deliberately avoids specifying the way that `float` and `double` are represented: > > 6.2.6.1 General > > > 1. The representations of all types are unspecified except as stated in this subclause. > > > Therefore, you have no guarantee that ...
53,783,166
I'm getting an error on iOS only: ``` TypeError: undefined is not an object (evaluating 'this._callListeners.bind') This error is located at: in DrawerLayout (at DrawerView.js:161) ... ``` Project dependencies: ``` "dependencies": { "@babel/runtime": "7.2.0", "@babel/plugin-proposal-async-generator-fun...
2018/12/14
[ "https://Stackoverflow.com/questions/53783166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1366972/" ]
C11 documentation has this explicit notice for `calloc` > > Footnotes > > > 296. Note that this need not be the same as the representation of > floating-point zero or a null pointer constant. > > > In practice, all zero bits is a (or the) representation for 0.0 on all major platforms as they use IEEE 754 repres...
All bytes zero for a `float` does not mean `0.0`. From [here](https://en.cppreference.com/w/c/memory/calloc) > > Initialization to all bits zero does not guarantee that a floating-point or a pointer would be initialized to 0.0 and the null pointer value, respectively (although that is true on all common platforms) >...
53,783,166
I'm getting an error on iOS only: ``` TypeError: undefined is not an object (evaluating 'this._callListeners.bind') This error is located at: in DrawerLayout (at DrawerView.js:161) ... ``` Project dependencies: ``` "dependencies": { "@babel/runtime": "7.2.0", "@babel/plugin-proposal-async-generator-fun...
2018/12/14
[ "https://Stackoverflow.com/questions/53783166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1366972/" ]
[C standard](http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf) deliberately avoids specifying the way that `float` and `double` are represented: > > 6.2.6.1 General > > > 1. The representations of all types are unspecified except as stated in this subclause. > > > Therefore, you have no guarantee that ...
All bytes zero for a `float` does not mean `0.0`. From [here](https://en.cppreference.com/w/c/memory/calloc) > > Initialization to all bits zero does not guarantee that a floating-point or a pointer would be initialized to 0.0 and the null pointer value, respectively (although that is true on all common platforms) >...
53,783,166
I'm getting an error on iOS only: ``` TypeError: undefined is not an object (evaluating 'this._callListeners.bind') This error is located at: in DrawerLayout (at DrawerView.js:161) ... ``` Project dependencies: ``` "dependencies": { "@babel/runtime": "7.2.0", "@babel/plugin-proposal-async-generator-fun...
2018/12/14
[ "https://Stackoverflow.com/questions/53783166", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1366972/" ]
C11 documentation has this explicit notice for `calloc` > > Footnotes > > > 296. Note that this need not be the same as the representation of > floating-point zero or a null pointer constant. > > > In practice, all zero bits is a (or the) representation for 0.0 on all major platforms as they use IEEE 754 repres...
[C standard](http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf) deliberately avoids specifying the way that `float` and `double` are represented: > > 6.2.6.1 General > > > 1. The representations of all types are unspecified except as stated in this subclause. > > > Therefore, you have no guarantee that ...
72,523,117
Say I have a dataframe that ***looks*** like this (wasn't sure how to actually rep. this data, given its size): ``` minutes <- seq(0,585, by = 15) salinity <- as.numeric(sample(x = 29:55, size = 40, replace = TRUE)) site <- c(1, 2, 3, ...etc.) year <- c(2020, 2019, ...etc.) season <- c("Dry", "Wet") df <- cbind.dat...
2022/06/06
[ "https://Stackoverflow.com/questions/72523117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16401542/" ]
This error comes from Vue Language Features (Volar). [issue page](https://github.com/johnsoncodehk/volar/issues/1405) Rolling back the volar plug-in to version 0.36.1 can solve this problem.
Just change the volar version **0.37.2 to 0.36.0** and everyting will be fine. Note: I spent coulple of hours and didn't find the exact solution and then simply tried this; then everything worked fine. This link helped to get some idea regarading this issue: <https://github.com/microsoft/TypeScript/issues/28631#issue...
72,523,117
Say I have a dataframe that ***looks*** like this (wasn't sure how to actually rep. this data, given its size): ``` minutes <- seq(0,585, by = 15) salinity <- as.numeric(sample(x = 29:55, size = 40, replace = TRUE)) site <- c(1, 2, 3, ...etc.) year <- c(2020, 2019, ...etc.) season <- c("Dry", "Wet") df <- cbind.dat...
2022/06/06
[ "https://Stackoverflow.com/questions/72523117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16401542/" ]
This error comes from Vue Language Features (Volar). [issue page](https://github.com/johnsoncodehk/volar/issues/1405) Rolling back the volar plug-in to version 0.36.1 can solve this problem.
According to the [issue page](https://github.com/johnsoncodehk/volar/issues/1405), add this config to your tsconfig.json file: ```json // tsconfig.json { "vueCompilerOptions": { "experimentalSuppressInvalidJsxElementTypeErrors": true } } ``` update: the volar have updated to version v0.37.3 to resolve this i...
72,523,117
Say I have a dataframe that ***looks*** like this (wasn't sure how to actually rep. this data, given its size): ``` minutes <- seq(0,585, by = 15) salinity <- as.numeric(sample(x = 29:55, size = 40, replace = TRUE)) site <- c(1, 2, 3, ...etc.) year <- c(2020, 2019, ...etc.) season <- c("Dry", "Wet") df <- cbind.dat...
2022/06/06
[ "https://Stackoverflow.com/questions/72523117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16401542/" ]
This error comes from Vue Language Features (Volar). [issue page](https://github.com/johnsoncodehk/volar/issues/1405) Rolling back the volar plug-in to version 0.36.1 can solve this problem.
Fixed on `0.37.3`, so you don't have to alter your config or anything - <https://github.com/johnsoncodehk/volar/issues/1405#issuecomment-1149618450>
72,523,117
Say I have a dataframe that ***looks*** like this (wasn't sure how to actually rep. this data, given its size): ``` minutes <- seq(0,585, by = 15) salinity <- as.numeric(sample(x = 29:55, size = 40, replace = TRUE)) site <- c(1, 2, 3, ...etc.) year <- c(2020, 2019, ...etc.) season <- c("Dry", "Wet") df <- cbind.dat...
2022/06/06
[ "https://Stackoverflow.com/questions/72523117", "https://Stackoverflow.com", "https://Stackoverflow.com/users/16401542/" ]
Just change the volar version **0.37.2 to 0.36.0** and everyting will be fine. Note: I spent coulple of hours and didn't find the exact solution and then simply tried this; then everything worked fine. This link helped to get some idea regarading this issue: <https://github.com/microsoft/TypeScript/issues/28631#issue...
According to the [issue page](https://github.com/johnsoncodehk/volar/issues/1405), add this config to your tsconfig.json file: ```json // tsconfig.json { "vueCompilerOptions": { "experimentalSuppressInvalidJsxElementTypeErrors": true } } ``` update: the volar have updated to version v0.37.3 to resolve this i...