LessThanDot Site Logo

LessThanDot

A decade of helpful technical content

This is an archive of the posts published to LessThanDot from 2008 to 2018, over a decade of useful content. While we're no longer adding new content, we still receive a lot of visitors and wanted to make sure the content didn't disappear forever.

Another hidden gem: CopyFromScreen

And I found something else on StackOverflow that I didn’t know existed. For this Stackoverflow user there seemed to be a problem when using CopyFromScreen. I used to use the GDI+ version for this. Which this might well just be a wrapper for. But for me this code works just fine. Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As EventArgs) Handles MyBase.Load Dim screenSize = SystemInformation.PrimaryMonitorSize Dim bitmap = New Bitmap(screenSize.

Read More...

Join and SkipWhile

Introduction From time to time I answer a few questions on Stackoverflow, mostly because you can learn a lot from someone else’s problems and it makes you think. [ ]1 Thinking is something you need to practice every day. By answering those question I found a use for two functions I rarely use. Namely the SkipWhile extension method and String.Join. SkipWhile The first question was “How to I count the number of zeros in string until i come across a non zero vb.

Read More...

Don't fall for the social engineering scam that makes you go to ammyy.com

I am pretty sure that none of our readers would fall for this social engineering scam that would make you share your computer with someone else, I am writing about it because I know of one person who had a call like this but she luckily hung up. I heard about this on Twit’s Security Now( With Steve Gibson and Leo Laporte ). Here is how it works, you will get a call from someone based in India working for Microsoft telling you that your computer is infected.

Read More...

I use MSTest instead of Nunit when doing winforms testing.

Introduction I normally use Nunit for all my unittesting with VB.Net but for winforms testing MS-test is so much easier to use. And I know that in the past there have been attempts to make some frameworks to make this easer but MS-test just makes it trivial to do. MS-test What we want to test is if our textbox selects all text when we enter it. Now let’s try this.

Read More...

Attending PASS Summit 2011? Want Lunch? And Free Career Advice? I Have Just The Event...

![][1] PASS Summit 2011 is fast approaching – in only four weeks, thousands of SQL Server professionals will take Seattle, WA by storm. There are two days of full-day, in-depth pre-conference sessions (Monday and Tuesday), then three days packed with keynotes, training sessions, coffee, vendors, prizes, coffee, training, the Microsoft CAT and CSS teams, networking, coffee, more people that even I can talk to in a week, and (of course) karaoke.

Read More...

Moving a git repository hosted on a share

a git repository on a share. It’s a fairly easy process and works very well and fast. But now I wanted to move that repo to a new place and searched the webs on how to do this. I found nothing that was just copy-pasteable but I got it working and it is very easy. You can find lots of other ways to move a git repo, but they all seemed so complex.

Read More...

You need to have hardware virtualization enabled if you want to run Windows 8 in Virtual Box

If your processor does not support Virtualization Technology then you can’t run Windows 8 in Virtual Box….you will get a black screen of death. In order to find out if your CPU supports hardware Virtualization Technology you can download the Intel Processor Identification Utility here http://www.intel.com/p/en_US/support/highlights/processors/toolspiu/ Run it and look if Virtualization Technology is enabled…see the bottom of this picture if it is enabled then you need to turn it on in your BIOS, to see how to configure BIOS, go to this page http://www.

Read More...

Windows 8 Developer Preview with tools available for download

Microsoft has made available a couple of Windows 8 ISO images that you can download right now. I already downloaded and installed, the screenshot above is my start screen, as you can see I did not really customize it yet Here is what is available: Windows Developer Preview with developer tools English, 64-bit (x64) 4.8 GB Sha 1 hash – 6FE9352FB59F6D0789AF35D1001BD4E4E81E42AF All of the following come on a disk image file (.

Read More...

Using T-SQL OUTPUT and MERGE To Link Old and New Keys

You don’t catch me doing SQL posts that often, probably because I spend far more time working in a development world that seems to be moving further and further away from SQL. That being said, the database server is optimized towards handling large sets of data and data manipulations, so rather than second-guessing developers that know far more (and have far larger budgets), I like to take advantage of database-side solutions when I can.

Read More...

Google realizes that JavaScript is a dead end programming language, to be replaced by Dart a new language

All the way back in 2010 Google realized that JavaScript is a dead end programming language. Here is what was posted on the com.googlegroups.google-caja-discuss list Javascript has fundamental flaws that cannot be fixed merely by evolving the language. We’ll adopt a two-pronged strategy for the future of Javascript: – Harmony (low risk/low reward): continue working in conjunction with TC39 (the EcmaScript standards body) to evolve Javascript – Dash (high risk/high reward): Develop a new language (called Dash) that

Read More...