Pages

Showing posts with label the. Show all posts
Showing posts with label the. Show all posts

Monday, April 21, 2014

Best Wishes over the Holiday Season

I hope everyone had a great Christmas, Hanukkah or whatever holiday you celebrate. It is a great time to get together with your family and other people who are important to you and to remember the reason why we are all here.

I had a wonderful time getting together with my family in Boston for the holidays. The only minor disappointment was we spent a few days in Vermont and there was literally no snow - so no skiing unfortunately.

I am pretty excited. I got a MAC laptop for Christmas and feel like I am back in kindergarten learning how to scroll and select data. I also got the Mac version of Office so that should be interesting. I will let you know how this goes.
The Mac laptop has some great features that I am looking forward to playing with. Luckily I have my daughter as the resident Mac guru. It seems that with this I am reverting back to shortcut keys to do everything. The command key is constantly in use. When I tweeted about my laptop and commented about learning how to right-click, I had a couple of people tweet me back to see how to do it. 
To right-click on a Mac laptop, put two fingers - your index and forefinger -slightly apart on the track pad area and then press down with your forefinger.

Year End is almost upon us. Yikes! Enjoy the rest of the week.
Read more »

Thursday, April 17, 2014

The remote server returned an error 407 Proxy Authentication Required

One of our clients reported that they could not access a certain web page from another domain as they were getting the Proxy Authentication error even though they had entered the domain name, user name and password correctly for the proxy setting. The code handling proxy is shown below:

Code Snippet
  1. Imports System.Configuration
  2. Imports System.IO
  3. Imports System.Net
  4. Imports System.Text
  5.  
  6. Public Class Form1
  7.  
  8.     Dim InstallerSite As String
  9.     Dim UploadFile As String
  10.  
  11.     Dim MyProxy As New WebProxy
  12.     Dim ProxyPresent As Boolean
  13.  
  14.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  15.  
  16.         InitializeGlobals()
  17.         txtResult.Text = GetFile()
  18.  
  19.     End Sub
  20.  
  21.     Private Sub InitializeGlobals()
  22.  
  23.         InstallerSite = CType(ConfigurationManager.AppSettings("InstallerSite"), String)
  24.         UploadFile = CType(ConfigurationManager.AppSettings("UploadFile"), String)
  25.  
  26.         ' Case for when a Proxy is present.
  27.         ProxyPresent = CType(ConfigurationManager.AppSettings("ProxyPresent"), Boolean)
  28.         Dim ProxyUrl As String = CType(ConfigurationManager.AppSettings("ProxyUrl"), String)
  29.         Dim ProxyDomain As String = CType(ConfigurationManager.AppSettings("ProxyDomain"), String)
  30.         Dim ProxyUserName As String = CType(ConfigurationManager.AppSettings("ProxyUserName"), String)
  31.         Dim ProxyPassword As String = CType(ConfigurationManager.AppSettings("ProxyPassword"), String)
  32.         Dim credentials As New System.Net.NetworkCredential(ProxyUserName, ProxyPassword, ProxyDomain)
  33.         MyProxy.Address = New Uri(ProxyUrl)
  34.         MyProxy.Credentials = credentials
  35.  
  36.     End Sub
  37.  
  38.  
  39.     Private Function GetFile() As String
  40.  
  41.         Dim result As String = String.Empty
  42.  
  43.         Try
  44.  
  45.             Dim request As HttpWebRequest
  46.             Dim response As HttpWebResponse
  47.  
  48.             request = WebRequest.Create(InstallerSite & UploadFile)
  49.  
  50.             If ProxyPresent = True Then
  51.                 request.Proxy = MyProxy
  52.             End If
  53.  
  54.             response = request.GetResponse()
  55.             Dim responseStream As Stream = response.GetResponseStream()
  56.  
  57.             Dim buffer(10) As Byte
  58.             Dim bytesToRead As Integer = CInt(buffer.Length)
  59.             Dim bytesRead As Integer = 0
  60.             While bytesToRead > 0
  61.                 Dim i As Integer = responseStream.Read(buffer, bytesRead, bytesToRead)
  62.                 If i = 0 Then
  63.                     Exit While
  64.                 End If
  65.                 bytesRead += i
  66.                 bytesToRead -= i
  67.             End While
  68.  
  69.             result = Encoding.ASCII.GetChars(buffer)
  70.  
  71.         Catch ex As Exception
  72.  
  73.             result = ex.Message
  74.  
  75.         End Try
  76.  
  77.         Return result
  78.  
  79.     End Function
  80.     
  81. End Class


It turned out they needed to enter the IP address for their proxy domain not just the domain name.
Read more »

Sort Columns of the Table using Word VBA

Sort Word Table columns using Word VBA

The following function uses Selection.Sort, you can try alternative methods if selection is not possible / permissible

Function SortTable()

ActiveDocument.Tables(1).Select()

Selection.Sort(ExcludeHeader:=True, FieldNumber:="Column 1", SortFieldType _

:=wdSortFieldAlphanumeric, SortOrder:=wdSortOrderAscending, FieldNumber2 _

:="", SortFieldType2:=wdSortFieldAlphanumeric, SortOrder2:= _

wdSortOrderAscending, FieldNumber3:="", SortFieldType3:= _

wdSortFieldAlphanumeric, SortOrder3:=wdSortOrderAscending, Separator:= _

wdSortSeparateByTabs, SortColumn:=False, CaseSensitive:=False, LanguageID _

:=wdEnglishUS)

