This is the default stuff in post-commit.tmpl, which I don't think do anything useful:
REPOS="$1"
REV="$2"
mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf
How to make use of this hook to automate the deployment?
function sk=skeleton_finding(x)
% calculate distance transform
dt=bwdist(~x,'cityblock');
% find the local maximum
n=[0 1;-1 0;0 -1;1 0];
sk=dt>0;
for i=1:4
sk=sk&(dt>=circshift(dt,n(i,:)));
end
Can someone illustrate?
Like the BeanFactory in java:
In the much more common case where the
BeanFactory itself directly creates
the bean by calling its constructor
(equivalent to Java code calling new),
the class attribute specifies the
class of the bean to be constructed.
In the less common case where the
BeanFactory calls a static, so-called
factory method on a class to create
the bean, the class attribute
specifies the actual class containing
the static factory method.
Note:it's not the factory method
#include <gtk/gtk.h>
int main( int argc,
char *argv[] )
{
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_show (window);
gtk_main ();
return 0;
}
The above is from here:
http://library.gnome.org/devel/gtk-tutorial/stable/c39.html
But I want to use cmake to compile/run it(supposing gtk has been properly installed).
Can someone provide a demo?
Suppose now I've got the datetime to show like this:
2010-05-29 15:32:35
The the corresponding time zone can be get by date_default_timezone_get,
how do I output the result in the same time zone as user's browser so that users don't get confused?
Given the following example:
>> I=[2 1 3;3 2 4]
I =
2 1 3
3 2 4
>> I(:)
ans =
2
3
1
2
3
4
>> I(1:2)
ans =
2 3
Why does I(:) return a column vector while I(1:2) returns a shorter row vector?
I'm interested in this field,but I'm only familiar with PHP so far.
If not,can you recommend a tiny but not so bad project that's easy enough to learn?
test.java:
import javax.media;
Which directories are javax.media searched from?
I suppose those in CLASSPATH specified by javac -cp will of course be searched.
But will it also search in the directory where test.java locates?
And are there any other possible places that will be searched?
I just walked through this thread, and found html5 video is fantastic.
So now what I need to do is convert video streams from pc camera into rtp/rtsp format.
Is there a good solution you recommend?
I've install subversion, and want to write my own script to automate the web deployment.
Is it possible to trigger the script when commiting?
It's neither ssh nor apache based, only rely on svnserve.
I have unix timestamps from time zone X which is not known,
the current timestamp(now()) in TZ X is known 1275143019,
how to approach a javascript function so that it can generate the datetime in the users current TZ in the format 2010-05-29 15:32:35 ?
This question asks for one in java,
what's the best candidate in PHP?
BTW,does the following establish:
distributed key value store ==
distributed cache
?
Is this another bug of xdebug?
I've already installed the latest version of xdebug for PHP 5.3 yesterday.
Here is the problem description:
When I press Resume,the Suspend button is grayed out,though there are breakpoints there.
Anyone met this problem?
http://www.tiddlywiki.com/
The above site provide a wiki tool which essentially is just a .html file,but it can save files via javascript,anyone knows how is it implemented?
$sql = "SELECT * FROM table ORDER BY :sort :dir LIMIT :start, :results";
$stmt = $dbh->prepare($sql);
$stmt->execute(array(
'sort' => $_GET['sort'],
'dir' => $_GET['dir'],
'start' => $_GET['start'],
'results' => $_GET['results'],
)
);
I tried to use prepare to do the job,but $stmt->fetchAll(PDO::FETCH_ASSOC); returns nothing.
I read through this post:
http://stackoverflow.com/questions/741345/how-do-i-implement-direct-identity-based-openid-authentication-with-zend-openid
Why does it look so complicated to implement?
IMO, it's just to send request to a remote site and retrieve the response.
What's the problem those OpenID libraries are dealing with?