I remember coming across an article on I think CodeProject quite some time ago regarding an antivirus or antimalware some guy was writing where he hooked into the Windows API to be able to catch whenever a new process was started and was prompting he user before allowing the process to start.
I can no longer find the article, and would ...
I'm looking to create a Mercurial hook that pushes to a backup remote repository when I push to a local repository. I thought I could hook the 'outgoing' hook, but this creates a infinite loop that isn't pretty. So is there like a post-push hook, or would it be best to have the repository I am pushing to have an 'incoming' hook to push...
I'm planning on creating a C# Windows Forms app as an extension for a third-party Win32 application but I'm stumped as to how to do this right now. The farthest I've gotten is knowing it involves Win32 Hooking and that there's this open source project called EasyHook that's supposed to allow me to do this.
I'd like to know how I can ge...
I want to have a Mercurial hook that will run before committing a transaction that will abort the transaction if a binary file being committed is greater than 1 megabyte. I found the following code which works fine except for one problem. If my changeset involves removing a file, this hook will throw an exception.
The hook (I'm using ...
Hi,
I have a post-commit hook in svn that runs fine from the command line when I run
env - ./foo.sh /path/to/svn/repos/ 12345
but when it the script is called from svn it does not appear to work.
What I am basically doing is checking the committed files and if a particular file is modified, i do an svn export of it to a network sha...
I changed page title in hook _ menu section of a Drupal module, re-installed, and cleared caches, but this did not change title on web page.
Finally I renamed the whole module, files, and relevant function names in files and then re-installed. This did the trick.
I suspect that there is a duplicate entry in mysql table that holds tit...
Trying to hook into the function comment_text() supplied by Wordpress API to wrap the output of every comment into a <div>...</div> container I am running into the following problem:
Without my added filter the output of comment_text() looks like this:
<p>Hello User!</p>
<p>Thank you for your comment.</p>
<p>Stefan</p>
Thats fine but...
I want to do the following:
I have a function that is not mine (it really doesn't matter here but just to say that I don't have control over it) and that I want to patch so that it calls a function of mine, preserving the arguments list (jumping is not an option).
What I'm trying to do is, to put the stack pointer as it was before that...
I made a Wordpress Plugin which includes a jQuery file. Now I've got the problem, that people who use my plugin may have a different jQuery Version on their Wordpress Blogs, so what shall I do to manage that? My plugin often doesn't work with 'other' jQuery Versions.
Maybe there is anyone who is addicted with the wordpress api. Maybe th...
I have a post-update hook on my server, such that when I
git push
it does a pull on the live web directory. However, while the push always succeeds, the post-update hook sometimes fails.
The hook is pretty simple:
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this ...
How can I add same callback to 2 different menus?
function my_callback_menu(){
$items = array();
$items['my_callback'] = array(
'title' => t('My title'),
'menu_name' => 'menu-my-menu',
'page callback' => 'my_callback',
'access arguments' => array('access content'), ...
Hello. Can anyone tell me how to hook/overlay a DirectX game in C#?
I've tried getting a fullscreen C# window to overlap a game, however it wont.
After researching a little, I found out that I need to hook the game and then display the C# window.
Can anyone explain how I would do this?
Would I be able to display a C# form over a Direct...
I have a program (NWShader) which hooks into a second program's OpenGL calls (NWN) to do post-processing effects and whatnot.
NWShader was originally built for Windows, generally modern versions (win32), and uses both DLL exports (to get Windows to load it and grab some OpenGL functions) and Detours (to hook into other functions). I'm ...
I would like to show guidelines to commiter independently of the subversion client used.
Do you know how to do that?
...
I've read in the drupal documentation that hook_user should be invoked for the login operation. To test this I've added a call to drupal_set_message at the top of my modules hook implementation and the only message I'm receiving is a call with 'load' as the $op.
I've confirmed that drupal_set_message can be called multiple times and it ...
This week I have figured out how to modify form elements in the location module
using form_alter and the custom element hook_elements()
see: see http://stackoverflow.com/questions/2637052/need-some-tips-on-drupal-form-value
I was able to to hide elements using unset eg: unset($element['locpick']['user_latitude']);
Also added css with ...
I have been using hook_alter to modify forms in a custom PHP module. I started to take the same approach modifying the result page of "node add" form. However this page is not a form so I don't have a form ID to hook on to. Actually it contains a login form, but that does not contain the elements that I am looking for.
Next I cloned th...
Anyone can explain what these hooks do? Especially WH_MIN and WH_MAX.
http://msdn.microsoft.com/en-us/library/ms644959(VS.85).aspx
WH_MIN = -1
WH_MSGFILTER = -1
WH_JOURNALRECORD = 0
WH_JOURNALPLAYBACK = 1
WH_KEYBOARD = 2
WH_GETMESSAGE = 3
WH_CALLWNDPROC = 4
WH_CBT = 5
WH_SYSMSGFILTER = 6
WH_MOUSE = 7
WH_HARDWARE = ...
I am trying to
1) implement the hook menu and variable_set in the block hook and to solicit and store configuration values from user,
2) then use retrieve configuration values and
3) pass them out into a template using theme hook when page is shown.
However I need a bit of a push on step two and three!
// ===================== file:...
I want my scripts and css files to be added in the footer and header respectively, ideally they should be minimized and compressed too, I think these functions can help but iI am not aware of using them. can anybody help me with these ?
wp_print_scripts,
wp_enque_scripts,
wp_head,
wp_register_script
...