Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Pre-commit SVN Hook + image optimization script -


i wondering if had tried make pre-commit svn hook "smush" images before commit using smushit, punypng or optimization script.

i tried looking on google looks nobody ever tried this.

i need advices and/or feedbacks.

thanks !

pre-commit hooks should not modify transaction committed. svn book:

while hook scripts can anything, there 1 dimension in hook script authors should show restraint: not modify commit transaction using hook scripts. while might tempting use hook scripts automatically correct errors, shortcomings, or policy violations present in files being committed, doing can cause problems. subversion keeps client-side caches of bits of repository data, , if change commit transaction in way, caches become indetectably stale. inconsistency can lead surprising , unexpected behavior. instead of modifying transaction, should validate transaction in pre-commit hook , reject commit if not meet desired requirements. bonus, users learn value of careful, compliance-minded work habits.

a safer alternative check images in pre-commit hook, , refuse commit if criteria not met. (you still have "smushing" script in project , committers have remember run manually before each commit involves images.)

if sure want modify commits on fly, might still able safely on client side. example, tortoisesvn has client-side hook scripts.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -