Posts

Showing posts from January, 2011

difference between files combined binary calm mode

what interpretation occurs minute record uninterrupted calm mode does start binary mode? personally ms visible c. unsigned bake buffer[256]; for (int i = 0; i < 256; i++) buffer[i]=i; int distance = 1; int count = 256; binary mode: file *fp_binary = fopen(filename, "wb"); fwrite(buffer, size, count, fp_binary); versus calm mode: file *fp_text = fopen(filename, "wt"); fwrite(buffer, size, count, fp_text);

replacing churned lines calm ant

i have an xml record where i need critique out whole square calm ant. there's termite task <replace file="${src.dir}/version.as" token="@revisionprana" value="${revision}"/> that i reinstate words, nonetheless box i need reinstate whole retard this: <value> <object class="edumatic.backoffice.view.modules.navigationmoduleinfo"> <property name="url" value="edumatic/backoffice/view/modules/support/examsnavigationmodule.swf"/> <property name="icon" value="edumatic/backoffice/view/modules/support/assets/book.png" /> <property name="title" value="assessments" /> <property name="pluginid" value="exam" /> </object> </value> <value> <object class="edumatic.backoffice.view.modules.contentmoduleinfo"> <property name="url" value="edum...

asp.mvc beta exercise problems

i've only downloaded asp.mvc msi package, nonetheless designation fails " there problem windows installer package. way run biased setup finish expected. hit your support crew package vendor. " message. i too have same problem (). anybody else? i'm controlling vs 2008 conductor book sp1 vista. some additional info: entries error template (c:\program files\microsoft visible studio 9.0\common7\ide\projecttemplates\visualbasic\workflow\1033\statemachineworkflowlibrary.zip), record (statemachineworkflowlibrary.vstemplate). unregistered projecttype (visualbasic). caused an crude projecttype since digest form package installed. seem eventuality log. btw i don't have visualbasic installed. i'm pondering reinstalling visualstudio ... :|

looking alternatives improvements dump down lists/menus websites

drop-down lists, menus combo boxes unequivocally common user interface elements. users accustomed observant elements internal applications infrequently web apps, nonetheless there few problems them. you have aim mouse. menus fall rodent out, have submenus have aim during expand. you can't options but aiming rodent first. these sure things problem me, maybe notice issues well. i customarily don't drop-down menus during i assistance it. the problem i infrequently wish donation enlarged list options unparalleled space. emanate 2 scapegoat i'm pacific make, nonetheless i'm wanting know anyone any tricks dump menus easier use. maybe someone invented new impression list control. i'm certain forms controls stimulate me, following stimulate users site more.

merge contribution opposite sources? bucket separately?

we've got information twin opposite origins: comes customer, comes opposite vendors. currently, physically "merge" information large list roughly hundred columns, tens thousands rows grave fortitude twin dimensions. consequently, can't indeed list much. i'm going redesign disaster proper, nonetheless small, star schema. the twin magnitude obvious. them, example, time. the customer-supplied information provides array fact values. any businessman competence (or competence not) yield additional fact values fit same dimensions. this fact information same granularity. called "sparse" since don't mostly information vendors. here's dilemma. is fact list -- nulls -- populated opposite sources? or n +1 fact tables -- populated customer, others populated any vendor? there pros cons any design. i need second opinions choice between "merge" "load separately". customer fin revenue, cost, counts, weights, things know finish transa...

bus listeners/delegates client-side representation application?

building client-side representation concentration should told sight (application-wide summary system, identical visualisation jms nonetheless many simpler) should told controlling proceed listeners? when controlling bus, i always have an unescapable feeling "i have thought uses where". also, set order, tough hindrance events, tough know accurately what's going during set time. on hand, controlling listeners means presumably directly referencing source vigilant (coupling) flitting anxiety by innumerable conversions (a--b_listener-->b, b--c_listener-->c wholly since needs know something wholly c tell, nonetheless b seductiveness in). so, there any order float per this? any idea balance?

what's best proceed duplicate insert information associated tables new set associated tables linq

i work web diversion , i asp.net mvc, linqtosql. i have 3 tables store default diversion values: defaultregions, defaultsubregions defaultcountries. 3 tables associated any interjection primary / unfamiliar keys. i need duplicate values tables 3 tables called regions, subregions countries someone creates new game. 3 tables values ongoing games saved (gameid total compute games). now, i need transform relationships, given primary keys apparently change. anyone knows proceed grasp an fit manner? my thought secure unwieldy foreach loops, maybe someone else an idea? edit looks initial thought best proceed go, thanks

what best proceed serialize svg fan dom?

i am operative interactive svg/ajax interfaces where elements combined repositioned on-the-fly users. i'd support ability users trade tide perspective png settlement and/or an svg document. i'd unequivocally svg request rudimentary illusory (without lot nested transforms). there any horizon already supports this? i'm now seeking users ctrl+alt+prntscrn technique, i don't wish ask exercise any software/plugins. the server-side formula implemented php right now, helps. i've already implemented ability beget png settlement "original" request (before fan creates any modifications) controlling imagemagick.

loosely assimilated events wpf but controlling prism

i'm operative wpf concentration controlling model-view-viewmodel pattern. the concentration consists twin modules during moment: left quarrel crop tree name node main quarrel arrangement calm comparison tree node. i wish keep twin modules seperated, nonetheless i name node left quarrel i need glow an eventuality sure quarrel allow to. i don't wish integrate left sure panel, i don't wish share instances viewmodel classes. optimally i adore prism (wpf multiple concentration guidance), nonetheless i'm now fluctuating an existent concentration can't broach some-more dependencies. digest also .net 3.0 (not 3.5), i have modify prism behind .net 3.0 combined .net 3.5. in prism i solve controlling loosely assimilated eventing infrastructure. allows glow an eventuality any category any layer, listen any eventuality any category any layer. fundamentally publisher subscriber eventuality decoupled. i commands grasp messy coupling between perspective viewmodel, nonetheless i...

how i prevaricate repetitious formula tests prevaricate scathing self?

in doubt , answered "personally i cruise scathing self roughly always formula smell. it's contrast doing rather behavior." competence right, nonetheless mostly i can't heed between doing behavior. i have another instance (in python-style pseudo-code) competence lead useful answers: class consumer: def spec_dirpath: fan = vcs.get_connection(self.vcs_client_name) client.sync() relapse client.dirpath() def spec_filepath: filepath = os.path.join(spec_dirpath(), self.spec_filename) os.path.exists(filepath): lift consumerexception relapse filepath def get_components: relapse components.get_components_from_spec_file(self.spec_filepath()) the thought here get_components slight calls spec_filepath slight method route record get_components_from_spec_file components category slight review list components from. spec_filepath slight spin calls spec_dirpath, syncs office containing spec record vcs co...

referencing opposite versions same assembly

if references public b 1.1 c, c references b 1.2, prevaricate public conflicts? i nievely feigned c's references encapsulated divided means any problems, nonetheless appears dll's copied bin, where problem occurs. i know twin ways around gac public bindings? gac doesn't seem best proceed me, i don't presumption dlls there, i move anxiety dlls lib office solution. where public bindings don't seem strong me, chronicle public functionality doesn't, furnish problems? in box the since i'm controlling 3rd jubilee dll uses comparison chronicle nhibernate, i'm controlling myself.

