Skip to main content

Copy/paste fails in CoRD when multiple remote desktop sessions are active

Posted in


I often ran into an issue with CoRD failing to copy/paste between my host machine and my remote desktop machine. This only occured when multiple remote desktop session were active. The clipboard chain gets broken and copy/paste between the host machine and the remote desktop stops working.

To solve this, you need to execute the following batch file on the remote machine:

@echo off
taskkill /IM rdpclip.exe /F
start %SystemRoot%\system32\rdpclip.exe
exit

Know Thy Complexities

Posted in


Interesting summary of complexity on common algorithms in computer science: http://www.bigocheatsheet.com/

How to view hidden files in Mac OS X

Posted in

Open a terminal and execute the following commands:

$ defaults write com.apple.Finder AppleShowAllFiles YES
$ killall -HUP Finder

Reversing this process can be done by:

$ defaults write com.apple.Finder AppleShowAllFiles NO
$ killall -HUP Finder

Twin Atlantic - Yes I Was Drunk (Matt Lange Remix)

Posted in


Spotted @ #019 Group Therapy Radio with Above & Beyond

Logging all queries executed on MSSQL database

Posted in


Related to this blogpost, I wanted to log all queries executed on a Microsoft SQL Server database.

This can easily be done by the SQL Server Profiler, which gets shipped with the SQL Studio Express application of Microsoft.
However, after navigating through my webapplication (which uses JPA (Hibernate)), I could only see a bunch of the following SQL statements:

exec sp_execute 6, 8
exec sp_execute 7, 8
exec sp_execute 4, 8

Hibernate is running a prepared query. To get the actual SQL query, you can run the following query (you will still have to look for the query, but, it's getting you a lot closer then sp_execute :-)):

SELECT        SQLTEXT.text, STATS.last_execution_time
FROM          sys.dm_exec_query_stats STATS
CROSS APPLY   sys.dm_exec_sql_text(STATS.sql_handle) AS SQLTEXT
WHERE         STATS.last_execution_time > GETDATE()-1
ORDER BY      STATS.last_execution_time DESC

By tweaking the WHERE clause, you can easily retrieve the quer(y)(ies) you are looking for :-)!

Syndicate content