Posts

tfs - Setting up Team foundation server -

i have setup team foundation server company, don't have experience in. the company have 5 or developers using it. is big task or easy (with instructions)? helpful tutorials can recommend? any recommendations on server specs team of 5-10? your first step should download latest tfs installation guide (tfsinstall.chm) here: http://www.microsoft.com/downloads/details.aspx?familyid=ff12844f-398c-4fe9-8b0d-9e84181d9923&displaylang=en you should use tfs 2008 sp1, since latest release , includes many new features , performance improvements. if planning on installing windows 2008 & sql 2008, need "integrate" tfs 2008 sp1 installation disc. instructions included in tfsinstall.chm, martin woodward has walkthrough on blog: http://www.woodwardweb.com/vsts/creating_a_tfs.html (this isn't required sql 2005 sp2 + windows 2003) the install guide has hardware recommendations. for team of size, should consider running tfs instance virtual machine. al...

regex - Emacs query-replace with textual transformation -

i want find text in file matches regexp of form t [a-z] u (i.e., match t followed capital letter , match u , , transform matched text capital letter lowercase. example, regexp x[a-z]y xay becomes xay and xzy becomes xzy emacs' query-replace function allows back-references, afaik not transformation of matched text. there built-in function this? have short elisp function use? update @marcel levy has it: \, in replacement expression introduces (arbitrary?) elisp expression. e.g., solution above is m-x replace-regexp <ret> x\([a-z]\)z <ret> x\,(downcase \1)z it looks steve yegge posted answer few years back: "shiny , new: emacs 22." scroll down "changing case in replacement strings" , you'll see example code using replace-regexp function. the general answer use "\," call lisp expression part of replacement string, in \,(capitalize \1) . reading text, looks it's in interactive mode, seems 1 pla...

c# - What is the overhead cost associated with IoC containers like StructureMap? -

after attending recent alt.net group on ioc, got thinking tools available , how might work. structuremap in particular uses both attributes , bootstrapper concepts map requests ithing concretething . attributes automatically throw flags me either reflection or il injection going on. know how works (for structuremap or other ioc tools) , associated overhead might either @ run-time or compile-time? i can't other ioc toolkits use spring.net , have found there 1 off initial performance penalty @ startup. once container has been configured application runs unaffected.

.net - WPF Application fails on startup with TypeInitializationException -

i have simple wpf application trying start. following microsoft patterns , practices "composite application guidance wpf". i've followed instructions wpf application fails "typeinitializationexception". the innerexception property reveals "the type initializer 'system.windows.navigation.baseurihelper' threw exception." here app.xaml: <application x:class="mynamespace.app" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <application.resources> </application.resources> </application> and here app.xaml.cs (exception thrown @ "public app()"): public partial class app : application { public app() { bootstrapper bootstrapper = new bootstrapper(); bootstrapper.run(); } } i have set "app" class startup object in project. what going ast...

Painless resource management in java -

in c++ acquiring resource in constructor , release in destructor. so when exception rises in middle of function there no resource leak or locked mutexes or whatever. afaik java classes don't have destructors. how 1 resource management in java. for example: public int foo() { resource f = new resource(); dosomething(f); f.release(); } how can 1 release resource if dosomething throws exception? can't put try\catch blocks on code, can we? yes can , should put try/catch/finally block around code. in c# there shorthand "using" statement, in java stuck with: public int foo() { resource f = new resource(); try { dosomething(f); } { f.release(); } }

What is the best way to do per-user database connections in Rails -

what best way per-user database connections in rails ? i realize poor rails design practice, we're gradually replacing existing web application uses 1 database per user. complete redesign/rewrite not feasible. put in application controller. i'm using subdomain plus "_clientdb" pick name of database. have databases using same username , password, can grab db config file. hope helps! class applicationcontroller < actioncontroller::base before_filter :hijack_db def hijack_db db_name = request.subdomains.first + "_clientdb" # lets manually connect proper db activerecord::base.establish_connection( :adapter => activerecord::base.configurations[env["rails_env"]]['adapter'], :host => activerecord::base.configurations[env["rails_env"]]['host'], :username => activerecord::base.configurations[env["rails_env"]]['username'], :password =...

PDF Creator and Reader in PHP -

i want make online pdf creator , reader in php support features available in adobe acrobat bookmarking, signing, commenting, editing, header , footer, watermark etc etc.. can please suggest me php library me that? google search led me http://davidwalsh.name/read-pdf-doc-file-php reading pdf, creating pdf use tcpdf , best free 1 have used although font files large library.