Posts

CamelCase VS underscore_method

hey all, in quest develop habits start of programming career have query. notice there 2 methods of coding camelcase or underscore_method. while think camelcase looks nicer imo, reservation in committing underscore_method let's save uppercase letters denote operator or else meaningful. seems tilt argument side based on efficiency opposed aesthetics. i'm interested in efficiency of all. sound right? or case both methods have place in different situations? sidenote: i've noticed when comes programming getting yes or no answer elusive loch ness monster ;) i use camelcase method parameters , use pascalcase classes , method names. use camelcasing private variable names , use pascalcasing public properties. most in .net not use underscore seems vestigial previous programming paradigms. see book "framework design guidelines: conventions, idioms, , patterns reusable .net libraries" more specifics. john grove, senior software engineer http://www.digitizedschemat...

SSL certificate request using IIS

hiii     i want get  thirdparty ssl certificate. want create certificate request. i have opened iis , on right click of website name server certificate option in following not enabled. iis->directory security->secure communications-> server certificate to generate certificate request file,   but default website enabled.   how can enable server certificate option ,so can generate request website. plz help.thanks.                               bye                                   indu Archived Forums A-B  >  ASMX Web Services and XML Serialization

SQL connection errors when stress testing mobile service: SQL failure after 3 attempts

i have created mobile service (node.js), has been running few months 50-100k api calls per day no issues. the usage of service scaled soon, , receive higher traffic, running stress tests (on staging deployment of same service). the api in question queries data sql database attached mobile service, caches resulting data in redis database 5 minutes, each call identical parameters not access sql database, redis cache. my first test never has problems: run single api calls fast possible using program wrk (https://github.com/wg/wrk). test never has problem, , have run hour continuously sustained rate of 200 req/s , few timeout errors. the second test causes problems: i created list of 5 different api calls same service (same endpoint, different parameters), , run randomly interweaved fast possible. use program locust (http://locust.io) this, spawing 10.000 clients @ rate of 500 per second. first few seconds goes ok, connections start failing massively. i mostly: error: sql...

DataGridView Custom format for phone number

hello everyone!  trying phone number custom format column in datagridview, nothing try works!  ideas on how fix this?  here's code:         private void tbl_alunosdatagridview_cellformatting(object sender, datagridviewcellformattingeventargs e)         {             try             {                 this.tbl_alunosdatagridview.columns["telfixo"].defaultcellstyle.format = "(##) ####-####";                 this.tbl_alunosdatagridview.columns["telcelular"].defaultcellstyle.format = "(##) #####-####";             }     ...

bing maps infobox line break

i have info boxes working can seem break line  i have tried <br\> \n <br> with no success  good news, team has added support html in infoboxes. available in experimental branch of v8 , in main release branch in couple of weeks. [ blog ] [ twitter ] [ linkedin ] Bing Maps  >  Bing Maps General

Get Column Contents

hey guys, have small problem , goes this   lets consider column in database_tableexample sample a b c d f if need values (a,b,c,d,e,f) wat should do i did string  val=convert.tostring(cmd.executescaler()); and got first value , tats "a", how increment next element table any suggestions           executescalar doing it's supposed do.  ever return 1 distinct value , want lot more that.  since have command object need create reader using executereader command.  can enumerate through results , each value need. Visual Studio Languages  ,  .NET Framework  >  Visual ...

Misplaced reference to code

my intent report bug in case don't know already. i have rather large classes broken partial classes. each such class, consider "main" class file contains constructor. in different file (among other things) declare , initialize object used thread synchronization. code contracts analyzer suggests add requires constructor directs me object declaration/initialization in other file. latter statement has squiggly. mildly annoying have work around red herring location of problem. regards, george thanks, yes, sounds bug. have repro us? cheers, -maf (manuel fahndrich) DevLabs  >  Code Contracts