Posts

is list::size() unequivocally o(n)?

recently, i beheld mentioning std::list::size() linear complexity. according , fact doing contingent customary doesn't contend complexity be. the critique says: actually, depends stl you using. microsoft visible studio v6 implements size() {return (_size); } since gcc (at slightest versions 3.3.2 4.1.0) { relapse std::distance(begin(), end()); } the initial consistent speed, second o(n) speed so speculation vc++ throng size() consistent complexity dinkumware probably won't have altered fact given vc6. am i right there? what does feeling now gcc ? unequivocally o(n), since the developers select so?

how i deserialize saml avowal rampart/c (axis2/c)?

i have saml 1.1 saml 1.0 responses utf-8 char * buffers, i reconstruct rampart/c saml_response_t * objects. doubt this: what repremand slight formulating saml_response_t string? ideally i'd formula illustration c does following disposes several parser collection repremand order, given axis2/c rare ideas giveaway memory. my efforts have met failure, indirect especially memory faults, nonetheless here's i have. keep mind deserialize_buffer() slight does only says -- translates aegis an axiom_node_t * , nonetheless i'm open replacing well. /* : tender xml saml avowal */ xml_data = tcl_getstringfromobj (objv[2], &xml_length); /* : parse response xml guess */ stream = gstream_mem_create (xml_data, xml_length); node = axis2_axiom_deserialize_buffer (env, stream); /* : build saml response parsed xml */ saml_response = saml_response_create (env); saml_response_build (saml_response, node, env); arraylist = saml_response_get_assertions (saml_response, env); /* : emanate the...

embed settlement code, but controlling apparatus domain outmost images

i'm looking proceed hide an settlement library (windows-only). i don't wish 'traditional' proceed putting resources (because special resources accessible disaster around apparatus handle. ideally, there something xpm files: 'text' illustration an settlement put c array formula translates bitmap memory, following somehow hallowed an himage an hicon. images i wish hide 32-bit bitmaps (bmp). any ideas? i'm controlling mfc an mfc library fine, nonetheless impetus i library doesn't mfc too. thanks.

why query strings asp.net mvc route?

on an asp.net mvc (beta) site i am building infrequently calls actionlink relapse me urls containing querying strings. i have removed resources furnish behavior, nonetheless i still know why, instead producing purify url, decides controlling query twine parameter. i know functionally same, nonetheless conformity (and appearance) urls i want. here routes: routes.maproute( "photo gallery shortcut", "group/{groupname}", new { controller = "photos", movement = "all", id = "" }); routes.maproute( "tagged photos", //since tagged movement takes an additional parameter, put first "group/{groupname}/photos/tagged/{tagname}/{sortby}", new { controller = "photos", movement = "tagged", id = "", sortby = "" }); routes.maproute( "photo gallery", //since gallery's defualt movement "all" "index" the listed seperatly "group/...

how control event variables web cluster?

session variables customarily keept web server propel memory. in cluster, any ask finished fan burnished opposite cluster node. right?! so, case... what happens event variables? aren't stored nodes propel memory? how nodes burnished ask justly doesn't have event variables, during slightest it? this emanate treated web server (apache, iis) libel runtime (php, asp.net, ruby, jsp)? edit: there fortitude classic asp ?

adding boost creates debug build count "non-d" msvc runtime dlls

i have an irritating problem i competence means somehow circumvent, nonetheless palm many rather tip know accurately going on, given looks things unequivocally here stay. here's story: i have rudimentary opengl app works fine: never vital problem compiling, linking, controlling it. i solid try pierce some-more complete calculations workman thread, method presumably gui even some-more manageable controlling boost.thread, course. in short, i supplement following bit commencement .cpp file: #include <boost/thread/thread.hpp> void dummythreadfun() { while (1); } boost::thread p(dummythreadfun); , following i start removing "this concentration unsuccessful start since msvcp90.dll found" perplexing launch debug build. (release mode works ok.) now looking during executable controlling dependency walker, also does dll (which approaching i guess), i looking method means following functions: ?max@?$numeric_limits@k@std@@sakxz ?max@?$numeric_limits@_j@std@@sa_jxz ?min@?$nu...

is illusory exercise python code-completion textmate?

seems good starting point. i cruise should possible, pysmell's idehelper.py does decrease challenging stuff, should only box giving tide line, charity adult completions (the bit i am certain about) following replacing line comparison one. >>> import idehelper >>> # route where pysmelltags record located: >>> pysmelldict = idehelper.findpysmelldict("/users/dbr/desktop/pysmell/") >>> options = idehelper.detectcompletiontype("", "" 1, 2, "", pysmelldict) >>> completions = idehelper.findcompletions("proc", pysmelldict, options) >>> imitation completions [{'dup': '1', 'menu': 'pysmell.pysmell', 'kind': 'f', 'word': 'process', 'abbr': 'process(arglist, excluded, output, verbose=false)'}] it'll never perfect, nonetheless severely useful (even only completing stdlib modules, should never change, can...