Seems like MS thought Word was a good html editor. NOT!
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" "%1"
Click all the right buttons to confirm and get out, and test it.
A blog about things technical, things general. Anything that I get to do and wish to share knowledge about.
Seems like MS thought Word was a good html editor. NOT!
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" "%1"
0 comments Filed Under: Default html editor, Visual Studio 2008, Word
I'm trying to get my bookmarks from spurl.net while it seems to be up (albeit VERY slow), and the bookmarks.htm download broke with the html downloaded, but not the images. I wanted to see if I can grab it from the cache.
0 comments Filed Under: cache, Google Chrome
Spurl.net is (or should I say was?) an online bookmark service, like del.icio.us. I've added quite a lot of bookmarks there, and it seems they might all be gone, as I've been unable to access the service for the past week or so. I've sent them emails, even that does not seem to get delivered.
0 comments Filed Under: Online Bookmarks, spurl.net
I got a Hauppauge PVR 150 card today, installed it in place of the Genie Wonder Pro, configured it and the remote in the Muthbuntu Control Center, and it works out of the box! No editing of config files, no manual tricks, nada, niks!
0 comments Filed Under: hauppauge, Linux, Media Centre, mythbuntu, mythtv
I dug an old Athlon 700 out of retirement, and fitted my Genie Wonder Pro TV card in it to see if I can get it working as a media centre.
0 comments Filed Under: btaudio, bttv, genie wonder pro, knoppmyth, Linux, Media Centre, mythbuntu, mythtv
Have you wondered what SQL is currently executing on SQL Server, or which statement in a stored procedure is currently executing? Below is a script to create the sp_currentsql stored procedure.
CREATE PROCEDURE [dbo].[sp_currentsql]
AS
SET NOCOUNT ON
CREATE TABLE #SP_WHO2 (
SPID SMALLINT,
Status NCHAR(30),
Login NCHAR(128),
HostName NCHAR(128),
BlkBy CHAR(5),
DBName NCHAR(128),
Command NCHAR(16),
CPUTime INTEGER,
DiskIO INTEGER,
LastBatch VARCHAR(20),
ProgramName NCHAR(128),
SPID_2 SMALLINT,
RequestID int
)
INSERT INTO #SP_WHO2
exec sp_who2 active
DECLARE @SPID int
DECLARE @sql_handle binary(20), @handle_found bit
DECLARE @stmt_start int, @stmt_end int
DECLARE @line varchar(8000), @wait_str varchar(8)
DECLARE curSPID CURSOR FOR
SELECT DISTINCT SPID
FROM #SP_WHO2
WHERE Status != 'BACKGROUND' AND HostName != ' .' AND SPID != @@spid
OPEN curSPID
FETCH NEXT FROM curSPID INTO @SPID
WHILE @@FETCH_STATUS = 0 BEGIN
SELECT @sql_handle = sql_handle,
@stmt_start = stmt_start/2,
@stmt_end = CASE WHEN stmt_end = -1 THEN -1 ELSE stmt_end/2 END
FROM master.dbo.sysprocesses
WHERE spid = @SPID
AND ecid = 0
SELECT @line=SUBSTRING( text,
COALESCE(NULLIF(@stmt_start, 0), 1),
CASE @stmt_end
WHEN -1
THEN DATALENGTH(text)
ELSE
(@stmt_end - @stmt_start)
END
)
FROM ::fn_get_sql(@sql_handle)
SELECT @SPID SPID, @line SQL
FETCH NEXT FROM curSPID INTO @SPID
END
CLOSE curSPID
DEALLOCATE curSPID
DROP TABLE #SP_WHO2
GO
0 comments Filed Under: SQL Server
For a while now my laptop has refused to hibernate. One out of every 20 times it would hibernate, otherwise it would black the screen briefly and continue running, without any error messages. My machine takes quite a few minutes to boot up, due to all the stuff installed, so this was becoming quite annoying, as hibernate/resume is so fast compared to shutdown and boot.
0 comments Filed Under: Hibernate, Windows XP