Selection.MoveRight(Unit:=wdCharacter, Count:=1)

End Function

The above uses as three column table. Please customize it for your use

See also:

How to use .Net Array.Sort Function in VBA

Case in-sensitive comparison

Read more »

Friday, April 11, 2014

How to Measure the Rank of a Website





The ranking of a website depends on several factors. It depends on Google Page Rank (known as PR), Alexa Traffic Rank, Complete Rank and so many. And to check the ranking status, there are thousands of extension available for internet browsers.


My personal choice for this purpose is Web Rank Toolbar. Today I am gonna show you how to install this toolbar on Firefox and Google Chrome.

Follow the steps below:

  1. First, make sure you are using Google Chrome or Firefox.
  2. If you are a chrome user then click here. And Firefox users can use this link.
  3. Chrome users will get several toolbars with Web Rank SEO. You can choose either the first one or any other toolbar as you like and then hit on Add to Chrome. And Firefox users should click on Add to Firefox button. 
  4. Then click on install. Firefox should be restarted. But chrome doesnt need to be restarted. 
  5. Now you are almost done. Chrome users must see this like an icon at the upper right corner. And Firefox users will get it like a horizontal bar. 


Read more »

Monday, March 31, 2014

Yeti USB Mic Is The Worlds First THX Certified Microphone

Yeti USB Mic Is
At $150, Blue Microphones new THX certified Yeti might not be the best investment for something as simple as Skype, but if you are doing podcasts, music recordings, or old-timey variety shows, it might be worth the extra cash.

Apparently, the Yeti is the first microphone to earn a THX certified distinction—something Blue Microphone views as a validation of its "incredibly low distortion, high fidelity, and balanced frequency response." Features include: a triple capsule array that allows you to record in stereo, cardioid, omnidirectional, and bidirectional, an analog to digital converter and a built-in headphone amp for zero-latency monitoring. And the whole thing is ready to plug in to a USB port and use on your PC or Mac right out of the box.

Blue Microphones Announces Worlds First THX Certified Microphone, the Yeti USB Condenser Mic

Featuring condenser capsules in a triple array, Yeti is the latest, most advanced addition to Blues line of premium USB microphones

(Westlake Village, California –November 10, 2009) – Blue Microphones (www.bluemic.com), a leading innovator in microphone technology and design, announces Yeti, the first THX® Certified microphone. The latest addition to Blues new consumer line, the Yeti is the ultimate USB microphone for professional recording. The Yeti features:
· The first USB mic to offer Blues premium condenser capsules in a proprietary triple capsule array for the highest quality, most versatile audio recording capability
· After rigorous lab testing, THX certification affirms the ultimate in recording and playback fidelity thanks to superior design and quality
· Four patterns (Omni, Cardioid, Stereo, Bidirectional) for incredible versatility and superior results in any situation
· Studio quality performance and features, with zero latency, amplified headphone monitoring, microphone mute, and hardware-based gain adjustment

Yeti is the first microphone to offer the quality and range of versatility to produce the best quality recordings in a wide range of situations, including podcasts, vocals, live or event recording, interviews, broadcasts, instruments, bands and more.

"Blue Microphones recognizes THX as a benchmark within the industry for professional audio production and playback. We, are honored to be recognized as their first partner for audio input," says John Maier, CEO of Blue Microphones. "Blue strives to provide the highest quality sound for both professionals and consumers alike and we are proud to provide such recognized quality with the new Yeti, the worlds first THX Certified microphone."

Building upon the technology foundation established by the award-winning Snowball USB microphone, Yeti adds four distinct pattern modes, a zero-latency headphone output with volume control for direct monitoring, adjustable microphone gain control and a mute button. The Yetis angle can be adjusted on its custom-designed desk stand. Following suit with the rest of Blues desktop products, the Yeti features driverless installation and works with both PC and Mac.

"The THX Certified Yeti from Blue Microphones provides aspiring artists a recording solution that combines quality, usability and convenience for a wide range of audio applications," explains Matthew Chrispen, director of certification at THX. "THX testing and certification ensures the fidelity of the recording always remains true to its source, allowing artists to accurately capture voice-overs, interviews and other sound elements with confidence."

The Yeti, MSRP $149.99, will be available beginning December 2009, at Apple, CompUSA, Frys Electronics, Guitar Center, other fine pro-audio and consumer electronics retailers and online at Amazon.com. For complete details, visitwww.bluemic.com.
Read more »

Sunday, March 30, 2014

Camera Size Compare the size of digital cameras

Thinking of buying a digital camera for your next vacation? Here is a online service that will help you easily view the different sizes of cameras. While many tools exist to compare technical characteristics, Camera Size lets you know the size of each camera.
camera size comparison

Camera Size is a user-friendly web application that displays the exact dimensions of digital cameras to better compare. Operation is easy, just choose the two cameras that you want to compare from the drop-down list, and you’ll get the photo and the size of each camera.
sidebar camera size

The menu on the left sidebar allows you to choose the orientation of the camera (on supported models). You can rotate the camera left, right, top, front or back.

At the right side you can see an image of a regular AA Battery, which gives you an option to visualize the size of the camera. If that’s not enough, you can initialize a helper image of an average human male hand by clicking on the “Show hand”. You can drag this image around and position it under each camera and better visualize the size of the camera.

camera size comparison tool.

Read more »