I've been working with a document repository using XQuery (via Java and .NET interfaces) and was wondering if anyone has any recommendations for unit testing XQuery modules?
I have used the preg_replace_callback as
$string = preg_replace_callback($pattern,'CreateTemplatesController::callbackhandler',$string );
I have called the callbackhandler function with the class name as this function is a private static function.
Problem is "callbackhandler" function is not getting called.
Please post if any one know the reason for the same. Thanks in Advance
In C# VS2008 how to replace
new SqlParameter("@Description", SqlDbType.NChar, 1500)
or
new SqlParameter("@IsRequired", SqlDbType.Bit)
to
"@Description", SqlDbType.NChar, 1500
or
"@IsRequired", SqlDbType.B
the idea is to remove new SqlParameter() and leave the parameters inside it.
I have thounds of lines code have this pattern. I just want to pass compile by using some regular expression.
I need to allow access to an svn repository using email addresses as the user name. I can log in to the server over ssh no problem by changing the email address "@" to a "$" like so:
ssh [email protected]
Unfortunately, the same does not work for svn+ssh. This gets me nowhere:
svn ls svn+ssh://[email protected]/home/accountname/data/svn/repos
Anyone know how this is usually done?
I have a 2 part question:
Is there anything more to implementing themes than simply placing a <toolkit:BlahBlahBlahTheme> tag around all your content?
What is the pattern for switching out themes at runtime? Is there such a thing?
I'd like to embed code from my SVN repository into my website, using PHP. The SVN has public anonymous access, so the PHP code should be fine reading it.
The code on said SVN is java, and so far I've had no luck finding a syntax-highlighter to make the code more readable. Ideally I'd like one that uses CSS classes so that I can change the colors to match the look of the website.
Could someone point me to a PHP library that highlights Java code?
Hi there.
I don't know exactly how it happened, but I have a versioned ".svn" directory
in my repository. Don't ask me how it got there.
If I tell svn to delete it, it does not want to, since .svn is a reserved argument.
Force does not work.
Any ideas?
Hi,
I have an exam tomorrow and I need some help with these programs. Or if you can tell me where I can get these.
Write a program which uses grep to search a file for a pattern and display search patterns on standard output
Write an awk program to print only odd numbered lines of a file.
Write a program to open the command ls and give the output to the command through which we count the number of files
Thank You :)
We have a problem in cloning a repository created in unix in to a Windows box.
Git fails while checking out a lengthy file that has more than 32 characters in windows.
The file name is given below.
BaseFCS_x0020_OnLine_x0020_Identicheck_x0020_verification_x0020_serviceConsumer.java*
Is there a way to fix this issue in Git?
I would like to see if the working copy will fit onto my hard drive and don't want to waste time and bandwith.
So my question is: Is it possible to determine the size of the working copy before checkout?
I do have access to the repository, but its filesize does not say anything.
what is concerned best practice regarding the following "pattern"?
#ifndef BLAFOO_H
#define BLAFOO_H
/* ...
* ...
*/
#endif /* BLAFOO_H */
how should i name the header in the #define directive? i've seen all from said BLAFOO_H to __BLAFOO_H to _BLAFOO_H_ etc..
I am looking for a lightweight set of C++ classes that implement/show how to use the MVP design pattern, so that I can refactor some legacy code I am working on.
A library/framework would be nice to get me started. A quick google search seems to bring up only C# examples - is anyone aware of any C++ ones out there?
[Edit]
I am particularly interested in a Passive viewer, as I want to completely decouple the view from the model.
Maybe this is simpler and more straightforward then what I'm thinking but I can't seem to find this concept on google anywhere. The concept is this:
You have a table in a database and the table has a specified number of columns. However, it has been asked of me by previous clients that there also be a set of dynamic user defined columns that can be added on the fly.
What is this concept called and is it considered a design pattern?
From http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html:
\Z The end of the input but for the final terminator, if any
\z The end of the input
But what does it mean in practice? Can you give me an example when I use either the \Z or \z.
In my test I thought that "StackOverflow\n".matches("StackOverflow\\z") will return true and "StackOverflow\n".matches("StackOverflow\\Z") returns false. But actually both return false. Where is the mistake?
In MVC app, I am having this big object that is used in classic view/edit/create pattern.
When user edits the object I save it as:
public bool SetMyObject(MyObject newObject) {
MyObject current = GetObjectById(newObject.Id);
current.Prop1 = newObject.Prop1
...
current.PropN = newObject.PropN
db.SaveChanges();
}
MyObject is pretty big so I am wondering is there any better way to do this, not involving per-property assignments. For instance something along the lines db.MyObject.UpdateObject(current, tnew).
Ty.
Is it possible to use a regular expression to get filenames for files matching a given pattern in a directory without having to manually loop through all the files.
Do you compile your code before committing it to the repository, even when you only change a few comments? I know comments are typically ignored by compilers, but I find myself doing this often out of habit.
module MyModule
def my_method; 'hello'; end
end
class MyClass
class << self
include MyModule
end
end
MyClass.my_method # => "hello
I'm unsure why "include MyModule" needs to be in the eigenclass in order to be called using just MyClass.
Why can't I go:
X = MyClass.new
X.my_method
How is this type of pattern useful if I can't call it from an instance?
Hello I am looking for personalized screen locker for android phones, instead of typing numbers , user can flex fingers in a particular pattern and unlock the screen.
Any pointers/ideas are appreciated.
I'm trying to locate the "throbber" (or "spinner") image used in the Firefox 3.6x chrome to show that a request is being processed:
I'm not familiar with the source code structure for Firefox, and a simple search hasn't yielded the answer.
Does anyone know which file I'm looking for? (E.g. can you provide a link to the file in the Mercurial repository, or tell me how to find it?).
So I'm creating this website and there is a strange untraceable bug that causes the header to move down 10 or so pixels. On a refresh the header could be correct or it could be broken. I've been testing it on Adobe Browserlab and the results are different every time.There is no discernible pattern making it incredible hard to track down.
http://www.freeimagehosting.net/uploads/c866bf594d.jpg
Has anyone ever had this problem and been able to fix it?
I have made a simple batch file for backing up my repository changes and rebuildig, but it always stops executing after the backup command is run. Have anyone here ever seen this happen before?
What are some non commercial deployment tools that allows a developer to speficy:
a branch/tag,
a revision and a
target machine to deploy code to?
I was wondering if there's a ccnet plugin of some sort that would allow the above to be specified.
I know this could be done with a NAnt deploy script. However considering we're mostly using gui tools for feedback, plus the tortoise svn repository browser, it be cool to lear if there's an GUI simple GUI tool/plugin
cheers.
This is sort of a follow-up to this question.
If there are multiple blobs with the same contents, they are only stored once in the git repository because their SHA-1's will be identical. How would one go about finding all duplicate files for a given tree?
Would you have to walk the tree and look for duplicate hashes, or does git provide backlinks from each blob to all files in a tree that reference it?
I'm in search of and useful source of knowledge on Optical/Intelligent Character Recognition, Image and Pattern recognition.
Any books, papers, websites and whatever.
Thanks!