2
голосов
2ответов
4712 просмотров

Git: Post-update hook that runs a script that needs access to all files in the repository

I'm running into a bit of dilemma at the moment in that I need a script to run whenever the remote repository is updated (ie, whenever someone runs git push) that builds packages from the files in the repository. These packages are then placed into a directory on the git server that's exposed to ...

6
голосов
3ответов
7409 просмотров

How to hijack the Caps Lock key for Cut, Copy, Paste keyboard operations

Here is what I am trying to accomplish: To Copy, press and release Caps Lock ONCE To Paste, press and release Caps Lock TWICE, quickly To Cut, press Ctrl+Caps Lock The reason I want to do this is often times i find my self looking down to press the correct X/C/V key, since they're all next t...

0
голосов
2ответов
184 просмотров

Forum vB plugin not working

So I made a plugin/hook <?php ob_start(); include $_SERVER['DOCUMENT_ROOT'] . "/delta/pack_files/other/login.php"; $loginphpp = ob_get_contents(); ob_end_clean(); ?> I enabled hooks/plugins in the settings, and i set this plugin to be at global_start the folder directory is correct and ...

2
голосов
2ответов
1418 просмотров

How to get entire svn commit message in window bat?

I need get the SVN commit message in post-commit hook bat in Windows, so I do this: FOR /F "tokens=*" %%a in ('"svnlook log %1 -r %2"') do @SET MSG=%%a I test it, it's ok for most case. but, when I input multiple lines in SVN commit message, the command can only get the last line of commit me...

4
голосов
2ответов
5046 просмотров

hook scripts tutorials?

I've been trying to find some tutorials on writing hook scripts, and so far my search has been pretty fruitless. Can anyone point me in the direction of a good source? I've checked the SVN book, but can't find anything that detailed in there (although I may simply not have looked in the right pla...

5
голосов
2ответов
8152 просмотров

Wordpress: Removing posts in "The Loop" using filters

