Although JAVA_HOME is pointing to the JDK, the problem with the ant task javac is that the javac command in tools.jar in %JDK%/lib is not found. Either copy tools.jar or do some registry change.
http://forums.sun.com/thread.jspa?threadID=556816
CPP Compiletask in Ant involves following settings (XML Code):
Visual Studio Environment Variables
Problems involving environment variables with the command line Visual Studio Compiler cl.exe can be found here. These must be set:
vs2005 c:\program files\microsoft visual studio 8\
psdk c:\program files\microsoft platform sdk\
First, go to vs2005 install path c:\program files\microsoft visual studio 8\vc, run vcvarsall.bat to set environment variable; then c:\program files\microsoft platform sdk\, run setenv command: eg: setenv /SRV32 /DEBUG. I use it to make the program work properly.
Using C:\Programme\Microsoft Visual Studio 8\VC\vcvarsall.bat adds the following to the PATH Var
c:\Programme\Microsoft Visual Studio 8\Common7\IDE
c:\Programme\Microsoft Visual Studio 8\VC\BIN
c:\Programme\Microsoft Visual Studio 8\Common7\Tools
c:\Programme\Microsoft Visual Studio 8\Common7\Tools\bin
c:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\bin
c:\Programme\Microsoft Visual Studio 8\SDK\v2.0\bin
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
c:\Programme\Microsoft Visual Studio 8\VC\VCPackages
1 Comment »
Change User Settings (Benutzerkonfiguration)
Type gpedit.msc in commandline
Change default Save Places of all Apps
http://www.raymond.cc/blog/archives/2008/02/29/how-to-change-windows-default-save-as-or-open-location/de/
Windows Useful commands
rerusively rename folder and files (also works with files like *.c –> *.cpp)
for /r %x in (metadata) do ren “%x” m
Recursively delete folder
1) FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S *.svn*’) DO RMDIR /S /Q “%%G”
2) rmdir c:\test\ “garbage” -s – q
3.) for /f “usebackq” %d in (`”dir *.svn /ad/b/s”`) do rd /s/q “%d”
No Comments »
Sometimes we find ourselves in the situation of requesting structures data from others. May this be a survey or a simple form filled out. But what are quick ways to accomplish this tasks. Lets have look.
Forms
Adobe Acrobat
Acrobat is a fine little tool to create documents with embedded forms, java script, server side support , web services and so on. But when trying to create a form is it necessary the enduser also has a professional version of Acrobat to fill out the form. Simple the Reader is not enough, since it doesn’t allow to manipualte and save the entered data digitally.
Word
Word offers a Form Menubar to create non editable word files. Since Office 2007 this functionality is extended and presented in a very convenient way. Bad luck, that only legacy forms that are hardly documented by microsoft will ensure that everyone can open your form word file.
Online-Survey
Best way to make a survey is an online system based on scripting language and database (e.g php/mysql) There are two active open source projects for creating surveys.
Lime Survey
http://www.limesurvey.org/
A very feature-rich tool. Stable Version. Not so good look but good feel! Conditional questioning supported. Very good question editing possiblities. Print version support – Had no close look yet, but seems to be promising.
OpenSurveyPilot
http://osp.homedns.org/
Also nice tool, but development has stopped a year ago. Conditional questioning supported but questions are hard to create, overall 3 submenus to click. And a lot more work for creating the survey including security settings, design settings, etc. As for privacy temporary TAN lists for user groups can be created. Export to Excel files is possible.
No Comments »
SNMP is the Simple Network Management Protocol. The SNMP protocol is used by network management systems to communicate with network elements. For this to work, the network element must be equipped with an SNMP agent. Most professional-grade network hardware comes with an SNMP agent built in. These agents must be enabled and configured to communicate with the network management system. Operating systems, such as Unix and Windows, can also be configured with SNMP agents.
SNMP uses a device description database file called Managment Information Database (MIB) with unique OIDs for every vendors product and even device method. MIB is a formal description of a set of network objects that can be managed using the Simple Network Management Protocol (SNMP). The format of the MIB is defined as part of the SNMP. (All other MIBs are extensions of this basic management information base.) MIB-I refers to the initial MIB definition; MIB-II refers to the current definition.
The unique OIDs are administrated by IANA http://www.iana.org/assignments/enterprise-numbers.
I used SNMP to access a Dell 5100MP projector. I found following links very helpfull
Dell 5100MP Mib Definitions.
A C++ Wrapper for the WIN SNMP interface
http://www.codeproject.com/library/WinSNMPWrapper.asp
SNMP Link A ressource for various SNMP software:
- device simulators like Adventnet Simulation Toolkit (Shareware) and
free MIB browsers like IReasoning
There is also a Java Library available
http://www.snmp4j.org/
No Comments »