qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
420,176
From James Joyce's Ulysses: > > By inserting the barrel of an arruginated male key in the hole of an unstable female lock, obtaining a purchase on the bow of the key and turning its wards from right to left, withdrawing a bolt from its staple, pulling inward spasmodically an obsolescent unhinged door and revealing an...
2017/11/28
[ "https://english.stackexchange.com/questions/420176", "https://english.stackexchange.com", "https://english.stackexchange.com/users/113589/" ]
I don't know if it is legitimate English, but in Italian *"arrugginito"* means "rusty" and *"ruggine"* means "rust" (=oxidized iron). Referred to a key, it must mean rusty, or "working with lot of friction". The etymology is, either from Latin ["*rubiginem*"](http://www.etimo.it/?term=ruggine) (*rubeus*=red) or ["*ae...
In an 1888 [Bible with commentary](https://books.google.com/books?id=slUVAAAAYAAJ&pg=PA79&dq=%22aeruginat%22&hl=en&sa=X&ved=0ahUKEwiV2_zj3-HXAhVQY98KHQgzB4UQ6AEIMjAC#v=onepage&q=%22aeruginat%22&f=false)1 it is stated concerning Ecclesiasticus 12:10 of the King James version: > > Rather, for as the bronze is covered ...
420,176
From James Joyce's Ulysses: > > By inserting the barrel of an arruginated male key in the hole of an unstable female lock, obtaining a purchase on the bow of the key and turning its wards from right to left, withdrawing a bolt from its staple, pulling inward spasmodically an obsolescent unhinged door and revealing an...
2017/11/28
[ "https://english.stackexchange.com/questions/420176", "https://english.stackexchange.com", "https://english.stackexchange.com/users/113589/" ]
I don't know if it is legitimate English, but in Italian *"arrugginito"* means "rusty" and *"ruggine"* means "rust" (=oxidized iron). Referred to a key, it must mean rusty, or "working with lot of friction". The etymology is, either from Latin ["*rubiginem*"](http://www.etimo.it/?term=ruggine) (*rubeus*=red) or ["*ae...
Another possible interpretation, according to the following [source](https://www.goodreads.com/topic/show/2258286-17-ithaca), is from the term [ruga](https://www.merriam-webster.com/dictionary/ruga), an anatomical term meaning wrinkle, on the idea of a "corrugated" old key: > > * I have no literary support for this,...
420,176
From James Joyce's Ulysses: > > By inserting the barrel of an arruginated male key in the hole of an unstable female lock, obtaining a purchase on the bow of the key and turning its wards from right to left, withdrawing a bolt from its staple, pulling inward spasmodically an obsolescent unhinged door and revealing an...
2017/11/28
[ "https://english.stackexchange.com/questions/420176", "https://english.stackexchange.com", "https://english.stackexchange.com/users/113589/" ]
Nice one, as the word seems indeed obscure at best. A bit of googling revealed a [wordsmith.org discussion](https://wordsmith.org/board/ubbthreads.php?ubb=showflat&Number=151242) where user *Homo Loquens* mentions finding a definition: > > arruginated on the pattern of rugine + ar- prefix variant spelling of ad- ass...
In an 1888 [Bible with commentary](https://books.google.com/books?id=slUVAAAAYAAJ&pg=PA79&dq=%22aeruginat%22&hl=en&sa=X&ved=0ahUKEwiV2_zj3-HXAhVQY98KHQgzB4UQ6AEIMjAC#v=onepage&q=%22aeruginat%22&f=false)1 it is stated concerning Ecclesiasticus 12:10 of the King James version: > > Rather, for as the bronze is covered ...
420,176
From James Joyce's Ulysses: > > By inserting the barrel of an arruginated male key in the hole of an unstable female lock, obtaining a purchase on the bow of the key and turning its wards from right to left, withdrawing a bolt from its staple, pulling inward spasmodically an obsolescent unhinged door and revealing an...
2017/11/28
[ "https://english.stackexchange.com/questions/420176", "https://english.stackexchange.com", "https://english.stackexchange.com/users/113589/" ]
Taking a look at several languages (Basque , Catalan, Italian, Esperanto, Romansh, etc) as well as original Latin I would say "grooved": a *ruga* is a wrinkle or furrow (implying a worn-in depression) from the Latin, so for me the most apposite meaning for an *arruginated* key indicates a key worn with use so as to dev...
In line with previous entries, I suggest Joyce coined 'arruginated' from the Italian 'arruginito' meaning 'rusty' which, in turn implies 'out of use'. That fits - no pun intended - the sexual context of the word's use as male key, which it is, inserted in a female lock, ditto. A clever, metaphorical play on words once ...
420,176
From James Joyce's Ulysses: > > By inserting the barrel of an arruginated male key in the hole of an unstable female lock, obtaining a purchase on the bow of the key and turning its wards from right to left, withdrawing a bolt from its staple, pulling inward spasmodically an obsolescent unhinged door and revealing an...
2017/11/28
[ "https://english.stackexchange.com/questions/420176", "https://english.stackexchange.com", "https://english.stackexchange.com/users/113589/" ]
Nice one, as the word seems indeed obscure at best. A bit of googling revealed a [wordsmith.org discussion](https://wordsmith.org/board/ubbthreads.php?ubb=showflat&Number=151242) where user *Homo Loquens* mentions finding a definition: > > arruginated on the pattern of rugine + ar- prefix variant spelling of ad- ass...
Taking a look at several languages (Basque , Catalan, Italian, Esperanto, Romansh, etc) as well as original Latin I would say "grooved": a *ruga* is a wrinkle or furrow (implying a worn-in depression) from the Latin, so for me the most apposite meaning for an *arruginated* key indicates a key worn with use so as to dev...
1,338,955
I am trying to create a software in vb.net that can read autocad files and get the dimensions out of it. How can i do that. If anyone can help me it will be very helpful and will really appreciate them. Thank you
2009/08/27
[ "https://Stackoverflow.com/questions/1338955", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Here's the AutoCAD .Net developer's API Guide: <http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html> Here's a link to their developer center: <http://usa.autodesk.com/adsk/servlet/index?id=1911627&siteID=123112> Here's a couple of forums for developer's using the .Net API's: <http://...
You can fine the getting started tutorials and respective code for AutoCAD.Net at following link: [AutoCAD.Net Tutorials & Sample Code](http://www.caddsoftsolutions.com/Tutorials.htm)
35,665,825
I currently have a very large array of permutations, which is currently using a significant amount of RAM. This is the current code I have which SHOULD: Count all but the occurrences where more than one '1' exists or three '2's exist in a row. ``` arr = [*1..3].repeated_permutation(30).to_a; count = 0 arr.each do |...
2016/02/27
[ "https://Stackoverflow.com/questions/35665825", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5989095/" ]
I am not sure what problem you try to solve. If your code is just an example for a more complex problem and you really need to check programatically every single permumation, then you might want to experiment with [`lazy`](http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-lazy): ``` [*1..3].repeated_permutation(...
**NB** This is an incomplete answer, but I think the idea might give a push to the proper solution. I can think of a following approach: let’s represent each permutation as *a value in ternary number base*, padded by zeroes: ``` 1 = 000..00001 2 = 000..00002 3 = 000..00010 4 = 000..00011 5 = 000..00012 ... ``` Now...
43,136,392
I have a problem with fineuploader in the `OnComplete()` function when I try to call "customer" value inside it. I'm using Angular and TypeScript for frontside. The "customer" value is undefined because it is not found in the `onComplete()` bloc (no auto-completion). So how can I call my `importCustomers` function? an...
2017/03/31
[ "https://Stackoverflow.com/questions/43136392", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3655898/" ]
You have an issue with `this` scoping ``` ngAfterViewInit(){ var self = this; //<-- assign this before setting the new Uploader class this.uploader = new Uploader({ .... self.customer.importCustomers(name); //<-- use the assigned self here } ```
Use arrow functions since they [have no binding of `this`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions): ``` onComplete = (id, name, responseJSON) => { if(responseJSON.success) { console.log("Upload done") this.customer.importCustomers(name) } } ``` Alterna...
73,015,147
If we want to initialize an reference with an different type, we need to make it const (const type\*) so that an temporary can be generated implicit and the reference binded to with. Alternativaly, we can use r-value references and achieve the same [1]: > > Rvalue references can be used to extend the lifetimes of tem...
2022/07/17
[ "https://Stackoverflow.com/questions/73015147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19464245/" ]
The reason why ``` int x = 10; int *pX = &x; const int* &&ref = pX; //compiler error (why?) ``` doesn't compile is for the same reason as why ``` int x = 10; int&& y = x; // doesn't compile const int&& z =x; // doesn't compile ``` That's cause you try to assign an l-value reference to an r-value reference. That's...
There is a big difference between: ``` const int *x ``` which is a pointer to a constant `int`, and a ``` int * const x ``` which is a constant pointer to an `int`. This is something completely different. For starters, a pointer to an `int` doesn't have many implicit conversions, so it's not like it can be impli...
73,015,147
If we want to initialize an reference with an different type, we need to make it const (const type\*) so that an temporary can be generated implicit and the reference binded to with. Alternativaly, we can use r-value references and achieve the same [1]: > > Rvalue references can be used to extend the lifetimes of tem...
2022/07/17
[ "https://Stackoverflow.com/questions/73015147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19464245/" ]
As you've noted, when an lvalue is used in a context that requires a different type, C-family languages will convert the referenced value to a temporary rvalue of the required type if that's possible. Also as noted, in the specific case of reference initialization, rvalue temporaries can be given longer lives; the com...
There is a big difference between: ``` const int *x ``` which is a pointer to a constant `int`, and a ``` int * const x ``` which is a constant pointer to an `int`. This is something completely different. For starters, a pointer to an `int` doesn't have many implicit conversions, so it's not like it can be impli...
73,015,147
If we want to initialize an reference with an different type, we need to make it const (const type\*) so that an temporary can be generated implicit and the reference binded to with. Alternativaly, we can use r-value references and achieve the same [1]: > > Rvalue references can be used to extend the lifetimes of tem...
2022/07/17
[ "https://Stackoverflow.com/questions/73015147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19464245/" ]
The standard has a concept of two types being [*reference-related*](https://eel.is/c++draft/dcl.init.ref#4). This is fulfilled by two types being [*similar*](https://eel.is/c++draft/conv.qual), which basically means if they are the same type with the same number of pointers but possibly different cv-qualifiers (e.g., `...
There is a big difference between: ``` const int *x ``` which is a pointer to a constant `int`, and a ``` int * const x ``` which is a constant pointer to an `int`. This is something completely different. For starters, a pointer to an `int` doesn't have many implicit conversions, so it's not like it can be impli...
73,015,147
If we want to initialize an reference with an different type, we need to make it const (const type\*) so that an temporary can be generated implicit and the reference binded to with. Alternativaly, we can use r-value references and achieve the same [1]: > > Rvalue references can be used to extend the lifetimes of tem...
2022/07/17
[ "https://Stackoverflow.com/questions/73015147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19464245/" ]
As you've noted, when an lvalue is used in a context that requires a different type, C-family languages will convert the referenced value to a temporary rvalue of the required type if that's possible. Also as noted, in the specific case of reference initialization, rvalue temporaries can be given longer lives; the com...
The reason why ``` int x = 10; int *pX = &x; const int* &&ref = pX; //compiler error (why?) ``` doesn't compile is for the same reason as why ``` int x = 10; int&& y = x; // doesn't compile const int&& z =x; // doesn't compile ``` That's cause you try to assign an l-value reference to an r-value reference. That's...
73,015,147
If we want to initialize an reference with an different type, we need to make it const (const type\*) so that an temporary can be generated implicit and the reference binded to with. Alternativaly, we can use r-value references and achieve the same [1]: > > Rvalue references can be used to extend the lifetimes of tem...
2022/07/17
[ "https://Stackoverflow.com/questions/73015147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19464245/" ]
The standard has a concept of two types being [*reference-related*](https://eel.is/c++draft/dcl.init.ref#4). This is fulfilled by two types being [*similar*](https://eel.is/c++draft/conv.qual), which basically means if they are the same type with the same number of pointers but possibly different cv-qualifiers (e.g., `...
The reason why ``` int x = 10; int *pX = &x; const int* &&ref = pX; //compiler error (why?) ``` doesn't compile is for the same reason as why ``` int x = 10; int&& y = x; // doesn't compile const int&& z =x; // doesn't compile ``` That's cause you try to assign an l-value reference to an r-value reference. That's...
73,015,147
If we want to initialize an reference with an different type, we need to make it const (const type\*) so that an temporary can be generated implicit and the reference binded to with. Alternativaly, we can use r-value references and achieve the same [1]: > > Rvalue references can be used to extend the lifetimes of tem...
2022/07/17
[ "https://Stackoverflow.com/questions/73015147", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19464245/" ]
The standard has a concept of two types being [*reference-related*](https://eel.is/c++draft/dcl.init.ref#4). This is fulfilled by two types being [*similar*](https://eel.is/c++draft/conv.qual), which basically means if they are the same type with the same number of pointers but possibly different cv-qualifiers (e.g., `...
As you've noted, when an lvalue is used in a context that requires a different type, C-family languages will convert the referenced value to a temporary rvalue of the required type if that's possible. Also as noted, in the specific case of reference initialization, rvalue temporaries can be given longer lives; the com...
67,048,472
I have created a new subscription account with subscription in azure.portal.com. Can please someone guide me how can I get write access for my account. I am getting below access error: [Access Issue Error](https://i.stack.imgur.com/McYt7.png)
2021/04/11
[ "https://Stackoverflow.com/questions/67048472", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7521639/" ]
Your JSON string represents an object with metadata and notification properties. So, you should make a root object like this: ``` public class RootObj { public Metadata metadata { get; set; } public Notification notification { get; set; } } ``` And use like this: ``` RootObj myObj = JsonConv...
If you need to parse only the metadata part then you can use the `JObect` for that: ```cs var semiParsedJson = JObject.Parse(json); var metaRaw = semiParsedJson["metadata"]; if(metaRaw == null) return; var meta = metaRaw.ToObject<metadata>(); ```
564,060
I'm not sure how to title this question, any suggestions are welcome. I want to analyze [this circut](https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWEDoE4DMAWATKhl0A2AdnVW0gA4RN1ka6EBTAWjDACgAnG1Q8QpF79smIULDwOWEAC8mAOyZcWKfhDDRiYWgmyUw5A-GytiUENljwbtqpmTR1HWcnIh0RN9kvEfP+SUVNQ4Ad28PQmpaHyJqbA4AFwjDH...
2021/05/08
[ "https://electronics.stackexchange.com/questions/564060", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/148901/" ]
This part does two things: first, when no current is pulled from the base of Q1, R1 supplies current to turn Q1 on, roughly to the point where the emitter of Q1 is one volt below the collector; second, it presents a load to whatever is pulling current from Q1's base. I can't say what that load is because it depends on ...
The zener —for reasonable currents, with reasonable linearity— *forces* the voltage at the lower transistor's emitter to be its zener voltage. And thus it forces the base voltage to be 0.7V higher. And the potentiometer scales that up. That correct "upscaling" depends on the output voltage to be close-loop controlled ...
564,060
I'm not sure how to title this question, any suggestions are welcome. I want to analyze [this circut](https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWEDoE4DMAWATKhl0A2AdnVW0gA4RN1ka6EBTAWjDACgAnG1Q8QpF79smIULDwOWEAC8mAOyZcWKfhDDRiYWgmyUw5A-GytiUENljwbtqpmTR1HWcnIh0RN9kvEfP+SUVNQ4Ad28PQmpaHyJqbA4AFwjDH...
2021/05/08
[ "https://electronics.stackexchange.com/questions/564060", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/148901/" ]
Here's the first schematic, redrawn: ![schematic](https://i.stack.imgur.com/ah1kM.png) [simulate this circuit](/plugins/schematics?image=http%3a%2f%2fi.stack.imgur.com%2fah1kM.png) – Schematic created using [CircuitLab](https://www.circuitlab.com/) \$Q\_1\$ is a *pass* transistor and \$R\_1\$ provides the base curre...
The zener —for reasonable currents, with reasonable linearity— *forces* the voltage at the lower transistor's emitter to be its zener voltage. And thus it forces the base voltage to be 0.7V higher. And the potentiometer scales that up. That correct "upscaling" depends on the output voltage to be close-loop controlled ...
564,060
I'm not sure how to title this question, any suggestions are welcome. I want to analyze [this circut](https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWEDoE4DMAWATKhl0A2AdnVW0gA4RN1ka6EBTAWjDACgAnG1Q8QpF79smIULDwOWEAC8mAOyZcWKfhDDRiYWgmyUw5A-GytiUENljwbtqpmTR1HWcnIh0RN9kvEfP+SUVNQ4Ad28PQmpaHyJqbA4AFwjDH...
2021/05/08
[ "https://electronics.stackexchange.com/questions/564060", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/148901/" ]
Here's the first schematic, redrawn: ![schematic](https://i.stack.imgur.com/ah1kM.png) [simulate this circuit](/plugins/schematics?image=http%3a%2f%2fi.stack.imgur.com%2fah1kM.png) – Schematic created using [CircuitLab](https://www.circuitlab.com/) \$Q\_1\$ is a *pass* transistor and \$R\_1\$ provides the base curre...
This part does two things: first, when no current is pulled from the base of Q1, R1 supplies current to turn Q1 on, roughly to the point where the emitter of Q1 is one volt below the collector; second, it presents a load to whatever is pulling current from Q1's base. I can't say what that load is because it depends on ...
72,097,863
Good day, everyone! I'm reading and processing a very huge json file with the Python Panda module; here's my code: ``` import pandas as pd file='PeopleDataLabs_416M.json/PeopleDataLabs_416M.json' chunks = pd.read_json(file, lines=True, chunksize = 100) for c in chunks: print(c) ``` This prints all values and ke...
2022/05/03
[ "https://Stackoverflow.com/questions/72097863", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2993106/" ]
The content is left-aligned by the flex container, not by `text-align`. You should be able to fix it by adding this to the Breadcrumbs component: ``` <Breadcrumbs separator={<NavigateNextIcon fontSize="small" />} aria-label="breadcrumb" sx={{ "& ol": { justifyContent: "center", margin: "auto" ...
Try `style={{textAlign:"center" }}` in the Card tag.
24,184,811
Sometimes the value of a variable accessed within the control-flow of a program cannot possibly have any effect on a its output. For example: ``` global var_1 global var_2 start program hello(var_3, var_4) if (var_2 < 0) then save-log-to-disk (var_1, var_3, var_4) end-if return ("Hello " + var_3 +...
2014/06/12
[ "https://Stackoverflow.com/questions/24184811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1921334/" ]
The problem that you stated is undecidable in general, even for the following very narrow special case: Given a single routine P(x), where x is a parameter of type integer. Is the output of P(x) independent of the value of x, i.e., does P(0) = P(1) = P(2) = ...? We can reduce the following still undecidable version o...
I use the following algorithm: a variable is used if it is a parameter or it occurs anywhere in an expression, excluding as the LHS of an assignment. First, count the number of uses of all variables. Delete unused variables and assignments to unused variables. Repeat until no variables are deleted. This algorithm only...
24,184,811
Sometimes the value of a variable accessed within the control-flow of a program cannot possibly have any effect on a its output. For example: ``` global var_1 global var_2 start program hello(var_3, var_4) if (var_2 < 0) then save-log-to-disk (var_1, var_3, var_4) end-if return ("Hello " + var_3 +...
2014/06/12
[ "https://Stackoverflow.com/questions/24184811", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1921334/" ]
Pachelbel has discussed the fact that you cannot do this perfectly. OK, I'm an engineer, I'm willing to accept some dirt in my answer. The classic way to answer you question is to do *dataflow* tracing from program outputs back to program inputs. A *dataflow* is the connection of a program assignment (or sideeffect) t...
I use the following algorithm: a variable is used if it is a parameter or it occurs anywhere in an expression, excluding as the LHS of an assignment. First, count the number of uses of all variables. Delete unused variables and assignments to unused variables. Repeat until no variables are deleted. This algorithm only...
66,595,960
I'm trying to display data passed to a dialog component using \*ngFor. I'm passing data like this ``` const columnNames=['firstName', 'lastName','userName']; this.dialog.open(DatatableAdvancedSearchComponent,{ width: '250px', data: {columnNames:columnNames} }); ``` and I'm trying to acces...
2021/03/12
[ "https://Stackoverflow.com/questions/66595960", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14653021/" ]
You need to use [`Future.traverse`](https://www.scala-lang.org/api/current/scala/concurrent/Future$.html#traverse%5BA,B,M%5BX%5D%3C:IterableOnce%5BX%5D%5D(in:M%5BA%5D)(fn:A=%3Escala.concurrent.Future%5BB%5D)(implicitbf:scala.collection.BuildFrom%5BM%5BA%5D,B,M%5BB%5D%5D,implicitexecutor:scala.concurrent.ExecutionContex...
Thanks to @Ivan Kurchenko. The solution worked. I am posting my final version of the code that worked. ``` object FileReader { def processFiles(files: Seq[File]) = { val execService = Executors.newFixedThreadPool(5) implicit val execContext = ExecutionContext.fromExecutorService(execService) ...
70,718,550
I have 100k records in a dataframe [![enter image description here](https://i.stack.imgur.com/Zze5F.png)](https://i.stack.imgur.com/Zze5F.png) and want to find out different prices for the same product for the same invoice and different invoices along with the store. data snippet of the data mentioned expected outpu...
2022/01/15
[ "https://Stackoverflow.com/questions/70718550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12157642/" ]
``` {Object.entries(data).map(([key, val]) =>{ return val.map(elm =>{ return ( <TextField label={elm.label} value={elm.value} name={elm.name} /> ) }) })} ```
Map should return an element on each iteration. In case you don't want to display return `null` else return a `react node`. ```js <Grid item xs={12} md={4}> {Object.entries(data).map(arr => { Array.isArray(arr) ? arr.map(elm => { return (<TextField label={elm.label} value={elm.value} name={elm....
43,798
I have a very long bullet list with a lot of depth to the point that it gets very close to the far right of the page. Then I can no longer add any more bullets to the right. I tried to increase the width of the page to see if I could add more depth to my list to the right, but I still can't. Is there a way to add mo...
2013/05/03
[ "https://webapps.stackexchange.com/questions/43798", "https://webapps.stackexchange.com", "https://webapps.stackexchange.com/users/39479/" ]
Here's a workaround and I know it's hacky. If you're desperate like I was, it maybe worth considering... Insert a table on a nested bullet point and you get to use 9 levels in that table. As you go deeper, you can insert another table and get another 9 levels. There doesn't seem to be a limit to how many tables you ne...
Unfortunately, Google Docs does not offer nested bullets deeper than nine levels. The best you can probably do is to adjust your tabs in the ruler at the top of your document for those last few levels. ![ruler](https://i.stack.imgur.com/wHfNt.png) Grab that downward pointing arrow and slide it to the left. That'll l...
18,304
I am designing a system which turns on at 45 degC. I want to place a device in series with my circuit that ideally has infinite resistance below 45 degC and then 0 resistance above 45 degC. I guess the closest I can get to this ideal is using an NTC thermistor but I am struggling to get my head around how to select a ...
2011/08/16
[ "https://electronics.stackexchange.com/questions/18304", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/4096/" ]
What you really need is a [thermal switch](http://uk.rs-online.com/web/p/thermal-switches/0339291A/). NTC thermistors are not intended to have such sharp characteristics as you have found-out. Your calculated B value is around 10 times the typical value.
A somewhat sledgehammer solution (though inexpensive and uncomplicated imho) would be to read whatever temperature sensor you want with the ADC of a microcontroller, control the base of a transistor with the pin of an microcontroller that is running software to "switch" at a given temperature reading. With this approac...
18,304
I am designing a system which turns on at 45 degC. I want to place a device in series with my circuit that ideally has infinite resistance below 45 degC and then 0 resistance above 45 degC. I guess the closest I can get to this ideal is using an NTC thermistor but I am struggling to get my head around how to select a ...
2011/08/16
[ "https://electronics.stackexchange.com/questions/18304", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/4096/" ]
What you really need is a [thermal switch](http://uk.rs-online.com/web/p/thermal-switches/0339291A/). NTC thermistors are not intended to have such sharp characteristics as you have found-out. Your calculated B value is around 10 times the typical value.
Get a LM335Z which is a temperature sensor with calibrated milivolt output in K. So 45 C = 318K which means the sensor output will be 3.18V. Plug that into an op amp as comparator with 3;18V on the second input and use the output straight into a 2N7000, optionally driving a small relay.
18,304
I am designing a system which turns on at 45 degC. I want to place a device in series with my circuit that ideally has infinite resistance below 45 degC and then 0 resistance above 45 degC. I guess the closest I can get to this ideal is using an NTC thermistor but I am struggling to get my head around how to select a ...
2011/08/16
[ "https://electronics.stackexchange.com/questions/18304", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/4096/" ]
What you really need is a [thermal switch](http://uk.rs-online.com/web/p/thermal-switches/0339291A/). NTC thermistors are not intended to have such sharp characteristics as you have found-out. Your calculated B value is around 10 times the typical value.
You can go for a fancy electronic solution with a sensor, microcontroller and a relay. But wouldn't a simple bimetal temperature switch do the trick?
18,304
I am designing a system which turns on at 45 degC. I want to place a device in series with my circuit that ideally has infinite resistance below 45 degC and then 0 resistance above 45 degC. I guess the closest I can get to this ideal is using an NTC thermistor but I am struggling to get my head around how to select a ...
2011/08/16
[ "https://electronics.stackexchange.com/questions/18304", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/4096/" ]
Get a LM335Z which is a temperature sensor with calibrated milivolt output in K. So 45 C = 318K which means the sensor output will be 3.18V. Plug that into an op amp as comparator with 3;18V on the second input and use the output straight into a 2N7000, optionally driving a small relay.
A somewhat sledgehammer solution (though inexpensive and uncomplicated imho) would be to read whatever temperature sensor you want with the ADC of a microcontroller, control the base of a transistor with the pin of an microcontroller that is running software to "switch" at a given temperature reading. With this approac...
18,304
I am designing a system which turns on at 45 degC. I want to place a device in series with my circuit that ideally has infinite resistance below 45 degC and then 0 resistance above 45 degC. I guess the closest I can get to this ideal is using an NTC thermistor but I am struggling to get my head around how to select a ...
2011/08/16
[ "https://electronics.stackexchange.com/questions/18304", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/4096/" ]
Get a LM335Z which is a temperature sensor with calibrated milivolt output in K. So 45 C = 318K which means the sensor output will be 3.18V. Plug that into an op amp as comparator with 3;18V on the second input and use the output straight into a 2N7000, optionally driving a small relay.
You can go for a fancy electronic solution with a sensor, microcontroller and a relay. But wouldn't a simple bimetal temperature switch do the trick?
58,335,456
My sub-major professor give me a question about dynamic pointer & change character! He told me that I have to use `malloc(sizeof())` and `free()` also some pointers. Please give me some hint you guys experienced! I hope I wanna get some hints.... really..... below code is hint code from professor. What should I do?...
2019/10/11
[ "https://Stackoverflow.com/questions/58335456", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12198259/" ]
Some hints: Use spaces in your includes: ``` #include <stdio.h> #include <stdlib.h> ``` The proper prototype for `main` is ``` int main(void) ``` or ``` int main(int argc, char *argv[]) ``` Always check the results of your calls: ``` for (int res = 0; res != 1;) // While bad input { res = scanf("%d", &nu...
The code works fine looks fine to me. About your question regarding `malloc()` and `free()` you are freeing all the memory you allocate, so, that is what you have to do. My only further comment would be, you do not need to cast the return value from `malloc()`. You can then replace ``` num_ptr[i] = (int*)malloc(sizeo...
5,709,185
I'm developing a WP7 app. I have a collection of BitmapImages that I load from the isolated storage. Now I want to make a movie or animated GIF from those BitmapImages, is this possible? And if yes how? An animated GIF is probably not possible because Silverlight does not work with gifs.
2011/04/18
[ "https://Stackoverflow.com/questions/5709185", "https://Stackoverflow.com", "https://Stackoverflow.com/users/639829/" ]
Your script may contain unwanted and invisible chars (like BOM) before PHP start tag
Browsers are not made for displaying just any arbitrary XML. They like HTML (which can be XHTML). It is unclear why you want browsers to display those. If it is intended for an and user then you should format those in HTML, if it is for a API (service) then check it with curl/wget/etc and I'm sure the XMl will look the...
847,892
I have a zip file containing a folder structure like * main-folder/ + subFolder1/ + subFolder2/ + subFolder3/ - file3.1 - file3.2 I would like to rename folder `main-folder` to let's say `versionXY` inside that very zip file using Java. Is there a simpler way than extracting the whole zip file and recreating ...
2009/05/11
[ "https://Stackoverflow.com/questions/847892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/103351/" ]
Zip is an archive format, so mutating generally involves rewriting the file. Some particular features of zip also get in the way (zip is full of "features"). As well as the central directory at the end of the archive, each component file is preceded by its file name. Zip doesn't have a concept of directories - file na...
I think you'll be able to find help for this task using the [Commons Compress](http://commons.apache.org/compress/), especially [ZipArchiveEntry](http://commons.apache.org/compress/apidocs/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.html)
847,892
I have a zip file containing a folder structure like * main-folder/ + subFolder1/ + subFolder2/ + subFolder3/ - file3.1 - file3.2 I would like to rename folder `main-folder` to let's say `versionXY` inside that very zip file using Java. Is there a simpler way than extracting the whole zip file and recreating ...
2009/05/11
[ "https://Stackoverflow.com/questions/847892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/103351/" ]
Zip is an archive format, so mutating generally involves rewriting the file. Some particular features of zip also get in the way (zip is full of "features"). As well as the central directory at the end of the archive, each component file is preceded by its file name. Zip doesn't have a concept of directories - file na...
I know you asked about Java but just for archival purposes I thought I would contribute a note about .NET. [DotNetZip](http://dotnetzip.codeplex.com) is a .NET library for zip files that allows renaming of entries. As Tom Hawtin's reply states, directories are not first-class entities in the zip file metadata, and as...
847,892
I have a zip file containing a folder structure like * main-folder/ + subFolder1/ + subFolder2/ + subFolder3/ - file3.1 - file3.2 I would like to rename folder `main-folder` to let's say `versionXY` inside that very zip file using Java. Is there a simpler way than extracting the whole zip file and recreating ...
2009/05/11
[ "https://Stackoverflow.com/questions/847892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/103351/" ]
Zip is an archive format, so mutating generally involves rewriting the file. Some particular features of zip also get in the way (zip is full of "features"). As well as the central directory at the end of the archive, each component file is preceded by its file name. Zip doesn't have a concept of directories - file na...
This is doing the trick. Blazing fast since it works only on the central directory and not the files. ``` // rezip( zipfile, "/main-folder", "/versionXY" ); import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.file.FileSystem; import j...
6,010,870
I am having some troubles understanding the object relationships in Django. I wrote this: ``` from django.db import models class Community(models.Model): name = models.CharField(max_length=200) #arbitrary max length class Category(models.Model): community = models.ForeignKey(Community) category = models...
2011/05/15
[ "https://Stackoverflow.com/questions/6010870", "https://Stackoverflow.com", "https://Stackoverflow.com/users/324788/" ]
You probably haven't run `python manage.py syncdb` recently, or you did but you changed some table/models.Model definitions. Try dropping your database, creating it, and running syncdb again. That is, if you don't have any important data in there. You can also do `python manage.py reset <appname>`
This sounds like you forgot to run syncdb after adding Category and/or Detail\_View to your models.py Or that because you have a field and the table name is Category, the models is getting messed up. Try changing your category field to name in the class Category. Same with detail\_view
124,612
my system log says: ``` [2016-07-07 06:57:49] main.INFO: Cache file with merged layout: LAYOUT_frontend_STORE1_3bc116a8dbf5ce43f9f3e452fa24f453b and handles default, tglssearch_result_index: Please correct the XML data and try again. [] [] [2016-07-07 06:57:49] main.INFO: Cache file with merged layout: LAYOUT_fronte...
2016/07/07
[ "https://magento.stackexchange.com/questions/124612", "https://magento.stackexchange.com", "https://magento.stackexchange.com/users/22561/" ]
I think the block's template attribute must be named ``` template="Vendor_Module::search/filter.phtml" ```
Here is might be a problem: ``` //case #1 magento/framework/View/Model/Layout/Update/Validator:118 $this->_domConfigFactory->createDom(['xml' => $value, 'schemaFile' => $this->_xsdSchemas[$schema]]); //case #2 magento/framework/Config/Dom.php:311 \Magento\Framework\Config\Dom::validateDomDocument() $result = $dom->...
20,735
I really like the idea of enduro racing but I cant currently afford an enduro specific bike. Is it acceptable to enter an enduro event on an aggressive XC/trail hardtail mountain bike? Are there any rules against it or would it not be recommended due to the terrain?
2014/03/14
[ "https://bicycles.stackexchange.com/questions/20735", "https://bicycles.stackexchange.com", "https://bicycles.stackexchange.com/users/10424/" ]
Yes, no\*, yes. Enduro racing is a hybrid sport, but the timed aspects of it are almost all downhill. As such, you're going to want a bike that can handle that the best, which would most likely be a full suspension frame. There aren't any specific rules (yet) against hard tails, although a few events may dictate no ha...
I've raced several Super D events on an aggressive hardtail and did just fine. I'm usually middle of the road on my time, of course these are not pro races. I'm doing several more Super D and Enduro races this spring and summer, I say have a blast on the hardtail!!!
20,735
I really like the idea of enduro racing but I cant currently afford an enduro specific bike. Is it acceptable to enter an enduro event on an aggressive XC/trail hardtail mountain bike? Are there any rules against it or would it not be recommended due to the terrain?
2014/03/14
[ "https://bicycles.stackexchange.com/questions/20735", "https://bicycles.stackexchange.com", "https://bicycles.stackexchange.com/users/10424/" ]
Yes, unless they say no. The "Spirit of Enduro" is to include all riders, of all abilities, on all bikes. Since there are guys who can ride crazy fast on a hardtail down a downhill trail, you can certainly ride yours in an Enduro race. However, you might be putting yourself at a disadvantage compared to the pro's or i...
I've raced several Super D events on an aggressive hardtail and did just fine. I'm usually middle of the road on my time, of course these are not pro races. I'm doing several more Super D and Enduro races this spring and summer, I say have a blast on the hardtail!!!
14,048,640
``` echo $column;//Here $column="Date ,1007001 ,1007002 ,1007003 ,1007004 ,1007005 ,1007006"; echo $columnvalue; // Here $columnvalue="'12/27/2012' ,'1' ,'0' ,'1' ,'1' ,'0' ,'1'" ; $sql_cmd ="INSERT INTO `databasename`.`$table` (`$column`) VALUES ($columnvalue)"; if(!mysql_query($sql_cmd)) { die('inside AddUser...
2012/12/27
[ "https://Stackoverflow.com/questions/14048640", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1359137/" ]
Compiling lp\_solve for the armv7 architecture is incredibly difficult and has gotten the better of many talented people. I say this because the above answer makes it seem like if you follow the instructions closely enough you will be able to compile, then drag and drop. I would use GLPK which I got to work on iOS. <h...
In iOS, you cannot use dynamic linking, i.e., you will have to link lp\_solve statically. The docs have instructions on how to build the static library [here](http://lpsolve.sourceforge.net/5.5/Build.htm#Statically%20link%20your%20application%20with%20lpsolve). When you're done compiling the static library, simply dra...
21,402,921
I'm transitioning from MYSQL to MYSQLI and I am in need of assistance with putting MYSQLI into separate / distinct functions. From all the "tutorials" i have located on the web, they all have everyrything in one big long code, and not distinct / separate functions that my main scripts can call. Eg :- * Connect to MY...
2014/01/28
[ "https://Stackoverflow.com/questions/21402921", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1992920/" ]
fix your include file to ``` /** * @return mysqli */ function connect_mysqli() { $con = mysqli_connect("localhost","wrong_user","my_password","my_db"); // Check connection if (!$con) { die("Connection error: " . mysqli_connect_errno()); } return $con; } function do_query ($con, $sql...
[Example Demos](http://de1.php.net/manual/en/mysqli.query.php) Scroll down there are a lot of exmaples... ``` <?php $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); /* check connection */ if ($mysqli->connect_errno) { printf("Connect failed: %s\n", $mysqli->connect_error); exit(); } /* C...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
I'd like to add a finite difference method (FDM) based solution. I'll use [`pdetoae`](http://mathematica.stackexchange.com/a/127997/1871) for the generation of difference equations. ``` f = 10 Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5 x]; With[{u = u[x, y]}, eq = -Laplacian[u, {x, y}] == f; b...
**addendum** (little bit late) to HenrikSchumacher's remarkable answer Henrik showed that `LinaerSolve[stiffness,load]` (result from `NDSolve`-solution) has no solution. If we consider the equivalent symmetric problem `LinearSolve[Transpose[stiffness] . stiffness ,Transpose[stiffness] . load]` Mathematica evaluates ...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
That's a typical problem; it is caused by the matrix of the discretized system having a one-dimensional kernel (and cokernel). One can stabilize the system by adding a row and a column that represent a homogeneous mean-value constraint. I don't know whether `NDSolve` can do that (user21 will be able to tell us), but on...
I have an approach that is similar to Henrik's but is a bit more streamlined and possibly more efficient. Let's start with some definitions and the mesh: ``` f = 10*Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5*x]; Needs["NDSolve`FEM`"] mesh = ToElementMesh[Rectangle[]]; ``` Then there is a utilit...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
We can use the method of the false transient: ``` f = 10*Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5*x]; Needs["NDSolve`FEM`"] bmesh = ToBoundaryMesh[ "Coordinates" -> {{0., 0.}, {1, 0.}, {1, 1}, {0., 1}, {0.5, 0.5}}, "BoundaryElements" -> {LineElement[{{1, 2}, {2, 3}, {3, 4}, {4, 1}...
Although the question is already a little older, I want to share an answer with two solution strategies using a **Discontinuous Galerkin method** (LDG): 1. **Modifying the equation** $$-\Delta u = f,$$ $$\text{...}$$ $$-\Delta u + \varepsilon u = f,$$ for some small $\varepsilon>0$, which can be interpreted as a **r...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
I have an approach that is similar to Henrik's but is a bit more streamlined and possibly more efficient. Let's start with some definitions and the mesh: ``` f = 10*Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5*x]; Needs["NDSolve`FEM`"] mesh = ToElementMesh[Rectangle[]]; ``` Then there is a utilit...
Although the question is already a little older, I want to share an answer with two solution strategies using a **Discontinuous Galerkin method** (LDG): 1. **Modifying the equation** $$-\Delta u = f,$$ $$\text{...}$$ $$-\Delta u + \varepsilon u = f,$$ for some small $\varepsilon>0$, which can be interpreted as a **r...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
That's a typical problem; it is caused by the matrix of the discretized system having a one-dimensional kernel (and cokernel). One can stabilize the system by adding a row and a column that represent a homogeneous mean-value constraint. I don't know whether `NDSolve` can do that (user21 will be able to tell us), but on...
I'd like to add a finite difference method (FDM) based solution. I'll use [`pdetoae`](http://mathematica.stackexchange.com/a/127997/1871) for the generation of difference equations. ``` f = 10 Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5 x]; With[{u = u[x, y]}, eq = -Laplacian[u, {x, y}] == f; b...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
We can use the method of the false transient: ``` f = 10*Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5*x]; Needs["NDSolve`FEM`"] bmesh = ToBoundaryMesh[ "Coordinates" -> {{0., 0.}, {1, 0.}, {1, 1}, {0., 1}, {0.5, 0.5}}, "BoundaryElements" -> {LineElement[{{1, 2}, {2, 3}, {3, 4}, {4, 1}...
I'd like to add a finite difference method (FDM) based solution. I'll use [`pdetoae`](http://mathematica.stackexchange.com/a/127997/1871) for the generation of difference equations. ``` f = 10 Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5 x]; With[{u = u[x, y]}, eq = -Laplacian[u, {x, y}] == f; b...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
That's a typical problem; it is caused by the matrix of the discretized system having a one-dimensional kernel (and cokernel). One can stabilize the system by adding a row and a column that represent a homogeneous mean-value constraint. I don't know whether `NDSolve` can do that (user21 will be able to tell us), but on...
**addendum** (little bit late) to HenrikSchumacher's remarkable answer Henrik showed that `LinaerSolve[stiffness,load]` (result from `NDSolve`-solution) has no solution. If we consider the equivalent symmetric problem `LinearSolve[Transpose[stiffness] . stiffness ,Transpose[stiffness] . load]` Mathematica evaluates ...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
That's a typical problem; it is caused by the matrix of the discretized system having a one-dimensional kernel (and cokernel). One can stabilize the system by adding a row and a column that represent a homogeneous mean-value constraint. I don't know whether `NDSolve` can do that (user21 will be able to tell us), but on...
We can use the method of the false transient: ``` f = 10*Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5*x]; Needs["NDSolve`FEM`"] bmesh = ToBoundaryMesh[ "Coordinates" -> {{0., 0.}, {1, 0.}, {1, 1}, {0., 1}, {0.5, 0.5}}, "BoundaryElements" -> {LineElement[{{1, 2}, {2, 3}, {3, 4}, {4, 1}...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
I'd like to add a finite difference method (FDM) based solution. I'll use [`pdetoae`](http://mathematica.stackexchange.com/a/127997/1871) for the generation of difference equations. ``` f = 10 Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5 x]; With[{u = u[x, y]}, eq = -Laplacian[u, {x, y}] == f; b...
Although the question is already a little older, I want to share an answer with two solution strategies using a **Discontinuous Galerkin method** (LDG): 1. **Modifying the equation** $$-\Delta u = f,$$ $$\text{...}$$ $$-\Delta u + \varepsilon u = f,$$ for some small $\varepsilon>0$, which can be interpreted as a **r...
191,476
Dear *Mathematica* users, I would like to numerically solve a, as the title says, Poisson equation with pure Neumann boundary conditions $-\nabla^2(\psi)=f$ $\nabla(\psi)\cdot \text{n}=g$ Is it possible? For an example I will use the [demo from FEniCS project](https://fenicsproject.org/docs/dolfin/2018.1.0/pytho...
2019/02/13
[ "https://mathematica.stackexchange.com/questions/191476", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/58505/" ]
I have an approach that is similar to Henrik's but is a bit more streamlined and possibly more efficient. Let's start with some definitions and the mesh: ``` f = 10*Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5*x]; Needs["NDSolve`FEM`"] mesh = ToElementMesh[Rectangle[]]; ``` Then there is a utilit...
I'd like to add a finite difference method (FDM) based solution. I'll use [`pdetoae`](http://mathematica.stackexchange.com/a/127997/1871) for the generation of difference equations. ``` f = 10 Exp[-(Power[x - 0.5, 2] + Power[y - 0.5, 2])/0.02]; g = -Sin[5 x]; With[{u = u[x, y]}, eq = -Laplacian[u, {x, y}] == f; b...
60,252,903
Okay I know "One Definition Rule", but when I try to declare a variable with different types subsequently in source code, I run into some mistake like following: ``` int fkc(); void fkc(); ``` [enter image description here](https://i.stack.imgur.com/MEnUb.png) I mean these two statements are just two declarations, ...
2020/02/16
[ "https://Stackoverflow.com/questions/60252903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12908913/" ]
You can simply use [`filter`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) combined with [`includes`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) to generate a new array containing only the items that have an `id` inc...
you can do this ``` const data = [ {id: 1, value: false}, {id: 2, value: true}, {id: 3, value: false}, {id: 4, value: true}, {id: 5, value: true} ]; const searchTerm = [1,5]; const result = data.filter((dataObject) => { // dataObject will be each item in the data array; return searchTerm.includes...
60,252,903
Okay I know "One Definition Rule", but when I try to declare a variable with different types subsequently in source code, I run into some mistake like following: ``` int fkc(); void fkc(); ``` [enter image description here](https://i.stack.imgur.com/MEnUb.png) I mean these two statements are just two declarations, ...
2020/02/16
[ "https://Stackoverflow.com/questions/60252903", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12908913/" ]
I'd suggest you use a `Set`. Since you are searching your data for specific keys, this will have **much better performances** on large search arrays: ```js const data = [ {id: 1, value: false}, {id: 2, value: true}, {id: 3, value: false}, {id: 4, value: true}, {id: 5, value: true} ] const search = (d...
you can do this ``` const data = [ {id: 1, value: false}, {id: 2, value: true}, {id: 3, value: false}, {id: 4, value: true}, {id: 5, value: true} ]; const searchTerm = [1,5]; const result = data.filter((dataObject) => { // dataObject will be each item in the data array; return searchTerm.includes...
18,815,868
Is there anyway to determine the exact number of pixels that a user has `overscrolled` by in an Android ListView? When the user tries to scroll up past the first list item, and the **overscroll/bounce** animation kicks in, I need to detect the overscroll distance. Basically I'm going to do something in that space, like...
2013/09/15
[ "https://Stackoverflow.com/questions/18815868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2050800/" ]
After much digging, and even more frustration, the answer seems to be that you can't. What's even more annoying is that I took a look at the Android [source code](http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.3_r1/android/widget/AbsListView.java?av=f) and can see that the code I...
What about overriding this method? [protected boolean overScrollBy (int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent)](http://developer.android.com/reference/android/view/View.html#overScrollBy%28int,%20int,%20int,%20int,...
18,815,868
Is there anyway to determine the exact number of pixels that a user has `overscrolled` by in an Android ListView? When the user tries to scroll up past the first list item, and the **overscroll/bounce** animation kicks in, I need to detect the overscroll distance. Basically I'm going to do something in that space, like...
2013/09/15
[ "https://Stackoverflow.com/questions/18815868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2050800/" ]
After much digging, and even more frustration, the answer seems to be that you can't. What's even more annoying is that I took a look at the Android [source code](http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.3_r1/android/widget/AbsListView.java?av=f) and can see that the code I...
at first i think i can get overscroll distance at onOverScrolled, but in onOverScrolled (int scrollX, int scrollY, boolean clampedX, boolean clampedY) the scrollX either be 0 or the maxOverScrollDistence. so you can not get Overscroll distance there. but you can get Overscroll distance at > > protected boolean ov...
18,815,868
Is there anyway to determine the exact number of pixels that a user has `overscrolled` by in an Android ListView? When the user tries to scroll up past the first list item, and the **overscroll/bounce** animation kicks in, I need to detect the overscroll distance. Basically I'm going to do something in that space, like...
2013/09/15
[ "https://Stackoverflow.com/questions/18815868", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2050800/" ]
What about overriding this method? [protected boolean overScrollBy (int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent)](http://developer.android.com/reference/android/view/View.html#overScrollBy%28int,%20int,%20int,%20int,...
at first i think i can get overscroll distance at onOverScrolled, but in onOverScrolled (int scrollX, int scrollY, boolean clampedX, boolean clampedY) the scrollX either be 0 or the maxOverScrollDistence. so you can not get Overscroll distance there. but you can get Overscroll distance at > > protected boolean ov...
55,656,434
In python, I want to get log of all commits for a file in a git repository and parse the information in the log (hash, author name, author mail, author date, committer name, committer mail, commit date, and commit message). Currently, I can get the raw git log using either gitpython or calling shell commands through su...
2019/04/12
[ "https://Stackoverflow.com/questions/55656434", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1445015/" ]
You can get all the repository commits using: ```py import git repo = git.Repo("/home/user/.emacs.d") commits = list(repo.iter_commits("master", max_count=5)) ``` Then you can identify yourself what kind of data gitpython offers: ```py dir(commits[0]) ``` Some of them are: * author * committed\_datetime * hexsha...
You could consider using [PyDriller](https://github.com/ishepard/pydriller), that is a wrapper around GitPython that makes these things easier. There is a function called `get_commits_modified_file()`: ``` gr = Git("repo_path") commits = gr.get_commits_modified_file("filepath") # this return a list of commits hash ``...
44,708,479
here is my code ``` import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] data = new int[10]; int count = 0; do { System.out.print("Enter a number or ctrl + z when you are done: "); ...
2017/06/22
[ "https://Stackoverflow.com/questions/44708479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6022278/" ]
The reason is first time `do` block is executed and then check for condition in `while`. About `hasNextDouble()` in [orcale doc](https://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html#hasNextInt(int)): > > Returns true if the next token in this scanner's input can be > interpreted as a double value using ...
This happens because the first call to `input.hasNextDouble()` waits for a number to be entered before proceeding. So the message in the *second* iteration of the loop won't appear until `input.hasNextDouble()` at the end of the *first* iteration of the loop has run - which of course fetches the second number. You ne...
44,708,479
here is my code ``` import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] data = new int[10]; int count = 0; do { System.out.print("Enter a number or ctrl + z when you are done: "); ...
2017/06/22
[ "https://Stackoverflow.com/questions/44708479", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6022278/" ]
ah your while loop is waiting to see if input hasNextDouble() how can it know until your user has entered the next double or hit ctrl-z? you'll have to do something Ugly like ``` System.out.print("Enter a number or ctrl + z when you are done: "); do { data[count++] = input.nextInt(); System.out.print("Enter a n...
This happens because the first call to `input.hasNextDouble()` waits for a number to be entered before proceeding. So the message in the *second* iteration of the loop won't appear until `input.hasNextDouble()` at the end of the *first* iteration of the loop has run - which of course fetches the second number. You ne...
63,640,781
Is there any way I can configure the max header size for a response? I get the following error from the netty framework : ``` io.netty.handler.codec.TooLongFrameException: HTTP header is larger than 8192 bytes. at io.netty.handler.codec.http.HttpObjectDecoder$HeaderParser.newException(HttpObjectDecoder.java:983) ...
2020/08/28
[ "https://Stackoverflow.com/questions/63640781", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14184739/" ]
You can configure reactor's `reactor.netty.http.client.HttpClient` to have custom `maxHeaderSize` and plug this preconfigured `HttpClient` in your WebClient instance. ```java HttpClient httpClient = HttpClient.create().httpResponseDecoder(spec -> spec.maxHeaderSize(32 * 1024)); WebClient webClient = WebClient...
In a Spring Boot app, the max HTTP header size is configured using: ``` server.max-http-header-size=65536 ``` I have found this solved the above issue on spring cloud gateway, so worth a try.
276,625
I want to plot this solution for the different value of d and x but it is an Elliptic function. ``` Clear["Global`*"] eqns2 = {g'[x]^2 == (f*g[x]^2) - k + d/g[x]}; f = 0.69; k = -0.001; sol2 = DSolve[eqns2, g[x], x] ``` I don't know how to plot this!!
2022/11/28
[ "https://mathematica.stackexchange.com/questions/276625", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/84559/" ]
You did not specify d. I set it arbitrarily to 1. Further I rationalize the constants and use NDSolve instead of DSolve. This makes it necessary to choose a starting value, I choose arbitrarily g[0] == 1. And I choose a time span from 0 to 1. With this: ``` Clear["Global`*"] f = 69/100; k = -1/1000; d = 1; eqns2 = {g'...
Like this `d = 2; Plot[g[x]/.sol2, {x, 0, 10}]`
276,625
I want to plot this solution for the different value of d and x but it is an Elliptic function. ``` Clear["Global`*"] eqns2 = {g'[x]^2 == (f*g[x]^2) - k + d/g[x]}; f = 0.69; k = -0.001; sol2 = DSolve[eqns2, g[x], x] ``` I don't know how to plot this!!
2022/11/28
[ "https://mathematica.stackexchange.com/questions/276625", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/84559/" ]
To plot solutions for $y'=f(x,y)$ without solving it and without having initial conditions, the command is ``` StreamPlot[{1, f[x,y]}, {x, -1, 1}, {y, -1, 1}] ``` This will plot all families of solutions. An initial condition will pick one of these. For your ode, there are two set of solution families...
Like this `d = 2; Plot[g[x]/.sol2, {x, 0, 10}]`
276,625
I want to plot this solution for the different value of d and x but it is an Elliptic function. ``` Clear["Global`*"] eqns2 = {g'[x]^2 == (f*g[x]^2) - k + d/g[x]}; f = 0.69; k = -0.001; sol2 = DSolve[eqns2, g[x], x] ``` I don't know how to plot this!!
2022/11/28
[ "https://mathematica.stackexchange.com/questions/276625", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/84559/" ]
* The equation have complex solution. We need to use `ReImPlot`. ``` f = 0.69; k = -0.001; eqns2 = {g'[x]^2 == (f*g[x]^2) - k + d/g[x]}; g0 = 1; d = 2; sol = NDSolve[{eqns2, g[0] == g0}, g, {x, 0, 1}] g[.5] /. sol ReImPlot[g@x /. sol // Evaluate, {x, 0, 1}, AspectRatio -> Automatic] ``` [![enter image description he...
Like this `d = 2; Plot[g[x]/.sol2, {x, 0, 10}]`
276,625
I want to plot this solution for the different value of d and x but it is an Elliptic function. ``` Clear["Global`*"] eqns2 = {g'[x]^2 == (f*g[x]^2) - k + d/g[x]}; f = 0.69; k = -0.001; sol2 = DSolve[eqns2, g[x], x] ``` I don't know how to plot this!!
2022/11/28
[ "https://mathematica.stackexchange.com/questions/276625", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/84559/" ]
To plot solutions for $y'=f(x,y)$ without solving it and without having initial conditions, the command is ``` StreamPlot[{1, f[x,y]}, {x, -1, 1}, {y, -1, 1}] ``` This will plot all families of solutions. An initial condition will pick one of these. For your ode, there are two set of solution families...
You did not specify d. I set it arbitrarily to 1. Further I rationalize the constants and use NDSolve instead of DSolve. This makes it necessary to choose a starting value, I choose arbitrarily g[0] == 1. And I choose a time span from 0 to 1. With this: ``` Clear["Global`*"] f = 69/100; k = -1/1000; d = 1; eqns2 = {g'...
276,625
I want to plot this solution for the different value of d and x but it is an Elliptic function. ``` Clear["Global`*"] eqns2 = {g'[x]^2 == (f*g[x]^2) - k + d/g[x]}; f = 0.69; k = -0.001; sol2 = DSolve[eqns2, g[x], x] ``` I don't know how to plot this!!
2022/11/28
[ "https://mathematica.stackexchange.com/questions/276625", "https://mathematica.stackexchange.com", "https://mathematica.stackexchange.com/users/84559/" ]
* The equation have complex solution. We need to use `ReImPlot`. ``` f = 0.69; k = -0.001; eqns2 = {g'[x]^2 == (f*g[x]^2) - k + d/g[x]}; g0 = 1; d = 2; sol = NDSolve[{eqns2, g[0] == g0}, g, {x, 0, 1}] g[.5] /. sol ReImPlot[g@x /. sol // Evaluate, {x, 0, 1}, AspectRatio -> Automatic] ``` [![enter image description he...
You did not specify d. I set it arbitrarily to 1. Further I rationalize the constants and use NDSolve instead of DSolve. This makes it necessary to choose a starting value, I choose arbitrarily g[0] == 1. And I choose a time span from 0 to 1. With this: ``` Clear["Global`*"] f = 69/100; k = -1/1000; d = 1; eqns2 = {g'...
10,259,594
I want to build a java application which would be able to send sms to any mobile number.But the problem is that i do not have a gsm modem.Is there any alternate way available.Can i use my own phone as a modem by connecting it with a usb cable?
2012/04/21
[ "https://Stackoverflow.com/questions/10259594", "https://Stackoverflow.com", "https://Stackoverflow.com/users/676353/" ]
Yes, you can connect your own phone via cable and send/receive SMS that way. It would however probably be easier to use some online service that can convert e-mail to SMS. That way your application becomes a lot simpler. Some SO questions regarding e-mail to SMS: * [Testing Email to SMS](https://stackoverflow.com/que...
It's possible in most cases for modern phones, but it depends on phone model. What's the model of your phone?
10,259,594
I want to build a java application which would be able to send sms to any mobile number.But the problem is that i do not have a gsm modem.Is there any alternate way available.Can i use my own phone as a modem by connecting it with a usb cable?
2012/04/21
[ "https://Stackoverflow.com/questions/10259594", "https://Stackoverflow.com", "https://Stackoverflow.com/users/676353/" ]
Yes, you can connect your own phone via cable and send/receive SMS that way. It would however probably be easier to use some online service that can convert e-mail to SMS. That way your application becomes a lot simpler. Some SO questions regarding e-mail to SMS: * [Testing Email to SMS](https://stackoverflow.com/que...
You require to have a subscription account with any third party `SOAP` or simple `HTTP` based SMS Service providers. As an example [`SimpleWire / OpenMarket`](http://www.openmarket.com/) is a third party messaging provider that sends SMS on your behalf and also lets your server app delivery status of that message. You ...
59,646,409
I have some data in notepad that look like this: [![enter image description here](https://i.stack.imgur.com/3rG6V.png)](https://i.stack.imgur.com/3rG6V.png) All separated nicely. i try to export it to excel by going to: Data -> From Text/CSV but Excel does this: [![enter image description here](https://i.stack.imgu...
2020/01/08
[ "https://Stackoverflow.com/questions/59646409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9714983/" ]
I've had this issue in the past and have found that wrapping the AvatarCircle in a container with 58 width fixes the Circle radius ratio issue, making it a proper circle shape. One pixel more or less may fit your liking. Give this a try: ``` Container( width: 58, child: PopupMenuButton( icon: CircleAvatar( ...
Normally it should work with `ClipRRect`. Make sure you add `fit: BoxFit.cover` to avoid scaling. ``` ClipRRect( borderRadius: BorderRadius.circular(25.0), child: Image.network( googleUserUrl, height: 50.0, width: 50.0, fit: BoxFit.cover, ), ), ```
59,646,409
I have some data in notepad that look like this: [![enter image description here](https://i.stack.imgur.com/3rG6V.png)](https://i.stack.imgur.com/3rG6V.png) All separated nicely. i try to export it to excel by going to: Data -> From Text/CSV but Excel does this: [![enter image description here](https://i.stack.imgu...
2020/01/08
[ "https://Stackoverflow.com/questions/59646409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9714983/" ]
Normally it should work with `ClipRRect`. Make sure you add `fit: BoxFit.cover` to avoid scaling. ``` ClipRRect( borderRadius: BorderRadius.circular(25.0), child: Image.network( googleUserUrl, height: 50.0, width: 50.0, fit: BoxFit.cover, ), ), ```
This was the solution I found, but now my issue is that I can't make the avatar bigger than what is shown below. ``` actions: <Widget>[ PopupMenuButton<String>( icon: Container( child: ClipOval( child: Align( ...
59,646,409
I have some data in notepad that look like this: [![enter image description here](https://i.stack.imgur.com/3rG6V.png)](https://i.stack.imgur.com/3rG6V.png) All separated nicely. i try to export it to excel by going to: Data -> From Text/CSV but Excel does this: [![enter image description here](https://i.stack.imgu...
2020/01/08
[ "https://Stackoverflow.com/questions/59646409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9714983/" ]
Normally it should work with `ClipRRect`. Make sure you add `fit: BoxFit.cover` to avoid scaling. ``` ClipRRect( borderRadius: BorderRadius.circular(25.0), child: Image.network( googleUserUrl, height: 50.0, width: 50.0, fit: BoxFit.cover, ), ), ```
Here is my final solution thanks in big part to João Soares. Adjusting the width increases the size of the circle. I made it equal to the height of the "localhour" image, and now it looks great. ``` actions: <Widget>[ Container( width: 60.0, child: PopupMenuBut...
59,646,409
I have some data in notepad that look like this: [![enter image description here](https://i.stack.imgur.com/3rG6V.png)](https://i.stack.imgur.com/3rG6V.png) All separated nicely. i try to export it to excel by going to: Data -> From Text/CSV but Excel does this: [![enter image description here](https://i.stack.imgu...
2020/01/08
[ "https://Stackoverflow.com/questions/59646409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9714983/" ]
Normally it should work with `ClipRRect`. Make sure you add `fit: BoxFit.cover` to avoid scaling. ``` ClipRRect( borderRadius: BorderRadius.circular(25.0), child: Image.network( googleUserUrl, height: 50.0, width: 50.0, fit: BoxFit.cover, ), ), ```
You can use ClipOval Widget to do that. I am posting an example where my image will be leading icon widget in rounded format just like in native android. ``` AppBar( title: Text(title), leading: Padding( padding: const EdgeInsets.all(8.0), child: ClipOval( child: Image(image: Imag...
59,646,409
I have some data in notepad that look like this: [![enter image description here](https://i.stack.imgur.com/3rG6V.png)](https://i.stack.imgur.com/3rG6V.png) All separated nicely. i try to export it to excel by going to: Data -> From Text/CSV but Excel does this: [![enter image description here](https://i.stack.imgu...
2020/01/08
[ "https://Stackoverflow.com/questions/59646409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9714983/" ]
I've had this issue in the past and have found that wrapping the AvatarCircle in a container with 58 width fixes the Circle radius ratio issue, making it a proper circle shape. One pixel more or less may fit your liking. Give this a try: ``` Container( width: 58, child: PopupMenuButton( icon: CircleAvatar( ...
This was the solution I found, but now my issue is that I can't make the avatar bigger than what is shown below. ``` actions: <Widget>[ PopupMenuButton<String>( icon: Container( child: ClipOval( child: Align( ...
59,646,409
I have some data in notepad that look like this: [![enter image description here](https://i.stack.imgur.com/3rG6V.png)](https://i.stack.imgur.com/3rG6V.png) All separated nicely. i try to export it to excel by going to: Data -> From Text/CSV but Excel does this: [![enter image description here](https://i.stack.imgu...
2020/01/08
[ "https://Stackoverflow.com/questions/59646409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9714983/" ]
I've had this issue in the past and have found that wrapping the AvatarCircle in a container with 58 width fixes the Circle radius ratio issue, making it a proper circle shape. One pixel more or less may fit your liking. Give this a try: ``` Container( width: 58, child: PopupMenuButton( icon: CircleAvatar( ...
Here is my final solution thanks in big part to João Soares. Adjusting the width increases the size of the circle. I made it equal to the height of the "localhour" image, and now it looks great. ``` actions: <Widget>[ Container( width: 60.0, child: PopupMenuBut...
59,646,409
I have some data in notepad that look like this: [![enter image description here](https://i.stack.imgur.com/3rG6V.png)](https://i.stack.imgur.com/3rG6V.png) All separated nicely. i try to export it to excel by going to: Data -> From Text/CSV but Excel does this: [![enter image description here](https://i.stack.imgu...
2020/01/08
[ "https://Stackoverflow.com/questions/59646409", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9714983/" ]
I've had this issue in the past and have found that wrapping the AvatarCircle in a container with 58 width fixes the Circle radius ratio issue, making it a proper circle shape. One pixel more or less may fit your liking. Give this a try: ``` Container( width: 58, child: PopupMenuButton( icon: CircleAvatar( ...
You can use ClipOval Widget to do that. I am posting an example where my image will be leading icon widget in rounded format just like in native android. ``` AppBar( title: Text(title), leading: Padding( padding: const EdgeInsets.all(8.0), child: ClipOval( child: Image(image: Imag...
13,892,686
**Problem**: If the file "tmp.rb" has been modified, the command "e tmp.rb" will fail. I'm seeking for a command to succeed in both following conditions: * If "tmp.rb" is not in the buffer list, the file will be loaded; * If "tmp.rb" is already in the buffer list and been modified, the buffer will be loaded(in curren...
2012/12/15
[ "https://Stackoverflow.com/questions/13892686", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1297064/" ]
The `:edit` command fails when the buffer is already loaded and modified to prevent you from accidentally overwriting the changes. If you do want to override, use `:edit!` instead. In many Vim commands, an appended bang (`!`) forces the command. Alternatively, if you want Vim to ask you for confirmation, use `:confirm ...
I couldn't reproduce your problem. What I do to try reproduce your problem is 1. Open tmp.rb with vim, write some thing and save. 2. In other shell, ``` $ echo > tmp.rb ``` 3. Enter `:e` or `e: tmp.rb` in vim and it reopen the file without any problem. If other program is accessing the tmp.rb at the same time this...
13,892,686
**Problem**: If the file "tmp.rb" has been modified, the command "e tmp.rb" will fail. I'm seeking for a command to succeed in both following conditions: * If "tmp.rb" is not in the buffer list, the file will be loaded; * If "tmp.rb" is already in the buffer list and been modified, the buffer will be loaded(in curren...
2012/12/15
[ "https://Stackoverflow.com/questions/13892686", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1297064/" ]
The `:edit` command fails when the buffer is already loaded and modified to prevent you from accidentally overwriting the changes. If you do want to override, use `:edit!` instead. In many Vim commands, an appended bang (`!`) forces the command. Alternatively, if you want Vim to ask you for confirmation, use `:confirm ...
The title of your question says "OR" but its body says "AND". Vim's commands are usually very precise, it's rare to see an ambiguous command that does multiple mutually exclusive things. The number of keys you can use to enter *insert* mode (`iaIAsScCoO`) is a perfect example of this. You should use the appropriate c...
34,088,509
I have a shell script that exits a number (0 for success and 1 for failure). Using PHP, I need to get this number, 0 or 1, and use it in an if statement. For example: ``` if (VALUE1or0 == 0) echo "success"; else echo "failure"; ```
2015/12/04
[ "https://Stackoverflow.com/questions/34088509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4807688/" ]
``` 'use strict'; var React = require('react-native'); var { AppRegistry, StyleSheet, Text, View, TouchableHighlight } = React; var colors = ['#ddd', '#efefef', 'red', '#666', 'rgba(0,0,0,.1)', '#ededed']; var backgroundcolors = ['green', 'black', 'orange', 'blue', 'purple', 'pink']; var SampleApp = React...
This answer is assuming you want to change the color just while the button is depressed: Use TouchableWithoutFeedback and define your own onPressIn and onPressOut functions to change the text color. ``` <TouchableWithoutFeedback onPressIn={this.colorText} onPressOut={this.resetText}> <Text style={[styles.textColo...
34,088,509
I have a shell script that exits a number (0 for success and 1 for failure). Using PHP, I need to get this number, 0 or 1, and use it in an if statement. For example: ``` if (VALUE1or0 == 0) echo "success"; else echo "failure"; ```
2015/12/04
[ "https://Stackoverflow.com/questions/34088509", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4807688/" ]
``` 'use strict'; var React = require('react-native'); var { AppRegistry, StyleSheet, Text, View, TouchableHighlight } = React; var colors = ['#ddd', '#efefef', 'red', '#666', 'rgba(0,0,0,.1)', '#ededed']; var backgroundcolors = ['green', 'black', 'orange', 'blue', 'purple', 'pink']; var SampleApp = React...
With TouchableHighlight you can do it like this ``` state = { selected: false }; setSelected(selected: boolean) { this.setState({ selected: selected }); } textStyle() { return this.state.selected ? styles.textSelected : styles.text; } ``` And then in the render function ``` <TouchableHighlight underla...
37,234,576
I have a very simple php single page, that requires the user to insert a specific username and pass in order to access its contents. It generates a cookie that allows the user to access that page for one day. If the user is logged in, the list of contents appear. If it's not, it shows the form. It is all inside a sing...
2016/05/15
[ "https://Stackoverflow.com/questions/37234576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892490/" ]
We can create a grouping variable after keeping the substring that contains the "names\_data" in the "levels\_selected" ('grp'), `split` the substring with prefix removed using the 'grp' to get a `list`. ``` grp <- sub(paste0("^(", paste(names_data, collapse="|"), ").*"), "\\1", levels_selected) value <- gsub(paste(na...
An option that returns a list with levels as a vector stored under each corresponding name: ``` > setNames(lapply(names_data, function(x) gsub(x, "", levels_selected[grepl(x, levels_selected)])), names_data) $A [1] "1" "3" $B [1] "low" "high" $C character(0) $D [1] "x" $E character(0) ```
37,234,576
I have a very simple php single page, that requires the user to insert a specific username and pass in order to access its contents. It generates a cookie that allows the user to access that page for one day. If the user is logged in, the list of contents appear. If it's not, it shows the form. It is all inside a sing...
2016/05/15
[ "https://Stackoverflow.com/questions/37234576", "https://Stackoverflow.com", "https://Stackoverflow.com/users/892490/" ]
We can create a grouping variable after keeping the substring that contains the "names\_data" in the "levels\_selected" ('grp'), `split` the substring with prefix removed using the 'grp' to get a `list`. ``` grp <- sub(paste0("^(", paste(names_data, collapse="|"), ").*"), "\\1", levels_selected) value <- gsub(paste(na...
So this is a handy little function I extended from the `regexpr` help example, using perl-style regex ``` parseAll <- function(data, pattern) { result <- gregexpr(pattern, data, perl = TRUE) do.call(rbind,lapply(seq_along(data), function(i) { if(any(result[[i]] == -1)) return("") st <- data.frame(attr(result...
29,726,131
I'm writing an algorithm to count the total amount of nodes a tree has. This is the code: ``` def tree_nodes(tree): """Given a tree, returns the total amount of nodes it has.""" def recursive_node_count(node): """Recursive count function.""" childs = tree[node] if childs == None: ...
2015/04/19
[ "https://Stackoverflow.com/questions/29726131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2924465/" ]
There are 2 problems with your current code, 1. You don't count the root node currently 2. You return a 1 when there are no child, you should be returning 0 in that case. We similarly need to count the number of childs at each level, so `nodes_so_far` should be initialised with the length of the childs' list Correcti...
Your answer was missing a couple of things. Here's the fixed version written around your code: ``` def tree_nodes(tree): def recursive_node_count(node): if node is None: return 0 total_nodes = 1 if tree[node]: for child in tree[node]: if child: ...
29,726,131
I'm writing an algorithm to count the total amount of nodes a tree has. This is the code: ``` def tree_nodes(tree): """Given a tree, returns the total amount of nodes it has.""" def recursive_node_count(node): """Recursive count function.""" childs = tree[node] if childs == None: ...
2015/04/19
[ "https://Stackoverflow.com/questions/29726131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2924465/" ]
There are 2 problems with your current code, 1. You don't count the root node currently 2. You return a 1 when there are no child, you should be returning 0 in that case. We similarly need to count the number of childs at each level, so `nodes_so_far` should be initialised with the length of the childs' list Correcti...
I was unable to reproduce the error given the code that you provided. There is nothing wrong with it syntactically and indeed it runs fine. I will edit my answer if you can provide more insight into the error you are getting. That being said, as noted by mu, this code will return the incorrect number of nodes. Specifi...
29,726,131
I'm writing an algorithm to count the total amount of nodes a tree has. This is the code: ``` def tree_nodes(tree): """Given a tree, returns the total amount of nodes it has.""" def recursive_node_count(node): """Recursive count function.""" childs = tree[node] if childs == None: ...
2015/04/19
[ "https://Stackoverflow.com/questions/29726131", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2924465/" ]
Your answer was missing a couple of things. Here's the fixed version written around your code: ``` def tree_nodes(tree): def recursive_node_count(node): if node is None: return 0 total_nodes = 1 if tree[node]: for child in tree[node]: if child: ...
I was unable to reproduce the error given the code that you provided. There is nothing wrong with it syntactically and indeed it runs fine. I will edit my answer if you can provide more insight into the error you are getting. That being said, as noted by mu, this code will return the incorrect number of nodes. Specifi...
23,758,192
I'm trying to get a string value from radioButton, but when I try it shows this error on LogCat. I can't seem to figure how to fix it..these are the codes : ``` protected void onCreate(Bundle konsumsi) { super.onCreate(konsumsi); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGr...
2014/05/20
[ "https://Stackoverflow.com/questions/23758192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2301427/" ]
Reverse the statements ``` radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); setContentView(R.layout.aktivitas_user); ``` to ``` setContentView(R.layout.aktivitas_user); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); ```
change ``` radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup);// null pointer boz you call it before initialize xml file. setContentView(R.layout.aktivitas_user); ``` to ``` setContentView(R.layout.aktivitas_user); //set layout first radioAktivitasGroup = (RadioGroup) findViewById(R.id....
23,758,192
I'm trying to get a string value from radioButton, but when I try it shows this error on LogCat. I can't seem to figure how to fix it..these are the codes : ``` protected void onCreate(Bundle konsumsi) { super.onCreate(konsumsi); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGr...
2014/05/20
[ "https://Stackoverflow.com/questions/23758192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2301427/" ]
Reverse the statements ``` radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); setContentView(R.layout.aktivitas_user); ``` to ``` setContentView(R.layout.aktivitas_user); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); ```
Move this ``` radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); ``` after ``` setContentView(R.layout.aktivitas_user); ``` Like, ``` setContentView(R.layout.aktivitas_user); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); ```
23,758,192
I'm trying to get a string value from radioButton, but when I try it shows this error on LogCat. I can't seem to figure how to fix it..these are the codes : ``` protected void onCreate(Bundle konsumsi) { super.onCreate(konsumsi); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGr...
2014/05/20
[ "https://Stackoverflow.com/questions/23758192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2301427/" ]
Reverse the statements ``` radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); setContentView(R.layout.aktivitas_user); ``` to ``` setContentView(R.layout.aktivitas_user); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); ```
try below code :- ``` radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); setContentView(R.layout.aktivitas_user); ``` to ``` // this right way to do setContentView(R.layout.aktivitas_user); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); ``` N...
23,758,192
I'm trying to get a string value from radioButton, but when I try it shows this error on LogCat. I can't seem to figure how to fix it..these are the codes : ``` protected void onCreate(Bundle konsumsi) { super.onCreate(konsumsi); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGr...
2014/05/20
[ "https://Stackoverflow.com/questions/23758192", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2301427/" ]
Reverse the statements ``` radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); setContentView(R.layout.aktivitas_user); ``` to ``` setContentView(R.layout.aktivitas_user); radioAktivitasGroup = (RadioGroup) findViewById(R.id.radioAktivitasGroup); ```
use setContentView first, and then findViewById
37,941,989
I'm using Xcode 7.3.1 and Swift, and i'm trying to set a random number between 1 and 50 like that: `variableName = random()%50` Then i have to move an ImageView in the Y axe of that random value: `imageviewName.center.y = imageviewName.center.y - variableName` But it gives me the following error: "cannot convert valu...
2016/06/21
[ "https://Stackoverflow.com/questions/37941989", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6493201/" ]
You need to covert the Int to CGFloat ``` imageviewName.center.y = imageviewName.center.y - CGFloat(variableName) ```
You need to cast variableName to CGFloat. because random() returns an Int and not A CGFloat. ``` imageviewName.center.y = imageviewName.center.y - CGFloat(variableName) ```
50,191
A [micropreneur](http://www.investordictionary.com/definition/micropreneur) is basically an micro-entrepreneur. In the following phrase, is micropreneur or micropreneurial correct? > > A micropreneur software company > > >
2011/12/01
[ "https://english.stackexchange.com/questions/50191", "https://english.stackexchange.com", "https://english.stackexchange.com/users/15461/" ]
*Micropreneur* is a noun. *Micropreneurial* is the adjective form - but if i were you, I'd reconsider using that to describe a software company. I've seen it used along with nouns such as - a *micropreneurial* venture, a *micropreneurial* experience etc., A micropreneur is described as a person who starts a small bus...
You should probably use *micropreneurial*, since in that context most would use *entrepreneurial*. It's more grammatically correct to use an adjective anyways; so *micropreneurial* fits the bill. Or, you could say: > > A micropreneur's software company. > > >
68,292,742
I have a problem that is very similar to this SO thread: [how to replace all lines between two points and subtitute it with some text in sed](https://stackoverflow.com/questions/5178828/how-to-replace-all-lines-between-two-points-and-subtitute-it-with-some-text-in-s) Consider a problem like this: ``` $ cat file BEGIN...
2021/07/07
[ "https://Stackoverflow.com/questions/68292742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6534818/" ]
> > It failed with “pointer arithmetic on pkt\_end prohibited” > > > As Andrew said in comments, you'll first have to declare `temp_data` as a `__u8*` to be able to run `temp_data++`. > > To satisfy the verifier and make sure that this is not an infinite loop there is a way to not do that? > > > No, all loop...
Thank you all for your help! I used Andrew and pchaigno advice and the verifier still reject my program. Then I understood that my problem also was that I was incremented the pointer without checking it. ``` int xdp_start(struct xdp_md* ctx) { void* data = (void*)(long)ctx->data; void* data_end = (void*)(long)...
55,768,097
I have a set of key/value pairs that came from a JSON file. ``` $ $p.dependencies @architect/architect : ^5.7.0 @architect/functions : ^3.0.4 assert : ^1.4.1 bcrypt : ^3.0.6 find-parent-dir : ^0.3.0 hashids : ^1.2.2 http-status-codes : ^1.3.2 lodash.get : ^4....
2019/04/19
[ "https://Stackoverflow.com/questions/55768097", "https://Stackoverflow.com", "https://Stackoverflow.com/users/123671/" ]
To get a property with special characters in the name, quote it: ``` $p.dependencies.'@architect/functions' ```
[Tomalak's helpful answer](https://stackoverflow.com/a/55768173/45375) solves your problem. As for your attempt to use `where` (`Where-Object`) to retrieve the property of interest: > > `$p.dependencies | where $_.key -eq "@architect/functions"` > > > There are two fundamental problems: * In the abstract, using...
57,689,402
I want to present a fullscreen ViewController "A" to cover our loading process across ViewControllers "B" AND "C", or in other words, 1) I present ViewController A from ViewController B, 2) segue from ViewController B to ViewController C while ViewController A is showing, 3) dismiss the ViewController A into ViewContro...
2019/08/28
[ "https://Stackoverflow.com/questions/57689402", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5476481/" ]
If I understood correctly you need a dynamic web page containing a script that makes HTTP calls to a configurable URL. That can be achieved using [Server Side Includes](http://nginx.org/en/docs/http/ngx_http_ssi_module.html). with `nginx`. The webpage could include a configuration file that is created during the initia...
Yes, it is possible,But you can do this using docker network if you want some routing. but you can do anything with Docker. According you question title you want to use ENV in URL in the Nginx Configuration. Here is the way to do that. * Set Environment in Docker run command or Dockerfile * Use that Environment variab...
92,283
Just wondering if accidentals in music can be seen as a temporary change in scale. There's alot of scales that are just one note difference so they sound good when they're interchanged temporarily. For example, phrygian to natural minor is just a one note difference, dorian to natural minor is also just a one note diff...
2019/11/23
[ "https://music.stackexchange.com/questions/92283", "https://music.stackexchange.com", "https://music.stackexchange.com/users/-1/" ]
Sometimes it does, sometimes it doesn't. Sometimes an accidental is just a change in pitch. For example, it doesn't make a lot of sense to see a chromatic run as a sequence of jumps around the circle of fifths (listen to the famous "Entry of the gladiators" by Fučik which uses lots of chromatic sequences over a quite s...
No, not normally. There are, in 12tet, 12 notes available to make tunes out of. Basically, 7 of those are used - the diatonic notes. But if a composer decides that one of the other 5 need to be played, he'll use it. But to do so, it needs writing as an accidental, as it's not in the set of diatonic notes for that key. ...
92,283
Just wondering if accidentals in music can be seen as a temporary change in scale. There's alot of scales that are just one note difference so they sound good when they're interchanged temporarily. For example, phrygian to natural minor is just a one note difference, dorian to natural minor is also just a one note diff...
2019/11/23
[ "https://music.stackexchange.com/questions/92283", "https://music.stackexchange.com", "https://music.stackexchange.com/users/-1/" ]
Sometimes it does, sometimes it doesn't. Sometimes an accidental is just a change in pitch. For example, it doesn't make a lot of sense to see a chromatic run as a sequence of jumps around the circle of fifths (listen to the famous "Entry of the gladiators" by Fučik which uses lots of chromatic sequences over a quite s...
An accidental means either a temporary scale change, or an out-of-scale passing note. But accidentals are only written for explicitly written notes. The lack of an accidental does not mean that there couldn't be an implied temporary scale change. For example if in a song that's in C major, there's a D7 chord (which has...
92,283
Just wondering if accidentals in music can be seen as a temporary change in scale. There's alot of scales that are just one note difference so they sound good when they're interchanged temporarily. For example, phrygian to natural minor is just a one note difference, dorian to natural minor is also just a one note diff...
2019/11/23
[ "https://music.stackexchange.com/questions/92283", "https://music.stackexchange.com", "https://music.stackexchange.com/users/-1/" ]
An accidental means either a temporary scale change, or an out-of-scale passing note. But accidentals are only written for explicitly written notes. The lack of an accidental does not mean that there couldn't be an implied temporary scale change. For example if in a song that's in C major, there's a D7 chord (which has...
No, not normally. There are, in 12tet, 12 notes available to make tunes out of. Basically, 7 of those are used - the diatonic notes. But if a composer decides that one of the other 5 need to be played, he'll use it. But to do so, it needs writing as an accidental, as it's not in the set of diatonic notes for that key. ...
92,283
Just wondering if accidentals in music can be seen as a temporary change in scale. There's alot of scales that are just one note difference so they sound good when they're interchanged temporarily. For example, phrygian to natural minor is just a one note difference, dorian to natural minor is also just a one note diff...
2019/11/23
[ "https://music.stackexchange.com/questions/92283", "https://music.stackexchange.com", "https://music.stackexchange.com/users/-1/" ]
> > For instance, in Chopin's Nocturne in B-flat minor in the first > measure there's an accidental on the fourth note. But it's really just > a change from B-flat natural minor to B-flat harmonic minor, which has > the A note, which isn't in the natural minor. > > > This idea makes the assumption that Chopin i...
No, not normally. There are, in 12tet, 12 notes available to make tunes out of. Basically, 7 of those are used - the diatonic notes. But if a composer decides that one of the other 5 need to be played, he'll use it. But to do so, it needs writing as an accidental, as it's not in the set of diatonic notes for that key. ...
92,283
Just wondering if accidentals in music can be seen as a temporary change in scale. There's alot of scales that are just one note difference so they sound good when they're interchanged temporarily. For example, phrygian to natural minor is just a one note difference, dorian to natural minor is also just a one note diff...
2019/11/23
[ "https://music.stackexchange.com/questions/92283", "https://music.stackexchange.com", "https://music.stackexchange.com/users/-1/" ]
> > For instance, in Chopin's Nocturne in B-flat minor in the first > measure there's an accidental on the fourth note. But it's really just > a change from B-flat natural minor to B-flat harmonic minor, which has > the A note, which isn't in the natural minor. > > > This idea makes the assumption that Chopin i...
An accidental means either a temporary scale change, or an out-of-scale passing note. But accidentals are only written for explicitly written notes. The lack of an accidental does not mean that there couldn't be an implied temporary scale change. For example if in a song that's in C major, there's a D7 chord (which has...
18,064,785
I have the following query which is driving me insane: ``` $getLowestPriceN = $wpdb->get_results("SELECT * FROM $table WHERE post_id = '$post->post_id' AND meta_key = '_wholesale_price' ...
2013/08/05
[ "https://Stackoverflow.com/questions/18064785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1214660/" ]
Yes, you're probably gonna need a database to make this work the way you want. Let's say your page is called [`example.com`](http://example.com), and there's a video in the address [`example.com/watch.php?video-id=123`](http://example.com/watch.php?video-id=123), what you'd want to do in your `watch.php` [PHP](http://w...
``` <?php $videokey = $_REQUEST['key']; $connect = myqli_connect('localhost,'dbusername','dbpassword,'dbname'); $SQL = "SELECT 'videoname' where videokey = $videokey "; $query = mysqli_query($SQL); $result = mysqli_fetch_array($query, MYSQLI_ASSOC); ?> <html> <body> <video width="320" height="240" controls> <...
18,064,785
I have the following query which is driving me insane: ``` $getLowestPriceN = $wpdb->get_results("SELECT * FROM $table WHERE post_id = '$post->post_id' AND meta_key = '_wholesale_price' ...
2013/08/05
[ "https://Stackoverflow.com/questions/18064785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1214660/" ]
``` <?php $videokey = $_REQUEST['key']; $connect = myqli_connect('localhost,'dbusername','dbpassword,'dbname'); $SQL = "SELECT 'videoname' where videokey = $videokey "; $query = mysqli_query($SQL); $result = mysqli_fetch_array($query, MYSQLI_ASSOC); ?> <html> <body> <video width="320" height="240" controls> <...
Here is the method for youtube.com Video embed Php Code: You can see URL Here `https://www.youtube.com/embed/XXX`. Here `XXX` you need to put this PHP code : ```php <? php echo $_GET['id']; ? > ``` You should need to remove the space between `<?` and `php`from the start of the example `<? php` and at the end you onl...
18,064,785
I have the following query which is driving me insane: ``` $getLowestPriceN = $wpdb->get_results("SELECT * FROM $table WHERE post_id = '$post->post_id' AND meta_key = '_wholesale_price' ...
2013/08/05
[ "https://Stackoverflow.com/questions/18064785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1214660/" ]
Yes, you're probably gonna need a database to make this work the way you want. Let's say your page is called [`example.com`](http://example.com), and there's a video in the address [`example.com/watch.php?video-id=123`](http://example.com/watch.php?video-id=123), what you'd want to do in your `watch.php` [PHP](http://w...
I read your question and I think you want to make a single watch page with your all video. If stand alone player is having a playlist its may be ok. I suggest you can use some js library you 're not necessary to learn PHP and MYSQL. I found this Library <http://mediafront.org/osmplayer/#.Uf_wrzmy_Dc> I think its v...
18,064,785
I have the following query which is driving me insane: ``` $getLowestPriceN = $wpdb->get_results("SELECT * FROM $table WHERE post_id = '$post->post_id' AND meta_key = '_wholesale_price' ...
2013/08/05
[ "https://Stackoverflow.com/questions/18064785", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1214660/" ]
Yes, you're probably gonna need a database to make this work the way you want. Let's say your page is called [`example.com`](http://example.com), and there's a video in the address [`example.com/watch.php?video-id=123`](http://example.com/watch.php?video-id=123), what you'd want to do in your `watch.php` [PHP](http://w...
Here is the method for youtube.com Video embed Php Code: You can see URL Here `https://www.youtube.com/embed/XXX`. Here `XXX` you need to put this PHP code : ```php <? php echo $_GET['id']; ? > ``` You should need to remove the space between `<?` and `php`from the start of the example `<? php` and at the end you onl...