Create a text file by the name mozilla.cfg and put it in the home folder where mozilla.exe is, put the items which needs to be blocked in this file e.g.:
//
lockPref("network.proxy.type", 5);
lockPref("browser.startup.homepage", "http://ilias.ca/");
This will set the proxy settings to "System" and default the home page to the specified url.
Now byte-shift this file with an offset of 13, this can be done at this location online (http://www.alain.knaff.lu/howto/MozillaCustomization/cgi/byteshf.cgi)
In C:\Program Files\Mozilla Firefox\greprefs\ there’s a file called all.js. Open all.js in a text editor, and add the following line at the end of it:
pref("general.config.filename", "mozilla.cfg");
Save, close and start Firefox to test it.
http://ilias.ca/blog/2005/03/locking-mozilla-firefox-settings/
http://www.alain.knaff.lu/howto/MozillaCustomization/cgi/byteshf.cgi
Friday, December 24, 2010
Wednesday, November 24, 2010
Disabling Google Talk through DNS
Best solution, namely to only define a zone with the name of the host to be blocked, in case of Google talk it will be "chatenabled.mail.google.com", in this define an A record IN A 127.0.0.1.
Friday, August 6, 2010
Team Explorer - red cross on "documents" folder
Have you added your users to the three necessary places: The Team System project, the Project Portal and the Reporting Services? Like this:
(1) Add user to appropriate project:
(1.1) Right-click project (or root project for all projects)
(1.2) Select "Team Project Settings".
(1.3) Select "Group Membership".
(1.2) Selecting the group to which you want to assign the user.
(1.4) Click the "Properties" button.
(1.5) Select the "Windows User or Group" radiobutton.
(1.6) Clicking the "Add..." button.
(1.7) Selecting the required user(s) and confirm it all.
(2) Add user to Project Portal:
(2.1) Right-click project and select "Show Project Portal".
(2.2) Click "Site Settings"
(2.3) In the "Administration" section, click "Manage Users"
(2.4) Click "Add Users"
(2.5) Fill in the list of users and follow the instructions.
Note: User names include the domain, e.g DOMAINNAME\mwatson
(3) Add user to Reporting Services:
(3.1) Right-click project and select "Show Project Portal".
(3.2) Click "Reports".
(3.3) Click "Home".
(3.4) Click "Properties".
(3.5) Click "New Role Assignment"
(3.6) Add the new user(s), select their role(s) and click OK.
Note: User names include the domain, e.g DOMAINNAME\mwatson
ref: http://social.msdn.microsoft.com/Forums/en-US/tfsadmin/thread/ffb91587-87f9-4cf6-a1dd-f10a43486de9
(1) Add user to appropriate project:
(1.1) Right-click project (or root project for all projects)
(1.2) Select "Team Project Settings".
(1.3) Select "Group Membership".
(1.2) Selecting the group to which you want to assign the user.
(1.4) Click the "Properties" button.
(1.5) Select the "Windows User or Group" radiobutton.
(1.6) Clicking the "Add..." button.
(1.7) Selecting the required user(s) and confirm it all.
(2) Add user to Project Portal:
(2.1) Right-click project and select "Show Project Portal".
(2.2) Click "Site Settings"
(2.3) In the "Administration" section, click "Manage Users"
(2.4) Click "Add Users"
(2.5) Fill in the list of users and follow the instructions.
Note: User names include the domain, e.g DOMAINNAME\mwatson
(3) Add user to Reporting Services:
(3.1) Right-click project and select "Show Project Portal".
(3.2) Click "Reports".
(3.3) Click "Home".
(3.4) Click "Properties".
(3.5) Click "New Role Assignment"
(3.6) Add the new user(s), select their role(s) and click OK.
Note: User names include the domain, e.g DOMAINNAME\mwatson
ref: http://social.msdn.microsoft.com/Forums/en-US/tfsadmin/thread/ffb91587-87f9-4cf6-a1dd-f10a43486de9
Thursday, July 29, 2010
Membership setup and configuration issue
To implement Membeship API to an ASP.NET application (Framework 2.0/3.0/3.5), create the Web site in VS 2005/2008 and then click on "Website=>ASP.NET Configuration" and start the process.
If using a remote DB then need to put some settings into the Web.config before starting this wizard:
1) Add a connection string in the web.config:
2) Next, change the authentication mode to Forms:
3) For Roles add this settings:
type="System.Web.Security.SqlRoleProvider"/>
4) Add Providers details under section
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MyAspnetDB"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="MyApplicationName"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
Once all these settings are in place, fire up the ASP.NET configuration tool and it will work perfectly.
http://bytes.com/topic/asp-net/answers/594723-error-provider-management-could-not-establish-connection-database
http://forums.asp.net/p/978442/1364770.aspx
If using a remote DB then need to put some settings into the Web.config before starting this wizard:
1) Add a connection string in the web.config:
2) Next, change the authentication mode to Forms:
3) For Roles add this settings:
4) Add Providers details under
connectionStringName="MyAspnetDB"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="MyApplicationName"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
Once all these settings are in place, fire up the ASP.NET configuration tool and it will work perfectly.
http://bytes.com/topic/asp-net/answers/594723-error-provider-management-could-not-establish-connection-database
http://forums.asp.net/p/978442/1364770.aspx
Monday, July 26, 2010
Tuesday, July 13, 2010
Error Logging Modules And Handlers
A very nice utility for logging errors like Yellow screen of death and others occuring on the website. Can disable errors through web.config directive and by redirecting user to this error page.
Only need to modify the web.config and create new Tables, SP's in the SQL database and setting for SMTP for sending out emails.
http://geekswithblogs.net/joycsharp/archive/2008/02/15/simple-c-delegate-sample.aspx
Only need to modify the web.config and create new Tables, SP's in the SQL database and setting for SMTP for sending out emails.
http://geekswithblogs.net/joycsharp/archive/2008/02/15/simple-c-delegate-sample.aspx
Thursday, July 8, 2010
Automate sending emails from command prompt or script
You might want to use BLAT (a public domain command line mailer) instead. I like it much better than mapisend. You can download it at-http://www.interlog.com/~tcharron/blat.html or blat.net
Wednesday, July 7, 2010
VSTS 2008 Database Edition issues fix
http://blogs.msdn.com/b/gertd/archive/2008/06/03/vsts-2008-database-edition-gdr-june-ctp.aspx?wa=wsignin1.0
Apply below fix from MS after applying VS 2008 SP1 and it removes the requirement for using a local SQL instance and works perfectly fine.
http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3ad767-5f69-4db9-b1c9-8f55759846ed&displaylang=en
Apply below fix from MS after applying VS 2008 SP1 and it removes the requirement for using a local SQL instance and works perfectly fine.
http://www.microsoft.com/downloads/details.aspx?FamilyID=bb3ad767-5f69-4db9-b1c9-8f55759846ed&displaylang=en
Thursday, July 1, 2010
Taking an ASP.NET Site Offline with a Message
This was another one that I was literally beside myself that I didn't know this one before. A fellow business partner of mine named James Sutton mentioned this one to me. This one's been around since ASP.NET 2.0 as well. If you have an ASP.NET web application site, and you place a text file named "app_offline.htm" in the root of the site, all requests to that website will redirect to that app_offline.htm file. Basically, if you need to take an entire ASP.NET site offline, you can place some nice message in that file. Then, any new requests to a URL, any URL, in that website will redirect to that file allowing you to do maintenance to the site, upgrades, or whatever. It is not really a redirect though. ASP.NET essentially shuts down the site, unloads it from the server, and stops processing any requests to that site. That is, until you delete the app_offline.htm file - then things will continue as normal and your ASP.NET site will load up and start serving requests again.
A super-cool side effect of this is that any files that are locked by the site, such as a database or other resources, are freed since the application domain has been unloaded from the server. This allows you to remove the locks from those files and replace them, without the need to do a full IISRESET, taking down other sites on the server. One thing to keep in mind with this file however, make sure you out enough content in it so it is larger than 512 bytes or IE will consider it a 404 and will display the 404 instead of the contents of your app_offline.htm file.
http://weblogs.asp.net/pleloup/archive/2008/09/22/taking-an-asp-net-site-offline-with-a-message.aspx
A super-cool side effect of this is that any files that are locked by the site, such as a database or other resources, are freed since the application domain has been unloaded from the server. This allows you to remove the locks from those files and replace them, without the need to do a full IISRESET, taking down other sites on the server. One thing to keep in mind with this file however, make sure you out enough content in it so it is larger than 512 bytes or IE will consider it a 404 and will display the 404 instead of the contents of your app_offline.htm file.
http://weblogs.asp.net/pleloup/archive/2008/09/22/taking-an-asp-net-site-offline-with-a-message.aspx
Friday, June 18, 2010
Reporting Services: The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)
Reporting Services error:
"The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)"
Need to Grant the user group "Everyone" FULL ACCESS to C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer.
"The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)"
Need to Grant the user group "Everyone" FULL ACCESS to C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer.
Monday, June 14, 2010
Automated backup in SQL Express
There is no inbuilt support for automated backup in SQL Express, but there is a very powerful and intuitive scrip by Jasper Smith which can do the same work through Windows Scheduler:
http://www.sqldbatips.com/showarticle.asp?ID=27
http://www.sqldbatips.com/showarticle.asp?ID=27
Wednesday, April 21, 2010
query tables from multiple databases on a single sql server
select Select_Column_List
from Server_Name.DB_Name.Object_owner.Table_or_view_nam e
from Server_Name.DB_Name.Object_owner.Table_or_view_nam e
Wednesday, April 14, 2010
AJAX failing on IIS7 but running fine on IIS6 or earlier
Change the application pool from "Default" to "Classic .NET ASP", restart IIS and it will work.
Monday, March 22, 2010
Saturday, March 13, 2010
Creating spatial database in MySQL
CREATE TABLE `dev_atacan_rets`.`points` (
`name` VARCHAR(20) NOT NULL,
`location` POINT NOT NULL,
`description` VARCHAR(200),
SPATIAL INDEX(location)
)
ENGINE = MyISAM;
(Engine part is the important part)
`name` VARCHAR(20) NOT NULL,
`location` POINT NOT NULL,
`description` VARCHAR(200),
SPATIAL INDEX(location)
)
ENGINE = MyISAM;
(Engine part is the important part)
Monday, March 8, 2010
Moving the Wordpress blog to GoDaddy from local machine:
http://www.mariasguides.com/2006/09/25/moving-a-wordpress-blog-to-godaddy-hosting-account-part-2/
Renaming MySQL database:
1. hover over hosting and servers
2. click on my hosting account
3. open the appropriate hosting account
4. click on databases
5. click on mySQL
6. click on view/edit details (the little pen icon)
7. it’s listed under host name
http://rowast.com/2008/01/14/wordpress-db_host-and-godaddy-wont-play-nice/
Or can take a backup of the MySQL and while Restoring it change the database name.
Renaming MySQL database:
1. hover over hosting and servers
2. click on my hosting account
3. open the appropriate hosting account
4. click on databases
5. click on mySQL
6. click on view/edit details (the little pen icon)
7. it’s listed under host name
http://rowast.com/2008/01/14/wordpress-db_host-and-godaddy-wont-play-nice/
Or can take a backup of the MySQL and while Restoring it change the database name.
Sunday, March 7, 2010
Rename MySQL Database
1) Open command prompt and invoke Musql with this command
c:\ mysql -u root -p (After login)
mysql> create database
mysql> quite
Now on command prompt:
c:\ mysqldump old_database -u root -p | mysql -D new_database -u root -p
enter password twice and then it will copy the contents from the old database to the new one.
It'll dump out the old database to STDOUT, pipe this to a second MySQL process and insert the dumped data (and schema) to the new DB.
You'll have to manually DROP the old DB and change the permissions on the new DB, but at least you have the data and schema
courtesy: http://www.delphifaq.com/faq/databases/mysql/f574.shtml
c:\ mysql -u root -p (After login)
mysql> create database
mysql> quite
Now on command prompt:
c:\ mysqldump old_database -u root -p | mysql -D new_database -u root -p
enter password twice and then it will copy the contents from the old database to the new one.
It'll dump out the old database to STDOUT, pipe this to a second MySQL process and insert the dumped data (and schema) to the new DB.
You'll have to manually DROP the old DB and change the permissions on the new DB, but at least you have the data and schema
courtesy: http://www.delphifaq.com/faq/databases/mysql/f574.shtml
Saturday, February 20, 2010
Setup and Configure VPN on Windows 2008
1) Configure RRAS, if using single NIC then select Custom and then VPN in the configuration screens off RRAS
2) Give VPN users Dial-in permissions in AD
3) Select same Authentication protocol both at RRAS server and Client.
To enable internet on client computer after connecting to VPN:
Need to disable the option Use default gateway on remote network. You can find this by clicking the Advanced button in the properties page of Internet Protocol Version 4 (or 6) of your VPN connection.
2) Give VPN users Dial-in permissions in AD
3) Select same Authentication protocol both at RRAS server and Client.
To enable internet on client computer after connecting to VPN:
Need to disable the option Use default gateway on remote network. You can find this by clicking the Advanced button in the properties page of Internet Protocol Version 4 (or 6) of your VPN connection.
Friday, February 19, 2010
NW Image rotator on Wordpress
1) Download Nextgen plugin from http://alexrabe.de/wordpress-plugins/nextgen-gallery/
2) Get the php-gd2.dll (GD Library) from the zip of PHP install and put that in the ext folder of PHP
3) Update php.ini with this line:
[PHP_GD2]
extension=php_gd2.dll
4) Restart Apache, if the version of dll is correct then Apache will restart otherwise not
5) Download "JW Image Rotator from Jeroen Wijering. Download the player from the website and copy/upload it (only imagerotator.swf) to the plugin folder under wordpress
Under Wordpress Admin console=>Gallery=>Options=>Slideshow, update the path for imagerotetor by clicking on "Search Now" button
6) Upload images to the Gallery by creating it under Main Gallery
7) In the post/page put this "[slideshow =1]" here 1 is the id of the gallery
2) Get the php-gd2.dll (GD Library) from the zip of PHP install and put that in the ext folder of PHP
3) Update php.ini with this line:
[PHP_GD2]
extension=php_gd2.dll
4) Restart Apache, if the version of dll is correct then Apache will restart otherwise not
5) Download "JW Image Rotator from Jeroen Wijering. Download the player from the website and copy/upload it (only imagerotator.swf) to the plugin folder under wordpress
Under Wordpress Admin console=>Gallery=>Options=>Slideshow, update the path for imagerotetor by clicking on "Search Now" button
6) Upload images to the Gallery by creating it under Main Gallery
7) In the post/page put this "[slideshow =1]" here 1 is the id of the gallery
Thursday, January 28, 2010
Howto pull and save SWF file from a web page
http://labnol.blogspot.com/2005/11/save-flash-from-firefox-and-ie.html
Saving Flash files from Firefox
Firefox for Newbies
a. Click Tools - Page Info
b. Click the Media Tab on the Page Info Windows
c. The media tab has a complete list (with preview) of Images, CSS Files and Shockwave Flash files that were downloaded by the Firefox browser while rendering (loading) the page.
d. Scroll down the list and locate the swf file.
e. Click the "Save As" button. Select some directory on your hard drive and save the file (No need for a third-party plug-in)
Firefox for Geeks and Power Users
a. Type about:blank in the Firefox address bar
b. Now click List cache entries or directly type about:cache?device=disk (Disk cache device)
c. Press Ctrl+F and try to location the flash file by typing some part of website URL or the flash file name or just .swf. After some hit and trial, you should be able to locate the swf file URL
d. Click the SWF URL to open the Cache Entry Information page. Right click on the link and choose "Save link as"
Saving Flash files from Firefox
Firefox for Newbies
a. Click Tools - Page Info
b. Click the Media Tab on the Page Info Windows
c. The media tab has a complete list (with preview) of Images, CSS Files and Shockwave Flash files that were downloaded by the Firefox browser while rendering (loading) the page.
d. Scroll down the list and locate the swf file.
e. Click the "Save As" button. Select some directory on your hard drive and save the file (No need for a third-party plug-in)
Firefox for Geeks and Power Users
a. Type about:blank in the Firefox address bar
b. Now click List cache entries or directly type about:cache?device=disk (Disk cache device)
c. Press Ctrl+F and try to location the flash file by typing some part of website URL or the flash file name or just .swf. After some hit and trial, you should be able to locate the swf file URL
d. Click the SWF URL to open the Cache Entry Information page. Right click on the link and choose "Save link as"
Tuesday, January 12, 2010
Manage Navigation items on MOSS
1) Login as Administrator or with a user having Full Control or Design permission level for the site
2) On the Site Actions menu, point to Site Settings and click on Navigation link under “Look and Feel” column
3) Manage the items which needs to be displayed on both Top link bar and on the left side of pages on the Quick Launch.
2) On the Site Actions menu, point to Site Settings and click on Navigation link under “Look and Feel” column
3) Manage the items which needs to be displayed on both Top link bar and on the left side of pages on the Quick Launch.
Subscribe to:
Comments (Atom)
