This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch --remote --sort=committerdate | clip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git merge -s recursive -X theirs B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.orange{ | |
height: 150px; | |
width: 225px; | |
} | |
.trans1 { | |
transform: translate(100px,0px); | |
-webkit-transition: -webkit-transform 3s ease-in; | |
} | |
.trans2{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert into app_item(app_item_id, control_id, app_page_id, description, default_label) | |
select SEQ_APP_ITEM.nextval, a, b, c, d from | |
( | |
select'LabelNameSuffix' as a, 183 as b, 'Name Suffix' as c, 'Name Suffix' as d from dual | |
union all | |
select 'LabelFax', 184, 'Fax Number', 'Fax Number' from dual | |
) | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//As suggested at http://forums.asp.net/t/1569137.aspx/1 | |
//This is an ugly hack but I needed a way to force the application to recompile on production server. | |
//Entity Framework was not updating cached values with the latest values from the db | |
//I tried many other suggested means of fixing this problem to no avail. | |
//This was a last resort. Has to be done within the context of an httpRequest object | |
System.IO.FileInfo fi = new System.IO.FileInfo(Server.MapPath("~/Web.config")); | |
fi.LastWriteTime = DateTime.Now; | |
//The hack changes the web.config's "last changed" date, which causes ASP.Net to recompile. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Run this to reverse ignoring of changes to web.config so it gets committed. | |
git update-index --no-assume-unchanged path_to_file/web.config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//source: http://www.codeproject.com/Articles/27073/How-to-Redirect-to-Another-Page-when-Session-Timeo | |
//Distributed under Codeplex Project Open License: http://www.codeproject.com/info/cpol10.aspx | |
private void CheckSessionTimeout() | |
{ | |
string msgSession = "Warning: Within next 3 minutes, if you do not do anything, "+ | |
" our system will redirect to the login page. Please save changed data."; | |
//time to remind, 3 minutes before session ends | |
int int_MilliSecondsTimeReminder = (this.Session.Timeout * 60000) - 3 * 60000; |