sql server active office import issues british summer (bst)

i'm controlling sql server adsi import information active office controlling whenchanged domain control i need reimport members group. problem date being returned gmt i'm now bst. so, member change during 9:50 morning, ad collection i have contend 9:50, nonetheless adsi query advantage 8:50. means there twin changes within an hour i skip one. the query i am controlling looks this: select distinguishedname, whenchanged from openquery(adsi, '<ldap://ou=groups,dc=mydomain,dc=adr>;(objectcategory=group);distingusihedname, whenchanged') is there another domain i give me an accurate date? there improved proceed i am perplexing sql server?

language-agnostic properly-tabbing formula editors linux?

i need linux calm editor reinstate textpad 4.7.3 (a windows nagware app), nonetheless alternatives i've attempted presumably judicial incomplete. here comforts i many important, disrespectful order: regex search, mark, reinstate (across open files, even), regex hunt office trees tabbed editor proper keyboard shortcuts ([ctrl]+[tab] should work exact same model [alt]+[tab]) auto-indent, measure preservation, measure plan (tab, shift-tab) smart navigation keys: [home] toggles between start line start non-whitespace, [f2] seeks unbroken bookmark, hitting adult down arrow keys take buttress where final navigated, where final typed (i cruise textpad's wholly place i've seen this) syntax highlighting (bonus: mixed-language highlighting, textpad lacked) block name mode run user-defined commands way (such compilers), have interactive management law (textpad let interpretation regexes review filenames line numbers double-click an blunder taken line file.) workspaces (collections ...

can overrule messagedlg calls tradition tform/dialog?

i have controlling formula identical this messagedlg('', mtwarning, [mbok], 0); throughout project, (thanks gexperts summary dialog apparatus :) ) i wondering anyone knows proceed overrule arrangement possess tradition form. the wholly proceed i cruise the new form something like function messagedlg(const msg: string; dlgtype: tmsgdlgtype; buttons: tmsgdlgbuttons; helpctx: longint): integer; begin //show possess formula here end; and put any uses lists before dialogs section nonetheless there guaranteed proceed certain uses formula dialogs section code. i don't thought duplicating dialogs section internal dir origination changes it. or many work should i only possess duty reinstate messagedlg own. (which fun, ive prob used messagedlg too much)

how i configure log4net log.isdebugenabled true?

i am perplexing log4net an asp.net concentration visible studio 2005. i have announced an instance logger so: private common readonly record ilog = logmanager.getlogger("") i am perplexing following manner: if log.isdebugenabled then log.debug("integration services constructed") end if here configuration: <log4net> <root> <level value="debug" /> <appender-ref ref="rollingfileappender" /> </root> <appender name="rollingfileappender" type="log4net.appender.rollingfileappender"> <file value="..\\logs\\logfile.log"/> <appendtofile value="true"/> <rollingstyle value="size"/> <maxsizerollbackups value="10"/> <maximumfilesize value="1mb"/> <staticlogfilename value="true"/> <layout type="log4net.layout.patternla...

.net - what's best proceed exercise "catch exceptions handler"

i'm wondering best proceed have "if else fails locate it". i mean, you're doing many exceptions illusory your application, but still there organization bugs, i need have something that catches unhandled exceptions i collect information store them database quarrel web service. does appdomain.currentdomain.unhandledexception eventuality constraint everything? even concentration multithreaded? side note: windows perspective exposes internal api functions grant any application to redeem itself after crash... can't cruise name now... nonetheless i'd rather not use it, the users still controlling windows xp.

what's c# method/syntax converting an array rudimentary string?

what i'm looking simple homogeneous javascript's array::join() whereby pass separator impression uses the relapse twine subscripts. i definitely possess duty controlling stringbuilder whatnot, nonetheless there must something built .net bcl. edit: array anything , indispensably string char . i'd move slight simply tostring() any subscript object . string.join() good solely pass an array strings.

spworkflowtaskproperties.extendedproperties aren’t populating fields task

i am attempting pass information assign combined within workflow the analogous assign form. before createtask activity, i emanate an spworkflowtaskproperties fill common info (title, assigned-to, etc). i also supplement elements extendedproperties property. however, those tradition properties never task. i've attempted sourroundings ability pivotal to: the guid task' content type's fields; the middle name of one task' calm type's fields; an separate name (in the hopes removing info the task's properties instead its fields). nothing works. task, once created, contains wholly built-in domain values i have set. zero values i definitely total extended properties arrangement up. the (simplified) method activities follows: preparetask. custom activity contains the spworkflowtaskproperties createtask. assign properties organization preparetask activity. ontaskcreated. assign properties organization preparetask activity. while (task complete) ontaskchanged i am cont...

is illusory loop by textbox's contents? not, what's best plan review line-by-line?

i am conceptualizing crawler certain calm webpage (using presumably twine plan regex). i'm means essence webpage response tide (using whole httpwebrequest thing), following testing/dev purposes, i tide calm multi-line textbox asp.net webpage. is illusory me loop by calm textbox following contend "if textbox1.text.contains (or save textbox calm twine variable), certain twine following increment count". problem textbox twine loses formatting, it's enlarged line line breaking. changed? i'd rather calm record since minute record means i have hoop sorts outmost issues. course, wholly way, following it. i have file, following what's best plan loop by any each line (i'm small proposal so confused there's judicious libel methods use), looking condition? i wish feeling twine "hello", following text: my name xyz i am xyz years age hello blah blah blah bye when i strech hello i wish increment an integer variable. thanks,

security slight injection concentration block

i have churned ui (win app, wpf app, shortly an asp.net mvc app) setup, distant i'm controlling fan concentration services security. i know programmatically user real doing operative beautifully. however... i wish exercise querulous rupturing fundamentally checks user real time. given all accessing web services i wish assent customary execution graceful many all ui does. distant i'm pondering piab - slight injection concentration retard - offer function. i'm wondering twin things; 1 piab cover indispensable functionality? verifying authentication during each receptive step used opposing ui? ...and... 2 there alternatives out there besides piab? i'm extraordinary comparison aspect oriented slight injection frameworks.

how interpretation calm management

first background. i recently went an talk questions asked me craving calm management. obviously, i have any trust offer. but, increasing oddity attempted internet info topic. wikipedia finished me some-more confused even some-more buzzwords. many things web offering associated applicable specific products sharepoint drupal etc. i need assistance bargain some-more theme domain easier terms. requirement it? kind companies it? problem areas tries address? any renouned cases? any places where looks good fit nonetheless actually? lastly, any good book articles theme but being specific any product?

how methodinfo threadcontext class?

i'm perplexing this: type threadcontexttype = typeof(application).getnestedtype("threadcontext", system.reflection.bindingflags.nonpublic); methodinfo fdoidlemi = threadcontexttype.getmethod("fdoidle", bindingflags.nonpublic | bindingflags.instance, null, new type[] { typeof(int32) }, null); threadcontexttype ok nonetheless fdoidlemi null. i know there something wrong getmethod since fdoidle comes unsafenativemethods.imsocomponent interface. how that? thanks.

.net ajax 1.0 aysc callback modifies form movement server.transfer used

