Monthly Archives: January 2015

IE vs Firefox and Chrome and jQuery val() vs attr(‘value’)

Hi folks I am currently fixing one bug at work and found an interesting problem. Something works in IE but doesn’t work on Firefox and Chrome. After some debugging I found the problem And it is used in JavaScript This … Continue reading

Posted in Uncategorized | 2 Comments

Get EXIF metadata with PowerShell

Hi folks Sometimes we need to extract some exif data from images. We could do this with PowerShell. Here is the most efficient way to do this PSUsing was described in the previous blogpost Here is the list of tags: … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

PowerShell and IDisposable

Hi folks C# has a nice syntactic sugar which corresponds to Let’s implement the same thing for PowerShell We could not use Using because it is a reserved PowerShell word. And we can use it like Stay tuned

Posted in Uncategorized | Tagged | 2 Comments

svn for git-addicted or git-svn gotchas and WTFs – Part 4

Part 3 Hi folks SubGit After the frustration with complicated cherry-picks I decided to try SubGit again This time I’ve managed to configure it. Comparing to vanilla git-svn it cloned svn repo much faster. However, I found that it does … Continue reading

Posted in Uncategorized | 1 Comment

Execution of external commands in PowerShell done right

Part 2 Part 3 Hi folks Execution external (native) commands in PowerShell is not an easy thing. It looks like it is simple but it has a lot of downsides. We’ll consider the following command And use it like that … Continue reading

Posted in Uncategorized | Tagged | 3 Comments

PowerShell auto variable $LastResult

Hi folks If you work a lot with PowerShell you may had the cases when you tried something and then you want to save it to the variable. Many REPLs has a concept of last result variable but not PowerShell, … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

sqlcmd – Get real sql error line number

Hi folks Consider the following sql script When you run with SQLCMD When you run in SQL Server Management Studio with SQLCMD Mode enabled you get But when you double click on the error line the query editor will jump … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment