qid
int64
1
74.7M
question
stringlengths
0
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
2
48.3k
response_k
stringlengths
2
40.5k
320,304
I will go on a site where is a HP PSC 1350 printer but no internet connection. I understand that there is no driver for download available from HP and it will connect to WinUpdate once connected the printer with USB. But there will be no Internet. Any chance to get the driver without connection to the printer ?
2011/08/07
[ "https://superuser.com/questions/320304", "https://superuser.com", "https://superuser.com/users/11334/" ]
Why can't you download the driver from HP and put it on a CD-ROM or usb stick? [hp link to download driver](http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?product=306888&lc=en&cc=us&dlc=en&lang=en&cc=us)
Contact HP to see what options they may have in this situation. They may be able to get you a physical disk, possibly for a small handling fee.
320,304
I will go on a site where is a HP PSC 1350 printer but no internet connection. I understand that there is no driver for download available from HP and it will connect to WinUpdate once connected the printer with USB. But there will be no Internet. Any chance to get the driver without connection to the printer ?
2011/08/07
[ "https://superuser.com/questions/320304", "https://superuser.com", "https://superuser.com/users/11334/" ]
I think you are misinterpreting the message. Yes, it says *Install the Driver Using Windows Update with a USB Connection (Downloadable Driver Not Available)*, but if you click that link, it leads you to [this page](http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01796879&cc=us&dlc=en&lc=en&os=4062&product=306888&...
Contact HP to see what options they may have in this situation. They may be able to get you a physical disk, possibly for a small handling fee.
320,304
I will go on a site where is a HP PSC 1350 printer but no internet connection. I understand that there is no driver for download available from HP and it will connect to WinUpdate once connected the printer with USB. But there will be no Internet. Any chance to get the driver without connection to the printer ?
2011/08/07
[ "https://superuser.com/questions/320304", "https://superuser.com", "https://superuser.com/users/11334/" ]
I think you are misinterpreting the message. Yes, it says *Install the Driver Using Windows Update with a USB Connection (Downloadable Driver Not Available)*, but if you click that link, it leads you to [this page](http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01796879&cc=us&dlc=en&lc=en&os=4062&product=306888&...
Why can't you download the driver from HP and put it on a CD-ROM or usb stick? [hp link to download driver](http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?product=306888&lc=en&cc=us&dlc=en&lang=en&cc=us)
241,758
In VB6 you can do this: ``` Dim a As Variant a = Array(1, 2, 3) ``` Can you do a similar thing in VB.NET with specific types, like so?: ``` Dim a() As Integer a = **Array**(1, 2, 3) ```
2008/10/27
[ "https://Stackoverflow.com/questions/241758", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1670/" ]
``` Dim a() As Integer = New Integer() {1, 2, 3} ```
If you are new to .NET you will want to learn about the List collection and the flexibility it will give you in [respect to sorting, filtering, and iteration](http://msdn.microsoft.com/en-us/library/41107z8a(VS.80).aspx).
63,296,071
``` x = 2 if x < 5: print("X is Smaller") elif x < 10: print("X is Medium") else: print("X is Bigger") print("All Done") ``` OUTPUT: ``` X is Smaller All Done ``` My question is x = 2 is smaller than 5 as well as 10. Then Why the output is the if statement i.e "X is smaller"??? Why not elif stateme...
2020/08/07
[ "https://Stackoverflow.com/questions/63296071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10411516/" ]
I can't see a way you could align spring-batch's single transaction for writing the whole chunk as atomic vs your idea of keeping the atomicity to individual writers as long as you want `skiplistener`. I am not sure if this is possible but may be you will be able to test it quickly. This is how the message carries the...
A couple things here: 1. **Do not use `@Transactional` with Spring Batch -** Spring Batch manages the transactions for you so using that annotation will cause issues. Do not use it. 2. **Manage the exceptions yourself -** In the scenario you are describing, where you want to call four `ItemWriter` implementations for ...
63,296,071
``` x = 2 if x < 5: print("X is Smaller") elif x < 10: print("X is Medium") else: print("X is Bigger") print("All Done") ``` OUTPUT: ``` X is Smaller All Done ``` My question is x = 2 is smaller than 5 as well as 10. Then Why the output is the if statement i.e "X is smaller"??? Why not elif stateme...
2020/08/07
[ "https://Stackoverflow.com/questions/63296071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/10411516/" ]
The main root cause of the issue was, we were trying to use two different `ItemWriter` to write the data into the same table and this was causing the Transaction to behave weirdly. We've implemented `SkipListenets` (considering the fact that use may not often get the garbage or junk data as we're performing the valida...
A couple things here: 1. **Do not use `@Transactional` with Spring Batch -** Spring Batch manages the transactions for you so using that annotation will cause issues. Do not use it. 2. **Manage the exceptions yourself -** In the scenario you are describing, where you want to call four `ItemWriter` implementations for ...
28,391,198
as we all know pdfium is now part of chrome, and this is a nice pdf render, but i am confronted with some problem. the code is as follows, the default page is 12 as sepcified by the #page=12 assignment, when this page is opened, i could jump or navigate to other pages, but how to get the page number using javascript? ...
2015/02/08
[ "https://Stackoverflow.com/questions/28391198", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1542339/" ]
I was finding the JS API too. On <http://src.chromium.org/viewvc/chrome/trunk/src/pdf/instance.cc> there are the following methods if someone need it: ``` object accessibility() bool documentLoadComplete() number getHeight() number getHorizontalScrollbarThickness() string getPageLocationNormalized() number getVerti...
2019 update: While looking at the PDFium engine source code and header files ([link here](https://chromium.googlesource.com/chromium/chromium/+/refs/heads/trunk/pdf/pdfium/)). I filtered out these API calls definitions: ``` virtual bool New(const char* url); virtual bool New(const char* url, virtual void PageOff...
34,683,330
I have 2 db tables - one is including all the entries, the other one is the "blacklist" - means i want to select all values excluding the entries of table 2 ``` $req = "SELECT * FROM table1 WHERE link_id != (SELECT id FROM table2)"; $stmt = $pdo->query($req); foreach($stmt as $data) { echo $data['link_id']."<br>"; ...
2016/01/08
[ "https://Stackoverflow.com/questions/34683330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983748/" ]
Just use an `int` instead. Otherwise, make your own boolean type: ``` enum { false, true }; typedef int bool; ``` If you want to store many booleans, consider ``` typedef char bool; ``` instead. Notice that neither make a “real” boolean type, as it can assume other values than just 0 and 1. Use the C convention t...
C99 has the `<stdbool.h>` header.
34,683,330
I have 2 db tables - one is including all the entries, the other one is the "blacklist" - means i want to select all values excluding the entries of table 2 ``` $req = "SELECT * FROM table1 WHERE link_id != (SELECT id FROM table2)"; $stmt = $pdo->query($req); foreach($stmt as $data) { echo $data['link_id']."<br>"; ...
2016/01/08
[ "https://Stackoverflow.com/questions/34683330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983748/" ]
Just use an `int` instead. Otherwise, make your own boolean type: ``` enum { false, true }; typedef int bool; ``` If you want to store many booleans, consider ``` typedef char bool; ``` instead. Notice that neither make a “real” boolean type, as it can assume other values than just 0 and 1. Use the C convention t...
You can use a `int` with `1` equal to `true` or `0` equal to `false` But I use this in my code at the top of the program, two constants to use the words `TRUE` and `FALSE` as if they were booleans: ``` #define FALSE 0 #define TRUE 1 ```
34,683,330
I have 2 db tables - one is including all the entries, the other one is the "blacklist" - means i want to select all values excluding the entries of table 2 ``` $req = "SELECT * FROM table1 WHERE link_id != (SELECT id FROM table2)"; $stmt = $pdo->query($req); foreach($stmt as $data) { echo $data['link_id']."<br>"; ...
2016/01/08
[ "https://Stackoverflow.com/questions/34683330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983748/" ]
C99 has the `<stdbool.h>` header.
You can use a `int` with `1` equal to `true` or `0` equal to `false` But I use this in my code at the top of the program, two constants to use the words `TRUE` and `FALSE` as if they were booleans: ``` #define FALSE 0 #define TRUE 1 ```
34,683,330
I have 2 db tables - one is including all the entries, the other one is the "blacklist" - means i want to select all values excluding the entries of table 2 ``` $req = "SELECT * FROM table1 WHERE link_id != (SELECT id FROM table2)"; $stmt = $pdo->query($req); foreach($stmt as $data) { echo $data['link_id']."<br>"; ...
2016/01/08
[ "https://Stackoverflow.com/questions/34683330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983748/" ]
You say that > > I've also tried the stdbool.h library , however it didn't work because the library wasn't found. > > > I'm inclined to suggest, then, that you find and use a conforming C99 or C2011 compiler. The former, at least, should not be too hard to put your hands on. Either will assuredly provide the head...
C99 has the `<stdbool.h>` header.
34,683,330
I have 2 db tables - one is including all the entries, the other one is the "blacklist" - means i want to select all values excluding the entries of table 2 ``` $req = "SELECT * FROM table1 WHERE link_id != (SELECT id FROM table2)"; $stmt = $pdo->query($req); foreach($stmt as $data) { echo $data['link_id']."<br>"; ...
2016/01/08
[ "https://Stackoverflow.com/questions/34683330", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3983748/" ]
You say that > > I've also tried the stdbool.h library , however it didn't work because the library wasn't found. > > > I'm inclined to suggest, then, that you find and use a conforming C99 or C2011 compiler. The former, at least, should not be too hard to put your hands on. Either will assuredly provide the head...
You can use a `int` with `1` equal to `true` or `0` equal to `false` But I use this in my code at the top of the program, two constants to use the words `TRUE` and `FALSE` as if they were booleans: ``` #define FALSE 0 #define TRUE 1 ```
40,678,328
during some questions here i got this code ``` SELECT s.CompanyName ,[250] AS ProductName, [251] AS ProductName, pc.CategoryID FROM Suppliers s INNER JOIN (SELECT SupplierID, CategoryID FROM Products GROUP BY SupplierID,CategoryID HAVING COUNT(...
2016/11/18
[ "https://Stackoverflow.com/questions/40678328", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
This doesnt really need pivot, just add one row\_id to each row, and arrange it with `GROUP BY` **[SQL DEMO](http://rextester.com/IOS61679)** ``` WITH add_id as ( SELECT *, row_number() over (partition by [CompanyName] ORDER BY [ProductName]) as rn FROM Table1 ) SELECT [CompanyName],...
First, `<aggregation function>` is missing . And you must alias the pivot not the list of values. Plus `Pvt` alias has no `CompanyName` column Try this syntax ``` SELECT s.CompanyName ,[250] AS ProductName1, [251] AS ProductName2, pc.CategoryID FROM Suppliers s INNER JOIN (SELECT SupplierID, CategoryID FR...
29,331,805
I want to produce the following sql using active record. ``` WHERE (column_name1, column_name1) IN (SELECT ....) ``` I don't know how to do this is active record. I've tried these so far ``` where('column_name1, column_name2' => {}) where([:column_name1, :column_name2] => {}) ``` This is the full query I'd like ...
2015/03/29
[ "https://Stackoverflow.com/questions/29331805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4516806/" ]
You set validInput to false, when it fails, but you never set validInput to true, when the input is, in fact, valid. Just add an else block to your if block, setting validInput to true.
It's because if the input is wrong, it's not extracted and removed from the input buffer, and since you call [`std::istream::ignore`](http://en.cppreference.com/w/cpp/io/basic_istream/ignore) without argument you only extract a single character from the invalid input, and if there's more invalid input after that then y...
29,331,805
I want to produce the following sql using active record. ``` WHERE (column_name1, column_name1) IN (SELECT ....) ``` I don't know how to do this is active record. I've tried these so far ``` where('column_name1, column_name2' => {}) where([:column_name1, :column_name2] => {}) ``` This is the full query I'd like ...
2015/03/29
[ "https://Stackoverflow.com/questions/29331805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4516806/" ]
It is because after you set validInput to false in the first run of the loop with an invalid input, there is no code to set it to true in other attempts, hece going into an infinite loop, i.e. the while condition always fails. What you need to do is set valdInput to true when the answer is within the valid expected va...
It's because if the input is wrong, it's not extracted and removed from the input buffer, and since you call [`std::istream::ignore`](http://en.cppreference.com/w/cpp/io/basic_istream/ignore) without argument you only extract a single character from the invalid input, and if there's more invalid input after that then y...
29,331,805
I want to produce the following sql using active record. ``` WHERE (column_name1, column_name1) IN (SELECT ....) ``` I don't know how to do this is active record. I've tried these so far ``` where('column_name1, column_name2' => {}) where([:column_name1, :column_name2] => {}) ``` This is the full query I'd like ...
2015/03/29
[ "https://Stackoverflow.com/questions/29331805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4516806/" ]
As LarsEggert already stated you never set back back the valid-flag to true if the input was in fact valid. I would solve it in the following way: ``` bool validInput; do { // Assumption: Input will be valid (Loop will not repeat in this case) validInput = true; cout << "Choose your attacking animal:" << endl; ...
It's because if the input is wrong, it's not extracted and removed from the input buffer, and since you call [`std::istream::ignore`](http://en.cppreference.com/w/cpp/io/basic_istream/ignore) without argument you only extract a single character from the invalid input, and if there's more invalid input after that then y...
29,331,805
I want to produce the following sql using active record. ``` WHERE (column_name1, column_name1) IN (SELECT ....) ``` I don't know how to do this is active record. I've tried these so far ``` where('column_name1, column_name2' => {}) where([:column_name1, :column_name2] => {}) ``` This is the full query I'd like ...
2015/03/29
[ "https://Stackoverflow.com/questions/29331805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4516806/" ]
It is because after you set validInput to false in the first run of the loop with an invalid input, there is no code to set it to true in other attempts, hece going into an infinite loop, i.e. the while condition always fails. What you need to do is set valdInput to true when the answer is within the valid expected va...
You set validInput to false, when it fails, but you never set validInput to true, when the input is, in fact, valid. Just add an else block to your if block, setting validInput to true.
29,331,805
I want to produce the following sql using active record. ``` WHERE (column_name1, column_name1) IN (SELECT ....) ``` I don't know how to do this is active record. I've tried these so far ``` where('column_name1, column_name2' => {}) where([:column_name1, :column_name2] => {}) ``` This is the full query I'd like ...
2015/03/29
[ "https://Stackoverflow.com/questions/29331805", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4516806/" ]
It is because after you set validInput to false in the first run of the loop with an invalid input, there is no code to set it to true in other attempts, hece going into an infinite loop, i.e. the while condition always fails. What you need to do is set valdInput to true when the answer is within the valid expected va...
As LarsEggert already stated you never set back back the valid-flag to true if the input was in fact valid. I would solve it in the following way: ``` bool validInput; do { // Assumption: Input will be valid (Loop will not repeat in this case) validInput = true; cout << "Choose your attacking animal:" << endl; ...
3,284,292
A bag contains $n$ balls numbered $1$ to $n$. We draw ALL the balls one by one till we empty the bag. **Question 1** : What is the probability that the balls numbered $1$ , $2$, $3$ get drawn consecutively and in this order. *My answer :* $$\dfrac{(n-3)!}{n!}$$ **Question 2** : What is the probability that the ball...
2019/07/05
[ "https://math.stackexchange.com/questions/3284292", "https://math.stackexchange.com", "https://math.stackexchange.com/users/649402/" ]
I think you're almost there. For the first question, you might consider balls 1, 2, 3 as one "big ball". Then you would have $n-2$ total balls. There are $(n-2)!$ ways to arrange these balls and precisely 1 way to rearrange the balls in the "big ball". You can get the probability from here. For the second exercise, yo...
**Question 1:** You're answer for this question is almost correct. The only problem with your answer is that it doesn't take into account that there are $n-2$ places where you could start to draw your consecutive $1,2,3$. Therefore the answer should be: $$\dfrac{(n-2)!}{n!}$$ **Question 2:** The answer you arrived a...
4,699,432
I want to prevent a user from entering blank spaces into a username textbox.I would be very grateful to the person,if anyone answered
2011/01/15
[ "https://Stackoverflow.com/questions/4699432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/568679/" ]
Use Javascript code as below: ``` <input type="text" name="myText" onKeypress="if (event.keyCode == 32) event.returnValue = false;"/> ``` tested in `Internet Explorer`
you have to use something in javascript or jquery to avoid it. I suggest you a Jquery pluglin, my favorite one is that: <http://www.meiocodigo.com/projects/meiomask/>
4,699,432
I want to prevent a user from entering blank spaces into a username textbox.I would be very grateful to the person,if anyone answered
2011/01/15
[ "https://Stackoverflow.com/questions/4699432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/568679/" ]
you have to use something in javascript or jquery to avoid it. I suggest you a Jquery pluglin, my favorite one is that: <http://www.meiocodigo.com/projects/meiomask/>
You can also use `FilteredTextBoxExtender` control from `AjaxControlToolkit`. It will ease your application's maintenance if you need to change or add other forbidden characters some day. > > See example here: [FilteredTextBox Sample](http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/FilteredTextBox/FilteredTextBox...
4,699,432
I want to prevent a user from entering blank spaces into a username textbox.I would be very grateful to the person,if anyone answered
2011/01/15
[ "https://Stackoverflow.com/questions/4699432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/568679/" ]
Use Javascript code as below: ``` <input type="text" name="myText" onKeypress="if (event.keyCode == 32) event.returnValue = false;"/> ``` tested in `Internet Explorer`
``` $('INPUT[type=text]').keypress(function(e) { if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if ((keycode == 32) ) //Space KeyCode ...
4,699,432
I want to prevent a user from entering blank spaces into a username textbox.I would be very grateful to the person,if anyone answered
2011/01/15
[ "https://Stackoverflow.com/questions/4699432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/568679/" ]
Use Javascript code as below: ``` <input type="text" name="myText" onKeypress="if (event.keyCode == 32) event.returnValue = false;"/> ``` tested in `Internet Explorer`
You can also use `FilteredTextBoxExtender` control from `AjaxControlToolkit`. It will ease your application's maintenance if you need to change or add other forbidden characters some day. > > See example here: [FilteredTextBox Sample](http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/FilteredTextBox/FilteredTextBox...
4,699,432
I want to prevent a user from entering blank spaces into a username textbox.I would be very grateful to the person,if anyone answered
2011/01/15
[ "https://Stackoverflow.com/questions/4699432", "https://Stackoverflow.com", "https://Stackoverflow.com/users/568679/" ]
``` $('INPUT[type=text]').keypress(function(e) { if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if ((keycode == 32) ) //Space KeyCode ...
You can also use `FilteredTextBoxExtender` control from `AjaxControlToolkit`. It will ease your application's maintenance if you need to change or add other forbidden characters some day. > > See example here: [FilteredTextBox Sample](http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/FilteredTextBox/FilteredTextBox...
19,091,129
How do I pass data from main thread to the method which is running in a different thread continuously? I have a timer in which the value will be continuously incremented and that data will have do be passed to the method in a different thread at each timer tick event. Please help. I don't have much knowledge about thre...
2013/09/30
[ "https://Stackoverflow.com/questions/19091129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2552855/" ]
For dojo.parse errors, I find it useful to pause the Chrome debugger on all exceptions (the purple icon on your screenshot, should be blue). You usally get more details about the cause of the error, the name of the DOM node being parsed, etc. in the first exception being raised. Rémi.
Usually what I do in situations like that is to place a breakpoint inside the error callback (line 3398 in your case) and then look into the error variable ("e"). I am not sure how familiar you are with the Web Inspector, but once you hit the breakpoint open the Web Inspector 'console' and check for the error properti...
19,091,129
How do I pass data from main thread to the method which is running in a different thread continuously? I have a timer in which the value will be continuously incremented and that data will have do be passed to the method in a different thread at each timer tick event. Please help. I don't have much knowledge about thre...
2013/09/30
[ "https://Stackoverflow.com/questions/19091129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2552855/" ]
Debugging dojo based application should be the same as debugging any javascript application. Usually I will follow these steps: 1. **add console.log() somewhere in code**: this is fast and most of time this is enough. 2. **set breakpoint in debugger**: if step 1 is not enough, you can base on error information to set...
Usually what I do in situations like that is to place a breakpoint inside the error callback (line 3398 in your case) and then look into the error variable ("e"). I am not sure how familiar you are with the Web Inspector, but once you hit the breakpoint open the Web Inspector 'console' and check for the error properti...
19,091,129
How do I pass data from main thread to the method which is running in a different thread continuously? I have a timer in which the value will be continuously incremented and that data will have do be passed to the method in a different thread at each timer tick event. Please help. I don't have much knowledge about thre...
2013/09/30
[ "https://Stackoverflow.com/questions/19091129", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2552855/" ]
Did you provide `isDebug: true` in your dojoConfig? Also, try to see if the same occurs in other browsers. **Update:** I recently discovered that there are issues with Google Chrome and Dojo debugging and I think it has to do with the asynchronous loading of files. As you can see in the provided screenshot of @spyro, ...
Usually what I do in situations like that is to place a breakpoint inside the error callback (line 3398 in your case) and then look into the error variable ("e"). I am not sure how familiar you are with the Web Inspector, but once you hit the breakpoint open the Web Inspector 'console' and check for the error properti...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
In any case "wrapper" is a bad choice for an id. In general, wrapping DIV's are not used for simple alignment tasks alone (use a SPAN otherwise) and do provide/determine a structure for your web page. Therefore, in my opinion, wrapping DIV's do not violate the content-presentation separation.
My personal opinion is wrappers have a very useful and necessary purpose although I dont use the term wrapper. Consider a div that has a set width of 200px but we want a border without effecting the width of the div we would need this solution: ``` div#posts { width: 200px; height: 200px; } div#posts-inner { ...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
In any case "wrapper" is a bad choice for an id. In general, wrapping DIV's are not used for simple alignment tasks alone (use a SPAN otherwise) and do provide/determine a structure for your web page. Therefore, in my opinion, wrapping DIV's do not violate the content-presentation separation.
It's best to think of this in terms of semantics. You should be using the right tag for the right part of your part. HTML5 is a big step in this direction allowing the use of more tags such as 'article', 'nav' and 'section', which are give more semantic meaning than div. However, div was a godsend for designers becaus...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
You can use something like: ``` <div id="content_container"> <div id="section_container"> <h2></h2> <p>stuff</p> </div> </div> ``` And I believe this gives correct structure to your document. Though it would probably be nicer to have elements for this (like `<content>` and `<section>`), because id can only be meanin...
It can do, though sometimes the div provides structure. We have to accept that CSS is not yet perfect and that compromises have to be made in our HTML. In particular in this case, when all browsers support the CSS3 pseudo-element `::outside` ( <http://www.w3.org/TR/css3-content/#wrapping> ) I think that many wrapper di...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
Kind of. But it doesn’t matter. Principles like “separate content and presentation” are helpful because they help you achieve your goals, by making code easier to change. They’re not like nuclear safety regulations — contradicting them won’t risk anyone dying, so “violation” is a bit of a strong word. Sticking in a w...
My personal opinion is wrappers have a very useful and necessary purpose although I dont use the term wrapper. Consider a div that has a set width of 200px but we want a border without effecting the width of the div we would need this solution: ``` div#posts { width: 200px; height: 200px; } div#posts-inner { ...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
You can use something like: ``` <div id="content_container"> <div id="section_container"> <h2></h2> <p>stuff</p> </div> </div> ``` And I believe this gives correct structure to your document. Though it would probably be nicer to have elements for this (like `<content>` and `<section>`), because id can only be meanin...
> > It's common to see a "DIV > id='wrapper'" to wrap around elements > inside so the body can be centered. In > pure HTML, it would never be used > because it's meaningless and it's used > ONLY for CSS. > > > Is a containing wall not a structural piece of a building? I would argue that a containing wall is i...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
Kind of. But it doesn’t matter. Principles like “separate content and presentation” are helpful because they help you achieve your goals, by making code easier to change. They’re not like nuclear safety regulations — contradicting them won’t risk anyone dying, so “violation” is a bit of a strong word. Sticking in a w...
It's best to think of this in terms of semantics. You should be using the right tag for the right part of your part. HTML5 is a big step in this direction allowing the use of more tags such as 'article', 'nav' and 'section', which are give more semantic meaning than div. However, div was a godsend for designers becaus...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
Kind of. But it doesn’t matter. Principles like “separate content and presentation” are helpful because they help you achieve your goals, by making code easier to change. They’re not like nuclear safety regulations — contradicting them won’t risk anyone dying, so “violation” is a bit of a strong word. Sticking in a w...
You can use something like: ``` <div id="content_container"> <div id="section_container"> <h2></h2> <p>stuff</p> </div> </div> ``` And I believe this gives correct structure to your document. Though it would probably be nicer to have elements for this (like `<content>` and `<section>`), because id can only be meanin...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
Kind of. But it doesn’t matter. Principles like “separate content and presentation” are helpful because they help you achieve your goals, by making code easier to change. They’re not like nuclear safety regulations — contradicting them won’t risk anyone dying, so “violation” is a bit of a strong word. Sticking in a w...
In any case "wrapper" is a bad choice for an id. In general, wrapping DIV's are not used for simple alignment tasks alone (use a SPAN otherwise) and do provide/determine a structure for your web page. Therefore, in my opinion, wrapping DIV's do not violate the content-presentation separation.
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
Kind of. But it doesn’t matter. Principles like “separate content and presentation” are helpful because they help you achieve your goals, by making code easier to change. They’re not like nuclear safety regulations — contradicting them won’t risk anyone dying, so “violation” is a bit of a strong word. Sticking in a w...
It can do, though sometimes the div provides structure. We have to accept that CSS is not yet perfect and that compromises have to be made in our HTML. In particular in this case, when all browsers support the CSS3 pseudo-element `::outside` ( <http://www.w3.org/TR/css3-content/#wrapping> ) I think that many wrapper di...
3,965,892
It's been said that the goal of CSS is to provide visual presentation and the goal of HTML is to provide structure of the document. Well, thank goodness. It has gotten so much easier, especially compared to font tags! But in practice, it seems that way many of us still rely on HTML to use CSS when it shouldn't be the...
2010/10/19
[ "https://Stackoverflow.com/questions/3965892", "https://Stackoverflow.com", "https://Stackoverflow.com/users/155366/" ]
If your DIV's ID has an exact equivalent in HTML5 (`div id="nav"`, for example) then it's structural and, therefore, perfectly acceptable. `div id="wrapper"` is probably the equivalent of `div id="article"` or `div id="section"`, so it's probably OK, although poorly-named, as Anzeo suggests.
My personal opinion is wrappers have a very useful and necessary purpose although I dont use the term wrapper. Consider a div that has a set width of 200px but we want a border without effecting the width of the div we would need this solution: ``` div#posts { width: 200px; height: 200px; } div#posts-inner { ...
41,291,586
I am rendering This piece of JSON(1) using angular.js 1.6, The title and description seem to load, however I am unable to get the url from the images property, it currently displays it like this : ``` <img ng-src="{"original": "https://xxx-export.s3.amazonaws.com/images/products/2016/12/product_1003_2.jpg"}"> ``` H...
2016/12/22
[ "https://Stackoverflow.com/questions/41291586", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1308681/" ]
Per [the docs](https://docs.python.org/3/library/string.html#format-string-syntax): > > A `format_spec` field can also include nested replacement fields within it. These nested replacement fields may contain a field name, conversion flag and format specification, but deeper nesting is not allowed. The replacement fie...
You could always do ``` ("{:"+str(numSpaces)+"}").format(i) ``` Alternatively, ``` ("{:{numSpaces}}").format(i, numSpaces=4) ```
54,382,519
I have removed a lot of unrelated code, so let me quickly explain the process I am currently trying to deal with. Someone uploads a CSV file, this file could be huge. To avoid sending something so big to the server, I want to process it on the client, as I know which columns I need to keep. So when the CSV is uploade...
2019/01/26
[ "https://Stackoverflow.com/questions/54382519", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4905433/" ]
I would recommend using computed properties to populate both select elements: ``` <option v-for="fileHeader in idHeaders" :value="fileHeader"> {{fileHeader}} </option> ``` ... ``` <option v-for="fileHeader in dateHeaders" :value="fileHeader"> {{fileHeader}} </option> ``` ... ``` computed: { idHeaders...
Try to check selected columns before sending data to server and show proper warrning to user ```js new Vue({ el: "#app", data: { selectedIdCol: null, selectedDateCol: null, fileHeaders: ['id', 'column1', 'columnData', 'column3', 'column...'] }, methods: { send: function(event) { ...
42,908,697
So, here is the pattern ``` ^(.*)\..*$|^(.*)$ ``` Test strings: 1. file.tar.gz 2. file For first test I would get the 'file.tar' in 'group 1' and 'file' in 'group 2'. But I want the output in only one group. I can't come up any other pattern. Not even sure if it is possible.
2017/03/20
[ "https://Stackoverflow.com/questions/42908697", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2015916/" ]
You need to make the first `.*` lazy, and use a negated character class inside an optional group: ``` ^(.*?)(?:\.[^.]*)?$ ``` See the [regex demo](https://regex101.com/r/0mewXL/1) **Details**: * `^` - start of string * `(.*?)` - any 0+ chars as few as possible * `(?:\.[^.]*)?` - an optional non-capturing group mat...
An other way using a double negation and without a capture group: ``` ^.*(?![^.]) ``` *(any number of characters from the start of the string, that is not followed by a character that isn't a dot.)* "not followed by a character that isn't a dot" <=> "followed by a dot or the end of the string" [demo](https://regex...
19,616,742
``` File file = new File((new StringBuilder()).append(s2).append(File.separator).append(s1).toString()); file.renameTo(new File((new StringBuilder()).append(s2).append(File.separator).append("$$tsjoof$$.xls").toString())); // SocketOpenOfficeConnection socketopenofficeconnection = new SocketOpenOfficeConn...
2013/10/27
[ "https://Stackoverflow.com/questions/19616742", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2663855/" ]
You should check on which address is listening OpenOffice and use that address. because it might not listening on `localhost (127.0.0.1)`. ``` SocketOpenOfficeConnection connection = new SocketOpenOfficeConnection("192.168.0.1", 8100); ```
The connection was refused. Without reading the documentation, I'm guessing OpenOffice is not listening on port 1234?
23,993,613
Which webservice should i use to get the zipcode from latitude and longitude? I am using Geonames API but it doesnot meet the requirement. I want to use anyother webservices which provides the zipcode/postalcode. ``` Geocoder geocoder; List<Address> addresses; geocoder = new Geocoder(this, Loca...
2014/06/02
[ "https://Stackoverflow.com/questions/23993613", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3663606/" ]
If per your comments elsewhere you cannot split the two elements apart for text purposes, then alternatively you should ensure that both existing elements share a common parent (e.g. a `<div>`) and then replace the *contents* of that parent: ``` <div id="parent"> <textarea>Old</textarea> <button>Old</button> </div...
You should separate the two out, to avoid trying to replace both in the same statement. ``` $('textarea').replaceWith('<textarea>New</textarea>'); $('button').replaceWith('<button>Old2</button>'); ```
60,840,794
I'm using a custom action to run a function from dll, but when I run the msi I built, I get the error: "There is a problem with this windows installer package. A DLL required for this install to complete could not be run. Contact you support..." This is what I did: ``` <Fragment> <UI> <Dialog Id="UserRegist...
2020/03/24
[ "https://Stackoverflow.com/questions/60840794", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11330271/" ]
***MakeSfxCA.exe***: The **`FileName.CA.dll`** dll is essentially an bundle of your .NET managed code dll and dependencies and it emulates a real dll so that MSI can handle it as custom action. It is made using a file called ***MakeSfxCA.exe*** - [There are some details here](https://stackoverflow.com/questions/5814116...
The binary element should point to the SetupDll.CA.dll not the SetupDll.dll.
178,459
Sometimes I'm on call for work overnight and would like to know a quick way that I can silence all notifications except for the call ringer. The closest thing I see is allowing calls from everyone on do not disturb but that will allow messages to ring as well.
2015/03/27
[ "https://apple.stackexchange.com/questions/178459", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/119721/" ]
Actually, Do Not Disturb is indeed your solution as it blocks ALL notifications EXCEPT the calls which you specifically allow. It will block message notifications. After you have configured the settings in Settings -> Do Not Disturb, all you need to do to enable it is swipe up from the bottom of the screen and tap th...
You can also head to Settings->Sounds->Text Tone and set tone and vibration there. You can configure texts for no sound and/or no vibration. Similarly, you can allow ALL calls (from any number) to ring as you have set in Settings->Sounds->Ringtone I was just dealing with the same issue as I expect and need to hear wor...
178,459
Sometimes I'm on call for work overnight and would like to know a quick way that I can silence all notifications except for the call ringer. The closest thing I see is allowing calls from everyone on do not disturb but that will allow messages to ring as well.
2015/03/27
[ "https://apple.stackexchange.com/questions/178459", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/119721/" ]
Actually, Do Not Disturb is indeed your solution as it blocks ALL notifications EXCEPT the calls which you specifically allow. It will block message notifications. After you have configured the settings in Settings -> Do Not Disturb, all you need to do to enable it is swipe up from the bottom of the screen and tap th...
Try and place your do not disturb button on, "ON" and that would just allow your phone to ring and will block all other incoming notifications. I have iphone 7
178,459
Sometimes I'm on call for work overnight and would like to know a quick way that I can silence all notifications except for the call ringer. The closest thing I see is allowing calls from everyone on do not disturb but that will allow messages to ring as well.
2015/03/27
[ "https://apple.stackexchange.com/questions/178459", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/119721/" ]
Actually, Do Not Disturb is indeed your solution as it blocks ALL notifications EXCEPT the calls which you specifically allow. It will block message notifications. After you have configured the settings in Settings -> Do Not Disturb, all you need to do to enable it is swipe up from the bottom of the screen and tap th...
With the 7/7 Plus you simply engage Do Not Disturb and select "Allow Calls" from "Everyone". Nice and easy.
43,875,554
I am trying to develop a VSIX package that adds a tab to the project designer for a couple of custom project properties. I have the package working in VS 2013 using `CfgPropertyPagesGuidsAddCSharp` as described in [this post](http://hmemcpy.com/2015/03/adding-a-custom-property-page-to-existing-project-types-in-visual-s...
2017/05/09
[ "https://Stackoverflow.com/questions/43875554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1144396/" ]
The following solution will work, but performance will suffer. This will return 1 row per person, I can rewrite it to return both rows. ``` Select * from tableA where tableA.column1 = myvalue1 and (tableA.column2 = myvalue2 and DCount("column2", "TableA", "column1 = """ & column1 & """ AND column2 = """ & myvalue3 & "...
Thanks Johnny, your suggestion inspired me to write a slightly different approach to the solution. I swapped the 'AND' to an 'OR' as others have suggested to extract any employee into a table if they have any of the qualifications. The result is a table with every required qualification for every employee who has one...
43,875,554
I am trying to develop a VSIX package that adds a tab to the project designer for a couple of custom project properties. I have the package working in VS 2013 using `CfgPropertyPagesGuidsAddCSharp` as described in [this post](http://hmemcpy.com/2015/03/adding-a-custom-property-page-to-existing-project-types-in-visual-s...
2017/05/09
[ "https://Stackoverflow.com/questions/43875554", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1144396/" ]
Based on new information, I'll submit this answer: My gut feeling is that you can't do this in one simple query. This sounds cludgy, but I think you're going to need one query created that's a SELECT DISTINCT query, and that query will pull one record for each employee: ``` Select DISTINCT Column1 from tableA ``` C...
Thanks Johnny, your suggestion inspired me to write a slightly different approach to the solution. I swapped the 'AND' to an 'OR' as others have suggested to extract any employee into a table if they have any of the qualifications. The result is a table with every required qualification for every employee who has one...
8,779,517
I have a database with 2 copies of 25 of the several thousand rows. how can I execute a command to remove one of each of these? the table is a table containing 2 foreign keys. example: ``` cID | sID 1 | 1 1 | 23 1 | 65 2 | 45 2 | 45 -> remove 2 | 89 3 | 1 3 | 65 3 | 107 ... ```
2012/01/08
[ "https://Stackoverflow.com/questions/8779517", "https://Stackoverflow.com", "https://Stackoverflow.com/users/931721/" ]
One solution would be to create another table: ``` create table replacement (cID ...., sID ....); # Only insert unique rows, which may be long insert into replacement select distinct cID, sID from origtable; # remove constraints from linked tables to origtable # add same constraints to replacement # add unique compoun...
`SELECT DISTINCT` is your friend.
40,700,748
``` #include <iostream> class C { private: int *o; public: C(int &i) { *o = i;} int* get_val() {return o;} }; int main() { int t = 9; C c(t); int* p = c.get_val(); std::cout<<*p<<std::endl; int* h = c.get_val(); //seg fault std::cout<<*h<<std::endl; ...
2016/11/20
[ "https://Stackoverflow.com/questions/40700748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4628497/" ]
The constructor C::C(int) doesn't initialize the member variable o. It tries to write through the pointer o via \*o=i, but since o is uninitialized, the results are unpredictable.
In ``` C(int &i) { *o = i;} ``` You have not already allocated space for you pointer before allocation. It should've been : ``` C(int i):o(new int){o=i;} ``` But allocating memory inside class functions requires that you need to systematically apply `delete/delete[]` on them. Well, this is to prevent memory leak....
40,700,748
``` #include <iostream> class C { private: int *o; public: C(int &i) { *o = i;} int* get_val() {return o;} }; int main() { int t = 9; C c(t); int* p = c.get_val(); std::cout<<*p<<std::endl; int* h = c.get_val(); //seg fault std::cout<<*h<<std::endl; ...
2016/11/20
[ "https://Stackoverflow.com/questions/40700748", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4628497/" ]
The constructor C::C(int) doesn't initialize the member variable o. It tries to write through the pointer o via \*o=i, but since o is uninitialized, the results are unpredictable.
You are not initialising C::o at all. The problem isn't that you're returning the private pointer; it's that you're assigning to memory you haven't allocated. Here's the output from gdb with a breakpoint at line 8 (C's constructor): ``` Breakpoint 1 at 0x400960: file tmp.cc, line 8. Breakpoint 1, C::C (this=0x7fffff...
32,277,622
I am working with codeigniter. My current htaccess file works fine on my local environment - but when I load it onto the server I am using I get a 404 page not found error. I am a complete newbie with htaccess - so you might have to spell it out for me. One thing that might affect this - I have several sites on the s...
2015/08/28
[ "https://Stackoverflow.com/questions/32277622", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5086076/" ]
`Server.MapPath` takes virtual path, ex: `~/Folder/file.ext`. So you can't pass in a physical path like `D:\Folder\PDF` to it. The syntax for accessing a remote file system is different, you need a UNC file path. In your config file, myPath should be like `\\servername\d$\Folder\PDF`, and you won't need any calls to `...
Here is a reference: [Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"\"), Server.MapPath("/"). What is the difference?](https://stackoverflow.com/questions/275781/server-mappath-server-mappath-server-mappath-server-mappath) Server.MapPath specifies the relative or virtual path to map to a physical director...
44,555,831
Following [this guide](https://auth0.com/blog/asp-dot-net-core-authentication-tutorial/) I was able to get authentication working using ``` Microsoft.AspNetCore.Identity.EntityFrameworkCore Microsoft.AspNetCore.Authentication.JwtBearer ``` Now I'm trying to secure my api endpoints with either roles, or claims. I've...
2017/06/14
[ "https://Stackoverflow.com/questions/44555831", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1933563/" ]
The answer is in this [mdsn blog post](https://blogs.msdn.microsoft.com/webdev/2017/04/06/jwt-validation-and-authorization-in-asp-net-core/): > > Authorizing based on roles is available out-of-the-box with ASP.NET > Identity. As long as the bearer token used for authentication contains > a roles element, ASP.NET Co...
I read that msdn post and added in startup: ``` internal class HasRoleRequerementAuthHandler : AuthorizationHandler<HasRoleRequirement> { protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, HasRoleRequirement requirement) { if (context.User.HasClaim(c => c.Type == J...
66,486
I have Dropbox installed on my Mac with OS X Lion 10.8.2. I don't use it often, so I eliminated it from the login item list. However, every time I open Dropbox from the application folder, it automatically add itself to the login item list. Is that normal, even if I locked changes? Can I prevent Dropbox to add itself t...
2012/10/06
[ "https://apple.stackexchange.com/questions/66486", "https://apple.stackexchange.com", "https://apple.stackexchange.com/users/-1/" ]
Under Dropbox preferences, there is a checkbox for "Start Dropbox on System Startup". However, as patrix says, Dropbox is really only useful if you leave it running all the time.
The idea of Dropbox is to always sync files across all your devices in the background. So disabling the login item doesn't really make sense from a Dropbox point of view. And at least at first glance I don't see significant drawbacks from keeping it there either. If you just want to access some files in your Dropbox a...
24,408,547
part of my script looks like this. ``` my @args = ("/bin/updateServer & "); system (@args) == 0 or die "system @args failed: $?"; reloadServer; ``` My requirement is only after the updateServer finishes, reloadServer has to be called. In my case reload server runs immeadiately after update server. UpdateServer runs ...
2014/06/25
[ "https://Stackoverflow.com/questions/24408547", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2993025/" ]
I know this has been answered already, but if you want to follow your original idea, here's the correct code (because Mritunjay's answer only works for one usage per page). ``` var changeIdValue = function (id, value) { document.getElementById(id).style.height = value; }; window.addEventListener('keydown',...
You can say something like this ``` window.onkeydown = function(e){ if(e.keyCode == 40) changeIdValue("balklongwaard", "60px"); }; ```
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
I just followed the below steps to solve this issue. **step1:** `npx react-native run-android` **step2:** `npm start -- --reset-cache` and it solved
I solved my issue doing this: <https://github.com/wcandillon/react-native-redash/issues/395> On top you just have to do this: `import 'react-native-reanimated';` on your app or index file.
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
I just followed the below steps to solve this issue. **step1:** `npx react-native run-android` **step2:** `npm start -- --reset-cache` and it solved
I had a require cycle warning from a git submodule inside the src folder which I thought wasn't doing any harm but turns out fixing that solved this issue. I am unsure why the require cycle was causing so much grief but I guess if you've got a require cycle in your output try solving that and it may fix this.
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
Using **Expo** in a bareworkflow * Clear app memory * run `expo start --dev-client --clear`
What I did was degrading react-native-reanimated to **^2.6.0**. It solved the issue for me.
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
Using **Expo** in a bareworkflow * Clear app memory * run `expo start --dev-client --clear`
I have tried all the solutions from stack Overflow. (Not working) Here is the fix: first check your version for `react-native-reanimated` and then see the actual documentation of the right version for the configuration. I am using version 2.4.1 and have solved by this [link](https://docs.swmansion.com/react-native-rea...
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
I had a require cycle warning from a git submodule inside the src folder which I thought wasn't doing any harm but turns out fixing that solved this issue. I am unsure why the require cycle was causing so much grief but I guess if you've got a require cycle in your output try solving that and it may fix this.
I Just solved this issue by doing these steps: 1. close Metro bundler 2. run this command > > npm start -- --reset-cache > > > > > react-native start --reset-cache > > > 3. rebuild the project again
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
Ok, what I ended up doing to solve this was: -just deleted the whole repo from my local -cloned it again from github -uninstalled the app from Android emulator Then it seemed to work. So maybe it was an error related to cache or something lingering around even after I had removed all instances of the word/packa...
I have tried all the solutions from stack Overflow. (Not working) Here is the fix: first check your version for `react-native-reanimated` and then see the actual documentation of the right version for the configuration. I am using version 2.4.1 and have solved by this [link](https://docs.swmansion.com/react-native-rea...
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
I have tried all the solutions from stack Overflow. (Not working) Here is the fix: first check your version for `react-native-reanimated` and then see the actual documentation of the right version for the configuration. I am using version 2.4.1 and have solved by this [link](https://docs.swmansion.com/react-native-rea...
I had a require cycle warning from a git submodule inside the src folder which I thought wasn't doing any harm but turns out fixing that solved this issue. I am unsure why the require cycle was causing so much grief but I guess if you've got a require cycle in your output try solving that and it may fix this.
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
I solved my issue doing this: <https://github.com/wcandillon/react-native-redash/issues/395> On top you just have to do this: `import 'react-native-reanimated';` on your app or index file.
I had this problem too and simply moved the babel plugin `react-native-reanimated/plugin` to the last place in the babel's config as stated in [the doc](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/#babel-plugin). I should probably mention it worked for me before but when I started...
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
I just followed the below steps to solve this issue. **step1:** `npx react-native run-android` **step2:** `npm start -- --reset-cache` and it solved
I have tried all the solutions from stack Overflow. (Not working) Here is the fix: first check your version for `react-native-reanimated` and then see the actual documentation of the right version for the configuration. I am using version 2.4.1 and have solved by this [link](https://docs.swmansion.com/react-native-rea...
70,750,047
> > TypeError: global.\_\_reanimatedWorkletInit is not a function. (In 'global.\_\_reanimatedWorkletInit(\_f)', 'global.\_\_reanimatedWorkletInit' is undefined) > > > I am using `React Native` (not expo). I don't even have `reanimated` downloaded. I had it downloaded then I removed it and rebuilt the app, and it's...
2022/01/18
[ "https://Stackoverflow.com/questions/70750047", "https://Stackoverflow.com", "https://Stackoverflow.com/users/17373187/" ]
I solved my issue doing this: <https://github.com/wcandillon/react-native-redash/issues/395> On top you just have to do this: `import 'react-native-reanimated';` on your app or index file.
I Just solved this issue by doing these steps: 1. close Metro bundler 2. run this command > > npm start -- --reset-cache > > > > > react-native start --reset-cache > > > 3. rebuild the project again
2,603,614
Every time I try to submit the form and I have not entered nothing in the year field I get `Incorrect year!` how can I still submit the form without having to enter a year. In other words leaving the year field blank and not getting a warning? Here is the PHP code. ``` if(preg_match('/^\d{4,}$/', $_POST['year'])) { ...
2010/04/08
[ "https://Stackoverflow.com/questions/2603614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/312287/" ]
``` if(preg_match('/^\d{4,}$/', $_POST['year'])) { $year = mysqli_real_escape_string($mysqli, $_POST['year']); } else { $year = false; } if ($year === false) { echo '<p class="error">Incorrect year!</p>'; } else { //do something } ``` OR (if you didn't set YEAR somewhere else) ``` if(preg_match('/^\...
``` if(preg_match('/^\d{4,}$/', $_POST['year'])) { $year = mysqli_real_escape_string($mysqli, $_POST['year']); } else if(empty($_POST['year'])){ $year = ''; } else { $year = null; } if($year == NULL) { echo '<p class="error">Incorrect year!</p>'; } else { //do something } ``` Perhaps I'm misunde...
2,603,614
Every time I try to submit the form and I have not entered nothing in the year field I get `Incorrect year!` how can I still submit the form without having to enter a year. In other words leaving the year field blank and not getting a warning? Here is the PHP code. ``` if(preg_match('/^\d{4,}$/', $_POST['year'])) { ...
2010/04/08
[ "https://Stackoverflow.com/questions/2603614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/312287/" ]
``` if(preg_match('/^\d{4,}$/', $_POST['year'])) { $year = mysqli_real_escape_string($mysqli, $_POST['year']); } else if(empty($_POST['year'])){ $year = ''; } else { $year = null; } if($year == NULL) { echo '<p class="error">Incorrect year!</p>'; } else { //do something } ``` Perhaps I'm misunde...
Hey you can just take this part out and it will take the echo out allowing you to submit with the field being blank ``` if($year == NULL) { echo '<p class="error">Incorrect year!</p>'; } else { //do something } ``` I wouldn't suggest allowing it to go blank into the database. Maybe you can just grab the defa...
2,603,614
Every time I try to submit the form and I have not entered nothing in the year field I get `Incorrect year!` how can I still submit the form without having to enter a year. In other words leaving the year field blank and not getting a warning? Here is the PHP code. ``` if(preg_match('/^\d{4,}$/', $_POST['year'])) { ...
2010/04/08
[ "https://Stackoverflow.com/questions/2603614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/312287/" ]
``` if(preg_match('/^\d{4,}$/', $_POST['year'])) { $year = mysqli_real_escape_string($mysqli, $_POST['year']); } else { $year = false; } if ($year === false) { echo '<p class="error">Incorrect year!</p>'; } else { //do something } ``` OR (if you didn't set YEAR somewhere else) ``` if(preg_match('/^\...
Hey you can just take this part out and it will take the echo out allowing you to submit with the field being blank ``` if($year == NULL) { echo '<p class="error">Incorrect year!</p>'; } else { //do something } ``` I wouldn't suggest allowing it to go blank into the database. Maybe you can just grab the defa...
10,748,653
I've created this service (using WCF, Azure): ``` [ServiceBehavior(AddressFilterMode = AddressFilterMode.Any)] public class Service1 : IPMPService { public int Dummy() { return 0; } } ``` Where IPMPService is: ``` [ServiceContract] public interface IPMPService { [WebGet()] [OperationCont...
2012/05/25
[ "https://Stackoverflow.com/questions/10748653", "https://Stackoverflow.com", "https://Stackoverflow.com/users/424952/" ]
Your first attempt is pretty close. There are just two fixes needed: ``` String METHOD_NAME = "Dummy"; String NAMESPACE = "http://tempuri.org/"; String URL = "http://tyty.cloudapp.net/Service1.svc"; String SOAP_ACTION = "http://tempuri.org/IPMPService/Dummy"; String res = ""; try { SoapObject request = new SoapOb...
``` public class RESTConnection extends Global { Global objglobal=Global.getInstance(); private static String SERVICE_URI = "your service path"; public JSONObject GetCashierLogin(String UserName, String Password) { new ArrayList<String>(); JSONObject jObj = null; try ...
302,288
Hamilton's equations for a Hamiltonian $H(q,p)$ w.r.t. to a standard symplectic from $\omega = dq \wedge dp$ are $$\dot{q} = \partial H\_{p}, \quad \dot{p} = - \partial H\_{q}$$ How do Hamilton's equations write w.r.t. a nonstandard symplectic form $F(q,p) dq \wedge dp$, where $F(q,p)$ is some smooth function?
2017/01/01
[ "https://physics.stackexchange.com/questions/302288", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/97098/" ]
1. More generally, let there be given a [Poisson manifold](https://en.wikipedia.org/wiki/Poisson_manifold) $(M,\pi)$, where $$\pi ~=~ \frac{1}{2} \pi^{IJ} \frac{\partial}{\partial z^I} \wedge \frac{\partial}{\partial z^J} \tag{1}$$ is a Poisson bi-vector, and $$\{ f, g\}\_{PB}~=~\frac{\partial f}{\partial z^I}\pi^{IJ}\...
A Hamiltonian $H:M\rightarrow \mathbb{R}$ defines a vector field $X\_H$ through the equation \begin{equation} \omega(X\_H,\cdot)=dH. \end{equation} For $\omega=F(q,p)dq\wedge dp$ and substituting the components $X\_H=X\_{Hq}\partial\_q+X\_{Hp}\partial\_p$ we get \begin{equation} F(q,p)(X\_{Hq}dp-X\_{Hp}dq)=(\partial...
8,788,319
I have a app with TabBar, under the main tabbar there are navigation controllers, under these there are 'branches' of tableviewcontollers. How can I make two unrelated, non segue-connected, under two different tab icons viewcontrollers exchange information between them? Tried with delegating but I can't get the insta...
2012/01/09
[ "https://Stackoverflow.com/questions/8788319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1133557/" ]
Have you considered posting an `NSNotification`, passing the data you want to transfer in `userInfo`? From the [Apple documentation](http://developer.apple.com/library/IOs/#documentation/General/Conceptual/DevPedia-CocoaCore/Notification.html): > > The object sending (or posting) the notification doesn’t have to kno...
You can use @property and @synthesize to create default getters and setters. You can aso create your own getters and setters manually.
8,788,319
I have a app with TabBar, under the main tabbar there are navigation controllers, under these there are 'branches' of tableviewcontollers. How can I make two unrelated, non segue-connected, under two different tab icons viewcontrollers exchange information between them? Tried with delegating but I can't get the insta...
2012/01/09
[ "https://Stackoverflow.com/questions/8788319", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1133557/" ]
I find `NSNotification`s not the best way to do this since you do couple the unrelated TableViewControllers. I think the flow of information in an application is crucial. The solution I would personally favor is having a central class, that manages the global data for your application. This can be the `AppDelegate` cl...
You can use @property and @synthesize to create default getters and setters. You can aso create your own getters and setters manually.
61,156,981
I want to protect my EC2 instance from DDos. And I found AWS has a service to protect instance called AWS Sheild On AWS's official website, it says `All AWS customers benefit from the automatic protections of AWS Shield Standard, at no additional charge... When you use AWS Shield Standard with Amazon CloudFront and Am...
2020/04/11
[ "https://Stackoverflow.com/questions/61156981", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7088272/" ]
From [this link](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html) (emphasis added): > > While **AWS Shield Standard helps protect all AWS customers**, you get > **particular benefit** if you are using Amazon CloudFront and Amazon Route > 53. These services receive comprehensive availability...
<https://docs.aws.amazon.com/waf/latest/developerguide/ddos-overview.html> This link states that AWS Shield Standard works for cloudfront and Route53. To protect EC2 you need to use AWS Shield Advance. <https://aws.amazon.com/shield/getting-started/> Here in the above link EC2 is only available in AWS Shield Advance...
45,510,824
I'm trying to limit the selected check box on my list view to just 3 selected items and I want to disable any click on the other list if the selected box is already 3. How to do that? I've been trying to solve it based on the answers on quite similar questions. But it still didn't work. All of the code will become err...
2017/08/04
[ "https://Stackoverflow.com/questions/45510824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8418093/" ]
Try this: ``` public class Second extends AppCompatActivity { ListView listview; String[] pStyle = new String[]{ "Fashion", "HDR", "Hi Speed", "Landscape", "Portrait", "Street", "Wedding" }; private static final int M...
use in this way: ``` ArrayAdapter<String> adapter = new ArrayAdapter<String> (second.this, android.R.layout.simple_list_item_multiple_choice, android.R.id.text1, pStyle ); listview.setAdapter(adapter); listview.setOnItemSelectedL...
45,510,824
I'm trying to limit the selected check box on my list view to just 3 selected items and I want to disable any click on the other list if the selected box is already 3. How to do that? I've been trying to solve it based on the answers on quite similar questions. But it still didn't work. All of the code will become err...
2017/08/04
[ "https://Stackoverflow.com/questions/45510824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8418093/" ]
I was working on a project and came to this issue but what I encountered with first answer is that if you reach the maximum number of checkbox and than select any other checkbox 2 or 3 time it lets you select it. I don't know why it was happening but then I came to know that listView it self has checked method and is w...
use in this way: ``` ArrayAdapter<String> adapter = new ArrayAdapter<String> (second.this, android.R.layout.simple_list_item_multiple_choice, android.R.id.text1, pStyle ); listview.setAdapter(adapter); listview.setOnItemSelectedL...
45,510,824
I'm trying to limit the selected check box on my list view to just 3 selected items and I want to disable any click on the other list if the selected box is already 3. How to do that? I've been trying to solve it based on the answers on quite similar questions. But it still didn't work. All of the code will become err...
2017/08/04
[ "https://Stackoverflow.com/questions/45510824", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8418093/" ]
I was working on a project and came to this issue but what I encountered with first answer is that if you reach the maximum number of checkbox and than select any other checkbox 2 or 3 time it lets you select it. I don't know why it was happening but then I came to know that listView it self has checked method and is w...
Try this: ``` public class Second extends AppCompatActivity { ListView listview; String[] pStyle = new String[]{ "Fashion", "HDR", "Hi Speed", "Landscape", "Portrait", "Street", "Wedding" }; private static final int M...
172,671
According to the Wikipedia page for the [Oxford Comma](http://en.wikipedia.org/wiki/Serial_comma#Arguments_for_and_against), "Use of the comma is consistent with conventional practice" and "Use of the comma is inconsistent with conventional practice." Did the Oxford Comma come before its omission, or was the Oxford Com...
2014/05/24
[ "https://english.stackexchange.com/questions/172671", "https://english.stackexchange.com", "https://english.stackexchange.com/users/-1/" ]
There are situations where use of the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma "(a.k.a. serial comma or series comma)") will make or break a sentence. **Choose a style and *be consistent*.** When you run into a situation in which your choice suggests a misinterpretation of the sentence, rewrite it in ...
I don't have information about the history of this, so I'm just responding to the second part of your question. Why should there be no comma before 'and'? The answer is simple - there has never been a convention for adding a comma (as far as I know) for mentioning two items: *I like apples and oranges* or *She doesn't ...
172,671
According to the Wikipedia page for the [Oxford Comma](http://en.wikipedia.org/wiki/Serial_comma#Arguments_for_and_against), "Use of the comma is consistent with conventional practice" and "Use of the comma is inconsistent with conventional practice." Did the Oxford Comma come before its omission, or was the Oxford Com...
2014/05/24
[ "https://english.stackexchange.com/questions/172671", "https://english.stackexchange.com", "https://english.stackexchange.com/users/-1/" ]
I don't have information about the history of this, so I'm just responding to the second part of your question. Why should there be no comma before 'and'? The answer is simple - there has never been a convention for adding a comma (as far as I know) for mentioning two items: *I like apples and oranges* or *She doesn't ...
According to Willam J. Strunk in *The Elements of Style*, Rule 2 states that a comma should be used after each term except the last in lists of three or more items. There is an exception which is in names of businesses, the correct example given is: Brown, Shipley and Company (as opposed to Brown, Shipley, and Company)...
172,671
According to the Wikipedia page for the [Oxford Comma](http://en.wikipedia.org/wiki/Serial_comma#Arguments_for_and_against), "Use of the comma is consistent with conventional practice" and "Use of the comma is inconsistent with conventional practice." Did the Oxford Comma come before its omission, or was the Oxford Com...
2014/05/24
[ "https://english.stackexchange.com/questions/172671", "https://english.stackexchange.com", "https://english.stackexchange.com/users/-1/" ]
There are situations where use of the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma "(a.k.a. serial comma or series comma)") will make or break a sentence. **Choose a style and *be consistent*.** When you run into a situation in which your choice suggests a misinterpretation of the sentence, rewrite it in ...
If find the Oxford comma to give fair representation to how people speak. When listing items in speech, equal pause is given between each item. For me, the Oxford comma emphasizes that there is, indeed, a pause before the 'and' preceding the last item of the list. I think the Oxford comma also indicates the direction ...
172,671
According to the Wikipedia page for the [Oxford Comma](http://en.wikipedia.org/wiki/Serial_comma#Arguments_for_and_against), "Use of the comma is consistent with conventional practice" and "Use of the comma is inconsistent with conventional practice." Did the Oxford Comma come before its omission, or was the Oxford Com...
2014/05/24
[ "https://english.stackexchange.com/questions/172671", "https://english.stackexchange.com", "https://english.stackexchange.com/users/-1/" ]
If find the Oxford comma to give fair representation to how people speak. When listing items in speech, equal pause is given between each item. For me, the Oxford comma emphasizes that there is, indeed, a pause before the 'and' preceding the last item of the list. I think the Oxford comma also indicates the direction ...
According to Willam J. Strunk in *The Elements of Style*, Rule 2 states that a comma should be used after each term except the last in lists of three or more items. There is an exception which is in names of businesses, the correct example given is: Brown, Shipley and Company (as opposed to Brown, Shipley, and Company)...
172,671
According to the Wikipedia page for the [Oxford Comma](http://en.wikipedia.org/wiki/Serial_comma#Arguments_for_and_against), "Use of the comma is consistent with conventional practice" and "Use of the comma is inconsistent with conventional practice." Did the Oxford Comma come before its omission, or was the Oxford Com...
2014/05/24
[ "https://english.stackexchange.com/questions/172671", "https://english.stackexchange.com", "https://english.stackexchange.com/users/-1/" ]
There are situations where use of the [Oxford comma](https://en.wikipedia.org/wiki/Serial_comma "(a.k.a. serial comma or series comma)") will make or break a sentence. **Choose a style and *be consistent*.** When you run into a situation in which your choice suggests a misinterpretation of the sentence, rewrite it in ...
According to Willam J. Strunk in *The Elements of Style*, Rule 2 states that a comma should be used after each term except the last in lists of three or more items. There is an exception which is in names of businesses, the correct example given is: Brown, Shipley and Company (as opposed to Brown, Shipley, and Company)...
12,039,378
I’ve a custom ListView containing 4 TextViews. Now, the TextViews have to be Linkifiable. Since Linkify wasn’t working in ListView, I made a callIntent function to see if the link is clickable or not. But if there’s no clickable link, I want to start a new Activity. I use the following code: ``` lvMembersLi...
2012/08/20
[ "https://Stackoverflow.com/questions/12039378", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1411787/" ]
Put this code in the `getView()` method in the adapter. And in your code `onItemClick` is called when you click on a row of the listview.
Add the following attribute for each of the textviews(The four textviews in the layout which going to use as the custom list item) ``` android:onClick="onTextView1_click" ``` - You have to do this for all the 4 textviews to track the click event seperately- --- Then in the code add the following method to trigger ...
257,984
When people say "Unbelievable" in texting, does it usually mean "Unbelievably good" or "Unbelievably bad", or neutral, when the context is unclear? Details about the background: I send something neutral and playful to a friend, and the friend replied "unbelievable" without any additional words or follow-ups. When th...
2020/08/21
[ "https://ell.stackexchange.com/questions/257984", "https://ell.stackexchange.com", "https://ell.stackexchange.com/users/104870/" ]
Without context, there is no way to know for sure, but my guess would be the more general sense of disbelief (“I don’t believe it”) regarding whatever they replied to. For instance, if you said “my friend did [something stupid]”, that response would mean they don’t believe the friend could be so stupid as to do that t...
In texts, it would *more likely* mean "amazing!" (ie, good) if the context is otherwise unclear. In general in English, it's extremely common to use (confusing!) reversals, double-negatives, sarcasm as the norm, etc.
15,625,971
I'm trying to implement a basic login in my app. What I want to do is set a "Global" variable as true / false if user is logged in. I've followed [this tutorial](https://stackoverflow.com/questions/708012/android-how-to-declare-global-variables). So this is my code now: ``` import android.app.Application; public cla...
2013/03/25
[ "https://Stackoverflow.com/questions/15625971", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1943607/" ]
Use `this.getApplication()` to get the `Application` associated with your `Activity`. But I think in your case, going to the `Application` is a bit overkill. You could just use a static field in a class. However, if you want the state to be retained when your `Activity` is discarded then you can use `SharedPreference...
If your variable is just to login and logout, is better you use a static variable and set it true on login and set it false on logout. ``` public static boolean loggedIn; ``` and use it as below: ``` myApplication.loggedIn = true; myApplication.loggedIn = false; ```
620,236
I'd like my VPS to host multiple applications. For instance * `mydomain.com` (Python Django App) * `git.mydomain.com` (Gitlab) * `blog.mydomain.com` (Wordpress) How can it be achieved to run all these on one physical machine? (Thinking of Heroku-Apps here) --- Since this question was being put on-hold for being off...
2014/08/13
[ "https://serverfault.com/questions/620236", "https://serverfault.com", "https://serverfault.com/users/114999/" ]
[Apache Virtual Host documentation](https://httpd.apache.org/docs/2.2/vhosts/index.html) can give you a good overview. Check [all [virtualhost] questions](https://serverfault.com/questions/tagged/virtualhost) for specifics for the specific OS and distribution you are using. On Debian/Ubuntu style systems you can add ...
If you are using Apache2, you can create a virtual host for each. I prefer to use named virtual hosts so I don't need a new ip address for each. The way I do it, is to add an include line in the /usr/local/apache/conf/extra/httpd\_vhosts.conf file that points to a directory containing all of your virtual host files. ...
1,921,315
I would like to compute $$\lim\_{n\to \infty }\int\_0^1 {\left(1+\frac{x}{n}\right)}^{-n}d x.$$ I know that $\lim\_{n\to \infty }(1+\frac{x}{n})^{-n}=e^{-x}$. I'm sure the convergence is uniform, but I have problem to show it. Let $$g\_n(x)=(1+\frac{x}{n})^{-n}-e^{-x}.$$ I have $$g\_n'(x)=-\left(1+\frac{x}{n}\right)^...
2016/09/10
[ "https://math.stackexchange.com/questions/1921315", "https://math.stackexchange.com", "https://math.stackexchange.com/users/349449/" ]
Put $y=1+\frac{x}{n}$ $$\int\_{0}^{1}(1+\frac{x}{n})^{-n}dx=\int\_{1}^{1+\frac{1}{n}}ny^{-n}dy=n[\frac{y^{1-n}}{1-n}]\_{1}^{1+\frac{1}{n}}=\frac{n}{1-n}((1+\frac{1}{n})^{1-n}-1)$$ $$\lim\_{n\to \infty}\int\_{0}^{1}(1+\frac{x}{n})^{-n}dx=\lim\_{n\to \infty}\frac{n}{1-n}((1+\frac{1}{n})^{1-n}-1)=(-1)(\frac{1}{e}-1)=1-\fr...
There is e.g. the following elementary way: For $x\geq 0$, denote $g(x)=(1+x)^{-1} \in (0,1]$. Then for $n\geq 1$, $0\leq x\leq 1$ we get by the MVT: $$ \left|g\left(\frac{x}{n}\right)-e^{-\frac{x}{n}}\right| \ \leq \ \left( \frac{1}{n}\sup\_{\xi\geq 0} \left| g'(\xi) +e^{-\xi} \right| \right)\ \ \left|\frac{x}{n}-0\r...
1,921,315
I would like to compute $$\lim\_{n\to \infty }\int\_0^1 {\left(1+\frac{x}{n}\right)}^{-n}d x.$$ I know that $\lim\_{n\to \infty }(1+\frac{x}{n})^{-n}=e^{-x}$. I'm sure the convergence is uniform, but I have problem to show it. Let $$g\_n(x)=(1+\frac{x}{n})^{-n}-e^{-x}.$$ I have $$g\_n'(x)=-\left(1+\frac{x}{n}\right)^...
2016/09/10
[ "https://math.stackexchange.com/questions/1921315", "https://math.stackexchange.com", "https://math.stackexchange.com/users/349449/" ]
I think the easy way is DCT. Note that trivially $$\left(1+\frac{x}{n}\right)^{-n}\leq1 $$ so $$\int\_{0}^{1}\left(1+\frac{x}{n}\right)^{-n}dx\leq1 $$ hence by the [Dominated Convergence Theorem](https://en.wikipedia.org/wiki/Dominated_convergence_theorem) we can swap the integral with the limit and so $$\lim\_{n\rig...
There is e.g. the following elementary way: For $x\geq 0$, denote $g(x)=(1+x)^{-1} \in (0,1]$. Then for $n\geq 1$, $0\leq x\leq 1$ we get by the MVT: $$ \left|g\left(\frac{x}{n}\right)-e^{-\frac{x}{n}}\right| \ \leq \ \left( \frac{1}{n}\sup\_{\xi\geq 0} \left| g'(\xi) +e^{-\xi} \right| \right)\ \ \left|\frac{x}{n}-0\r...
1,921,315
I would like to compute $$\lim\_{n\to \infty }\int\_0^1 {\left(1+\frac{x}{n}\right)}^{-n}d x.$$ I know that $\lim\_{n\to \infty }(1+\frac{x}{n})^{-n}=e^{-x}$. I'm sure the convergence is uniform, but I have problem to show it. Let $$g\_n(x)=(1+\frac{x}{n})^{-n}-e^{-x}.$$ I have $$g\_n'(x)=-\left(1+\frac{x}{n}\right)^...
2016/09/10
[ "https://math.stackexchange.com/questions/1921315", "https://math.stackexchange.com", "https://math.stackexchange.com/users/349449/" ]
The sequence $(1+\frac{x}{n})^{-n}$ is a decreasingly monotone sequence of continuous functions which converges pointwise on the compact set $[0,1]$ to the function $e^{-x}$ which is also continuous. Therefore by [Dini'Theorem](https://en.wikipedia.org/wiki/Dini%27s_theorem) the convergence is also uniform.
There is e.g. the following elementary way: For $x\geq 0$, denote $g(x)=(1+x)^{-1} \in (0,1]$. Then for $n\geq 1$, $0\leq x\leq 1$ we get by the MVT: $$ \left|g\left(\frac{x}{n}\right)-e^{-\frac{x}{n}}\right| \ \leq \ \left( \frac{1}{n}\sup\_{\xi\geq 0} \left| g'(\xi) +e^{-\xi} \right| \right)\ \ \left|\frac{x}{n}-0\r...
15,401,614
i am having an kendo treeview with checkbox template. my html code ``` <div id="treeview-left" style=" height: 375px; position: absolute;top: 30px;"></div> ``` I have defined the treeview like: ``` var treeview1 = $('#treeview-left').kendoTreeView({ select: onSelect, checkboxTemplate: kend...
2013/03/14
[ "https://Stackoverflow.com/questions/15401614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1874886/" ]
There is nothing wrong with: ``` for l in L: l[l == ERROR_VALUE] = np.nan ``` If you insist on one-linering it, you can use `__setitem__` in a comprehension. But don't.
If you're trying to do an *iterator* operation, so that @wim's approach is no good because it means your iterator is no longer lazy, I think your approach is perfectly reasonable. Defining small functions is not the worst thing. That said, I think these alternatives should work, though I'm on a tablet and haven't test...
15,401,614
i am having an kendo treeview with checkbox template. my html code ``` <div id="treeview-left" style=" height: 375px; position: absolute;top: 30px;"></div> ``` I have defined the treeview like: ``` var treeview1 = $('#treeview-left').kendoTreeView({ select: onSelect, checkboxTemplate: kend...
2013/03/14
[ "https://Stackoverflow.com/questions/15401614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1874886/" ]
**ANSWER** ``` L = (where(l!=ERROR_VALUE, l, np.nan) for l in L) ```
If you're trying to do an *iterator* operation, so that @wim's approach is no good because it means your iterator is no longer lazy, I think your approach is perfectly reasonable. Defining small functions is not the worst thing. That said, I think these alternatives should work, though I'm on a tablet and haven't test...
15,401,614
i am having an kendo treeview with checkbox template. my html code ``` <div id="treeview-left" style=" height: 375px; position: absolute;top: 30px;"></div> ``` I have defined the treeview like: ``` var treeview1 = $('#treeview-left').kendoTreeView({ select: onSelect, checkboxTemplate: kend...
2013/03/14
[ "https://Stackoverflow.com/questions/15401614", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1874886/" ]
You can use `numpy.place()`: ``` L = (np.place(l, l==ERROR_VALUE, np.nan) or l for l in L) ```
If you're trying to do an *iterator* operation, so that @wim's approach is no good because it means your iterator is no longer lazy, I think your approach is perfectly reasonable. Defining small functions is not the worst thing. That said, I think these alternatives should work, though I'm on a tablet and haven't test...
43,392,310
How to trim first three characters of a column in select query in DB2?. I tried below query but did not work ``` SELECT MIN(Column1),UPPER(RIGHT(Column2, LENGTH(Column2 - 3))) AS TEST FROM TEST_TABLE GROUP BY UPPER(Column2) ORDER BY UPPER(Column2); ``` I got below exception ``` The statement cannot be processed. ...
2017/04/13
[ "https://Stackoverflow.com/questions/43392310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6434836/" ]
You can simply use substring function to do the same. ``` SELECT MIN(Column1),substr(Column2,4) AS TEST FROM TEST_TABLE GROUP BY UPPER(substr(Column2,4)) ORDER BY UPPER(substr(Column2,4)); ```
Just do: ``` SELECT MIN(Column1),UPPER(substr(Column2, 4)) AS TEST FROM TEST_TABLE GROUP BY UPPER(substr(Column2, 4)) ORDER BY 2; ```
38,228,857
I have a div ``` <div id="box-loading-txt">txt</div> ``` and this jQuery code, that doesn't seem to work, div get updated with last HTML value "text B text B text B" even on first html() call ```js var t = 200; var d = 2000; $('#box-loading-txt').delay(d).animate({ 'opacity': 0 }, t, function() { $('#b...
2016/07/06
[ "https://Stackoverflow.com/questions/38228857", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2870416/" ]
Either if you are including libpng yourself or if another library is including and using libpng there are a few things to be aware of. * Which ever version of Visual Studio you are using, the libpng (dll or lib) files must be built from the same version of Visual Studio that your solution is linking against. * The pla...
Looking through the source code for `png_create_read_struct_2()`, there are only 2 failure modes: inability to allocate memory, which is unlikely to be the problem, and a library version conflict. If you are using a precompiled build of the pHash library, you must ensure that the copy of the libpng DLL that gets linke...
9,267,991
This is driving me crazy. I am getting error that > > object doesn't contain definition for DeleteObject. > > > Here is my line of code that produces an error: ``` ctx.Tanks.DeleteObject(Tank); ``` I tried to reference another object from another `edmx` file that my friend has created and then everything is f...
2012/02/13
[ "https://Stackoverflow.com/questions/9267991", "https://Stackoverflow.com", "https://Stackoverflow.com/users/507153/" ]
The `DbContext` API defines `DbSet`s not `ObjectSet`s. [DbSet](http://msdn.microsoft.com/en-us/library/gg696460%28v=vs.103%29.aspx) has a `Remove` method not `DeleteObject` method. You need to first decide which API you are going to use. If it the `ObjectContext` or `DbContext`.
``` [HttpPost] public ActionResult Delete(IEnumerable<int> employeeIdsToDelete) { var lstemployee = _db.StudentEmployees.Where(x => employeeIdsToDelete.Contains(x.Id)); foreach (var item in lstemployee) { _db.StudentEmployees.Remove(item); ...
6,028,442
I have a C# application that reads .msg files and extracts the body and the attachments. But when I try to load a .eml file the application crashes. I am loading the files like this: ``` MailItem mailItem = (MailItem)outlookApp.CreateItemFromTemplate(msgFileName); mailItem.SaveAs(fullFilename, OlSaveAsType.olHTML); //...
2011/05/17
[ "https://Stackoverflow.com/questions/6028442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698677/" ]
Try this sample code [Easily Retrieve Email Information from .EML Files](http://www.codeproject.com/KB/office/EML_Reader.aspx)
`CreateItemFromTemplate` only works with the MSG/OFT files. Fot the EML files you will either need to parse the file explicitly in your code or use a third party library (such as Redemption - I am its author): The following code will create an MSG file and import an EML file into it using [Redemption](http://www.dimas...
6,028,442
I have a C# application that reads .msg files and extracts the body and the attachments. But when I try to load a .eml file the application crashes. I am loading the files like this: ``` MailItem mailItem = (MailItem)outlookApp.CreateItemFromTemplate(msgFileName); mailItem.SaveAs(fullFilename, OlSaveAsType.olHTML); //...
2011/05/17
[ "https://Stackoverflow.com/questions/6028442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698677/" ]
`CreateItemFromTemplate` only works with the MSG/OFT files. Fot the EML files you will either need to parse the file explicitly in your code or use a third party library (such as Redemption - I am its author): The following code will create an MSG file and import an EML file into it using [Redemption](http://www.dimas...
In order to create a MailItem from a .eml file you can use the following two steps: at first you open an outlook process instance and then you create the MailItem with the Outlook API. ``` string file = @"C:\TestEML\EmlMail.eml"; System.Diagnostics.Process.Start(file); Outlook.Application POfficeApp = (Outlook.A...
6,028,442
I have a C# application that reads .msg files and extracts the body and the attachments. But when I try to load a .eml file the application crashes. I am loading the files like this: ``` MailItem mailItem = (MailItem)outlookApp.CreateItemFromTemplate(msgFileName); mailItem.SaveAs(fullFilename, OlSaveAsType.olHTML); //...
2011/05/17
[ "https://Stackoverflow.com/questions/6028442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698677/" ]
`CreateItemFromTemplate` only works with the MSG/OFT files. Fot the EML files you will either need to parse the file explicitly in your code or use a third party library (such as Redemption - I am its author): The following code will create an MSG file and import an EML file into it using [Redemption](http://www.dimas...
Although **Outlook can open EML files**, there is **no way to do it programatically** only with VBA. So I created this VBA macro which loops through some folder and opens each EML file using ***SHELL EXEC***. It may take a few milliseconds until Outlook opens the EML file, so the VBA waits until something is open in Ac...
6,028,442
I have a C# application that reads .msg files and extracts the body and the attachments. But when I try to load a .eml file the application crashes. I am loading the files like this: ``` MailItem mailItem = (MailItem)outlookApp.CreateItemFromTemplate(msgFileName); mailItem.SaveAs(fullFilename, OlSaveAsType.olHTML); //...
2011/05/17
[ "https://Stackoverflow.com/questions/6028442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698677/" ]
Try this sample code [Easily Retrieve Email Information from .EML Files](http://www.codeproject.com/KB/office/EML_Reader.aspx)
In order to create a MailItem from a .eml file you can use the following two steps: at first you open an outlook process instance and then you create the MailItem with the Outlook API. ``` string file = @"C:\TestEML\EmlMail.eml"; System.Diagnostics.Process.Start(file); Outlook.Application POfficeApp = (Outlook.A...
6,028,442
I have a C# application that reads .msg files and extracts the body and the attachments. But when I try to load a .eml file the application crashes. I am loading the files like this: ``` MailItem mailItem = (MailItem)outlookApp.CreateItemFromTemplate(msgFileName); mailItem.SaveAs(fullFilename, OlSaveAsType.olHTML); //...
2011/05/17
[ "https://Stackoverflow.com/questions/6028442", "https://Stackoverflow.com", "https://Stackoverflow.com/users/698677/" ]
Try this sample code [Easily Retrieve Email Information from .EML Files](http://www.codeproject.com/KB/office/EML_Reader.aspx)
Although **Outlook can open EML files**, there is **no way to do it programatically** only with VBA. So I created this VBA macro which loops through some folder and opens each EML file using ***SHELL EXEC***. It may take a few milliseconds until Outlook opens the EML file, so the VBA waits until something is open in Ac...
75,759
I have a three-wheat batter bread recipe that calls for baking in four 16 oz cans. What size pan can I substitute?
2016/11/22
[ "https://cooking.stackexchange.com/questions/75759", "https://cooking.stackexchange.com", "https://cooking.stackexchange.com/users/52188/" ]
Three small (but not mini) metal loaf pans (5"L x 3"W x 3"D) will do it. Check out vintage bakeware in thrift stores to find that odd size, or choose pans closest to that size.
Honestly, use whatever size pans you have available to you and just monitor the baking process. Get creative.