upper bound of sequence of functions
What function will be an upper bound of the sequence
$f_{n}(x)=\Bigl(1-\frac{x}{n}\Bigr)^{n}\ln(x)$
since $\displaystyle\lim_{n\to\infty}\Bigl(1-\frac{x}{n}\Bigr)^{n}=e^{-x}$
so we should probably bound above by the exponential function.
Someone knows how to do that?
Tuesday, 1 October 2013
can some tell me that my answer is right or wrong
can some tell me that my answer is right or wrong
If $\mathbb R$^5be a vector space .and
$$W_1={(0,x_2,x_3,x_4,x_5)/x_2,x_3,x_4,x_5\in R}$$and
$$W2={(x_1,0,x_3,x_4,x_5)/x_1,x_3,x_4,x_5\in R}$$be two subspaces of $R^5$
then the dimension of $W1\cap$W_2 is according two me its dimension is 3
as then $W_1\cap W_2$ have elements of the form $$(0,0,x_3,x_4,x_5)$$
hence $W_1\cap W_2$ will be isomorphic to $ R^3$.
If $\mathbb R$^5be a vector space .and
$$W_1={(0,x_2,x_3,x_4,x_5)/x_2,x_3,x_4,x_5\in R}$$and
$$W2={(x_1,0,x_3,x_4,x_5)/x_1,x_3,x_4,x_5\in R}$$be two subspaces of $R^5$
then the dimension of $W1\cap$W_2 is according two me its dimension is 3
as then $W_1\cap W_2$ have elements of the form $$(0,0,x_3,x_4,x_5)$$
hence $W_1\cap W_2$ will be isomorphic to $ R^3$.
Monday, 30 September 2013
LDAP query doesn't return all accounts with specific login
LDAP query doesn't return all accounts with specific login
I have a Windows 2008 domain that I am querying via ldapsearch and if I
use a domain administrator account I get all the users I would expect, but
if I use the service account I created for this purpose I miss random
objects.
For example:
#> ldapsearch -LLL -H ldap://domain-controller.my-domain.com:389 -b
'dc=MY-DOMAIN,dc=COM' -D 'MY-DOMAIN\administrator' -W
'(&(objectClass=Person)(sAMAccountName=*)(memberof=cn=StashTeam,ou=MyTeams,ou=MyDomainUsers,dc=MY-DOMAIN,dc=COM)(!(userAccountControl=514)))'
| grep cn:
I get a list of:
cn: Homer Simpson
cn: Marge Simpson
cn: Bart Simpson
cn: Lisa Simpson
cn: Maggie Simpson
However if I run (using my Service Account):
#> ldapsearch -LLL -H ldap://domain-controller.my-domain.com:389 -b
'dc=MY-DOMAIN,dc=COM' -D 'MY-DOMAIN\ServiceUser' -W
'(&(objectClass=Person)(sAMAccountName=*)(memberof=cn=StashTeam,ou=MyTeams,ou=MyDomainUsers,dc=MY-DOMAIN,dc=COM)(!(userAccountControl=514)))'
| grep cn:
I get a list like:
cn: Homer Simpson
cn: Lisa Simpson
cn: Maggie Simpson
I have a Windows 2008 domain that I am querying via ldapsearch and if I
use a domain administrator account I get all the users I would expect, but
if I use the service account I created for this purpose I miss random
objects.
For example:
#> ldapsearch -LLL -H ldap://domain-controller.my-domain.com:389 -b
'dc=MY-DOMAIN,dc=COM' -D 'MY-DOMAIN\administrator' -W
'(&(objectClass=Person)(sAMAccountName=*)(memberof=cn=StashTeam,ou=MyTeams,ou=MyDomainUsers,dc=MY-DOMAIN,dc=COM)(!(userAccountControl=514)))'
| grep cn:
I get a list of:
cn: Homer Simpson
cn: Marge Simpson
cn: Bart Simpson
cn: Lisa Simpson
cn: Maggie Simpson
However if I run (using my Service Account):
#> ldapsearch -LLL -H ldap://domain-controller.my-domain.com:389 -b
'dc=MY-DOMAIN,dc=COM' -D 'MY-DOMAIN\ServiceUser' -W
'(&(objectClass=Person)(sAMAccountName=*)(memberof=cn=StashTeam,ou=MyTeams,ou=MyDomainUsers,dc=MY-DOMAIN,dc=COM)(!(userAccountControl=514)))'
| grep cn:
I get a list like:
cn: Homer Simpson
cn: Lisa Simpson
cn: Maggie Simpson
An abelian subgroup of a group of order 32:
An abelian subgroup of a group of order 32:
I know that a group of order 32 has an abelian subgroup of order 16 using
GAP (Groups, Algorithms, Programming). Is there a way without using
programming to show this. Any help will be highly appreciated.
I know that a group of order 32 has an abelian subgroup of order 16 using
GAP (Groups, Algorithms, Programming). Is there a way without using
programming to show this. Any help will be highly appreciated.
iOS 7 adding UIView to UITableView
iOS 7 adding UIView to UITableView
I am trying to add a UIView to UITableView in iOS 7 to display and "Not
Results" view.
My code works fine in iOS 6, but getting white page in iOS 7.
[self.tableView insertSubview:_nomatchesView
belowSubview:self.tableView];
Anyone run into this issue?
Thanks.
I am trying to add a UIView to UITableView in iOS 7 to display and "Not
Results" view.
My code works fine in iOS 6, but getting white page in iOS 7.
[self.tableView insertSubview:_nomatchesView
belowSubview:self.tableView];
Anyone run into this issue?
Thanks.
Passing data from C# to unmanaged C++ (using COM Interop)
Passing data from C# to unmanaged C++ (using COM Interop)
I'm using Com Interop method to communicate with unmanaged C++ and C#.
I need to send data to unmanaged C++ from C#.
Im already sending "bool" values values from C# & accessing it through
"VARIANT_BOOL*" in c++.
I need to send a integer from C#. How can i access that integer value in
unmanaged c++ side ?
for example:
C#
public int myValue()
{
return 5;
}
Unmanaged C++
CoInitialize(NULL);
hRes = IMyPointer.CreateInstance(MyNSpace::CLSID_MyClass);
if (hRes == S_OK)
{
//// ??? define x type
IMyPointer->myValue(x);
}
I'm using Com Interop method to communicate with unmanaged C++ and C#.
I need to send data to unmanaged C++ from C#.
Im already sending "bool" values values from C# & accessing it through
"VARIANT_BOOL*" in c++.
I need to send a integer from C#. How can i access that integer value in
unmanaged c++ side ?
for example:
C#
public int myValue()
{
return 5;
}
Unmanaged C++
CoInitialize(NULL);
hRes = IMyPointer.CreateInstance(MyNSpace::CLSID_MyClass);
if (hRes == S_OK)
{
//// ??? define x type
IMyPointer->myValue(x);
}
Sunday, 29 September 2013
Regex "greedy" check
Regex "greedy" check
I'm trying to use a simple Regex to match a patttern but get some
unexpected results...
The search pattern and results are given below,
public class Test {
public static void main(String[] args) throws IOException {
Pattern p = Pattern.compile(".*xx");
Matcher m = p.matcher("yyxxxyxx");
while (m.find()){
System.out.println("match start");
System.out.println("Start = " + m.start());
System.out.println("End = " + m.end());
System.out.println("Group = " + m.group());
}
}
}
Result:
match start Start = 0 End = 8 Group = yyxxxyxx
Expected Result:
match start Start = 0 End = 4 Group = yyxx match start Start = 4 End = 8
Group = xyxx
Can someone explain how the regex operates ?
I'm trying to use a simple Regex to match a patttern but get some
unexpected results...
The search pattern and results are given below,
public class Test {
public static void main(String[] args) throws IOException {
Pattern p = Pattern.compile(".*xx");
Matcher m = p.matcher("yyxxxyxx");
while (m.find()){
System.out.println("match start");
System.out.println("Start = " + m.start());
System.out.println("End = " + m.end());
System.out.println("Group = " + m.group());
}
}
}
Result:
match start Start = 0 End = 8 Group = yyxxxyxx
Expected Result:
match start Start = 0 End = 4 Group = yyxx match start Start = 4 End = 8
Group = xyxx
Can someone explain how the regex operates ?
Subscribe to:
Posts (Atom)