Tuesday, May 10, 2011

Changing the next Defect/Feature Id for Axosoft OnTime

We just switched from Axosoft OnTime 2007 to 2010, and during so we wanted to totally redo our workflow and field structure for software defects and features, but we didn't want existing defect and feature numbers to collide with the new system, so with sqlcmd, you can execute a command to 'up the new numbers'. So for example in OnTime 2007, we had the latest defect number 1397. In OnTime 2010, since we have a new structure, it starts out at 1.

  1. Open sqlcmd on the database server for OnTime.
  2. Switch to your OnTime database with a command such as 'use OnTime;'
  3. Execute the command: DBCC CHECKIDENT (yourtable, reseed, lastnumber) (Where yourtable is the name of the table in OnTime such as 'Defects', and last number from the old OnTime system).
  4. That's it!

Thursday, December 10, 2009

Visual Studio 2008 Skipping lines while debugging

If you have a problem with Visual Studio 2008 SP1 skipping lines in a for loop while you are 'stepping over' there is a hotfix for Visual Studio (KB957912). Apparently Visual Studio can treat a 'step over' as a 'run' while inside of a for loop. http://code.msdn.microsoft.com/KB957912/Release/ProjectReleases.aspx?ReleaseId=1796

Mixing ActiveX GUI C++ and .NET

I came across a problem the other day. I have:
  • An ActiveX GUI control that requires a single-threaded apartment model in C++ (MFC)
  • A C++ static library that is a bridge between C++ and a .NET class library
  • A .NET class library
The GUI control cannot be instantiated in C++. Why? The .NET thread apartment model is multi-threaded by default. How do I set the apartment model of the C++ program to be STA, when there is no .NET code directly in the C++ program? Add a linker option to the project: /CLRTHREADATTRIBUTE:STA

Wednesday, July 22, 2009

Visual Studio 2008 Hangs after debugging

I've found it really annoying that VS 2008 (I'm currently using SP1) on a closed network hangs for about 10 - 20 seconds after exiting the debugger. The solution to the hang is to edit the C:\windows\system32\drivers\etc\hosts file and add:

127.0.0.1 crl.microsoft.com
127.0.0.1 6to4.ipv6.microsoft.com

as I've found in other postings on the net.

Wednesday, July 1, 2009

MMS on 2g iPhone w/ T-Mobile

Getting MMS to work on the iPhone 2G OS 3.0 with T-mobile is not that difficult at all. Do not install ActivateMMS2G on the 3G iPhone.. it will most likely brick it.

  • Install the package ActivateMMS2G with Cydia.
  • Go to Settings -> General -> Celular Data Network
  • You need to enter an APN for normal web browsing (wap.voicestream.com for $5.99 data plan customers and internet2.voicestream.com for other data plans). If you do not enter anything here the MMS APN will not be set and MMS will not work.
  • MMS APN: wap.voicestream.com
  • MMS MMSC: http://mms.msg.eng.t-mobile.com/mms/wapenc
  • MMS Proxy: 216.155.165.050
  • Reboot. Open the Messages app. It may want you to enter your phone number under the Settings and then thats it!
Update !!!!:
The settings you actually may need are below depending on your data plan:

APN: epc.tmobile.com
USERNAME: (leave blank)
PASSWORD: (leave blank)
MMSC: http://mms.msg.eng.t-mobile.com/mms/wapenc
MMS PROXY: 216.155.165.50:8080
MMS MAX MESSAGE SIZE: (leave blank)
MMS UA PROF URL: (leave blank)

Monday, June 8, 2009

PublicKey attribute in .NET Framework 3.5 SP1 Does not match that of file...

When building an installer in Visual Studio 2008 SP1 and including the bootstrapper installer for .NET Framework 3.5 SP1, you may get 2 warnings when building stating:

'PublicKey' attribute in '.NET Framework 3.5 SP1' does not match that of file 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35SP1\dotNetFX30\XPSEPSC-x86-en-US.exe'

and

'PublicKey' attribute in '.NET Framework 3.5 SP1' does not match that of file 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35SP1\dotNetFX30\XPSEPSC-amd64-en-US.exe'

For some reason in the product.xml file for DotNetFX35SP1, the XPSEPSC files have a different PublicKey than all of the other files in the dotNetFX30 packages for the DotNetFX35SP1 bootstrapper. To fix the issue replace the XPSEPSC PublicKeys with one of the other keys (they are all the same).

Tuesday, June 2, 2009

Qwest High Speed users get free ATT WiFi

Qwest High-Speed Internet subscribers are now enabled to receive free access to the Nation's Largest Wi-Fi Hot Spot network, powered by AT&T Wi-Fi.

Qwest Wi-Fi, powered by AT&T Wi-Fi, is a complimentary service available to Qwest High-Speed Internet subscribers -- at thousands of coffee shops, bookstores and restaurants nationwide.