What is the matrix of sobel operator of size 3x3 if the operator is said to be diagonal
(Left or right diagonal)?
EDIT: or may be with more bigger size
As you may know, in many occasions, there is a need to flag some elements of a matrix. For example when we have weighted adjacency matrix, and our graph is not fully connected, we have to flag some elements to show that there is no edge between those nodes. The question is how to do that? Is it better to put NaN or Inf on that elements in the matrix? or something elese(such as -1)?
The Find and Replace dialog in Visual Studio is a perfect example of what im trying to accomplish. Notice how the "Find what" text field has keyboard focus but the "Find Next" button appears bluish as if it has keyboard focus also even though it does not.
How can I accomplish this myself? I've tried messing with FocusManager and Focus Scopes without much luck. I suspect i may be barking up the wrong tree? Any advice is appreciated!
Thanks
Hi,
Is it possible to loop over all the properties and replace all token which correspond to them?
For example, if I have three properties defined, a,b,c, I want to replace all three tokens @a@, @b@, @c@ . I however do not want to set up the filterchain manually as properties may be added/removed later on.
I can accomplish this using a custom nant task, but is ther a way to do this through a build file alone.
Thanks,
Hi, if I have a protocal defined, then it always generate a lot of warnings when compile.
like
@property (retain) id <SomeProc> value
then in the code:
[value class]; ...
[value release]
the compiler always complain it "may not have class or release defined".
Is there a way to fix this?
Hello there,
As you may know, res.sendRedirect(url) on the servlet side does not work because the GWT client does not process it.
Does anybody knows how to do this?
Thanks you.
Daniel
Hi
I'm wondering how to implement highlighting of changes to user edited articles on a wiki style rails project. Since articles may be fairly lengthy I'd ideally like strikethrough and highlighting, similar to github and wikipedia for example. Despite searching around the net I've not really come up with much, apart from instiki which is a complete wiki application.
Thanks in advance for any advice.
If I just want a sorted list of just dates, integers, or doubles is it really necessary to have to define a SortedList(of Integer, Integer)?
Seems intriguing to me, but may just be trival. I'd prefer just to use a SortedList(of Integer).
(This question is in relation to the .Net generic collections)
Hi Folks,
Firefox & IE's do have browser-settings where an user may allow those forbidden
cross domain calls.
My question: Is there a similar setting/option in Safari's and/or Chrome browsers?
Kind Regards
--Andy
I am building an internet site, using my local machine as the development box (I have MOSS 2007 installed).
I have a custom master page, packaged in a WSP, so I may use STSADM on the production server to install it.
I have made some pages via SPD (on my local machine) and put them in the "Pages" gallery.
What is the recommended way to get these pages to production.
Also, is the process the same when I make edits to current pages?
Hi,
May I know what port is used by Java Web Start? If I want to connect a Java Web Start client to a Java Web Start server, what port I need to open at the server side so that the client can connect to it?
I want to set up a firewall in the server machine but I don't know which port I should open.
Thanks.
Hi... I want to hire a programmer from Germany for some dev work. Are contracts binding in that country? What sort of pitfalls may I encounter with hiring a foreign programmer?
hi all trying to update my app on itunes connet i get the following :
The binary you uploaded was invalid. The executable name, as reported by CFBundleExecutable in the Info.plist file, may not contain any of these characters: \ [ ] { } ( ) . + *
please i v searched the web no one encountered this error
thanks
I'm getting the following error:
2010-05-11 17:46:28.475
MyApp[54112:5e1b] bool
_WebTryThreadLock(bool), 0x140faa0: Tried to obtain the web lock from a
thread other than the main thread or
the web thread. This may be a result
of calling to UIKit from a secondary
thread. Crashing now...
Is there any way for me to figure out where [54112:5e1b] is in my code, so I can try to narrow down the error?
Thanks.
In light of the "Hidden features of..." series of questions, what little-known features of PL/SQL have become useful to you?
Edit: Features specific to PL/SQL are preferred over features of Oracle's SQL syntax. However, because PL/SQL can use most of Oracle's SQL constructs, they may be included if they make programming in PL/SQL easier.
Heres the situation. Component B extends component A and overrides the init method to accept a different parameter. A also has a create method that calls init.
If i have an instance of B and i call create, its calling the wrong init - it calls init in B, where i need it to call init in A.
I dont want to call super.init() as there may not always be a super. Is there any way to specify to call the init in the parent component?
Is there any good link for lambda expression for learn?
If so kindly suggest me one.
In google in searched but may be my luck failed to get any suitable one.
Thanks
Possible Duplicate:
Protect .NET code from reverse engineering?
we just develop a application with C# winforms, is there any good encryption method to help us prevent from piracy ?
I saw some software may need hardware support to protect their software, how to implement that ?
Thanks in advance !
I have a WCF service which I would like to access using ASP.NET. The binding used in the WCF service is basicHttpBinding. How may I do it? Any examples will be really appreciated.
how to allow user to edit their information after registration. And moreover how add new fields during editing information.
for ex: my primary registration holds name,email,picture(optional). I want to get additional information like state,city,... when they wants some customized service.
May any one suggest me a solution .
Default syntax for Header set Expires is
Header set Expires "Wed, 21 May 2010 20:00:00 GMT"
and default syntax for ExpiresDefault is
ExpiresDefault A2592000
OR
ExpiresByType image/gif A60
I want to use such a syntax for Header set Expires, that is I want to pass an expires time in seconds after access. how can i do this ?
I am building a system using NServiceBus and my DataLayer is using Linq 2 SQL.
The system is made up of 2 services.
Service1 receives messages from NSB.
It will query Table1 in my database
and inserts a record into Table1
If a certain condition is met a new NSB message is sent to the 2nd service
Service2 will update records also in Table1 when it receives messages from Service1 and it does some other non database related work.
Service2 is a long running process.
The problem I am having is the moment Service2 updates a record in Table1, the table is locked. The lock seems to be in place until Service2 has completed all it is processing.
i.e. The lock is not released after my datacontext is disposed.
This causes the query in Service1 to timeout.
Once Service2 completes processing, Service1 resumes processing again without problem.
So for example Service1 code may look like:
int x =0;
using (DataContext db = new DataContext())
{
x = (from dp in db.Table1 select dp).Count(); // this line will timeout while service2 is processing
Table1 t = new Table1();
t.Data = "test";
db.Table1.InsertOnSubmit(t);
db.SubmitChanges();
}
if(x % 50 == 0)
CallService2();
The code in service2 may look like:
using (DataContext db = new DataContext())
{
Table1 t = db.Table1.Where(t => t.id == myId);
t.Data = "updated";
db.SubmitChanges();
}
// I would have expected the lock to have been released at this point, but this is not the case.
DoSomeLongRunningTasks();
// lock will be released once service2 exits
I don't understand why the lock is not released when the datacontext is disposed in Service2.
To get around the problem I have been calling:
db.ExecuteCommand("SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED");
and this works, but I am not happy using it.
I want to solve this problem properly.
Has any one experienced this sort of problem before and does any one know how to solve it?
Why is the lock not released after the datacontext has been disposed?
Thanks in advance.
p.s. sorry for the extremely long post.
I need a java program to get the current date without timestamp
Date d = new Date();
gives me date and timestamp
But i need only date, without timestamp. I use this date to compare with another date object that does not have timestamp.
on printing
System.out.println("Current Date : " + d)
of d it should print May 11 2010 - 00:00:00 .
hello, I've got some problems with this snippet of the code
while(scanf("%d",&numOfPlayers)!=1){
printf("Please enter the right number of players");
}
my purpose is to take the number from the user but if number is not int, I must ask him one more time, when I check this snippet and print 'r' for example I receive eternal loop, what may be the problem, how can I improve it? thanks in advance