windows

php mkdir windows relative path

Hi, Want to create a directory on windows from a PHP script. My script is in www/Test directory of Apache and want to create a folder(fold1) inside www/downloads directory. Inside the script, using, $dirName = "../downloads/fold1"; mkdir("{$dirName}"); If we use the full path of dirName like C:\Apache\www\downloads\fold1, it works f...

Neo4j OutOfMemory problem

Hi! This is my source code of Main.java. It was grabbed from neo4j-apoc-1.0 examples. The goal of modification to store 1M records of 2 nodes and 1 relation: package javaapplication2; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.RelationshipType; import org.neo4j.graphdb.Transa...

Sleep Function Error In C

I have a file of data Dump, in with different timestamped data available, I get the time from timestamp and sleep my c thread for that time. But the problem is that The actual time difference is 10 second and the data which I receive at the receiving end is almost 14, 15 second delay. I am using window OS. Kindly guide me. Sorry for my...

Linking to a Large address aware DLL.

Suppose I have a DLL which is built with LARGEADDRESSAWARE linker flag set. Now I have an application dynamically linking to this DLL. Does this make my application LARGEADDRESSAWARE? If not then, does it make sense to have this flag set for any DLL? ...

Why the creators of Windows and Linux systems chose different ways to support Unicode?

As far as I know Linux chose backward compatibility of UTF-8, whereas Windows added completely new API functions for UTF-16 (ending with "W"). Could these decisions be different? Which one proved better? ...

How to give permission to a directory using command prompt in Windows?

I have to give permissions (Read, Write, Modify) to a user to a directory using command line in Windows. ...

System.Windows.Forms.DataVisualization.dll in vs2008

i need this System.Windows.Forms.DataVisualization.dll to run charting application in vs2008 windows application ...

Measuring CPU time per-thread on Windows

I'm developing a long-running multi-threaded Python application for Windows, and I want the process to know the CPU time that each of its threads has taken. I can get the overall times for the entire process with os.times() but I need to know the per-thread times. I know that there are external tools such as the Sysinternals Process Ex...

capture any error in VBScript?

I have a batch file that calls a VBScript (.vbs) program. After calling it, my batch script checks errorlevel to see if the .vbs program failed. I can signal failure with an exit code in the .vbs program with WScript.Quit(1). However, I can only do that explicitly. If some unexpected run-time error happens, the .vbs quits with an err...

What is this hacker trying to do?

If you do a search for: http://www.google.co.uk/search?q=0x57414954464F522044454C4159202730303A30303A313527&hl=en&start=30&sa=N you will see a lot of examples of an attempted hack along the lines of: 1) declare @q varchar(8000) select @q = 0x57414954464F522044454C4159202730303A30303A313527 exec(@q) -- What is exactly is ...

scrolling in windows

can somebody explain please how can I do scrolling in window (in Windows) using my keyboard, thanks in advance(hotkeys) ...

How should I get setup for PHP development?

I am new to PHP and would like to learn. I am limited to running on Windows and need advice on getting setup. Which IDE should I use? Are there any development servers similar to the one included in Visual Studio? What other general advice do you have? ...

Can one edit an InstallShield setup.exe's manifest file?

I'm running into the Windows Vista/7 Program Compatibility Assistant problem described here: http://stackoverflow.com/questions/1069135/this-program-might-not-have-installed-correctly-message-in-windows-7-rc The solution (backed-up by similar questions elsewhere, and MSDN), is apparently to add a 'compatibility' section to setup.exe's ...

Windows 7 Status Menu style Window

Hey all, I'm working on a project and I'm wondering how to get a type of window common in Windows's wireless controls, as shown in the screen shot below: http://cybernetnews.com/wp-content/uploads/2008/10/windows-7-wireless.jpg There's no close or maximize buttons, but the border is still present. My tools include Expression Blend 3 a...

Install over multiple UpgradeCodes with Visual Setup?

We have a product that has been installed with multiple UpgradeCodes in the past. There's a big red box in Microsoft's documentation saying not to do that, but the developer somehow overlooked it. I'd like to move this installer to a Setup Project. How can I install over all of the previous UpgradeCodes installed by the various WIX inst...

Windows CE vs Windows XP Embedded

I am developing a device that will continuously collect data from a PLC and store the data in a database as well as over the network. The device has to be very reliable. I decided to use a fanless PC, thin client or nettop is the appropriate nomenclature I guess, and now I am trying to decide what OS to install. As much as I would like t...

WPF: Validation with IDataErrorInfo and low reuseability with similar validation rules

Hello, I have a pupil entity implementing IDataErrorInfo: Now the exact same rules I want to validate against the Lastname, Gender, Street, City, Postal and Phone. Do I really have to repeat all that ? Using ValidationRule class would be better but then I can not handle disabling/enabling buttons via ICommand. ... #region Valida...

Windows Vista/Win7 Privilege Problem: SeDebugPrivilege & OpenProcess

Everything I've been able to find about escalating to the appropriate privileges for my needs has agreed with my current methods, but the problem exists. I'm hoping maybe someone has some Windows Vista/Win7 internals experience that might shine some light where there is only darkness. I'm sure this will get long, but please bare with me....

Linux / Ubuntu command similar to Windows cmd "start"?

From cmd on windows, you can type "start filename" and an action will be taken based on the programs associated with the type of the file. EXEs will launch, JPEGs will have an associated file viewer opened, etc.. Is there a way to do this on Linux / Ubuntu? ...

require 'rubygems' for linux but not in windows. why? and can I fix this?

I'm setting up a Linux development environment. After installing Ruby and RubyGems, I quickly found out that I need to require 'rubygems' in order to use gems, whereas I do not need to do this in Windows Vista. Is there anything I can do to fix this? Should I even be worrying about it? ...