The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

Batch file to run the most recent vsvars32.bat

Posted by jpluimers on 2016/06/28

The below batch file finds and runs the latest vsvars32.bat on a system.

vsvars32.bat initializes the path and other environment variables to run Visual Studio and command-line tools (like csc.exe, xsd.exe, editbin.exe).

The batch file employs a few tricks from:

  :: Run the most recent vsvars32.bat

  :: test these environment variables that have 110 or 120 in them (future enhancements: support more Visual Studio versions):
  :: Visual Studio .NET 2002: VS70COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio .NET\Common7\Tools\
  :: Visual Studio .NET 2003: VS71COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio .NET 2003\Common7\Tools\
  :: Visual Studio 2005: VS80COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\
  :: Visual Studio 2008: VS90COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
  :: Visual Studio 2010: VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
  :: Visual Studio 2012: VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
  :: Visual Studio 2013: VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
  :: VS130COMNTOOLS was skipped: http://www.neowin.net/forum/topic/1215607-visual-studio-13-to-be-skipped-vnext-to-be-v14/
  :: Visual Studio 2015: VS130COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
  :: They contain `vsvars32.bat` which will update the `PATH` so it includes where `xsd.exe`, `csc.exe`, `editbin.exe` and others reside
  :: Different examples: https://github.com/noop-dev/c-cgdk/blob/master/compile-vscpp.bat
  :: and https://code.google.com/p/xvid4psp/source/browse/trunk/bin/4Gb+patcher.bat
  :: or give it a go for any version: http://chess.eecs.berkeley.edu/ptexternal/src/ptII/ptolemy/actor/lib/fmi/fmus/template/sources/build_fmu.bat
  setlocal enabledelayedexpansion
  :: delayed expansion allows for the exclamation marks
  :: see http://ss64.com/nt/delayedexpansion.html
  :: see http://stackoverflow.com/questions/22857407/windows-batch-how-to-assign-variable-with-dynamic-name
  for %%v in (70 71 80 90 100 110 120 130) do if not [!VS%%vCOMNTOOLS!]==[] set VSCOMNTOOLS=!VS%%vCOMNTOOLS!
  :: http://stackoverflow.com/questions/28682268/assign-variables-past-endlocal-in-a-loop
  endlocal & call :do call "%VSCOMNTOOLS%vsvars32.bat"
  goto :eof

:do
  echo %*
  %*
  goto :eof

–jeroen

via: Finding the path of xsd.exe from your Visual Studio Build Events « The Wiert Corner – irregular stream of stuff.

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, Development, Software Development, Visual Studio 11, Visual Studio 2002, Visual Studio 2003, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio 2012, Visual Studio 2013, Visual Studio 2014, Visual Studio 2015, Visual Studio and tools | Leave a Comment »

Cleaning out gmail large attachments

Posted by jpluimers on 2016/06/27

I figured that both gmail and photos take up the largest parts of my Google storage, so I did some cleaning.

You can figure out which part of your Google storage is used by email using https://www.google.com/settings/storage

Still people send huge BMP screenshots to me (probably Microsoft will never learn that pasting clipboard screenshots can be done just as well using PNG format?), so I started searching for mails with large attachments that GMail introduced a while ago:

older_than:1y size:10m

This will include mails of 10 megabyte and larger (so size is a minimum size, not an exact size) that are older than one year.

Then I deleted irrelevant mails notifying the people they should have converted their BMP files to PNG as they take up lots of space on their end as well.

Then storage didn’t decrease, as the messages were still in the trash:

in:trash

Luckily from there, you can empty the trash from there.

–jeroen

Posted in GMail, Google, Power User | Leave a Comment »

optional Windows Update “Synaptics driver update for Synaptics Composite USB HID Device” breaks some UltraNav USB keyboards

Posted by jpluimers on 2016/06/27

About a year ago, I ran into the optional Windows Update “Synaptics driver update for Synaptics Composite USB HID Device”.

It basically breaks the UltraNav/TrackPoint functionality of some USB keyboards like my 31P9304 USB TrackPoint keyboard (also known as SK-8835)

I bumped into this on another system as well, so I was glad I found this on an asian site: 联想ThinkPad|ThinkCentre|ThinkStation服务与驱动下载常见问题.

Below is the English translation of which the most important is the workaround: Install the Windows Vista driver from the Lenovo support page.
http://www.lenovo.com/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-66917

Read the rest of this entry »

Posted in Keyboards and Keyboard Shortcuts, Power User, ThinkPad, UltraNav keyboards | Leave a Comment »

Local Guides Hidden Hotspots Amsterdam

Posted by jpluimers on 2016/06/24