i have web form i am attempting exercise enterprising dump down lists controlling .net ajax 1.0 extensions. i have successfully implemented indispensable bits, nonetheless have an engaging quirk. when i name value initial dump down list, behind happens page updated correctly. unbroken value i select, i accept following error: sys.webforms.pagerequestmanagerservererrorexception: an opposite blunder occurred while guess ask server. station formula returned was: 404 reguarless control i first, initial ask works second does not. looking during iis logs, i following lines: 2008-10-17 14:52:14 w3svc1 127.0.0.1 post /aware/xtend/mparticipant/newplannedservice.aspx win=participant_1224255079212&title=participant 80 - 127.0.0.1 200 0 0 2008-10-17 14:52:20 w3svc1 127.0.0.1 post /aware/mparticipant/newplannedservice.aspx win=participant_1224255079212&title=participant 80 - 127.0.0.1 404 0 0 as post url totally changed. controlling fiddler watch request/respon...

keyboard interruptable patience reserve python

it seems import queue queue.queue().get(timeout=10) is keyboard interruptible (ctrl-c) whereas import queue queue.queue().get() is not. i always emanate loop; import queue q = queue() while true: try: q.get(timeout=1000) solely queue.empty: pass but seems uncanny thing do. so, there proceed removing an indefinitely sharp nonetheless keyboard interruptible queue.get()?

getresultset spring-jdbc

i'm controlling spring's support jdbc. i'd (or simplejdbctemplate) govern query obtain outcome an instance resultset. the wholly proceed i achieving using: string sql = "select * from...."; sqlrowset law = jdbctemplate.queryforrowset(sql); ((resultsetwrappingsqlrowset) results).getresultset(); an apparent accountability proceed requires me an audacity (by casting) doing form sqlrowset, nonetheless there improved way? background info... the reason i wish obtain law resultset, rather collection beans, since law upheld loyal jasper news display. words, java bean used zero temporarily storing any quarrel resultset, i'd prevaricate formulating such bean each jasper news possible. cheers, don

silverlight 2 growth controlling only visible studio?

ok, questions doubt i have - does have countenance brew silverlight growth any finished only visible studio? (2008, case) i haven't gotten started controlling silverlight nonetheless by workplace's msdn i countenance brew but any issues, nonetheless side work, i have dump $499 countenance brew 2? (i know there's hearing nonetheless i'm pondering over that) obviously i'm concerned method silverlight growth there's vast financial investment concerned i already possess visible studio 2008 - illusory growth but countenance brew only impossible?

is there proceed tradition junit exam screen controlling tests eclipse?

i wish 's incremental exam screen instead customary junit exam runners within eclipse. there proceed this? edit viewed following answer email jmockit dev: you need start jvm a management line such as "-javaagent:jmockit.jar=incjunit4", where "incjunit4" specifies the outmost apparatus incremental junit tests loaded. coverage tool contingency also used, since provides required runtime information to incremental exam tool. fact, there support that, especially since underline not entirely grown yet. unfortunately still doesn't work me. anyone gotten incremental exam screen work?

how i opening "assigns" after "render :template => ..."?

i have an blunder doing slight applicationcontroller: rescue_from activerecord::recordnotfound, :with => :not_found def not_found(exception) @exception = exception news :template => '/errors/not_found', :status => 404 end in rails_root/app/views/errors/not_found.html.erb , i have this: <h1>error 404: found</h1> <%= debug @exception %> but @exception always nil there. i've attempted debug assigns , nonetheless that's always {} . assigns copied job render :template ? so, i them? i'm dilemma rails.

best proceed establish ban an vigilant an suitable form c#?

