qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
469,964
I am using the current code in attempt to access a msSQL 2005 db: ``` <?php $myServer = "[server]"; $myUser = "[username]"; $myPass = "[password]"; $myDB = "[db]"; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); //select a d...
2009/01/22
[ "https://Stackoverflow.com/questions/469964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Download the driver in this site <http://www.microsoft.com/en-us/download/details.aspx?id=20098>, then open your php.ini file and add the DLL that you download.
if you using windows 10. step 1. click start button step 2. type Service and enter (open App Services) step 3. find - SQL Server (MSSQLSERVER) step 4. Right click ->select Properties step 5. show popup. you select 2nd tab (Log On) step 6. select local system account step 7. and check allow service to interact wi...
469,964
I am using the current code in attempt to access a msSQL 2005 db: ``` <?php $myServer = "[server]"; $myUser = "[username]"; $myPass = "[password]"; $myDB = "[db]"; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); //select a d...
2009/01/22
[ "https://Stackoverflow.com/questions/469964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Invalid credentials, if your not using localhost be sure you add the server's ip to the safe list.
if you using windows 10. step 1. click start button step 2. type Service and enter (open App Services) step 3. find - SQL Server (MSSQLSERVER) step 4. Right click ->select Properties step 5. show popup. you select 2nd tab (Log On) step 6. select local system account step 7. and check allow service to interact wi...
469,964
I am using the current code in attempt to access a msSQL 2005 db: ``` <?php $myServer = "[server]"; $myUser = "[username]"; $myPass = "[password]"; $myDB = "[db]"; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); //select a d...
2009/01/22
[ "https://Stackoverflow.com/questions/469964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
Try calling [`mssql_get_last_message()`](http://www.php.net/mssql_get_last_message) to get the last error message: ``` $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer. Error: " . mssql_get_last_message()); ```
stop using > > mssql\_connect > > > and start using > > sqlsrv\_connect > > > That will save you a lot of headaches. Plus, the function \*mssql\_connect\* has been deprecated. For using sqlsrv\_connect, you must download the driver and install it as an extension for PHP to recognize the *sqlsrv* functio...
469,964
I am using the current code in attempt to access a msSQL 2005 db: ``` <?php $myServer = "[server]"; $myUser = "[username]"; $myPass = "[password]"; $myDB = "[db]"; //connection to the database $dbhandle = mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); //select a d...
2009/01/22
[ "https://Stackoverflow.com/questions/469964", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
stop using > > mssql\_connect > > > and start using > > sqlsrv\_connect > > > That will save you a lot of headaches. Plus, the function \*mssql\_connect\* has been deprecated. For using sqlsrv\_connect, you must download the driver and install it as an extension for PHP to recognize the *sqlsrv* functio...
Download the driver in this site <http://www.microsoft.com/en-us/download/details.aspx?id=20098>, then open your php.ini file and add the DLL that you download.
15,305,606
JS Beginner here. I've been trying to make slabtext on my website but I get the an error. No idea how to fix it. ``` $(window).load(function() { Uncaught TypeError: Property '$' of object [object Object] is not a function slabTextHeadlines(); }); // Function to slabtext the hero panel function slabTextHeadlines()...
2013/03/09
[ "https://Stackoverflow.com/questions/15305606", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2150384/" ]
It looks like I ran into the same issue a while ago. And fixed it: the following approach worked fine for me. Assume you have a function that resizes your label based on a column's width: ``` protected function layoutTextInputs():void { var numCols:int = dataGrid.columns.length; var w:Number = 0; for (var...
I am using `mx:AdvancedDataGrid`. i simply assign an ID to a datagrid column. And i binded column width property with `inputText` as per requirement. it works for me... for example: ``` <s:textInput width="{myDatagridColumnID.width - 10}" /> ``` I am working in Flash Builder 4.6.
3,392,234
What is this flag? if (-M ..filepath..) what is the '-M' flag?
2010/08/02
[ "https://Stackoverflow.com/questions/3392234", "https://Stackoverflow.com", "https://Stackoverflow.com/users/145129/" ]
[Script start time minus file modification time (aka file modification age), in days.](http://www.devshed.com/c/a/Perl/File-Tests-in-Perl/) In other words, it returns the age of OPERAND in days when the program started. Also see a full list of file test operators in [perldoc perlfunc](http://perldoc.perl.org/perlfunc...
> > Modification age (measured in days) > > > from <http://www.devshed.com/c/a/Perl/File-Tests-in-Perl/> if we have something like this: ``` $age = -M FILE; ``` `$age` will contain the days since the file was modified.
3,392,234
What is this flag? if (-M ..filepath..) what is the '-M' flag?
2010/08/02
[ "https://Stackoverflow.com/questions/3392234", "https://Stackoverflow.com", "https://Stackoverflow.com/users/145129/" ]
[Script start time minus file modification time (aka file modification age), in days.](http://www.devshed.com/c/a/Perl/File-Tests-in-Perl/) In other words, it returns the age of OPERAND in days when the program started. Also see a full list of file test operators in [perldoc perlfunc](http://perldoc.perl.org/perlfunc...
[`perldoc -f -M`](http://perldoc.perl.org/functions/-X.html) will answer your question... This is the modification "age" of the file, in fractional days. That is, it is the number of days since the file was modified, as of the script start time (or as of some other time, if you explicitly set the `$^T` variable). I s...
3,392,234
What is this flag? if (-M ..filepath..) what is the '-M' flag?
2010/08/02
[ "https://Stackoverflow.com/questions/3392234", "https://Stackoverflow.com", "https://Stackoverflow.com/users/145129/" ]
[`perldoc -f -M`](http://perldoc.perl.org/functions/-X.html) will answer your question... This is the modification "age" of the file, in fractional days. That is, it is the number of days since the file was modified, as of the script start time (or as of some other time, if you explicitly set the `$^T` variable). I s...
> > Modification age (measured in days) > > > from <http://www.devshed.com/c/a/Perl/File-Tests-in-Perl/> if we have something like this: ``` $age = -M FILE; ``` `$age` will contain the days since the file was modified.
33,374,246
I have a table and I want to select all rows that have exactly the same set of values that appear in a column and return them as a pair of a certain column. For example, let's say I have a table named Table: ``` C1 C2 1 1 1 2 1 3 2 1 3 1 3 2 3 3 4 1 4 2 ``` When I run my quer...
2015/10/27
[ "https://Stackoverflow.com/questions/33374246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4538367/" ]
I'm not sure about `PinGetPort`, as we don't have a definition of `GPIO_TypeDef` and `GPIOA` et al, but, `PinGetPin` should work fine if you just put `constexpr` in front of it, use a C++14 compiler and use a high level of optimization. Like: ``` constexpr uint16_t PinGetPin(const PinEnum pin) { ``` On a C++11 compi...
You could use C arrays to define the port and pin. And then use the enum value to access them in the array. This uses the fact that default enum values are sequential. Of course, this is not compile time.
33,374,246
I have a table and I want to select all rows that have exactly the same set of values that appear in a column and return them as a pair of a certain column. For example, let's say I have a table named Table: ``` C1 C2 1 1 1 2 1 3 2 1 3 1 3 2 3 3 4 1 4 2 ``` When I run my quer...
2015/10/27
[ "https://Stackoverflow.com/questions/33374246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4538367/" ]
Use template structs taking enum as a parameter, [template specialization](http://en.cppreference.com/w/cpp/language/template_specialization), and [`std::integral_constant`](http://en.cppreference.com/w/cpp/types/integral_constant). ``` #include <type_traits> enum class pin { pin0, pin1 }; template<pin> struct looku...
You could use C arrays to define the port and pin. And then use the enum value to access them in the array. This uses the fact that default enum values are sequential. Of course, this is not compile time.
33,374,246
I have a table and I want to select all rows that have exactly the same set of values that appear in a column and return them as a pair of a certain column. For example, let's say I have a table named Table: ``` C1 C2 1 1 1 2 1 3 2 1 3 1 3 2 3 3 4 1 4 2 ``` When I run my quer...
2015/10/27
[ "https://Stackoverflow.com/questions/33374246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4538367/" ]
Make a table: ``` template<class...>struct types {}; template<class lhs, class rhs>struct e{}; template<class types, class lhs> struct find{}; template<class types, class lhs> using find_t=typename find<types,lhs>::type; template<class T0, class R0, class...Ts> struct find< types<e<T0,R0>,Ts...>, T0>{ using type=R0...
You could use C arrays to define the port and pin. And then use the enum value to access them in the array. This uses the fact that default enum values are sequential. Of course, this is not compile time.
33,374,246
I have a table and I want to select all rows that have exactly the same set of values that appear in a column and return them as a pair of a certain column. For example, let's say I have a table named Table: ``` C1 C2 1 1 1 2 1 3 2 1 3 1 3 2 3 3 4 1 4 2 ``` When I run my quer...
2015/10/27
[ "https://Stackoverflow.com/questions/33374246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4538367/" ]
Use template structs taking enum as a parameter, [template specialization](http://en.cppreference.com/w/cpp/language/template_specialization), and [`std::integral_constant`](http://en.cppreference.com/w/cpp/types/integral_constant). ``` #include <type_traits> enum class pin { pin0, pin1 }; template<pin> struct looku...
I'm not sure about `PinGetPort`, as we don't have a definition of `GPIO_TypeDef` and `GPIOA` et al, but, `PinGetPin` should work fine if you just put `constexpr` in front of it, use a C++14 compiler and use a high level of optimization. Like: ``` constexpr uint16_t PinGetPin(const PinEnum pin) { ``` On a C++11 compi...
33,374,246
I have a table and I want to select all rows that have exactly the same set of values that appear in a column and return them as a pair of a certain column. For example, let's say I have a table named Table: ``` C1 C2 1 1 1 2 1 3 2 1 3 1 3 2 3 3 4 1 4 2 ``` When I run my quer...
2015/10/27
[ "https://Stackoverflow.com/questions/33374246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4538367/" ]
Make a table: ``` template<class...>struct types {}; template<class lhs, class rhs>struct e{}; template<class types, class lhs> struct find{}; template<class types, class lhs> using find_t=typename find<types,lhs>::type; template<class T0, class R0, class...Ts> struct find< types<e<T0,R0>,Ts...>, T0>{ using type=R0...
I'm not sure about `PinGetPort`, as we don't have a definition of `GPIO_TypeDef` and `GPIOA` et al, but, `PinGetPin` should work fine if you just put `constexpr` in front of it, use a C++14 compiler and use a high level of optimization. Like: ``` constexpr uint16_t PinGetPin(const PinEnum pin) { ``` On a C++11 compi...
33,374,246
I have a table and I want to select all rows that have exactly the same set of values that appear in a column and return them as a pair of a certain column. For example, let's say I have a table named Table: ``` C1 C2 1 1 1 2 1 3 2 1 3 1 3 2 3 3 4 1 4 2 ``` When I run my quer...
2015/10/27
[ "https://Stackoverflow.com/questions/33374246", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4538367/" ]
Use template structs taking enum as a parameter, [template specialization](http://en.cppreference.com/w/cpp/language/template_specialization), and [`std::integral_constant`](http://en.cppreference.com/w/cpp/types/integral_constant). ``` #include <type_traits> enum class pin { pin0, pin1 }; template<pin> struct looku...
Make a table: ``` template<class...>struct types {}; template<class lhs, class rhs>struct e{}; template<class types, class lhs> struct find{}; template<class types, class lhs> using find_t=typename find<types,lhs>::type; template<class T0, class R0, class...Ts> struct find< types<e<T0,R0>,Ts...>, T0>{ using type=R0...
58,463,584
I currently have a `pandas` DataFrame `df` with the size of 168078 rows × 43 columns. A summary of `df` is shown below: ``` doi gender order year ... count 9384155 10.1103/PRL.102.039801 male 1 2009 ... 1 ... 367...
2019/10/19
[ "https://Stackoverflow.com/questions/58463584", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12021183/" ]
With `3fe9000000000000`, the first bit (zero) is the sign bit, so we can ignore that (it's positive). The next 11 bits are `011.1111.1110` (`3fe`), which is `1022` but that is adjusted down by `1023` to handle negative exponents. It is therefore `-1`, which gives you the multiplier of `2-1`, or `0.5`. The mantissa bi...
Here's how your number lays out in IEEE-745 DP format: ``` 6 5 4 3 2 1 0 3 21098765432 1098765432109876543210987654321098765432109876543210 S ----E11---- ------------------------F52------------------------- Bina...
1,420,444
[![http://i.stack.imgur.com/QTFwu.png](https://i.stack.imgur.com/QTFwu.png)](https://i.stack.imgur.com/QTFwu.png) I understand its something to do with the rank nullity theorem, but im not sure how they applied it to get the basis of the image. By my understanding, they took the leading entries of the rows of the redu...
2015/09/03
[ "https://math.stackexchange.com/questions/1420444", "https://math.stackexchange.com", "https://math.stackexchange.com/users/266790/" ]
In the reduced echelon form of the matrix there are leading $1$'s in the first and second column. This tells you that the first and second columns of the *original* matrix give a basis for the image of that matrix.
They did not derive the basis of the image from the kernel. The simple rule is that the columns which contain the pivots (or the leading $1$'s in each row) in the rref form are the first and the second columns. The rule for finding the basis of the column space is simply that you should choose the corresponding columns...
6,855,708
Conflicts between JAWS table navigation short keys and custom implemented navigation keys(i.e. arrow keys) I am trying to make an HTML table accessible using keyboard as well as readable using JAWS Screen reader. To make it keyboard accessible i am doing following things: - Added keypress events on table cells for ...
2011/07/28
[ "https://Stackoverflow.com/questions/6855708", "https://Stackoverflow.com", "https://Stackoverflow.com/users/592687/" ]
Try adding role="application" to the table or a surrounding element.
There is no way I know of to do what you want. I'm a Jaws user and the table is fine as is. I would not use your site if your custom navigation keys overrode Jaws defaults. The issue with overriding the defaults is it eliminates the ability to review character by character. If I wanted to check the spelling of a word i...
20,753,215
I've been researching a bit, but need a bit of advice specifically for Py2exe apps. I'm on a 64 bit machine, but from what I understand I can compile in 32 bit format, and run on both 32 and 64 bit. Now my question. To make an exe, I'm using py2exe. So from what I understand, you don't need a 32 bit environment, just ...
2013/12/24
[ "https://Stackoverflow.com/questions/20753215", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2199852/" ]
Technically 32x/86x can be used on 64x, but when I used to fiddle around with running 64x on 32x/86x, it crashed the computer, so nothing really just use the 32x/86x compiler. So, 64x programs are one way but 32x/86x are not: * 64x program -> 64x computer * 32x/86x program -> 32x/86x computer * 32x/86x program -> 64x ...
You can install Python 32 bit and 64 bit on your 64 bit system.you need to install needed packages and **py2exe** for both **32** and **64** bit version of python separately. after you installed 32 bit, you must change Windows path of python to 32 bit to use it..after success 32 bit compile you can change windows path ...
16,411,398
I have a Perl CGI script. I'm trying to generate **hyperlinks** on an HTML page using all the elements in an array. I'm using functional CGI style programming. Here's a minimal representation of my code: ``` #!/usr/bin/perl use strict; use warnings; use CGI qw( :standard); print header; print start_html( -title ...
2013/05/07
[ "https://Stackoverflow.com/questions/16411398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2237387/" ]
``` print "<a href="$link" target="_blank">$g</a>"."\t"; # this doesn't work!! ``` that's because your quotes in your quote end your quote. You need to escape them: ``` print "<a href=\"$link\" target=\"_blank\">$g</a>"."\t"; # this doesn't work!! ``` single quotes work on the inside, too. As per the comm...
There's a few things that don't make much sense. The code below doesn't work because `$link` is a ref. Also, you're not using `$j` anywhere, which should give you a sign that there's a bit of a "design" issue. ``` foreach my $i (@array){ foreach my $j (@{$HoA{$i}}){ my $link = get_link($i); prin...
16,411,398
I have a Perl CGI script. I'm trying to generate **hyperlinks** on an HTML page using all the elements in an array. I'm using functional CGI style programming. Here's a minimal representation of my code: ``` #!/usr/bin/perl use strict; use warnings; use CGI qw( :standard); print header; print start_html( -title ...
2013/05/07
[ "https://Stackoverflow.com/questions/16411398", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2237387/" ]
``` print "<a href="$link" target="_blank">$g</a>"."\t"; # this doesn't work!! ``` that's because your quotes in your quote end your quote. You need to escape them: ``` print "<a href=\"$link\" target=\"_blank\">$g</a>"."\t"; # this doesn't work!! ``` single quotes work on the inside, too. As per the comm...
Here is another way you can do this ... ``` use strict; use warnings; use CGI qw(:standard); print header, start_html(-title => 'Get LINK!'); my %HoA = ( foo => [ qw(12 23 593) ], bam => [ qw(232 65) ], ); foreach my $i ( reverse sort keys %HoA ) { foreach ( @{$HoA{$i}} ) { print a...
9,462,410
I have a `UIButton` somewhere on my view. On touch event of button I making a `UIView` appear. The `UIAnimation` I have used make the view appear from top of window. But I want it to appear from button.frame.origin.y . Before touching the button the view is not visible. On touching the button view should start appearin...
2012/02/27
[ "https://Stackoverflow.com/questions/9462410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/541786/" ]
So you want a slide-in effect, but not from the top of the screen, just some arbitrary value? One way to do it: 1) You should create a view that has the dimensions and position of your desired view AFTER animation finishes, we'll call it *baseview*. 2) Set this *baseview* property **clipsToBounds** to **YES**. This ...
Your problem is not clear (for me). What is this? ``` rect.origin.y = rect.size.height - rect.size.height+58.0; ``` Is 58 origin of your UIButton? You should use sender.frame etc Use blocks to animate like this ``` [UIView animateWithDuration:0.5f animations:^{ // Animation here } completion:^(BOOL finished)...
9,462,410
I have a `UIButton` somewhere on my view. On touch event of button I making a `UIView` appear. The `UIAnimation` I have used make the view appear from top of window. But I want it to appear from button.frame.origin.y . Before touching the button the view is not visible. On touching the button view should start appearin...
2012/02/27
[ "https://Stackoverflow.com/questions/9462410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/541786/" ]
Your problem is not clear (for me). What is this? ``` rect.origin.y = rect.size.height - rect.size.height+58.0; ``` Is 58 origin of your UIButton? You should use sender.frame etc Use blocks to animate like this ``` [UIView animateWithDuration:0.5f animations:^{ // Animation here } completion:^(BOOL finished)...
``` - (void) slideIn{ //This assumes the view and the button are in the same superview, if they're not, you'll need to convert the rects //I'm calling the animated view: view, and the button: button...easy enough view.clipToBounds = YES; CGRect buttonRect = button.frame; CGRect viewRect = CGRectMake...
9,462,410
I have a `UIButton` somewhere on my view. On touch event of button I making a `UIView` appear. The `UIAnimation` I have used make the view appear from top of window. But I want it to appear from button.frame.origin.y . Before touching the button the view is not visible. On touching the button view should start appearin...
2012/02/27
[ "https://Stackoverflow.com/questions/9462410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/541786/" ]
I have done exactly what you're trying in my recent project. The following steps should make this work: 1. In your `viewDidLoad:` you init your `viewToFadeIn` like this: ``` viewToFadeIn = [[UIView alloc] initWithFrame:CGRectMake(20,self.view.frame.size.height+10, self.view.frame.size.widh-40, 200)]; //its important...
Your problem is not clear (for me). What is this? ``` rect.origin.y = rect.size.height - rect.size.height+58.0; ``` Is 58 origin of your UIButton? You should use sender.frame etc Use blocks to animate like this ``` [UIView animateWithDuration:0.5f animations:^{ // Animation here } completion:^(BOOL finished)...
9,462,410
I have a `UIButton` somewhere on my view. On touch event of button I making a `UIView` appear. The `UIAnimation` I have used make the view appear from top of window. But I want it to appear from button.frame.origin.y . Before touching the button the view is not visible. On touching the button view should start appearin...
2012/02/27
[ "https://Stackoverflow.com/questions/9462410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/541786/" ]
So you want a slide-in effect, but not from the top of the screen, just some arbitrary value? One way to do it: 1) You should create a view that has the dimensions and position of your desired view AFTER animation finishes, we'll call it *baseview*. 2) Set this *baseview* property **clipsToBounds** to **YES**. This ...
``` - (void) slideIn{ //This assumes the view and the button are in the same superview, if they're not, you'll need to convert the rects //I'm calling the animated view: view, and the button: button...easy enough view.clipToBounds = YES; CGRect buttonRect = button.frame; CGRect viewRect = CGRectMake...
9,462,410
I have a `UIButton` somewhere on my view. On touch event of button I making a `UIView` appear. The `UIAnimation` I have used make the view appear from top of window. But I want it to appear from button.frame.origin.y . Before touching the button the view is not visible. On touching the button view should start appearin...
2012/02/27
[ "https://Stackoverflow.com/questions/9462410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/541786/" ]
So you want a slide-in effect, but not from the top of the screen, just some arbitrary value? One way to do it: 1) You should create a view that has the dimensions and position of your desired view AFTER animation finishes, we'll call it *baseview*. 2) Set this *baseview* property **clipsToBounds** to **YES**. This ...
I have done exactly what you're trying in my recent project. The following steps should make this work: 1. In your `viewDidLoad:` you init your `viewToFadeIn` like this: ``` viewToFadeIn = [[UIView alloc] initWithFrame:CGRectMake(20,self.view.frame.size.height+10, self.view.frame.size.widh-40, 200)]; //its important...
9,462,410
I have a `UIButton` somewhere on my view. On touch event of button I making a `UIView` appear. The `UIAnimation` I have used make the view appear from top of window. But I want it to appear from button.frame.origin.y . Before touching the button the view is not visible. On touching the button view should start appearin...
2012/02/27
[ "https://Stackoverflow.com/questions/9462410", "https://Stackoverflow.com", "https://Stackoverflow.com/users/541786/" ]
I have done exactly what you're trying in my recent project. The following steps should make this work: 1. In your `viewDidLoad:` you init your `viewToFadeIn` like this: ``` viewToFadeIn = [[UIView alloc] initWithFrame:CGRectMake(20,self.view.frame.size.height+10, self.view.frame.size.widh-40, 200)]; //its important...
``` - (void) slideIn{ //This assumes the view and the button are in the same superview, if they're not, you'll need to convert the rects //I'm calling the animated view: view, and the button: button...easy enough view.clipToBounds = YES; CGRect buttonRect = button.frame; CGRect viewRect = CGRectMake...
6,237
Is there a standard quality ranking for oil paints? How do specific oils relate to the quality of oil paints? Can anyone provide a top five or top ten of brands?
2019/06/12
[ "https://crafts.stackexchange.com/questions/6237", "https://crafts.stackexchange.com", "https://crafts.stackexchange.com/users/7992/" ]
There is no standard quality ranking for artist oil paints, however, generally, they are sold as Professional, Artist or Student grade with different brands having their own names. Price also is usually an indicator. I think it is more useful to think of paint in terms of purity rather than quality. The top end manuf...
Though there may be no definite answer other than your own experimentation, consider the pigment composition. Check a tube of oil paint and note how many different pigments are included; as a coarse rule of thumbs, the lesser the better. Also light fasting (how fast the paint will fade over time) plays an important ro...
6,237
Is there a standard quality ranking for oil paints? How do specific oils relate to the quality of oil paints? Can anyone provide a top five or top ten of brands?
2019/06/12
[ "https://crafts.stackexchange.com/questions/6237", "https://crafts.stackexchange.com", "https://crafts.stackexchange.com/users/7992/" ]
***As mentioned in the comments, an absolute ranking of brands would be primarily opinion-based, as there are as many preferences and requirements of oil paints as there are artists. However, a lot can be said about the quality of oil paints, and the range is sufficiently large to allow for a general objective posit...
Though there may be no definite answer other than your own experimentation, consider the pigment composition. Check a tube of oil paint and note how many different pigments are included; as a coarse rule of thumbs, the lesser the better. Also light fasting (how fast the paint will fade over time) plays an important ro...
25,190,301
I am trying to deploy Virtual Machines from a template into a vApp using the vCloud rest API. I feel that there should be a way to configure a vm as I am spawning it (Since the UI seems to do that) but haven't found a way. I've been focusing my efforts on recomposing a vApp to add a vm to it. The below example will ad...
2014/08/07
[ "https://Stackoverflow.com/questions/25190301", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1675390/" ]
SQL Server doesn't have a data type to directly represent 'true' and 'false. You have to use a case statement and return a primitive type. ``` ALTER TABLE MyTable ADD MyComputedColumn AS (CASE WHEN (DateColumn < '2010-12-31') THEN 1 ELSE 0 END); ```
I'm guessing you want this to be a bit field: ``` ALTER TABLE MyTable ADD MyComputedColumn AS (ISNULL(CONVERT(bit,case when (DateColumn < '2010-12-31') then 0 else 1 end),0)) ```
33,262,304
I recently posting another [thread](https://stackoverflow.com/questions/33053917/xcode-7-created-new-branch-commit-fails) for this issue, but was not able to resolve it from the responses posted. In short, upgraded to XCode 7 and somehow a new branch was created...had previously only worked on the master branch. During...
2015/10/21
[ "https://Stackoverflow.com/questions/33262304", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3486786/" ]
The error "Failed to write reference 'refs/heads/master': a reference with that name already exists. (-4)." Can occur if you try switching from a local branch to the remote 'master' branch. Ensure that the 'master' you are switching to is the local one.
Just to add to this question. You must 'push' your changes to the remote 'master'. You cannot switch from a 'local' master to the 'remote 'master, instead you *push* local changes in the local master to the remote master.
62,822,775
In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add replica set member but not require to change my spring boot configuration.
2020/07/09
[ "https://Stackoverflow.com/questions/62822775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978986/" ]
First logline comes from line 4 called from line 10, it displays funcParameter, which is `addOneToOne()` which is 2 Second logline comes from line 4 again, called from line 11 this time, it displays funcParameter, which is nothing, thus print "undefined" Third logline is the console.log on line 11 itself, displaying ...
After toying around, I cam upon 2 problems: 1. Problem: 3 values are being printed. I am assuming this is a problem. If not, oops, you can move on to the next one. But you are logging values inthe function, but then you log the return value also. You must take away the 2nd Console.log 2. It is printing undefined. the ...
62,822,775
In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add replica set member but not require to change my spring boot configuration.
2020/07/09
[ "https://Stackoverflow.com/questions/62822775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978986/" ]
Let me remove some noise for you that hopefully clears some things up. ```js const timeFuncRuntime = funcParameter => { console.log(funcParameter); return "foo"; } timeFuncRuntime("bar"); console.log(timeFuncRuntime()); ``` So what happens in the above? Why does the console print out `bar`, `undefined` then `f...
After toying around, I cam upon 2 problems: 1. Problem: 3 values are being printed. I am assuming this is a problem. If not, oops, you can move on to the next one. But you are logging values inthe function, but then you log the return value also. You must take away the 2nd Console.log 2. It is printing undefined. the ...
62,822,775
In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add replica set member but not require to change my spring boot configuration.
2020/07/09
[ "https://Stackoverflow.com/questions/62822775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978986/" ]
First logline comes from line 4 called from line 10, it displays funcParameter, which is `addOneToOne()` which is 2 Second logline comes from line 4 again, called from line 11 this time, it displays funcParameter, which is nothing, thus print "undefined" Third logline is the console.log on line 11 itself, displaying ...
If you check below, I just added a string to the console.log in order to see from which console.log the output comes. First one logs the parameter you gave to `timeFuncRuntime`, which is the return of `addOneToOne`, meaning `2`. Second one logs the parameter you gave to `timeFuncRuntime`, again but this time there's ...
62,822,775
In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add replica set member but not require to change my spring boot configuration.
2020/07/09
[ "https://Stackoverflow.com/questions/62822775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978986/" ]
First logline comes from line 4 called from line 10, it displays funcParameter, which is `addOneToOne()` which is 2 Second logline comes from line 4 again, called from line 11 this time, it displays funcParameter, which is nothing, thus print "undefined" Third logline is the console.log on line 11 itself, displaying ...
I think your intent was to create a function that times how long it takes for a function to run. If that's the case, here's an answer that will help solve that problem, while helping to understand where you went wrong. ```js const timeFuncRuntime = funcParameter => { console.log(funcParameter); // this will log wha...
62,822,775
In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add replica set member but not require to change my spring boot configuration.
2020/07/09
[ "https://Stackoverflow.com/questions/62822775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978986/" ]
Let me remove some noise for you that hopefully clears some things up. ```js const timeFuncRuntime = funcParameter => { console.log(funcParameter); return "foo"; } timeFuncRuntime("bar"); console.log(timeFuncRuntime()); ``` So what happens in the above? Why does the console print out `bar`, `undefined` then `f...
First logline comes from line 4 called from line 10, it displays funcParameter, which is `addOneToOne()` which is 2 Second logline comes from line 4 again, called from line 11 this time, it displays funcParameter, which is nothing, thus print "undefined" Third logline is the console.log on line 11 itself, displaying ...
62,822,775
In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add replica set member but not require to change my spring boot configuration.
2020/07/09
[ "https://Stackoverflow.com/questions/62822775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978986/" ]
Let me remove some noise for you that hopefully clears some things up. ```js const timeFuncRuntime = funcParameter => { console.log(funcParameter); return "foo"; } timeFuncRuntime("bar"); console.log(timeFuncRuntime()); ``` So what happens in the above? Why does the console print out `bar`, `undefined` then `f...
If you check below, I just added a string to the console.log in order to see from which console.log the output comes. First one logs the parameter you gave to `timeFuncRuntime`, which is the return of `addOneToOne`, meaning `2`. Second one logs the parameter you gave to `timeFuncRuntime`, again but this time there's ...
62,822,775
In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add replica set member but not require to change my spring boot configuration.
2020/07/09
[ "https://Stackoverflow.com/questions/62822775", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3978986/" ]
Let me remove some noise for you that hopefully clears some things up. ```js const timeFuncRuntime = funcParameter => { console.log(funcParameter); return "foo"; } timeFuncRuntime("bar"); console.log(timeFuncRuntime()); ``` So what happens in the above? Why does the console print out `bar`, `undefined` then `f...
I think your intent was to create a function that times how long it takes for a function to run. If that's the case, here's an answer that will help solve that problem, while helping to understand where you went wrong. ```js const timeFuncRuntime = funcParameter => { console.log(funcParameter); // this will log wha...
28,205,470
``` string str = @"(?<Year>\d{4})?"; Regex regex = new Regex(str); var match = regex.Match("abc/2015/01/11/efg_20150111.tsv"); ``` I cannot find "2015" in match.Groups. Thanks!
2015/01/29
[ "https://Stackoverflow.com/questions/28205470", "https://Stackoverflow.com", "https://Stackoverflow.com/users/802305/" ]
That's because your regular expression is optional.`(?<Year>\d{4})?` says, "Match 4 consecutive digits, **or nothing**. Nothing is still a match, as a small test program demonstrates: ``` Regex rx = new Regex( @"(?<Year>\d{4})?"); Match m = rx.Match("abc/2015/01/11/efg_20150111.tsv"); int i = 0 ; while ( m.Success) ...
Don't make the named capturing group as optional. ``` @"(?<=\/)(?<Year>\d{4})(?=\/)" ``` OR ``` @"\b(?<Year>\d{4})\b" ``` [DEMO](https://regex101.com/r/dW8mK5/5) `(?<Year>\d{4})?` matches an optional 4 digit number. `?` after the named capturing group makes the whole group as optional. And also add word boundari...
13,552
The PCs generally know where all enemies are and vice versa (except those who are Hidden). They also know the effects of all zones and other buffs that are in effect. This is part of the "all the cards are on the table" philosophy of 4E. They may or may not know the monsters powers, HP's, vulnerabilities, etc. dependin...
2012/04/15
[ "https://rpg.stackexchange.com/questions/13552", "https://rpg.stackexchange.com", "https://rpg.stackexchange.com/users/2066/" ]
Apart from RAW, I'd say it's much more climactic if effects such as you describe are discovered during combat, and not in the previous DM narration: > > "You shoot an eldritch blast against the kobolds on the other side of > the room. The blast reaches half the distance, and suddenly stops > against a glimmering wa...
Line of Sight is self-apparent: if the PCs can see the enemy, they have it. In most other cases, cover should also be obvious, e.g. the enemy is hiding behind a rock. As for your hypothetical invisible wall of force, I assume you have a specific encounter in mind. For a specific encounter, pretty much anything goes. ...
18,332,704
I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varia...
2013/08/20
[ "https://Stackoverflow.com/questions/18332704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387934/" ]
Here you forgot `""` ``` $flavor = cookie dough; ``` should be ``` $flavor = "cookie dough"; ^ ^ ```
Simply, ``` $flavor = cookie dough; ``` isn't a correct code, enclose with quotes. You can see possible ways to define strings [here](http://php.net/manual/en/language.types.string.php).
18,332,704
I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varia...
2013/08/20
[ "https://Stackoverflow.com/questions/18332704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387934/" ]
Enclose `$flavor` variable value with quotes. ``` <?php $flavor = "cookie dough"; echo "<p> Your favourite flavor is "; echo $flavor; echo ".</P>"; if ($flavor == "cookie dough") { echo "<p> Yeah I like cookie dough aswell! </p>"; } ?> ```
Simply, ``` $flavor = cookie dough; ``` isn't a correct code, enclose with quotes. You can see possible ways to define strings [here](http://php.net/manual/en/language.types.string.php).
18,332,704
I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varia...
2013/08/20
[ "https://Stackoverflow.com/questions/18332704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387934/" ]
Here you forgot `""` ``` $flavor = cookie dough; ``` should be ``` $flavor = "cookie dough"; ^ ^ ```
Enclose `$flavor` variable value with quotes. ``` <?php $flavor = "cookie dough"; echo "<p> Your favourite flavor is "; echo $flavor; echo ".</P>"; if ($flavor == "cookie dough") { echo "<p> Yeah I like cookie dough aswell! </p>"; } ?> ```
18,332,704
I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varia...
2013/08/20
[ "https://Stackoverflow.com/questions/18332704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387934/" ]
Here you forgot `""` ``` $flavor = cookie dough; ``` should be ``` $flavor = "cookie dough"; ^ ^ ```
``` $flavor = cookie dough; ``` should be `$flavor = 'cookie dough';` or ``` $flavor = "cookie dough"; ``` To define a string you should be use `"'"` or `'"'`;
18,332,704
I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varia...
2013/08/20
[ "https://Stackoverflow.com/questions/18332704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387934/" ]
Here you forgot `""` ``` $flavor = cookie dough; ``` should be ``` $flavor = "cookie dough"; ^ ^ ```
You forgot to enclose `cookie dough` in quotes: ``` $flavor = "cookie dough"; ```
18,332,704
I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varia...
2013/08/20
[ "https://Stackoverflow.com/questions/18332704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387934/" ]
Enclose `$flavor` variable value with quotes. ``` <?php $flavor = "cookie dough"; echo "<p> Your favourite flavor is "; echo $flavor; echo ".</P>"; if ($flavor == "cookie dough") { echo "<p> Yeah I like cookie dough aswell! </p>"; } ?> ```
``` $flavor = cookie dough; ``` should be `$flavor = 'cookie dough';` or ``` $flavor = "cookie dough"; ``` To define a string you should be use `"'"` or `'"'`;
18,332,704
I have just signed up for Treehouse training and I have this mini challenge to complete. I can't get this to work. If the variable is set to 'vanilla' I will get a successful output. However, if I use 'cookie dough' then I get a syntax error, I think it may be because of the space between cookie and dough in the varia...
2013/08/20
[ "https://Stackoverflow.com/questions/18332704", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2387934/" ]
Enclose `$flavor` variable value with quotes. ``` <?php $flavor = "cookie dough"; echo "<p> Your favourite flavor is "; echo $flavor; echo ".</P>"; if ($flavor == "cookie dough") { echo "<p> Yeah I like cookie dough aswell! </p>"; } ?> ```
You forgot to enclose `cookie dough` in quotes: ``` $flavor = "cookie dough"; ```
24,875,291
I am trying to make my own XMPP Client, I am using Matrix SDK as XMPP Library. I have set up my own eJabberd server and integrated it with MYSQL. I can successfully connect with clients. I can also successfully Connect within the console Application using Matrix SDK. But When I try to use Windows form Application on\_C...
2014/07/21
[ "https://Stackoverflow.com/questions/24875291", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3862362/" ]
The safest way is to use the revealing module pattern: ``` App.factory("MyLib", function() { var func1 = function() { console.log("func1"); }; var func2 = function() { func1(); }; return { func1: func1, func2: func2 }; }); ```
I usually assign it to a variable name same as factory for easier reading and useful to reuse it when you have nested function as show in the example below. ``` App.factory("MyLib", function() { var MyLib = { func1: function() { console.log("func1"); }, func2: function() { ...
45,224,990
I have read some of the Stack Overflow posts here about pygame not importing. I have tried moving pygame in the scripts folder of Python, making sure it is the right type, and installing it using anaconda prompt. Do you know why none of these are working? By the way, here's my code and error. I have Windows 10, 64 bit ...
2017/07/20
[ "https://Stackoverflow.com/questions/45224990", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7454274/" ]
make sure you installed the library in same python version where you are coding. if you don't know how to do that type this in python code and run it ``` import pip pip.main(["install","pygame"]) ``` if it does not work too you should probably upgrade python to 3.10
some users arent run pygame command.after showing requirement message.if you download pygame copy that 2 folder named as"pygame"and"pygame-1.9.4.dist-info"socopy this folder to your"C:\Program Files (x86)\Python37-32\Lib" seriously after that u r DONE!!!!!!!!
14,889,819
I am trying to install nprobe on my system when i followed the following steps ``` git clone https://github.com/xrl/nprobe.git sudo apt-get install libpcap-dev cd nprobe/plugsins ./buildMakefile.sh >Makefile.in cd .. ./autogen.sh ./configure make ``` all above commands run absolutely fine but when i try to run ...
2013/02/15
[ "https://Stackoverflow.com/questions/14889819", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1210820/" ]
I don't have enough points to reply but I have a specific use case that seems interesting: * python27 * hrd * dynamic backed configured with 8 instances Everything works as expected, except for one instance, instance=2, which basically cycles * '/\_ah/start' * (Error code 121) * '/\_ah/stop' Backends allows you to...
Have not seen anything for sure about this from Google. They are often shy to explain such issues. One of the threads do mention datastore migration. See if that helps; <http://code.google.com/p/googleappengine/issues/detail?id=7022>
14,889,819
I am trying to install nprobe on my system when i followed the following steps ``` git clone https://github.com/xrl/nprobe.git sudo apt-get install libpcap-dev cd nprobe/plugsins ./buildMakefile.sh >Makefile.in cd .. ./autogen.sh ./configure make ``` all above commands run absolutely fine but when i try to run ...
2013/02/15
[ "https://Stackoverflow.com/questions/14889819", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1210820/" ]
Check your log retention limits, and that you haven't exceeded them. You wouldn't expect that bypassing your log retention limits would cause an exception that caused the instance to fail, but after I increased mine, I stopped seeing this error crop up and my backend cron jobs were able to complete.
Have not seen anything for sure about this from Google. They are often shy to explain such issues. One of the threads do mention datastore migration. See if that helps; <http://code.google.com/p/googleappengine/issues/detail?id=7022>
57,965,793
Suppose I have a very simple component, called `Simple.svelte`: ``` <script> let value; </script> Give me a value: <input type="text" bind:value={value} /> ``` Now in a more complex component, I would like to use a `<svelte:component />` tag so that I generalize a pattern in my application (say, `Complex.svelte`):...
2019/09/17
[ "https://Stackoverflow.com/questions/57965793", "https://Stackoverflow.com", "https://Stackoverflow.com/users/2465014/" ]
Generally, seems your hostnames aren't resolvable. Does `ping ubuntukafka` work? If not, then you'll need to adjust what you're making Kafka return via `advertised.listeners` to be the external IP rather than the hostname ``` listeners=PLAINTEXT://0.0.0.0:9092 advertised.listeners=PLAINTEXT://10.75.1.247:9092 ``` Wh...
only changing listeners=PLAINTEXT://localhost:9092 work for me no need to change advertised.listeners property in server config
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
### Leave open. As long as it does not violate any existing law (tricking with date/time , AFAIK, does not violate any) in applicable countries, we should be welcome to discuss. As per [my answer](https://android.stackexchange.com/a/181029/205764), such tools does exist. That trick does not involve any cracking or re...
The point on the question from the headline is about changing the date/time in one app, not about piracy. The whole text *is* about piracy, and that is what makes the question a bad example for the real question here. In principle, you will often encounter questions with a technical and neutral question, which has one...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
### Leave open. As long as it does not violate any existing law (tricking with date/time , AFAIK, does not violate any) in applicable countries, we should be welcome to discuss. As per [my answer](https://android.stackexchange.com/a/181029/205764), such tools does exist. That trick does not involve any cracking or re...
I agree with the sentiment here, that if someone obviously is being unethical, then the question should be closed. BUT, then the other side of me says, this is all computer science, right? The information that you share to help me hack an app illegally may help someone else tremendously in another way. It's like if I'm...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
The point on the question from the headline is about changing the date/time in one app, not about piracy. The whole text *is* about piracy, and that is what makes the question a bad example for the real question here. In principle, you will often encounter questions with a technical and neutral question, which has one...
I agree with the sentiment here, that if someone obviously is being unethical, then the question should be closed. BUT, then the other side of me says, this is all computer science, right? The information that you share to help me hack an app illegally may help someone else tremendously in another way. It's like if I'm...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
### Unethical for whom? (Scroll to the end to find my stance.) That would be my first question. For a die-hard follower of [libre software](https://www.gnu.org/philosophy/free-sw.html) ideology, personal use of a proprietary software could be unethical for them. But they may also extend their definition of ethics on ...
I agree with the sentiment here, that if someone obviously is being unethical, then the question should be closed. BUT, then the other side of me says, this is all computer science, right? The information that you share to help me hack an app illegally may help someone else tremendously in another way. It's like if I'm...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
### Unethical for whom? (Scroll to the end to find my stance.) That would be my first question. For a die-hard follower of [libre software](https://www.gnu.org/philosophy/free-sw.html) ideology, personal use of a proprietary software could be unethical for them. But they may also extend their definition of ethics on ...
From illegal and unethical question and response, we learn about the situation and best way to prevent or patch it. The unethical or illegal thing is to use it. That is the difference between [Hackers](https://www.gnu.org/philosophy/words-to-avoid.en.html#Hacker) and Crackers/HiJackers/Anonymous/...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
What's the **intent** of OP? > > ...Changing the date and time in the phone can "evade" the version and trial and continue to use it > > > Further, they want to know > > .... if it was possible to change the date of a single app even by changing the source code of 'App > > > To my mind, there is no ambiguit...
From illegal and unethical question and response, we learn about the situation and best way to prevent or patch it. The unethical or illegal thing is to use it. That is the difference between [Hackers](https://www.gnu.org/philosophy/words-to-avoid.en.html#Hacker) and Crackers/HiJackers/Anonymous/...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
### Leave open. As long as it does not violate any existing law (tricking with date/time , AFAIK, does not violate any) in applicable countries, we should be welcome to discuss. As per [my answer](https://android.stackexchange.com/a/181029/205764), such tools does exist. That trick does not involve any cracking or re...
What's the **intent** of OP? > > ...Changing the date and time in the phone can "evade" the version and trial and continue to use it > > > Further, they want to know > > .... if it was possible to change the date of a single app even by changing the source code of 'App > > > To my mind, there is no ambiguit...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
### Leave open. As long as it does not violate any existing law (tricking with date/time , AFAIK, does not violate any) in applicable countries, we should be welcome to discuss. As per [my answer](https://android.stackexchange.com/a/181029/205764), such tools does exist. That trick does not involve any cracking or re...
I should point out a situation here. If an app has some kind of hidden spyware, bloatware, or malicious virus of some kind, cracking the particular app to figure out how to stop it and cure phones of it (especially if its hijacked the phone in some way) may be one of the most ethical things you -could- do in relation ...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
I should point out a situation here. If an app has some kind of hidden spyware, bloatware, or malicious virus of some kind, cracking the particular app to figure out how to stop it and cure phones of it (especially if its hijacked the phone in some way) may be one of the most ethical things you -could- do in relation ...
I agree with the sentiment here, that if someone obviously is being unethical, then the question should be closed. BUT, then the other side of me says, this is all computer science, right? The information that you share to help me hack an app illegally may help someone else tremendously in another way. It's like if I'm...
2,321
Following [this question](https://android.stackexchange.com/questions/181028/), someone wants to "trial for ever" by tricking an app with false date/time. Of course that's unethical (but *not illegal*, we have closed a few "obviously illegal" questions). By "ethical", we mean *A reasonable person would find it inappro...
2017/08/10
[ "https://android.meta.stackexchange.com/questions/2321", "https://android.meta.stackexchange.com", "https://android.meta.stackexchange.com/users/205764/" ]
### Leave open. As long as it does not violate any existing law (tricking with date/time , AFAIK, does not violate any) in applicable countries, we should be welcome to discuss. As per [my answer](https://android.stackexchange.com/a/181029/205764), such tools does exist. That trick does not involve any cracking or re...
From illegal and unethical question and response, we learn about the situation and best way to prevent or patch it. The unethical or illegal thing is to use it. That is the difference between [Hackers](https://www.gnu.org/philosophy/words-to-avoid.en.html#Hacker) and Crackers/HiJackers/Anonymous/...
23,094,255
I was wondering if anyone knew if the following frameworks/libraries contain encryption: * Facebook SDK * Flurry 4.3.2 library Uploading a new version of my app to iTunes Connect and seen the question re: 'Have you added or made changes to encryption features since your last submission of this app?' Cheers, Charlie
2014/04/15
[ "https://Stackoverflow.com/questions/23094255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/646818/" ]
I think the latest Flurry library (5.2.0) does use encryption, at least it uses keychain. Flurry requires that you include the Security framework now. I had a bunch of keychain related symbols that were undefined until I added the Security framework. But I don't know if using keychain counts as using encryption so I an...
No, these libs don't contain encryption. I've used the same libs and set "NO" for this question. As result app was approved without any issues.
23,094,255
I was wondering if anyone knew if the following frameworks/libraries contain encryption: * Facebook SDK * Flurry 4.3.2 library Uploading a new version of my app to iTunes Connect and seen the question re: 'Have you added or made changes to encryption features since your last submission of this app?' Cheers, Charlie
2014/04/15
[ "https://Stackoverflow.com/questions/23094255", "https://Stackoverflow.com", "https://Stackoverflow.com/users/646818/" ]
I think the latest Flurry library (5.2.0) does use encryption, at least it uses keychain. Flurry requires that you include the Security framework now. I had a bunch of keychain related symbols that were undefined until I added the Security framework. But I don't know if using keychain counts as using encryption so I an...
No, none of them has any encryption. I also use them for a long time without any issues and I always tell Apple that my app doesn't have any encryption.
17,541,364
-----Modification of code requested -------- Question : Count the Fast Triangular Series Number which is having 50 Factors ? Elaborated : Let's say there is a series ``` 1 : 1 3 : 1+2 6 : 1+2+3 10 : 1+2+3+4 15 : 1+2+3+4+5 21 : 1+2+3+4+5+6 28 : 1+2+3+4+5+6+7 ``` here 1,3,6,10,15,21,28 are the ...
2013/07/09
[ "https://Stackoverflow.com/questions/17541364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/707137/" ]
> > > > > > Solution : > > Let me break down the Question in multiple modules. > > > > > > 1) Find the triangular series till a number. > > > > > > 2) Store all identified numbers in a List of integers > > > > > > 3) Find the no of factors for a particular number > > > > > > 4) Loop trough the each item of ...
here is my answer ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TriangularSeries { class MyClass { static void Main(string[] args) { int result; TriangularSeries aSeries = new TriangularSeries(); result =...
17,541,364
-----Modification of code requested -------- Question : Count the Fast Triangular Series Number which is having 50 Factors ? Elaborated : Let's say there is a series ``` 1 : 1 3 : 1+2 6 : 1+2+3 10 : 1+2+3+4 15 : 1+2+3+4+5 21 : 1+2+3+4+5+6 28 : 1+2+3+4+5+6+7 ``` here 1,3,6,10,15,21,28 are the ...
2013/07/09
[ "https://Stackoverflow.com/questions/17541364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/707137/" ]
> > > > > > Solution : > > Let me break down the Question in multiple modules. > > > > > > 1) Find the triangular series till a number. > > > > > > 2) Store all identified numbers in a List of integers > > > > > > 3) Find the no of factors for a particular number > > > > > > 4) Loop trough the each item of ...
Here is my program in C language ``` #include<stdio.h> int i; int num1=0,num2=1; int a[3000]; int tri_series() //This function finds the Triangular series numbers { for(i=0;num2<=3000;i++) { num1=num1+num2; a[i]=num1; num2++; } } int main() { tri_series(); //Calling the funct...
17,541,364
-----Modification of code requested -------- Question : Count the Fast Triangular Series Number which is having 50 Factors ? Elaborated : Let's say there is a series ``` 1 : 1 3 : 1+2 6 : 1+2+3 10 : 1+2+3+4 15 : 1+2+3+4+5 21 : 1+2+3+4+5+6 28 : 1+2+3+4+5+6+7 ``` here 1,3,6,10,15,21,28 are the ...
2013/07/09
[ "https://Stackoverflow.com/questions/17541364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/707137/" ]
Triangle number #2591 = 3357936 is the first one that has *exactly* 50 factors: 1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 36, 48, 54, 72, 81, 108, 144, 162, 216, 324, 432, 648, 1296, 2591, 5182, 7773, 10364, 15546, 20728, 23319, 31092, 41456, 46638, 62184, 69957, 93276, 124368, 139914, 186552, 209871, 279828, 373104, 4...
here is my answer ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TriangularSeries { class MyClass { static void Main(string[] args) { int result; TriangularSeries aSeries = new TriangularSeries(); result =...
17,541,364
-----Modification of code requested -------- Question : Count the Fast Triangular Series Number which is having 50 Factors ? Elaborated : Let's say there is a series ``` 1 : 1 3 : 1+2 6 : 1+2+3 10 : 1+2+3+4 15 : 1+2+3+4+5 21 : 1+2+3+4+5+6 28 : 1+2+3+4+5+6+7 ``` here 1,3,6,10,15,21,28 are the ...
2013/07/09
[ "https://Stackoverflow.com/questions/17541364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/707137/" ]
Triangle number #2591 = 3357936 is the first one that has *exactly* 50 factors: 1, 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, 36, 48, 54, 72, 81, 108, 144, 162, 216, 324, 432, 648, 1296, 2591, 5182, 7773, 10364, 15546, 20728, 23319, 31092, 41456, 46638, 62184, 69957, 93276, 124368, 139914, 186552, 209871, 279828, 373104, 4...
Here is my program in C language ``` #include<stdio.h> int i; int num1=0,num2=1; int a[3000]; int tri_series() //This function finds the Triangular series numbers { for(i=0;num2<=3000;i++) { num1=num1+num2; a[i]=num1; num2++; } } int main() { tri_series(); //Calling the funct...
17,541,364
-----Modification of code requested -------- Question : Count the Fast Triangular Series Number which is having 50 Factors ? Elaborated : Let's say there is a series ``` 1 : 1 3 : 1+2 6 : 1+2+3 10 : 1+2+3+4 15 : 1+2+3+4+5 21 : 1+2+3+4+5+6 28 : 1+2+3+4+5+6+7 ``` here 1,3,6,10,15,21,28 are the ...
2013/07/09
[ "https://Stackoverflow.com/questions/17541364", "https://Stackoverflow.com", "https://Stackoverflow.com/users/707137/" ]
here is my answer ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TriangularSeries { class MyClass { static void Main(string[] args) { int result; TriangularSeries aSeries = new TriangularSeries(); result =...
Here is my program in C language ``` #include<stdio.h> int i; int num1=0,num2=1; int a[3000]; int tri_series() //This function finds the Triangular series numbers { for(i=0;num2<=3000;i++) { num1=num1+num2; a[i]=num1; num2++; } } int main() { tri_series(); //Calling the funct...
52,058,850
I have two lists `p` & `p2` with the same size, and a third list `s`. I wanna remove the elements of `p2` that have the same index location with those elements of `p` that exist in `s`: An example would help understanding: ``` p = ['a','b','c','d','e'] p2 = [11,12,13,14,15] s = ['a','d'] p2 = [i in p2 for i in p if i...
2018/08/28
[ "https://Stackoverflow.com/questions/52058850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7789910/" ]
Turn `s` into a `set` for efficiently checking whether an item is in it or not, and do: ``` p = ['a','b','c','d','e','f','g','h','i','j'] p2 = [11,12,13,14,15,16,17,18,19,20] s = set(['a','d','h','i']) [num for num, letter in zip(p2, p) if letter not in s ] # [12, 13, 15, 16, 17, 20] ```
Try this and enjoy! ``` p = ['a','b','c','d','e','f','g','h','i','j'] p2 = [11,12,13,14,15,16,17,18,19,20] s = ['a','d','h','i'] p2 = [j for i,j in zip(p,p2) if i not in s] print p2 ``` ### Edit: At the time of writing above solution, condition of repetitions weren't mentions. Multiple answers for that conditions i...
52,058,850
I have two lists `p` & `p2` with the same size, and a third list `s`. I wanna remove the elements of `p2` that have the same index location with those elements of `p` that exist in `s`: An example would help understanding: ``` p = ['a','b','c','d','e'] p2 = [11,12,13,14,15] s = ['a','d'] p2 = [i in p2 for i in p if i...
2018/08/28
[ "https://Stackoverflow.com/questions/52058850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7789910/" ]
Turn `s` into a `set` for efficiently checking whether an item is in it or not, and do: ``` p = ['a','b','c','d','e','f','g','h','i','j'] p2 = [11,12,13,14,15,16,17,18,19,20] s = set(['a','d','h','i']) [num for num, letter in zip(p2, p) if letter not in s ] # [12, 13, 15, 16, 17, 20] ```
> > I see i am a little late to the party, but here is my two examples > > > ``` #looking for match and printing index number number = 0 for char in p: if char in s: print('found match at index: %d with: %s' %(number,char)) number += 1 else: print('index: %d did not match' %(number)...
52,058,850
I have two lists `p` & `p2` with the same size, and a third list `s`. I wanna remove the elements of `p2` that have the same index location with those elements of `p` that exist in `s`: An example would help understanding: ``` p = ['a','b','c','d','e'] p2 = [11,12,13,14,15] s = ['a','d'] p2 = [i in p2 for i in p if i...
2018/08/28
[ "https://Stackoverflow.com/questions/52058850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7789910/" ]
Turn `s` into a `set` for efficiently checking whether an item is in it or not, and do: ``` p = ['a','b','c','d','e','f','g','h','i','j'] p2 = [11,12,13,14,15,16,17,18,19,20] s = set(['a','d','h','i']) [num for num, letter in zip(p2, p) if letter not in s ] # [12, 13, 15, 16, 17, 20] ```
The `Python` has `index` and `pop` function, so you need to use it. ``` In [42]: p = ['a','b','c','d','e','f','g','h','i','j'] In [43]: p2 = [11,12,13,14,15] In [44]: s = ['a','d'] In [45]: index_list = [p.index(i) for i in s] In [46]: output = [p2.pop(index) for index in index_list] In [47]: output Out[47]: [11,...
52,058,850
I have two lists `p` & `p2` with the same size, and a third list `s`. I wanna remove the elements of `p2` that have the same index location with those elements of `p` that exist in `s`: An example would help understanding: ``` p = ['a','b','c','d','e'] p2 = [11,12,13,14,15] s = ['a','d'] p2 = [i in p2 for i in p if i...
2018/08/28
[ "https://Stackoverflow.com/questions/52058850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7789910/" ]
Try this and enjoy! ``` p = ['a','b','c','d','e','f','g','h','i','j'] p2 = [11,12,13,14,15,16,17,18,19,20] s = ['a','d','h','i'] p2 = [j for i,j in zip(p,p2) if i not in s] print p2 ``` ### Edit: At the time of writing above solution, condition of repetitions weren't mentions. Multiple answers for that conditions i...
> > I see i am a little late to the party, but here is my two examples > > > ``` #looking for match and printing index number number = 0 for char in p: if char in s: print('found match at index: %d with: %s' %(number,char)) number += 1 else: print('index: %d did not match' %(number)...
52,058,850
I have two lists `p` & `p2` with the same size, and a third list `s`. I wanna remove the elements of `p2` that have the same index location with those elements of `p` that exist in `s`: An example would help understanding: ``` p = ['a','b','c','d','e'] p2 = [11,12,13,14,15] s = ['a','d'] p2 = [i in p2 for i in p if i...
2018/08/28
[ "https://Stackoverflow.com/questions/52058850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7789910/" ]
Try this and enjoy! ``` p = ['a','b','c','d','e','f','g','h','i','j'] p2 = [11,12,13,14,15,16,17,18,19,20] s = ['a','d','h','i'] p2 = [j for i,j in zip(p,p2) if i not in s] print p2 ``` ### Edit: At the time of writing above solution, condition of repetitions weren't mentions. Multiple answers for that conditions i...
The `Python` has `index` and `pop` function, so you need to use it. ``` In [42]: p = ['a','b','c','d','e','f','g','h','i','j'] In [43]: p2 = [11,12,13,14,15] In [44]: s = ['a','d'] In [45]: index_list = [p.index(i) for i in s] In [46]: output = [p2.pop(index) for index in index_list] In [47]: output Out[47]: [11,...
437,735
I am having a trouble understanding the concept of line to ground faults,and ground in general. In this simple single phase circuit, does current reach the load and the circuit operates normally? Line touches ground, and neutral is not earthed. [![Unearthed neutral](https://i.stack.imgur.com/n5kKY.png)](https://i.sta...
2019/05/09
[ "https://electronics.stackexchange.com/questions/437735", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/218615/" ]
[![Unearthed neutral](https://i.stack.imgur.com/n5kKY.png)](https://i.stack.imgur.com/n5kKY.png) > > In this simple single phase circuit, does current reach the load and the circuit operates normally? Line touches ground, and neutral is not earthed. > > > If it's an isolated supply then yes, but you have labelled...
You are correct in your assessment that there will be no fault current flowing in situation #1. In the first diagram you have drawn, the hot is referenced to ground, while the "neutral" is floating. Consider that this is effectively the same situation as simply reversing the leads on the transformer in a grounded neut...
437,735
I am having a trouble understanding the concept of line to ground faults,and ground in general. In this simple single phase circuit, does current reach the load and the circuit operates normally? Line touches ground, and neutral is not earthed. [![Unearthed neutral](https://i.stack.imgur.com/n5kKY.png)](https://i.sta...
2019/05/09
[ "https://electronics.stackexchange.com/questions/437735", "https://electronics.stackexchange.com", "https://electronics.stackexchange.com/users/218615/" ]
[![Unearthed neutral](https://i.stack.imgur.com/n5kKY.png)](https://i.stack.imgur.com/n5kKY.png) > > In this simple single phase circuit, does current reach the load and the circuit operates normally? Line touches ground, and neutral is not earthed. > > > If it's an isolated supply then yes, but you have labelled...
You have already got many facts, but you should notice that practical power distribution systems generally have three phases. That lifts up the importance of grounding of the common neutral of the three phase lines. If it wasn't grounded and one day one of the lines touch the ground, then the voltage stress over the in...
42,002,988
I'm trying to reverse engineer a Node script from a library (research project) to do the following tasks sequentially: 1) Open and read a file (e.g., 'input.txt'). For simplicity, assume that the contents are properly formatted SQL queries) 2) Create a connection to a MySQL database 3) Execute the queries (construct...
2017/02/02
[ "https://Stackoverflow.com/questions/42002988", "https://Stackoverflow.com", "https://Stackoverflow.com/users/873399/" ]
The possible problem I see in your code is in function doTransaction ``` function doTransactionsPromise (data){ return new Promise(function (resolve, reject){ var connection = data[0]; var lines = data[1]; var topPromises = []; lines.forEach(function(sSQL){ var p = new Promise(functio...
I have not tested the code, but following code should do ``` //Read the input file function readFilePromise(){ return new Promise(function(resolve, reject){ var filePath = path.join(__dirname, filename); //asynchronous read fs.readFile(filePath, 'utf8', function (er...
47,061,550
I keep getting the java.lang.NumberFormatException: null error when I am trying to use an integer that I set in application.properties. This is my application.properties ``` my.prop.for.func=25 ``` This is how I retrieved the value from the .properties file and converted it to an integer to use in a function later...
2017/11/01
[ "https://Stackoverflow.com/questions/47061550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8796251/" ]
Spring initializes classes with their annotated attributes after instantiation. That means, the call "Integer.parseInt" will be called before spring can load the properties, because the class already has been initialized. You have several options to solve this: 1. Write an void init method with the @PostConstruct ann...
`myPropForFuncStr` is not initiated at the time you try to convert it to int. I would suggest to add `@Value` directly on `myPropForFunc` ``` @Value("${my.prop.for.func}") private int myPropForFunc = Integer.parseInt(myPropForFuncStr); ```
47,061,550
I keep getting the java.lang.NumberFormatException: null error when I am trying to use an integer that I set in application.properties. This is my application.properties ``` my.prop.for.func=25 ``` This is how I retrieved the value from the .properties file and converted it to an integer to use in a function later...
2017/11/01
[ "https://Stackoverflow.com/questions/47061550", "https://Stackoverflow.com", "https://Stackoverflow.com/users/8796251/" ]
Firstly Spring framework already handles the autoboxing for you. Which means that you can directly add the annotation to the int variable. ``` @Value("${my.prop.for.func}") private Integer myPropForFunc; // Note that this needs to be an object and not a primitive data type. ``` Now, coming to your issue, you may wa...
`myPropForFuncStr` is not initiated at the time you try to convert it to int. I would suggest to add `@Value` directly on `myPropForFunc` ``` @Value("${my.prop.for.func}") private int myPropForFunc = Integer.parseInt(myPropForFuncStr); ```
68,609,139
Can I declare a `constexpr` function in C++ before giving its definition? Consider an example: ``` constexpr int foo(int); constexpr int bar() { return foo(42); } constexpr int foo(int) { return 1; } static_assert(bar() == 1); ``` It is actually supported by all compilers, demo: <https://gcc.godbolt.org/z/o4PThejs...
2021/08/01
[ "https://Stackoverflow.com/questions/68609139", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
This is core issue [2166](http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2166). > > **Section**: 7.7 [expr.const] **Status**: drafting **Submitter**: Howard > Hinnant **Date**: 2015-08-05 > > > According to 7.7 [[expr.const] bullet 2.3](https://timsong-cpp.github.io/cppwp/n4659/expr.const#2.3), an expr...
This is [CWG2166](http://wg21.link/cwg2166): > > #### 2166. Unclear meaning of “undefined `constexpr` function” > > > According to 7.7 [expr.const] bullet 2.3, an expression is a constant expression unless (among other reasons) it would evaluate > > > * an invocation of an undefined `constexpr` function or an und...
68,266,632
I have a dataframe containing two columns; A\_ID and R\_ID. I want to update R\_ID to only contain values that are also in A\_ID, the rest should be deleted (also NaN). The values should stay at the same position/index. I get that this is an inner join but with my proposed solution I got several problems. Example: `...
2021/07/06
[ "https://Stackoverflow.com/questions/68266632", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14569595/" ]
Set `NaN` by [`Series.where`](http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.where.html) if no match columns compared by [`Series.isin`](http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.isin.html): ``` #solution working with scalar NaNs data = {'A_ID': ['1E2', '1E3', '1E...
Use `isin`: ``` df['R_ID'] = df['R_ID'].loc[df['R_ID'].isin(df['A_ID'])] ``` ``` >>> df A_ID R_ID 0 1E2 NaN 1 1E3 NaN 2 1E4 NaN 3 1E5 1E4 ```
68,266,632
I have a dataframe containing two columns; A\_ID and R\_ID. I want to update R\_ID to only contain values that are also in A\_ID, the rest should be deleted (also NaN). The values should stay at the same position/index. I get that this is an inner join but with my proposed solution I got several problems. Example: `...
2021/07/06
[ "https://Stackoverflow.com/questions/68266632", "https://Stackoverflow.com", "https://Stackoverflow.com/users/14569595/" ]
Set `NaN` by [`Series.where`](http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.where.html) if no match columns compared by [`Series.isin`](http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.isin.html): ``` #solution working with scalar NaNs data = {'A_ID': ['1E2', '1E3', '1E...
It should work ``` df_A_ID = df[["A_ID"]].astype(dtype=pd.StringDtype()) df_R_ID = df[["R_ID"]].astype(dtype=pd.StringDtype()).reset_index() temp_df = pd.merge(df_A_ID, df_R_ID, how='inner', left_on='A_ID', right_on ='R_ID').set_index('index') df.loc[~(df_R_ID.isin(temp_df[['R_ID']])['R_ID']).fillna(False),'R_ID'] = ...
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
My thinking exactly. I've been giving a lot of latitude to quality answers that lack hard data on these questions for exactly this reason. (I believe I did that with one of your answers today.) People need information now, not next year, so for us to strictly enforce the policy on such answers would be pedantic and unh...
We are seeing a lot of new users on this site now asking questions. We don't really have time to *train* them to ask questions in the format needed for this site. I suggest giving people some latitude and if there is potential merit in a question, then editing it yourself or flag it for editing by a senior user. In pa...
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
My thinking exactly. I've been giving a lot of latitude to quality answers that lack hard data on these questions for exactly this reason. (I believe I did that with one of your answers today.) People need information now, not next year, so for us to strictly enforce the policy on such answers would be pedantic and unh...
I think we can still give people factual information without over-representing it. I haven't been active much on MED.SE properly, but on Skeptics (and Bio SE) I've answered such questions, e.g. * [Question](https://skeptics.stackexchange.com/questions/46069/can-heat-cure-covid-19-the-common-flu-and-the-common-cold/) o...
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
My thinking exactly. I've been giving a lot of latitude to quality answers that lack hard data on these questions for exactly this reason. (I believe I did that with one of your answers today.) People need information now, not next year, so for us to strictly enforce the policy on such answers would be pedantic and unh...
I have felt that the requirement for a citation does not always assure a high quality or accurate response, while no citation is also dubious. The COVID-19 citations are of dubious quality even in major medical journals while imparting some useful information.
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
My thinking exactly. I've been giving a lot of latitude to quality answers that lack hard data on these questions for exactly this reason. (I believe I did that with one of your answers today.) People need information now, not next year, so for us to strictly enforce the policy on such answers would be pedantic and unh...
It would probably help *very* much if the [covid-19](https://medicalsciences.stackexchange.com/questions/tagged/covid-19 "show questions tagged 'covid-19'") tag had some content in its wiki.
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
My thinking exactly. I've been giving a lot of latitude to quality answers that lack hard data on these questions for exactly this reason. (I believe I did that with one of your answers today.) People need information now, not next year, so for us to strictly enforce the policy on such answers would be pedantic and unh...
[Caution with old person](https://medicalsciences.stackexchange.com/questions/21733/caution-with-old-person) This closed question can be easily generalised and I think should be tackled. There's a lot of science that can be applied to answering this
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
We are seeing a lot of new users on this site now asking questions. We don't really have time to *train* them to ask questions in the format needed for this site. I suggest giving people some latitude and if there is potential merit in a question, then editing it yourself or flag it for editing by a senior user. In pa...
I have felt that the requirement for a citation does not always assure a high quality or accurate response, while no citation is also dubious. The COVID-19 citations are of dubious quality even in major medical journals while imparting some useful information.
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
I think we can still give people factual information without over-representing it. I haven't been active much on MED.SE properly, but on Skeptics (and Bio SE) I've answered such questions, e.g. * [Question](https://skeptics.stackexchange.com/questions/46069/can-heat-cure-covid-19-the-common-flu-and-the-common-cold/) o...
I have felt that the requirement for a citation does not always assure a high quality or accurate response, while no citation is also dubious. The COVID-19 citations are of dubious quality even in major medical journals while imparting some useful information.
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
It would probably help *very* much if the [covid-19](https://medicalsciences.stackexchange.com/questions/tagged/covid-19 "show questions tagged 'covid-19'") tag had some content in its wiki.
I have felt that the requirement for a citation does not always assure a high quality or accurate response, while no citation is also dubious. The COVID-19 citations are of dubious quality even in major medical journals while imparting some useful information.
1,139
There is currently a global pandemic in place caused by the SARS-CoV-2 virus which is responsible for the disease COVID-19. There is a huge amount of anxiety regarding this illness, and a fair number of questions being asked. However, there are no data from controlled trials regarding treatment, and much advice is bas...
2020/03/16
[ "https://health.meta.stackexchange.com/questions/1139", "https://health.meta.stackexchange.com", "https://health.meta.stackexchange.com/users/3414/" ]
[Caution with old person](https://medicalsciences.stackexchange.com/questions/21733/caution-with-old-person) This closed question can be easily generalised and I think should be tackled. There's a lot of science that can be applied to answering this
I have felt that the requirement for a citation does not always assure a high quality or accurate response, while no citation is also dubious. The COVID-19 citations are of dubious quality even in major medical journals while imparting some useful information.
68,860
What's the best way to prompt for confirmation before killing any modified buffer, including **new** buffers created by `evil-buffer-new`, which creates a buffer without an associated filename. Modified file buffers already have confirmation, but modified new buffers without an associated filename don't. I'd like to as...
2021/10/09
[ "https://emacs.stackexchange.com/questions/68860", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/18503/" ]
> > I don't see anything that handles file metadata other than the name. > > > That's exactly the purpose of command **`dired-mark-sexp`**. Use a Lisp sexp to match files, where the sexp can use (pseudo-)variables whose values are file metadata values. You can use the command interactively or use it or some of it...
If you use library[`find-dired+.el`](https://www.emacswiki.org/emacs/download/find-dired%2b.el) then you can use command **`find-time-dired`**. (You can also call it from Lisp or use part of its code, if you prefer.) It puts only the selected files in a Dired buffer. You can then mark them all (or some subset). Here'...
68,860
What's the best way to prompt for confirmation before killing any modified buffer, including **new** buffers created by `evil-buffer-new`, which creates a buffer without an associated filename. Modified file buffers already have confirmation, but modified new buffers without an associated filename don't. I'd like to as...
2021/10/09
[ "https://emacs.stackexchange.com/questions/68860", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/18503/" ]
> > I don't see anything that handles file metadata other than the name. > > > That's exactly the purpose of command **`dired-mark-sexp`**. Use a Lisp sexp to match files, where the sexp can use (pseudo-)variables whose values are file metadata values. You can use the command interactively or use it or some of it...
Working off of Drew's answer with the vanilla [`dired-mark-sexp`](https://www.gnu.org/software/emacs/manual/html_node/dired-x/Special-Marking-Function.html), something that works in full generality is pretty tricky, since the `time` variable is the formatted date/time string, and I'd need to parse all the different dis...
68,860
What's the best way to prompt for confirmation before killing any modified buffer, including **new** buffers created by `evil-buffer-new`, which creates a buffer without an associated filename. Modified file buffers already have confirmation, but modified new buffers without an associated filename don't. I'd like to as...
2021/10/09
[ "https://emacs.stackexchange.com/questions/68860", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/18503/" ]
> > I don't see anything that handles file metadata other than the name. > > > That's exactly the purpose of command **`dired-mark-sexp`**. Use a Lisp sexp to match files, where the sexp can use (pseudo-)variables whose values are file metadata values. You can use the command interactively or use it or some of it...
Another option, and probably the most direct and best answer to my specific question, is `find-dired` with an argument of `-ctime +NDAYS`. Then in the resulting dired buffer, do `* t` to mark all the files (presuming you haven't marked any yet; `* t` toggles the marked state of all the files in the dired buffer.) The ...
68,860
What's the best way to prompt for confirmation before killing any modified buffer, including **new** buffers created by `evil-buffer-new`, which creates a buffer without an associated filename. Modified file buffers already have confirmation, but modified new buffers without an associated filename don't. I'd like to as...
2021/10/09
[ "https://emacs.stackexchange.com/questions/68860", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/18503/" ]
If you use library[`find-dired+.el`](https://www.emacswiki.org/emacs/download/find-dired%2b.el) then you can use command **`find-time-dired`**. (You can also call it from Lisp or use part of its code, if you prefer.) It puts only the selected files in a Dired buffer. You can then mark them all (or some subset). Here'...
Working off of Drew's answer with the vanilla [`dired-mark-sexp`](https://www.gnu.org/software/emacs/manual/html_node/dired-x/Special-Marking-Function.html), something that works in full generality is pretty tricky, since the `time` variable is the formatted date/time string, and I'd need to parse all the different dis...
68,860
What's the best way to prompt for confirmation before killing any modified buffer, including **new** buffers created by `evil-buffer-new`, which creates a buffer without an associated filename. Modified file buffers already have confirmation, but modified new buffers without an associated filename don't. I'd like to as...
2021/10/09
[ "https://emacs.stackexchange.com/questions/68860", "https://emacs.stackexchange.com", "https://emacs.stackexchange.com/users/18503/" ]
If you use library[`find-dired+.el`](https://www.emacswiki.org/emacs/download/find-dired%2b.el) then you can use command **`find-time-dired`**. (You can also call it from Lisp or use part of its code, if you prefer.) It puts only the selected files in a Dired buffer. You can then mark them all (or some subset). Here'...
Another option, and probably the most direct and best answer to my specific question, is `find-dired` with an argument of `-ctime +NDAYS`. Then in the resulting dired buffer, do `* t` to mark all the files (presuming you haven't marked any yet; `* t` toggles the marked state of all the files in the dired buffer.) The ...
4,541,387
Here is my code, which uses an extended phpMailer. This works if I check for firstResult and lastResult, but not if I check for emailResult: ``` $validator = new FormValidator(); $firstResult = $validator->checkFirst($_POST['firstname']); $lastResult = $validator->checkLast($_POST['lastname']);...
2010/12/27
[ "https://Stackoverflow.com/questions/4541387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/537082/" ]
[Actually, it does!](http://ideone.com/hkdTV) ``` if (checkEmail("123456789") === NULL) print "Actually, it does!\n"; ``` What you're doing is printing the result directly, which will cast `NULL` to an empty string. Hence it only appears to return nothing. Notice that I made use of the [triple equals operator](ht...
Actually, it returns `NULL` when your string is lower than 8. Try `var_dump` instead of `echo`/`print`, it should display the "real" value (=`NULL`) of your string.
4,541,387
Here is my code, which uses an extended phpMailer. This works if I check for firstResult and lastResult, but not if I check for emailResult: ``` $validator = new FormValidator(); $firstResult = $validator->checkFirst($_POST['firstname']); $lastResult = $validator->checkLast($_POST['lastname']);...
2010/12/27
[ "https://Stackoverflow.com/questions/4541387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/537082/" ]
[Actually, it does!](http://ideone.com/hkdTV) ``` if (checkEmail("123456789") === NULL) print "Actually, it does!\n"; ``` What you're doing is printing the result directly, which will cast `NULL` to an empty string. Hence it only appears to return nothing. Notice that I made use of the [triple equals operator](ht...
How are you testing the return? ``` echo is_null(checkEmail('foo@bar.com')) ? 'Pass' : 'Fail'; ``` Also just a note; your validation parameters of 8 characters will fail on an email such as `j@cc.tv`. While surely rare, it would be suggested you validate based on form using Regular Expressions. Plenty of [examples](...
4,541,387
Here is my code, which uses an extended phpMailer. This works if I check for firstResult and lastResult, but not if I check for emailResult: ``` $validator = new FormValidator(); $firstResult = $validator->checkFirst($_POST['firstname']); $lastResult = $validator->checkLast($_POST['lastname']);...
2010/12/27
[ "https://Stackoverflow.com/questions/4541387", "https://Stackoverflow.com", "https://Stackoverflow.com/users/537082/" ]
Actually, it returns `NULL` when your string is lower than 8. Try `var_dump` instead of `echo`/`print`, it should display the "real" value (=`NULL`) of your string.
How are you testing the return? ``` echo is_null(checkEmail('foo@bar.com')) ? 'Pass' : 'Fail'; ``` Also just a note; your validation parameters of 8 characters will fail on an email such as `j@cc.tv`. While surely rare, it would be suggested you validate based on form using Regular Expressions. Plenty of [examples](...
2,091,724
AFAIK it's done like this: Product: ``` <Merge Id ="HelpInstaller" SourceFile="HelpInstaller.msm" Language="1033" DiskId="1"> <ConfigurationData Name="SurpressInstallation_Config" Value="&amp;HelpFeature"/> </Merge> ``` Merge Module: ``` <Property Id="SupressInstallation" Value='0' /> <Substitut...
2010/01/19
[ "https://Stackoverflow.com/questions/2091724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/232999/" ]
That sounds like a bug. You should at least get a more descriptive error message explaining what went wrong. Feel free to file the bug at <http://wixtoolset.org/bugs>
A feature has a dependency on a merge module, not the other way around. Nothing in the merge module should have a reference to anything outside of the merge module such as a ProductName, ProductCode or Feature name because that would tightly couple the merge module to a specific product rather then being a generic reus...
2,091,724
AFAIK it's done like this: Product: ``` <Merge Id ="HelpInstaller" SourceFile="HelpInstaller.msm" Language="1033" DiskId="1"> <ConfigurationData Name="SurpressInstallation_Config" Value="&amp;HelpFeature"/> </Merge> ``` Merge Module: ``` <Property Id="SupressInstallation" Value='0' /> <Substitut...
2010/01/19
[ "https://Stackoverflow.com/questions/2091724", "https://Stackoverflow.com", "https://Stackoverflow.com/users/232999/" ]
You have to define Configuration node under module: ``` <Property Id="SupressInstallation" Value='0' /> <Configuration Name="SupressInstallation_Config" Format="Text"/> <Substitution Table='CustomAction' Row='SetSupressInstallationProperty' Column='Target' Value='[=SupressInstallation_Config]'/> <CustomAction Id='Set...
A feature has a dependency on a merge module, not the other way around. Nothing in the merge module should have a reference to anything outside of the merge module such as a ProductName, ProductCode or Feature name because that would tightly couple the merge module to a specific product rather then being a generic reus...