After reading the Wordpress documentation, I realized you can remove posts from the index using filters inside "The Loop", e.g.: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- The following tests if the current post is in category 3. --> <?php if (in_cat...

3
голосов
2ответов
435 просмотров

Wordpress Hooks

How does wordpress implement hooks internally?

3
голосов
2ответов
1081 просмотров

subversion e-mail notification

I would like my subversion to send me an e-mail (and my co-workers) on every commit. There are many solutions to this, but I didn't find any that will enable me to use wildcard/regexp match on svn URL and use it to notify different group of people. Anyone done that?

1
голосов
1ответов
268 просмотров

Babylon Text Select

How does Babylon recognizing text selection in any software? I have to implement this. Thanks.

6
голосов
2ответов
2101 просмотров

Spying on COM Objects

I've set myself a new task which involves "spying" on COM objects. Even if you don't do COM, you're probably familiar with API hooking techniques where you can hook onto an imported function and execute your own code before calling the original. API hooking is somewhat complex but it quickly get...

0
голосов
2ответов
364 просмотров

How can ruby provide a callback when a file is closed?

I have a method which returns an File object. I need to know when the file is getting closed. This is not as simple as overwriting the close method. The close method is not called if the file is closed by the destructor. It should work like this: def something get_lock_on_file file File...

16
голосов
4ответов
9356 просмотров

Detecting Keyboard Hooks

Is there a way to detect which programs or modules are listening to a keyboard hook? By Sysinternals maybe?

1
голосов
1ответов
657 просмотров

Take control of mouse using mouse hooks in VC#

is there any way to take control of all the mouse events entirely using mouse hooks? I'm developing an application (VC# exe that is) and I've to fulfill the following requirement: Whenever the application is active, it has to display a virtual cursor instead of the windows cursor and when the use...

4
голосов
4ответов
759 просмотров

Hooking all function calls in JavaScript?

My intuitive response to this question would be ,"This is so stupid that I can't continue having this conversation." However: Is there any way to hook all javascript function calls within my module? I'd like to find a convenient way of showing "loading blah...", "done..." messages when performin...

0
голосов
1ответов
317 просмотров

DLLHook - GZip decompression of a string

I am injecting a dll into firefox (browser) and hooking WSARecv. The problem is, that the data-buffer is Gzip-compressed. I already tried hooking the send() function and removing the "Accept-Encoding: gzip,deflate", but many webservers won't understand this. So I tried to stick with decompressin...

0
голосов
1ответов
2057 просмотров

How do I pass a custom field to a hook (Invision Power Board [ipb] / PHP)

A long shot but here's hoping someone has some experience coding PHP hooks for Invisions Power Board forum. I'm attempting to code a status addition and the PHP works fine on it's own, it's the passing of the IPB's reference to my hook that is the issue. I.E. You setup a custom field in your fo...

0
голосов
1ответов
87 просмотров

Which windows event is used by SQL server application to control menu items?

I am using Windows XP (sp2) operating system. When I used spy++ for notepad and wordpad and selected menu items it displayed WM_MENUSELECT msg and if I clicked menu item it displayed WM_COMMAND. But when i used spy++ for SQL server 2005 and vs2005 and select menu items it is not showing any mes...

1
голосов
2ответов
1759 просмотров

Need to disable mouse right click in Windows?

I am creating a system tray app which monitors mouse clicks in Windows. I want to disable the right mouse click. My app is based on this sample code. In the HookCallback method, I tried to do this: if ((MouseMessages)wParam == MouseMessages.WM_RBUTTONDOWN) return (System.Int...

0
голосов
2ответов
538 просмотров

how to know which menuitem is clicked using wh_getmessage hook?

i want to know which menuitem is clicked using WH_GETMESSAGE hook.can somebody help me please...from one week i stuck with this problem? plz provide a way how can we achive this..using win32 dll. i am working on vc++6.0. Thanks in advance....

7
голосов
1ответов
1598 просмотров

drawing under icons on desktop

I wrote a program who paints widget on desktop wallpaper, under desktop icons, and all was good. But I reveal a strange bug - my program was not works on some other computers - they displays the same desktop without widget after start. So, have anybody any expirience, some knowledge in this are...

4
голосов
1ответов
5356 просмотров

Subversion post-commit hook to update 'staging' version not working

We have a staging version of our web application (it is basically a subversion working copy that no-one works on) that lives in '/apps/software'. Each developer has their own working copy in '~/apps/software'. I would like to utilise a simple post-commit hook script to update the staging copy eve...

0
голосов
1ответов
1181 просмотров

C# Not all keyboard events are being replayed correctly

I'm writing a tool for validation engineers to log session interaction when attempting to reproduce failure. It creates a video of the desktop, and I'm hooking the keyboard and mouse in C#, to record their interaction with the OS. The events are serialized out to a file to be read in at a later ...

3
голосов
2ответов
1159 просмотров

VB6 quitting while debugging with active Windows message hook

One of our largest old VB6 apps has some code in it to allow other apps (including some dotNET ones) to pass an ID to it via a Windows message - this ID is then used by the VB6 app to load an entry in a regular Windows form. The message hook is added after the user is logged in and authenticated,...

4
голосов
1ответов
3943 просмотров

how to find keyboard in /dev on osx

On linux / ubuntu, the keyboard and mouse devices are found in /dev/input/by-path/ Where is the keyboard device mounted in osx? I added a usb keyboard, and no devices got added in /dev folder. Is it located somewhere else, or is it totally unaccessible? Thanks. Edit: I was able to get some ...

4
голосов
1ответов
660 просмотров

delphi - watching for files changes in directories - implemented in JCL?

I need to notify my application in some way whenever any file in the given directory has been changed (its content has been modified) ... is there any JCL/JVCL routine for that? Thanks in advance ...

0
голосов
1ответов
772 просмотров

How can my application read windows messages (WM_SETTEXT) from another application?

Is there a way to intercept window messages from another app other than a global message hook? Platform: Windows XP.

0
голосов
2ответов
471 просмотров

Manage SVN hooks with SVN?

As far as I could see, there is no built-in feature to manage SVN hooks in SVN itself. There are some ideas of course, such as another repository with hooks scripts, running an svn export to the hooks directory on commit, but how would you do it?

-3
голосов
2ответов
696 просмотров

Help with hooks and taxonomies: Modifying the posts query in wordpress?

in wordpress you can do the following: http://example.com/tag/jazz,blues/ (returns tags page with posts tagged with jazz OR blues) http://example.com/tag/jazz+blues/ (returns tags page with posts tagged with jazz AND blues) I want to be able to do the same thing with other taxonomies other tha...

0
голосов
3ответов
171 просмотров

Is there a way to automatically push svn configuration settins from the server to the clients?

Is there a way to force the client to update its local svn configuration using a hook? I have lin and win clients and I'd like to push down a standard set of ignores and auto props. Today, I provide a config files and ask the users to install them (.reg file for win and conf file for linux). I...

0
голосов
1ответов
391 просмотров

Terminate hook processing in ejabberd module

I'm writing an ejabberd module. What it does is saving some messages into a queue. It actually works very good, there is only one thing I can't find in any documentation. I need to stop hook processing if I find a message coming from a particular user. I.e. a message is sent to ejabberd, from us...