Posts

vba - How do i make one form in a word document open multiple other documents and fill out identicall headers in word / excel? -

i want user open 1 document prompts bunch of header information, once user presses button, opens other selected word docs , excel spreadsheets (if possible) saves , closes them. you can use workbooks.open(filename:="c:\test.xls") and activeworkbook.save , .close accodingly note can work on 1 workbook @ time

Using MEF in a windows service? -

i'd use mef in windows service / wcf service. the configuration of aggregatecatalog no problem, do methods createshell() , initializeshell()? service can't have shell, return null? and create , run bootstrapper? in onstart of service class? mef doesn't have createshell , initializeshell methods. think methods prism uses. prism ui application framework uses mef. since writing service, wouldn't use prism, use mef. create compositioncontainer connected catalog you've created, , can pull exports container.

javascript - How local use Google closure compiler through php? -

how use closure compiler library ( local ) , php can obfuscate js? i grateful code. perhaps there php class? thanks. use system() or backtick operator execute it.

c# - Expressions<func>? -

can explain use of expressions<func> ? i'm going assume mean expression<func> func variety of generic func delegate. if case, expression<func> doing getting expression tree of lambda you're passing in place. you'll find commonly on variants of iqueryable<t> or in many fluent interfaces. the expression trees used @ run-time translate lambda expression other format. such sql in case of linq sql. you can read more on expression , more expression trees in .net

C++ copy constructor - small but important difference -

i couldn't figure out happening here, thought strange, , after getting understand reason thought sharing answer valuable somebody's time. so given simple code: #include <iostream> using namespace std; class shape { public: int* a; shape(){ cout<<"default shape constructor"<<endl; = new int(8); // default } shape(int n){ = new int(n); cout<<"shape(n) constructor"<<endl; } // copy constructor shape(const shape& s){ cout<<"shape copy constructor"<<endl; = new int(*(s.a)); } shape& operator=(const shape& s){ cout<<"shape operator="<<endl; if (&s == (this)) return (*this); // this.clear(); = new int(*(s.a)); return (*this); } virtual void draw(){ cout<<"print shape number "<<*a<...

Loading SVG files with python and pygame -

possible duplicate: svg rendering in pygame application can load .svg files created inkscape python via pygame? , if so, how can it? no cannot, pygame supports following image formats: jpg png gif (non animated) bmp pcx tga (uncompressed) tif lbm (and pbm) pbm (and pgm, ppm) xpm you can rasterize svg using cairo rsvg library . there documentation on pygame's web .

performance - Excanvas: Can I use Processing.js with it at near-normal (for <canvas>) speeds? -

i've come across google's excanvas stuff... it's , having <canvas> turdier browsers out there, wondering how optimised was; can use processing.js on (probably) , framerates close i'd on native canvas in chrome/firefox? thanks, james this depend on sturdiness of machine code gets executed on, , speed of javascript interpreter run code. extcanvas means overhead, , versions of chrome , firefox support hardware acceleration of canvas rendering. this makes unlikely using extcanvas yield same results (as far speed concerned) canvas tag