Saturday, November 14, 2009

HOWTO split domain\user into two variables (in batch file)

I got input in a batch file in the following format “domain.com\Username”

And I wanted to have two variables:

  • Domain name
  • User name

So i used the variable edit/replace and created the following script which i think will save you 30 min:

@echo off
SET _test=davidovitz.org\infraadmin
set _Username=%_test:*\=%
call set _Domain=%%_test:\%_Username%=%%

echo [%_test%]
echo [%_Username%]
echo [%_Domain%]

Tuesday, November 10, 2009

bad installation of .NET 3.5.1 (SP1) on Windows 2008 R2

AGAIN we are facing issues with .NET 3.5 Sp1 (actually 3.5.1 feature) and now in windows 2008 R2.

I have used the .NET Framework Setup Verification Tool and saw that 3.5 SP1 is broken! how can it be, this should be a simple feature that was installed (not manual EXE).

The error that i saw in log is ****ERROR**** File C:\Windows\Microsoft.NET\Framework\v3.5\Windows Presentation Foundation\NPWPF.dll is not installed on the system

I am starting to get tired of those issues, Any one got this issue? / resolution?

Sunday, October 18, 2009

Windows 2008 R2 virtualized

In my company we are using VMWare ESX 3.5. we started certifying our product on windows 2008 R2 and found numerous problem in our VMWare infrastructure (not in our product):
  • Freeze after restart
  • Slow response!
  • black screen of death :)
The official response that we got from VMWare is R2 is NOT supported! damn.
I decided to install it on my machine using VitualBox (open source VM solution from Sun) and I can tell you that it is working great! again the open source is working better and faster --> we need to stop fearing from open source
By the way i am using MAC OS leopard snow and also windows 7 (both running great)

Monday, October 05, 2009

Silverlight & Flash for IPHONE

Just saw that Adobe released flash for IPHONE here and i spoke with a friend and understood that Microsoft is also going to deliver Silverlight for IPHONE,... anyone knows anything about it?

Sunday, September 27, 2009

Moving to MAC OS

:), I decided to start developing for MAC / IPhone.

I am on my way to buy MACBook Pro 13’

I will start developing apps with my friend Tsafrir (Java developer)

Wednesday, September 23, 2009

Reference for CMD command

Every now and then I have a need to write some batch scripts(please don’t lecture me to use PS yet <smile />).

I always find my self starting to search the web for various syntaxes: FOR, IF, etc.

Well now I found the ultimate reference - An A-Z Index of the Windows XP command line

Inside you can also see references to Microsoft links:

Sunday, September 06, 2009

Microsoft Projects, Leveling and the question of how to make two task to be as close as possible

Hi,

During my work with project i come to a situation that i don't understand how to give hint for project that two tasks should be as close as possible (e.g. Read & prepare for feature and its testing – so that tester wont forget everything)

If we use priority but have constrains on the task we can come to situation that the first task is schedule for now and the later is scheduled as per the constrain (E.g. don't start before 2 month from now (the test)) –> we have gap between preparation and testing. you can see sample MPP for it

I didn't find any solution other than playing with the constrain on the first task (which means manual work)

I already open StackOverflow question , so feel free to answer their :)

Thanks (this is not a simple question :))