Sunday, July 05, 2009
Do you want to open or save this file ?
Wednesday, June 24, 2009
Sunday, June 07, 2009
ASM Language
Thursday, May 21, 2009
Google.. pro-arab ???


Tuesday, October 07, 2008
Mutiple Language Bars in remote desktop
When you log in to a server via remote destop , the taskbar is messed up with multiple language bars . And every time you log in , you get another one .
Well here is the solution from MS :
http://support.microsoft.com/kb/932039/en-us
( to those of you who transferred to that article on the MS Israel site - you need to choose your location as US at the top of the page , and then this article contains a link to the hotfix .
The Israeli version for some reason does not contain the link to the hotfix )
Wednesday, November 14, 2007
System.Net.Mail.SmtpClient.Send
Thanks to MS for moving it from System.Web.Mail t0 System.Net.Mail (in .NET 2) ,
and improving the API .
And writing the code that replaces CDO.
And giving an option to use embedded resources ( besides attachments)
But WHY !! WHY when I send the mail , there is a delay , or executes only when thread is closed ??
The answer and the solution is here :
http://forums.microsoft.com/msdn/showpost.aspx?postid=164793&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=0
( On the second page there is the answer from "jptros" . Also look at the post from Damienb about solving CPU problem)
Took about an hour to find the reason . Annoying and stupid .
Also following links are usefull resources :
http://www.systemwebmail.com/
http://systemnetmail.com/
System.Net.Mail and embedded images
Tuesday, October 17, 2006
Script to reset DB.
Having a script to delete contents of all tables in the DB of your application is handy -
to clean the test data from DB .
(I'm talking in this post about Sql Server 2000)
So far I've used a script which contained a bunch of DELETE statements in the right order ( according to the FK's).
( In my case I always leave some tables non-touched - for example : USERS,GROUPS and etc' - just for not entering all this info again every time I clean the DB)
But since the application is under development - new tables are added all the time.
And I became annoyed by the need to update the script with each new table.
So I wanted to write some kind of script that will delete data from all tables in the DB, besides those I specify .
This way the script almost never needs an update.
I did it in the following way :
exec sp_msforeachtable
@command1 = "ALTER TABLE ? NOCHECK CONSTRAINT ALL",
@command2 = "DELETE ?",
@command3 = "ALTER TABLE ? CHECK CONSTRAINT ALL",
@whereand = ' and name not like ''%LUT%'' and name not in(''USER'',''USER_GROUP'',''SECTION_GROUP'')'
Another option is to write code with CURSOR which runs over all the tables you want (taking it from the sysobjects table ) .
But this is simpler , since sp_msforeachtable
does that for you.
I wasn't familiar with sp_msforeachtable untill now.
Here some info on this sp and other useful undocumented Sql Server sp's :
http://www.databasejournal.com/features/mssql/article.php/1490661
http://www.databasejournal.com/features/mssql/article.php/3441031
http://www.mssqlcity.com/Articles/Undoc/SQL2000UndocSP.htm