Add your Hidden Summer Hotspot in Amsterdam and share with other Local Guides. Where to find that small theatre, that cosy restaurant or that hidden museum in remote streets? Created live during the Amsterdam Hotspot Party by Local Guides in the city.

Source: Local Guides Hidden Hotspots Amsterdam

Short: http://g.co/hiddenAmsterdam

–jeroen

Posted in Google, GoogleMaps, LifeHacker, Local Guides, Power User | Leave a Comment »

Embarcadero closing down their Spanish office

Posted by jpluimers on 2016/06/24

Embarcadero closes down their spanish R&D office putting some 80 people on the street and diminishing the total Delphi R&D team.

Former Chief Scientist Allen Bauer commented:

The Spain office had taken on most of the IDE, Delphi RTL, GetIT, Installer, some DB, Bluetooth components, IoT, QA, and other miscellaneous tasks. They were by-far the largest single group working on RAD Studio. They were all a wonderful, dedicated, excited group of folks. They were eager to learn and truly enjoyed their jobs. I am deeply saddened by this development.

Source: [WayBackVery bad news!

Related: [WayBackEmbarcadero Discussion Forums: Bad news for Delphi? …

–jeroen

Posted in Delphi, Delphi 10.1 Berlin (BigBen), Development, Software Development | 31 Comments »

Hypercube Lego Server with Supermicro motherboard inside… via TinkerTry IT @ Home

Posted by jpluimers on 2016/06/24

It’s cool. Bring enough money (:

How cool is that Hypercube Lego Server, featuring the powerful Xeon D-1540 on tiny and familiar Supermicro X10SDV-F motherboard | TinkerTry IT @ Home

–jeroen

Posted in Geeky | Leave a Comment »

Dell Dimension 9200 Updated to 8GB. – General Hardware – Desktop – Dell Community

Posted by jpluimers on 2016/06/24

From old stock, I still had a few of these machines and gave them away maxed out at 8 GB with a Windows x64 installation and SSD.

You need 4 of these: 2GB DDR2 PC2-5300 @ 667Mhz non-ECC non-registered memory DIMM. Faster DIMMs work too. Registered DIMMs don’t work.

–jeroen

Posted in DELL-9200, Hardware, LifeHacker, Power User | Leave a Comment »

JavaScript is not Java – A humorous comparison of JavaScript and Java.

Posted by jpluimers on 2016/06/23

Yesterday I told:

Recently I did my very first JavaScript in HTML development. Since it was a one page experiment, I didn’t want to put it in an official repository of it’s own…

which reminded me of JavaScript is not Java – A humorous comparison of JavaScript and Java.

And still lots of uneducated people think they are the same, for instance the NBC Chicago publishes this at the start of the year:

Java Developer; What they do: Program websites using JavaScript.

Java Developer; What they do: Program websites using JavaScript.

They fixed it later but then the harm was already done (besides making a lot of fun of themselves and others making fun out of them too):

Java Developer; What they do: Write programs used by mobile devices, websites and mainframes.

Source: Report Reveals 10 Most In-Demand Jobs in Chicago for 2016 | NBC Chicago

–jeroen

Posted in Development, Java, Java Platform, JavaScript/ECMAScript, Scripting, Software Development | Leave a Comment »

Some notes on tfpt.exe from Microsoft Visual Studio Team Foundation Server (2010/2013/2015) Power Tools extension

Posted by jpluimers on 2016/06/23

Some links.

First tfpt:

Old name: Microsoft Team Foundation Server 2010 Power Tools.

Then witAdmin:

With API:

 

–jeroen

via: Microsoft Visual Studio Team Foundation Server 2013 Power Tools extension.

Links to past posts about tfpt:

Posted in .NET, Development, Power User, PowerToys, Software Development, Source Code Management, TFS (Team Foundation System), Visual Studio and tools, Windows | Leave a Comment »

Woof – simply exchange files – one-time sharing of a file over http

Posted by jpluimers on 2016/06/22

Woof is a small simple stupid webserver that can easily be invoked on a single file. Your partner can access the file with tools he trusts (e.g. wget). No need to enter passwords on keyboards where you don’t know about keyboard sniffers, no need to start a huge lot of infrastructure, just do a

$ woof filenameand

tell the recipient the URL woof spits out. When he got that file, woof will quit and everything is done.And when someone wants to send you a file, woof has a switch to offer itself, so he can get woof and offer a file to you. …

Woof needs Python on a unix’ish operating system. Some people have used it successfully on Windows within the cygwin environment.

Source: Woof – simply exchange files

Works from homebrew on OS X.

via: Web Offer One File – Thomas Mueller (dummzeuch) – Google+

Source: Web Offer One File

–jeroen

Posted in *nix, *nix-tools, Apple, BSD, Home brew / homebrew, Linux, Mac, Mac OS X / OS X / MacOS, Power User | Leave a Comment »