windows

.NET Windows Service (TCPIP Server) not allowing connections from remote computers

Hi I created a .NET Windows Service and embed in it a TCP Server. The TCP Server standalone does allow both local and remote connections. The Windows Service with the TCP Server embedded, allows local connections The Windows Service with the TCP Server embedded does not allows remote connections. I tried to disable the firewall, a...

Completely stumped by "is not recognized by the 'identify' command" error in rails/paperclip on windows dev box.

Nothing I have tried seems to have any impact at all on this error. The code is working on both a Mac Pro dev maching as well as our Ubunto 9.10 server. Dev work is using Mongrel not Passenger. I am fully and completely stumped. Willing to try anything. I followed this: http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-he...

How can I make a macro recorder/player with pyHook in Python?

I want to make a little script that, when pressed some specific key, for example F2, the macro starts to record the mouse actions, only the location of the click, and then play it when pressed another specific key... Could someone give me a little example of what I have to do? ...

How to map a file offset in an EXE to its PE section

I've opened up a program I wrote with ImageHlp.dll to play around with it a little, and I noticed that there seem to be large gaps in the file. As I understand it, for each PE section, the section header gives its offset in the file as PhysicalAddress, and its size as SizeOfRawData, and thus everything from PhysicalAddress to PhysicalAd...

In VBScript, is there a way to tell if IE is busy loading something (e.g. a page or XHR)?

I am writing an HTML Application (HTA) that runs fullscreen and allows users to browse a list of selected websites. I notice that sometimes when you click on link to load an external website, there is no feedback to the user that the browser has accepted the request and has started trying to load the page. In Internet explorer, you get ...

Have a SVN checkout location connected to Codeplex and propagate updates to another develpment location connected to another SVN repository

I would like to checkout a read only SVN projects (e.g. from Codeplex) to a folder on my local disk, open the solution (let's say I am getting Dotnetnuke and open it's solution, add some projects to the solution and possibly changing some files, previously making them writable. I want to regularly update the changes coming from Codeplex ...

How to use wildcard in Windows command-line?

I some animations, they are like this: /OP/ /OP/OP1/ /OP/OP1/OP1.rmvb /OP/OP2/ /OP/OP2/OP2.rmvb /OP/OP3/ /OP/OP3/OP3.rmvb /OP/OP4/ /OP/OP4/OP4.rmvb ...and more I want to make it like /OP/ /OP/OP1.rmvb /OP/OP2.rmvb /OP/OP3.rmvb /OP/OP4.rmvb I tried move \OP\*\*.rmvb \OP It gave me error says ...

Windows missing OnPaint events

Imagine a complex window layout with several windows which are expensive to redraw. Now say a scrollevent needs to update several of these windows simultaneously. The way I do this is to update the scroll position and call Refresh on the windows causing them to receive OnPaint events. However, some of the windows never receive their OnPa...

Compiling Apache on Windows

I'd like to custom compile Apache for my Windows (Vista) machine. Do I need a special compiler for this, and how do I know if I already have a compiler (I have eclipse, but not sure if that's suitable). Also, all I can find is linux tutorials. How would one get this done on Windows? ...

Real-time HTTP stream writing console

Is there a program available that will allow me to interactively write HTTP stream data and send it to a server? Ideally I'm looking for a console app that will allow me to type or paste HTTP headers and body, send it to my server, and get the response headers and body back. Does such a program already exist? I'm running W7 64-bit with...

JBoss - java.rmi.ConnectIOException: error during JRMP connection establishment;

I'm new in windows environment and I wonder why my JBoss AS didn't start. I use following command to start my server : run.bat -b 0.0.0.0 -c default The Exception is: 2010-08-04 00:14:18,109 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.remoting:protocol=rmi,service=...

script to map networkdrive base on username

I have a .cmd script I want to map a network drive based on the username of the person running it. So something like this net use K: \\nas001\users\[My_User_Name] Except replace [My_User_name] with the name of the user running the script. Is this possible? Thanks ...

Setting directory permissions for JSP/Tomcat/Windows

Hi All, I have a web app consisting of some JSPs that were previously running on a Linux box. I need to get this running on a Windows XP SP3 machine running Tomcat 5.5.29. Most everything is working now but this one item: The app has a capability to write a configuration file to its Windows directory (i.e. C:\Program Files\Apache\Tomca...

c: program execution problem

Hi I wrote this code and compiled it, #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <time.h> // Data Structures typedef struct process{ char jobName; int arrivalTime; int execTime; struct process *next; } P; typedef struct result{ char Name; struct result *next; } result; // E...

wfp inside Windows service

I am calling a VC++ DLL from a windows service that was written in C#. The DLL handles all interaction with the WFP. When compiled as a console app, everything works fine (as long as I run as administrator). When compiled and ran as a service, the DLL fails on FwpmEngineOpen0(). This is the same symptom that I received when I didn't run ...

Showing a taskbar baloon tip popup message in a remote computer's desktop in the LAN

Hope you all have noticed the messages that appears on the desktop as a pop up near the windows taskbar; in situations when New Windows Updates are available, when a print job is sent to a printer etc. I want to send a message to another computer in my LAN, and it should appear as a popup near taskbar as I explained above. Is there any...

Why does my Ruby thread demo not use both cores?

Hopefully this screenshot will explain my question: a = Thread.new { loop {} } b = Thread.new { loop {} } a.join So how come both of my cores aren't maxed out? No matter how many threads I use, it's the same each time; the total CPU usage never seems to exceed 52%. >ruby -v ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32] ...

Hudson + Windows + GitHub + Git Plugin = really really slow fetch stage

I'm setting up my first Hudson + Git project (previously done many with Hudson + SVN). I expected the clone stage to be slow, as our repository is quite large, but subsequent builds where a fetch + merge is being used are just as long. The following options are enabled: Merge before build Clean after checkout I am not doing a "Wipe o...

Is there a command line utility that can listen for OS-wide keystrokes and tell me via stdout?

I'm developing an app and I'd like to trigger functions in my app via keystroke combos when it's not in focus. Because I'm developing my app in AIR, I do not have access to listen to global Keystrokes. However, I can receive STDOUT from an application. So, I'm looking for a utility that can give me this ability. I'm looking for both Win...

Diff tool which can ignore comments/exclude revisions?

I'm looking for an SVN diff tool which can ignore comments as changes, as well as exclude specific revision diffs for easier file comparison. For example, see below. Version 1. This is a sentence Here is an address What's going on here Version 2. 1 This is a sentence 2 Here is an address 3 What's going on here Version 3. //added ...