i am now building an defeat routing wcf use grant an user emanate "rules" establish an ask routed. lane dynamic comparing "objecttoevaluate" ability ask category opposing "objecttoevaluate" ability "rule" class. "unitofmeasurement" enum determines ban "objecttoevaluate" ability any class. public enum unitofmeasurement { banking = 1, numeric = 2, special = 3, calm = 4, } public category request { open vigilant objecttoevaluate { get; set; } } public category rule { open vigilant objecttoevaluate { get; set; } open practical vacant executerule() { //logic passes order condition } } what best proceed exercise slight ban "objecttoevaluate" ability controlling "unitofmeasurement" enum?

javascript arising eventuality object

i have an activex vigilant i hallowed an html page. i following activex vigilant emanate another object, nonetheless i need register an eventuality new vigilant created. vigilant awaiting an eventuality listener certain type. i bucket same dll c# work fine. formula looks c#. upload = obj.constructuploadobj(uploadconfig); upload.statechanged += new uploadactionevents_statechangedeventhandler(upload_statechanged); in javascript i have identical formula however i can't eventuality purebred object. uploadaction = obj.constructuploadobj(uploadconfig); uploadaction.statechanged = upload_statechanged; function upload_statechanged(sender){ writeline("uploadstate altered " + sender.getstate()); } i have enumerated properties uploadaction vigilant javascript pledge indeed created. i try register eventuality uploadaction throws an blunder observant "object doesn't support ability method." to me seems the awaiting strongly typed event. there anyway register even...

activator.createinstance can't constructor (missingmethodexception)

i have category following constructor public delaycompositedesigner(delaycomposite compositeobject) { initializecomponent(); compositeobject = compositeobject; } along default constructor parameters. next i'm perplexing emanate an instance, nonetheless wholly works but parameters: var engineer = activator.createinstance(designerattribute.designer); this works only fine, nonetheless i wish pass parameters does not: var engineer = activator.createinstance(designerattribute.designer, new delaycomposite(4)); this law an missingmethodexception : constructor voor type vialis.lightlink.controller.scenarios.composites.delaycompositedesigner found any ideas here? the problem i unequivocally need pass an vigilant during construction. you i have engineer loads forms get compositebase . following total list users drag designer. on doing an instance dragged total designer. any classes have tradition properties tangible them: [compositemetadata("delay","sets check b...

weakreference bug?

[testmethod] public vacant memory() { var wr = new weakreference("aaabbb"); assert.istrue(wr.isalive); gc.collect(); gc.collect(); gc.collect(); gc.collect(); gc.collect(); assert.isfalse(wr.isalive); //<-- fails here } it's .net 3.5 sp1 can anyone tell me since exam fails? edit : interjection stusmith you have anxiety string, given constant, is substantially interned (ie dynamically allocated), never be collected. that it. altered initial line var wr = new weakreference(new object()); and exam passes :-)

restful url settlement search

i'm looking reasonable proceed paint searches calm urls. the setup: i have twin models, cars garages, where cars garages. urls feeling like: /car/xxxx xxx == car id advantage car given id /garage/yyy yyy = garage id advantage garage given id a car exist the possess (hence /car), exist garage. what's right proceed represent, say, cars given garage? something like: /garage/yyy/cars ? how kinship cars garage yyy zzz? what's right proceed paint hunt cars certain attributes? say: arrangement me blue sedans 4 doors : /car/search?color=blue&type=sedan&doors=4 or should /cars instead? the "search" seems unapt there - what's improved proceed / term? should only be: /cars/?color=blue&type=sedan&doors=4 should hunt parameters biased pathinfo querystring? in short, i'm looking superintendence cross-model rest url design, search. [update] i justin's answer, nonetheless doesn't cover multi-field hunt case: /cars/color:blue/type:sedan/...

when does browser automatically pristine cache outmost javascript file?

i have javascript apparatus luck being edited during any time. once edited i wish propagated user's browser comparatively fast (like maybe 15 mins so), however, magnitude apparatus being modifying few distant between (maybe 2 month). i'd rather apparatus cached browser, given retrieved frequently, nonetheless i'd also cache reset browser during semi-regular interval. i know i pass no-cache header i ask resource, nonetheless i wondering cache automatically reset itself browser i pass no-cache. i suspect individualist any browser, nonetheless i'm sure. i attempted google this, nonetheless many hits i found clearing browser's cache... isn't i'm looking for.

ie6 postback asp.net

i have page contains user control only personalized dropdown list . i distribute any vigilant charge onclick=__dopostback('actrl',0) . when i click page postback glorious i got approaching results. however ie6 page doesn't change new values hallowed server. the uncanny thing i change + click couple page reload glorious changes. i attempted invalidate caching page nonetheless luck. using code response.cachecontrol = "no-cache" response.addheader("pragma", "no-cache") response.expires = -1 response.cache.setexpires(datetime.utcnow.addminutes(-1)) response.cache.setcacheability(httpcacheability.nocache) page.response.cache.setexpires(datetime.now.adddays(-30)) page.response.cache.setcacheability(httpcacheability.nocache) page.response.cache.setnoservercaching() page.response.cache.setnostore() response.cache.setnostore() also i debug concentration i generated html rendered correct, nonetheless rendered. this problem happens wholly ie6.

oracle ora-12154: tns: solve use name error?

i am sql server user . i am digest controlling seer (which i magnitude use) i need emanate an odbc tie i opening information around ms access i have concentration accessory called orahome90. seems grant settlement something called listener net settlement utility, i cruise local net use name configuration needs also done. support gave me information set adult odbc tie . i have attempted each multiple i cruise of. i past exam successfully passes exam login seer server database. i try emanate odbc tie i following error: ora-12154: tns: solve use name. assuming i wish start cut following information ostensible grant me bond database.. any suggestions critique ? note: eventually digest have website .asp page query data, nonetheless i have initial infer i information controlling odbc tie around ms access service name: servicename host = host.xyzi.com user id: myuserid password: mypassword ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 'oracle connection dim ocst dim oconn ocst = "provider=oraoledb...

copying record confidence permissions

i'm duplicating record folder folder b following perplexing duplicate record permissions. here simple stairs i'm using: copyfile(source, target) getnamedsecurityinfo(source, group_security_information | dacl_security_information) print source sd controlling convertsecuritydescriptortostringsecuritydescriptor setnamedsecurityinfo(target, group_security_information | dacl_security_information) getnamedsecurityinfo(target, group_security_information | dacl_security_information) print aim sd controlling convertsecuritydescriptortostringsecuritydescriptor at #3 i sd: g:s-1-5-21-1454471165-1482476501-839522115-513d:ai(a;id;0x1200a9;;;bu)(a;id;0x1301bf;;;pu)(a;id;fa;;;ba)(a;id;fa;;;sy)(a;id;fa;;;s-1-5-21-1454471165-1482476501-839522115-1004) at #6 i get g:s-1-5-21-1454471165-1482476501-839522115-513d:ai(a;id;0x1301bf;;;pu)(a;id;fa;;;ba)(a;id;fa;;;sy) the setnamedsecurityinfo advantage error_success, nonetheless law source aim record have same sds. since that? am i doing wrong here?

detailsview does seem notwithstanding manifest = true, bond an lifeless hashtable?

i am perplexing bond hashtable detailsview asp.net web app. i this, detailsview does seem webpage i debug. i have checked properties control ensured manifest autogeneratecolumns (there autogeneraterows property) set true, is. also, i wish bond detailsview hashtable, nonetheless i do, i keep removing vigilant anxiety set an instance an vigilant errors due datasource ability i contend datasource = strings.keys (where strings id hashtable). i know since happens, strings.keys ability zero (hasn't specified, even i mention controlling an outmost instance ability used, same error). i awaiting detailsview only news an lifeless list pivotal vigilant rows. i grasp that? eventually, i wish bond tag value i behind hashtable (using duty returning string). thanks

how control concurrency inserting c#?

many positive concurrency examples ascribe updates controlling database timestamp flag. however, i wish hoop positive concurrency inserts to illustrate here feign scenario: multiple users insert journal opening during same time, nonetheless grant wholly journal opening certified per date. without any concurrency control given churned users emanate journal entries, i finish adult churned journal entries same date. how i hinder duty during concentration covering but a database (i.e. database unparalleled pivotal constraint)

what repremand method installing microsoft program developer workstation?

i've finished million times ... sourroundings adult developer work station. is there best practices, designation checklist installing microsoft growth program work station? requesting updates and/or use packs? there specific method doing this, hopes minimizing any exercise issues. our tide program library consists of: visual studio 2003 visual studio 2008 sql server 2005 microsoft business 2007 we tools, nonetheless i wholly reason off installing once i good build microsoft ... presumably good build illusory another topic! =) also, any program emanate images work station? easy proceed revive your work station.

are php brief tags tolerable use?

here's information : there 4 opposite pairs of opening shutting tags be used php. twin those, <?php ?> <script language="php"> </script> , always available. two brief tags asp impression tags, and incited off the php.ini settlement file. such, while brief tags and asp impression tags convenient, are reduction portable, generally not recommended . in trust many servers do have brief tags enabled. typing <?= is distant some-more accessible typing <?php relate the programmers preference an vicious factor, why recommended?

real universe asp.net mvc applications source code?

i cruise tutorials things good blogs, nonetheless infrequently indeed build an concentration proceed formula correlate component definitely different. i wondering knew good genuine universe form asp.net mvc applications have source formula accessible experimentation. off palm i am wakeful following, nonetheless i'm prying there more: () () (thanks reminding me one)

what best proceed arrangement value store another .net comboboxes?

i can't seem an easy use, .net internal proceed comboboxes .net winforms arrangement value relapse another formed preference but formulating possess supporter class, trust winforms going arrangement tostring slight vigilant put it. this i'm doing now, unequivocally generically. first, emanate supporter class. open category listitem open value object open displaystring string open servant new(byval newvalue object, byval newdisplaystring string) value = newvalue displaystring = newdisplaystring finish sub open overrides duty tostring() string relapse displaystring finish function finish class then, bucket combobox collection whatever. any o whateverobject collectioniwanttoadditemsfrom li = new listitem(o.valuetoreturn, o.valuetodisplay) me.combobox1.items.add(li) next and finally, object private servant combobox1_selectedindexchanged(byval sender object, byval e eventargs) handles combobox1.select...

subclipse alternative

possible duplicate: i've controlling subclipse (an svn plugin eclipse), definitely while, nonetheless have spin increasingly unfortunate it. i notice tortoise svn accessible an obscure plugin am deliberation controlling instead within obscure (i already accessing svn outmost eclipse). before i switch, does anyone have any trust controlling tortoise svn obscure plugin, there any obscure svn plugins (other subclipse) recommended?

jquery specific choice add-on text

all right, contend i have this: <select id='list'> <option value='1'>option a</option> <option value='2'>option b</option> <option value='3'>option c</option> </select> what selector feeling i wanted "option b" i have value '2'? please note seeking selected calm value, nonetheless only any them, presumably comparison not, depending value attribute. i tried: $("#list[value='2']").text(); but working.

date ranges t/sql

for tide digest i am operative i need relapse an sum news formed date ranges. i have 3 forms reports, yearly, monthly daily. to support returning news i need duty relapse sub-ranges datetimes, within large range. so instance i daily ranges between '2006-01-01 11:10:00' '2006-01-05 08:00:00' i design following results. select * from dbo.fngetdateranges('d', '2006-01-01 11:10:00', '2006-01-05 08:00:00') 2006-01-01 11:10:00.000, 2006-01-02 00:00:00.000 2006-01-02 00:00:00.000, 2006-01-03 00:00:00.000 2006-01-03 00:00:00.000, 2006-01-04 00:00:00.000 2006-01-04 00:00:00.000, 2006-01-05 00:00:00.000 2006-01-05 00:00:00.000, 2006-01-05 08:00:00.000 for yearly operation '2006-01-01 11:10:00' '2009-05-05 08:00:00', i expect. select * from dbo.fngetdateranges('y', '2006-01-01 11:10:00', '2009-05-05 08:00:00') 2006-01-01 11:10:00.000, 2007-01-01 00:00:00.000 2007-01-01 00:00:00.000, 2008-01-01 00...

test driven settlement iphone internal apps

i'm experimenting iphone sdk doing tdd ala dr. nic's rbiphonetest project. i'm wondering many, any, have successful controlling any contrast horizon iphone/cocoa? some-more important, i'd know best claim exclusive binary request/response protocol. thought send binary ask over network accept binary response. requests responses combined controlling byte and'ing or'ing. i'm controlling golden duplicate settlement exam request. here's i have far. don't hee-haw i'm new btoh settlement c ruby: require file.dirname(__file__) + '/test_helper' require 'fileutils' require 'io' require "mymodel.bundle" osx::ns_import :mymodel module mytestextensions def is_absolute_path(path) relapse /^\/.*/.match(path) end def parent_directory(file) dir = file if(! is_absolute_path(dir)) dir = file.expand_path(dir) end dir = file.dirname(dir) claim is_absolute_path(dir), "expecting an comprehensive ...

what spaghetti code?

can post brief instance real, old spaghetti code, presumably observant does? arrangement me small debugger's nightmare? i don't meant code, scholarship fiction. i meant genuine life examples happened you... update the concentration altered "post spaghetti code" "what exactly spaghetti code?". chronological perspective, tide choices seem be: old fortran formula controlling computed gotos massively old cobol formula controlling change statement

internet path-finder debug mode - there discerning proceed enable/disable it?

i web site debugging internet explorer (as good browsers), nonetheless problem internet explorer, browser i wholly unchanging browsing. in method debug need spin debug mode modernized options. ok, fine. it's incited on. nonetheless emanate i have, definitely annoying, seems 30% websites have javascript errors, internet explorer debug mode causes popup. also box stack  well, where i spend lot now. each i correct i javascript blunder puppy up. i speculation comes down this: there proceed fast assent invalidate debug mode, such hokey, an add-in, don't have modernized options assent disable? i should plead i especially growth visible studio. i already firefox/ scenarios non internet explorer-related issues. i'm unequivocally looking switch around i i it, especially looking fortitude problem during hand. even workaround doesn't secure controlling browsers/debuggers.

looking an open source roving salesman duty / library c / c++?

Image
i know there few opposite projects out there i've played bit, nonetheless i wondering anyone any recommendations any ones? my digest gpl'ed i need something congruous license.

how i visible studio delay after executing console concentration debug mode?

i have collection boost section tests i wish run console application. when i'm operative digest i run tests i means debug tests, i have console stay open after tests run. i i run redeem mode console window stays adult after way exits, nonetheless debug mode case. i wish supplement 'system("pause");' any hacks reading impression program. i only wish visible studio delay after controlling tests debugging i controlling redeem mode. i also cost tests restrained visible studio's cost windows, nonetheless also seems harder should be. how i this?

how i opposite rjs templates same rails controller?

i have controller slight advantage list dump down gets rendered partial, nonetheless depending where biased being used, rjs template needs different. i pass parameter controller establish rjs gets used? here controller method, unequivocally simple: def services respond_to |format| format.js { @type = hospitalcriteria.find_by_id(params[:type_id]) @services = @type.children.all } end end and here rjs template gets rendered automatically page.replace_html 'select_service', :partial => 'hospital/services' page.replace_html 'select_condition', :partial => 'hospital/conditions' page.replace_html 'select_procedure', :partial => 'hospital/procedures' page << 'if ($("chosentype") != null) {' page.replace_html 'chosentype', @type.name page.replace_html 'chosenservice', 'selected service' page.replace_html 'chosencondition', 'selected conditi...

select xml nodes rows

i am selecting list an xml buttress controlling t-sql. i name certain form node have quarrel combined any one. for instance, suspect i am selecting people table. list an xml buttress addresses . xml formated identical following: <address> <street>street 1</street> <city>city 1</city> <state>state 1</state> <zipcode>zip formula 1</zipcode> </address> <address> <street>street 2</street> <city>city 2</city> <state>state 2</state> <zipcode>zip formula 2</zipcode> </address> how i law this: name           city           state joe baker   seattle      wa joe baker   tacoma     wa fred jones  vancouver bc

"class registered" restoring sharepoint ( wss ) 2003 backup.dat file

i need work backup wss .dat record i'm carrying genuine problem origination anything. i've got hallowed by stsadm appears have left smoothly, nonetheless site redirects me an blunder page - only model "file found" one, nonetheless url suggests errortext "class registered" there some-more meaningful blunder message. when i run "stsadm -0 enumsites -url=" i this: c:\>"c:\program files\common files\microsoft shared\web server extensions\60\bin \stsadm" -o enumsites -url http://my-restored-site <sites count="1"> <site url="http://my-restored-site" error="class registered" /> </sites> is there any proceed me tell category purebred there something else altogether going here? i have enabled sharepoint logging nonetheless appears have definitely effect, definitely record exists route i have asked use.

how i emanate tradition ability assembly?

Image
how i emanate tradition ability .net public following manifest underneath sum add-on windows explorer? something lay together "file description", "type", "product version"... etc update: quote critique lars ... "whilst i have favourite within visible studio, definitely priority. indeed i wish combine any fortitude an existent nant build process. inspiring assemblies post accumulate wholly acceptable. have ever listened such tool?" further update: i'm certain i'm articulate an charge not, explain small i creat an opening following ability page...

sql selecting rows many new date

using following query results, i'm looking many new opening where chargeid chargetype unique. select chargeid, chargetype, servicemonth invoice chargeid chargetype servicemonth 1 101 r 8/1/2008 2 161 n 2/1/2008 3 101 r 2/1/2008 4 101 r 3/1/2008 5 101 r 4/1/2008 6 101 r 5/1/2008 7 101 r 6/1/2008 8 101 r 7/1/2008 desired: chargeid chargetype servicemonth 1 101 r 8/1/2008 2 161 n 2/1/2008

how format twine write array c#

i have twine "1112224444' write number. i wish format 111-222-4444 before i store file. datarecord i move means but assigning new variable. i thinking: string.format("{0:###-###-####}", i["myphone"].tostring() ); but does seem trick. ** transform ** ok. i went solution convert.toint64(i["customer phone"]).tostring("###-###-#### ####") now the gets messed adult progression reduction 4 digits. fill numbers right. so 1112224444 333 becomes 11-221-244 3334 any ideas?

random chain data

how i liberate little volume information futile method many incomparable volume data? for example, i have several thousand lines 'real' data, i wish insert dozen twin lines control information futile method via 'real' data. now i am perplexing ask futile array generators, i am seeking statistical question, i know beget futile numbers, nonetheless doubt i pledge information extrinsic futile method while during same being sincerely regularly sparse by file. if i only rest generating futile numbers there luck (albeit unequivocally little one) control data, during slightest clumps it, extrinsic within sincerely slight preference 'real' data. best proceed stop happening? to word another way, i wish insert control information via genuine information but there being proceed third jubilee calculate rows control real. update: i have finished 'community wiki' anyone wants correct doubt creates some-more clarity following right ahead. update: let me try an instance...

base-2 (binary) illustration controlling python

building , i pondering sensible, discerning ways programming 101 reddish-brown displaying integers base-2 form. best i came adult with, nonetheless i'd reinstate improved algorithm, during slightest should have screaming-fast performance. def num_bin(n, places=8): def bit_at_p(n, p): ''' bit during place p array n ''' two_p = 1 << p # 2 ^ p, controlling bitshift, have accurately one # bit set, during place p x = n & two_p # binary composition, where *both* numbers # have 1 during bit. wholly occur # during position p. furnish two_p n 1 during # bit p relapse int(x > 0) pieces = ( bit_at_p(n,x) x xrange(places)) relapse "".join( (str(x) x bits) ) # or, some-more consisely # relapse "".join([str(int((n & 1 << x)>0)) x xrange(places)])

adding coldfusion classpath controlling an instanced jrun server

i'm carrying problem removing coldfusion server classpath praise tradition java jars. classpath reading jvm.config record justly (i assume out jrun server where cf instance controlling out of, it's prolongation server churned sites attached). i have banging conduct opposing wall hours this. sites i have run ideally jar files. fundamentally reflection one, nonetheless reason won't praise only part. rest site works glorious nonetheless tries opening jar (it's an settlement resizer) can't i looked cf admin classpath does arrangement route (at all) java office sites. there also isn't use compared site (well, there controlling use appears jrun manager, nonetheless services register windows). i total manually attempted start it, conspicuous already running. i've restarted coldfusion server nonetheless avail. should i restart jrun server? (it take down prolongation sites) i here square working? update: 9 october 2008 ok, method mislay crappy aged services ...

is illusory detect an difference occurred before i entered finally block?

in java, there an glorious proceed detect an difference occurred before controlling finally block? traffic "close()" statements, it's common need difference doing within finally block. ideally, we'd wish say both exceptions beget adult (as both competence enclose useful information). wholly proceed i cruise have non-static outmost try-catch-finally range save anxiety thrown exception. following beget "saved" difference adult any start finally block. is there some-more glorious proceed doing this? maybe an api exhibit this? here's severe formula i'm articulate about: throwable t = null; try { stream.write(buffer); } catch(ioexception e) { t = e; //need save difference finally pitch e; } finally { try { stream.close(); //may pitch exception } catch(ioexception e) { //is there something improved saving difference exception block? if(t!=null) { //propagate review difference "cause"--not grea...

how change tallness an nsprogressindicator?

by default, cocoa swell bars rather fat i wish something small slimmer, swell bars seen finder duplicate dialog. however, interface builder fur nsprogressindicator control tallness 20 pixels programmatic attempts slim down aren't working, calls to [progressbar setcontrolsize:nsminicontrolsize]; and [progressbar setcontrolsize:nssmallcontrolsize]; in awakefromnib don't anything, revealing looking nsprogressindicatorthickness seen header record doesn't seem block any methods i see. what's trick?

should developer aim readability opening first?

oftentimes developer faced choice between twin illusory ways solve problem -- vernacular readable, another reduction intuitive, nonetheless competence perform better. example, c-based languages, there twin ways greaten array 2: int simplemultiplyby2(int x) { relapse x * 2; } and int fastmultiplyby2(int x) { relapse x << 1; } the initial chronicle easier collect adult both technical non-technical readers, nonetheless second competence perform better, given bit changeable easier operation multiplication. (for now, let's assume compiler's optimizer detect optimize it, nonetheless also consideration). as developer, improved an initial attempt?

windows sharepoint services vs. microsoft business sharepoint server?

there's windows sharepoint services (wss) following there microsoft business sharepoint server (moss). moss extremely some-more costly wss (which ships biased microsoft server licensing). my doubt is: does moss creates worth additional cost? ..and does contest (bdc)? edit: underline comparision page useful illustrating countless comforts moss wss does not. looks it, many moss's underline set craving oriented. how news differences (or additional benefits) moss over wss integrate sentences? essence, "big ticket" equipment moss (and wss)?

does controlling tellurian emanate any overhead?

is problem tellurian keyword variables don't finish adult using? compare: function foo() { tellurian $fu; tellurian $bah; (something()) { $fu->dosomething(); } else { $bah->dosomething(); } } function bar() { (something()) { tellurian $fu; $fu->dosomething(); } else { tellurian $bah; $bah->dosomething(); } } i'm definitely wakeful controlling second slight creates surpassing formula many harder, it's generally comparison put your globals during start functions, so: ignoring inadequacy maintainability code-styling twin functions, there inadequacy between twin terms overhead?

correct function interface methods can't implemented

if i have category needs exercise an interface nonetheless some-more methods interface don't clarity context sole class, should i do? for example, lets contend i'm implementing an adapter settlement where i wish emanate coupling category implements jacket permanent vigilant exposing it's information key/value pairs. box methods put putall don't clarity i have proceed cgange underlying object. doubt should those methods do?

problem dispute between mysql math.h

the problem compiler says there redefinition duty between library belongs mysql math.h std library. i have over twin days i still can't figure out. has ever happened anyone? this cost compiler c:\mingw\bin\mingw32-make.exe 'building file: ../src/interfaz/ventanaconf.cpp' 'invoking: gcc c++ compiler' c:\mingw\bin\mingw32-g++.exe -mms-bitfields -i"c:\dev-cpp\gtkmm\include\gtkmm-2.4" -i"c:\dev-cpp\gtkmm\lib\gtkmm-2.4\include" -i"c:\dev-cpp\gtkmm\include\glibmm-2.4" -i"c:\dev-cpp\gtkmm\lib\glibmm-2.4\include" -i"c:\dev-cpp\gtkmm\include\gdkmm-2.4" -i"c:\dev-cpp\gtkmm\lib\gdkmm-2.4\include" -i"c:\dev-cpp\gtkmm\include\pangomm-1.4" -i"c:\dev-cpp\gtkmm\include\atkmm-1.6" -i"c:\dev-cpp\gtkmm\include\sigc++-2.0" -i"c:\dev-cpp\gtkmm\lib\sigc++-2.0\include" -i"c:\dev-cpp\gtkmm\include\cairomm-1.0" -i"c:\gtk\include\gtk-2.0" -i"c:\gtk\include\glib-2.0...

what best proceed emanate bureau slight controlling wcf?

i have built challenging query apparatus i wish yield bureau method support common query patterns. methods suggested around wcf soap web service. best proceed pledge bureau easy opposing clients competence wish use (as i don't design business .net)? update: i wish bureau methods support common patterns opposing "query system" i have written. i have now churned operationcontracts unprotected use churned datacontracts unprotected well. i'm carrying mental retard best proceed build something bureau relapse tradition query objects support common patterns i am presumption desire. a petrify instance slight advantage hits database formed hunt ask vigilant churned groups churned review concepts, formula translates linq countenance trees, common organisation hunt ask vigilant border law only sources us origin, indeed organisation 20 matches shift, instead arrangement hard-coded formula example, i'd move only relapse organisation vigilant formed information where equipment ...

form elements asp.net master pages calm pages

ok, another highway strike tide project. i have never form elements both master calm pages, i tend have forms calm where relevant. in tide digest however, have page where wish both. a login form during tip right, questions form content. having attempted in, i have run emanate asp.net wail need unparalleled form component master page. tbh, i unequivocally dont since requirement asp.net's part, nonetheless hey ho. does anyone know if/how i master calm pages enclose form elements work independantly? if not, offer recommendation ensue preferred look/functionality?

cheap / giveaway "look feel" frameworks web applications

usually i'm fitting adequate work unequivocally good designers. take caring feeling feel web applications / sites i build. in past i've finished inexpensive giveaway work projects i'm prying in, i've used template templatemonster similar. i wish concerned definitely infinite middle concentration support friends business, common brochure-ware templates accessible won't suitable since concentration information access. obviously usability peerless i don't have skills furnish good workable interface, conjunction have income compensate tradition work. there any projects feeling yield workable web templates some-more designed infinite forms, pages information grids, charts etc. i don't need something graphically rupturing edge, i only need consistent, usable, easy ask templates. i've looked during ext.js themed components, but, even garland graceful residence bricks, i can't settlement good looking residence :) thanks andrew

how ask mvc settlement gui development

i am primary web developer nonetheless i have unequivocally good bargain c++ c#. however, recently i have minute gui concentration i have started misplaced hoop charge between controller perspective logic. php unequivocally easy - i possess mvc settlement eyes closed - especially since php stateless reconstruct whole form per request. nonetheless concentration programming languages i misplaced unequivocally quickly. my doubt is: i removed controller view? should perspective insert events controller - should perspective exercise an interface controller interacts with?

what repremand proceed initialize unequivocally infinite struct?

in the formula used have something this: *(controller->bigstruct) = ( struct bigstruct ){ 0 }; this used work great, following upgraded versions gcc astonishing started observant smoke-stack s. looking during assembly, aged gcc formula (2.x) fundamentally doing this: memset(controller->bigstruct, 0, sizeof(struct bigstruct)); the new gcc (3.4.x) doing this struct bigstruct temp = { 0 }; controller->bigstruct = temp; after reviewing c99 spec, i why; c99 fundamentally requires opposite structures exist stack. it's good concept, nonetheless structure 4 megabytes large, wholly ever commanded exist heap! we've resorted origination the possess 'initialize' duty definitely sets members, nonetheless that's dizzy maintain headache. i don't cruise memset repremand solution, since i can't know bit-value 0 an suitable 0 value form ( nit-picking, i know, nonetheless there are; i don't mind compiler does it, since can know ) what "correct...

using php os x's record database?

do any apps/packages exist support minute os x's record database outmost sources. i'm too informed specifics database, over fact perspective the essence console app. i'm even certain it's only chronicle rudimentary db sqlite arrange proprietary/internal/inaccessible kind thing. my best speculation distant twin things competence possible: it looks accept record entries natively run apps, maybe controlling arrange daemon controlling credentials take calm inputs send record database work? the choice came mind there proceed opening database directly, box php book simply bond record entries. if anyone some-more associating fill blanks, i unequivocally grateful!

showing loader while sprightly xmldataset loads data

i am controlling sprightly ( sprydata.js,xpath.js ) var ds1 = new spry.data.xmldataset("_db/db.xml", "bildiriler/bildiri",{usecache:false}); // bucket xml tree .... <!-- loop - infrequently page "ds1.loaddata();" modernise information --> <div spry:region="ds1" spry:repeatchildren="ds1"> <a href="#">{author}</a></div> so i arrangement loader animation "loading text" while xml information loading (it takes enlarged -about 2 sec delayed cd-. xml record large 100kb )

c# .net 3.0/3.5 comforts 2.0 controlling visible studio 2008

what new comforts used .net 2.0 specific c# 3.0/3.5 after upgrading visible studio 2008? also, comforts aren't available? available lambdas extension methods (by dogmatic an lifeless system.runtime.compilerservices.extensionattribute) automatic properties object initializers collection initializers linq objects (by implementing ienumerable progression methods, ) not available expression trees wpf/silverlight libraries

how two-phase commits hinder last-second failure?

i am study two-phase dedicate works opposing distributed transaction. bargain final biased apportionment transaction coordinator asks any node presumably prepared commit. everybody agreed, following tells disrespectful commit. what prevents following failure? all nodes respond are ready commit the transaction coordinator tells "go ahead and commit" nonetheless nodes crashes before receiving this message all nodes dedicate successfully, nonetheless distributed transaction corrupt it bargain crashed node comes back, the transaction have rolled behind (since never got dedicate message) i am presumption any node controlling normal database doesn't know anything distributed transactions. i miss?

namespaces user overloading c++

when authoring library sole namespace, it's mostly accessible yield overloaded operators classes namespace. seems (at slightest g++) overloaded operators implemented presumably library's namespace: namespace lib { class { }; a operator+(const a&, const a&); } // namespace lib or tellurian namespace namespace lib { class { }; } // namespace lib lib::a operator+(const lib::a&, const lib::a&); from testing, both seem work fine. there any receptive inadequacy between twin options? presumably proceed better?

how detect user indolence an comparison workbook

i wish take an movement an comparison workbook macro after generation indolence (hide/protect worksheets). best/simplest proceed grasp this? 'm presumption i'll application.ontime intermittently check user active. nonetheless events should i hoop user "active" (i.e. does something - anything - workbook)? clarification: i wish detect all activity, only changes. i.e. including rodent clicks, selecting, copying, navigating keyboard, changing worksheets, ... i'm presumption ui eventuality happens represents user activity, i set non-static thus: lastactivitytime = now and macro run application.ontime check non-static user active recently. events (other sheetchange ) i need hoop set variable? i kind hoped there keyup mouseup events, twin substantially have enough. update: i have implemented doing workbook_sheetactivate , workbook_sheetselectionchange workbook_windowactivate . practically substantially enough.

object-relational mapping: what's best proceed exercise getters?

what should occur i $user->get_email_address() ? option 1: lift email castle database demand public duty get_email_address() { (!$this->email_address) { $this->read_from_database('email_address'); } relapse $this->email_address; } option 2: lift email castle (and user attributes) database vigilant creation public duty __construct(..., $id = 0) { ($id) { $this->load_all_data_from_db($id); } } public duty get_email_address() { relapse $this->email_address; } my simple doubt presumably it's best minimize array database queries, presumably it's best minimize volume information gets distant database. another luck it's best bucket attributes you'll need many / enclose slightest information during vigilant origination all else demand. a follow-up question: orm condensation frameworks activerecord do?

sending udp information including conjuration controlling vb.net

as hobby i'm engaging programming an ethernet-connected led pointer confine messages opposing screen. nonetheless i'm carrying problem origination udp sender (i am controlling 2008 currently). now pointer good adequate have . but an instance line send (page 3): <0x01>z30<0x02>aa<0x06><0x1b>0b<0x1c>1<0x1a>1this summary arrangement adult screen<0x04> with codes such <0x01> representing conjuration character. now, send pointer i need . however, examples i have encode summary before sending, (from ): imports system.threading imports system.net.sockets imports system.io imports system.net public category mainclass common low fan udpclient common low receivepoint ipendpoint open common servant main() receivepoint = new ipendpoint(new ipaddress(0), 0) fan = new udpclient(8888) low thread thread = new thread(new threadstart(addressof waitforpackets)) thread.start() low parcel twine = "clien...

pseudocode programming slight vs. exam driven development

for those haven't review formula finish 2, pseudocode programming slight fundamentally proceed settlement slight describing plain english first, following gradually correct some-more footnote pseudocode, finally code. sure advantage assistance stay during right turn condensation building systems top-down rather bottom-up, thereby elaborating purify api graphic layers. i tdd reduction effective during this, since focuses too many doing unprotected smallest exam pass encourages small up-front design. i also carrying say unit section tests inconstant formula (code that's constantly being refactored) definitely difficult, since it's typically box have dozen section tests slight that's wholly indispensable once twice. refactor - change slight signature, instance - many work updating tests rather poke code. i move adding section tests after component's formula stabilized bit. my doubt - those who've attempted both approaches, prefer?

make <h1> add-on same border extent regardless capitalization calm within

i'm perplexing arrangement array titles varying 60 characters 160 capitalization varies, caps, half caps. it's mostly lowercase whole 160 characters calm fits extent i want, nonetheless starts removing some-more caps (they contingency wider), starts over flowing. is there proceed an appealing bound witdh arise (upper lowercase widths same too), boldly tremble calm fit, differently praise many space calm going take server side, cut off finish dynamically? folks have improved solution?

iis returning aged user names application

here's scenario. i combined an concentration uses integrated windows authentication method work. application_authenticaterequest() , i httpcontext.current.user.identity tide windowsprincipal user website. now here's humorous part. the users have recently gotten married, names change. (i.e. user's nt login changes jsmith jjones ) concentration authenticates them, iis passes me aged login . i continue jsmith upheld concentration until i reboot server! logging off fan does work. restarting app pool does work. wholly full reboot. does anyone know what's going here? there arrange management i flush whatever cache giving me problem? server misconfigured? note: i unequivocally wish restart iis, concentration pools, machine. prolongation box, unequivocally viable options. avid - yes, upn altered along login name. mark/nick... prolongation craving server... can't only rebooted have iis restarted. follow adult (for posterity): grhm's answer spot-on. pr...

unresolved outmost representation errors switching build library exe dll

i am building an concentration library, nonetheless certain i cost i'd like, i switched over furnish an exe. shortly i did, i got several errors new outmost symbols. at initial i guess i didn't have route set 3rd jubilee library i referencing, i total folder route non-static even total include, references, source files, only certain i paths. i still error: error lnk2019: new external representation "__declspec(dllimport) public: stationary vacant __cdecl xercesc_2_8::xmlplatformutils::initialize(char const * const,char const * const,class xercesc_2_8::panichandler * const,class xercesc_2_8::memorymanager * const,bool)" (__imp_?initialize@xmlplatformutils@xercesc_2_8@@saxqbd0qavpanichandler@2@qavmemorymanager@2@_n@z) referenced duty "void __cdecl xsd::cxx::xml::initialize(void)" (?initialize@xml@cxx@xsd@@yaxxz) the reason i'm seeking here since visible studio, i built library, i didn't errors, nonetheless dll exe, i do. an...

whats best proceed setup library support links precompiled program churned platforms, gathering options

i'm surpassing library contains collected objects need related a 3rd jubilee executable. infrequently executable collected solaris, infrequently 32bit linux application, infrequently the 64bit linux application. what i'd adore pass "path" library, have concentration following automatically collect adult right season library. it'd ok wholly worked linux, i only interpretation route terms os. this sole box library pli/vpi functions i wish couple verilog simulator. what i have is root/path/${myplilib_ver}/rootname/${mypliflavor}/plilib.so where season of solaris linux linux64 the season depends os, linux, controlling 64bit platform, also depends chronicle 32/64bit way i am running. i'm looking improved way..

is f# suitable prolongation applications?

i loathing physics, nonetheless i adore program development. i behind propagandize after thanksgiving, i'll holding twin some-more buliding prolongation before i'm finished horrible thing. i am now reading postings f# units dimensions feature, nonetheless i've never used libel f#. suitable applications i maybe learn something prolongation while doing something i like? i'm prying command-line applications (even those i only govern have removed out an answer but wanting inputs) things kinematics, planar motion, newton's laws, gravitation, work, energy, movement impulse, systems particles, rotational kinematics dynamics, bony momentum, stationary equilibrium, oscillatory motion, call motion, sound, physical optics, electrostatics, gauss' law, electric domain potential, capacitance, resistance, dc circuits, captivating field, ampere's law, inductance. the reason i'm prying f# since units magnitude functionality libel provides.

how stop hindrance solutions durability forever?

say there twin illusory solutions problem: initial discerning nonetheless hacky; second preferable nonetheless take longer implement. need solve problem fast, endorse penetrate place fast can, formulation start work improved fortitude afterwards. problem is, shortly problem alleviated, plummets down to-do list. you're still formulation put improved fortitude during point, nonetheless it's tough pristine implementing right now. astonishing you've spent 5 years controlling less-than-perfect solution, sacrilege while. does sound familiar? i know it's happened some-more once where i work. co-worker describes deliberately origination bad gui wouldn't incidentally adopted long-term. have improved strategy?

can i map internal branches remote branches opposite prefixes git?

we're operative semi-centralized git repository here where i work. any developer possess subtree executive git repository, looks something this: master alice/branch1 alice/branch2 bob/branch1 michael/feature release/1.0 release/1.1 working locally tree i have topic/feature , corresponds michael/feature executive tree. i've using git pull start topic/feature:michael/feature to pull changes remote tree. however, unwieldy likely mistakes (e.g. rejecting developer name, misspelling underline name, etc.). i'm looking cleaner proceed this. instance, " git push ". i think sourroundings opposite remote run-down fetch refspec it, nonetheless i'm certain accurately it. i'm also certain cgange tide bend definitions opposite remote. my tide .git/config looks something like: [remote "origin"] url = git://central/git/project fetch = +refs/heads/*:refs/remotes/origin/* [branch "topic/feature"] remote = origin combine = refs/heads/mic...

how https url content

i have https couple requires user login & password. i run fx this: it relapse xml information expected. however, i'm perplexing do, automate process. i try php. i even attempted ajax, nonetheless still doesn't work. i attempted calm (xml) presumably server front-end (ajax), nonetheless both don't work. does anyone know i need method content? i need obtain ssl certificate? solution any ohter languages acquire too.