Posts

Showing posts from March, 2014

how globally map altgr pivotal alt key?

i wish altgr pivotal act accurately left alt . usually, i kind things , nonetheless i'm open opposite solutions. i attempted this: lcontrol & ralt::alt and autohotkey displayed blunder alt being famous action. then i attempted following code: lcontrol & ralt:: send {alt down} keywait lctrl keywait ralt send {alt up} return which arrange works - i'm means altgr pivotal accessing hotkeys, nonetheless still behaves differently: when i press redeem left alt , initial menu vigilant tide way receives focus. pressing releasing altgr book does nothing. any ideas? even illusory autohotkey? (remapping right ctrl shift left siblings square cake) note: i attempted switching alt lalt formula finished difference.

how i hinder datagridview pity rows?

i've finished tradition datagridviewcell displays tradition control instead cell; nonetheless datagridview uses common rows, following tradition control instance also shared, uncanny intrepidity (for example, hovering over buttons highlights buttons). also, i can't opening datagridviewcell.selected property, i don't know colour paint row. how i hinder datagridview pity rows? i know i supplement rows controlling rows.add(object[]) override, nonetheless following initial quarrel still common (i.e. index -1) problem colours still applies. i need means tell datagridview share quarrel containing tradition cell. finished attributes? finished during all?

how opening record slightest volume locking

in concentration (c# 3.5) there several processes accessing unparalleled xml record (read write) unequivocally frequently. formula accessing record placed an public referenced definitely integrate applications. instance windows use competence instanciate myfilereaderwriter category (locatied formerly mentioned assembly) read/write methods class. i'm looking best/fastest proceed review create/append record slightest volume locking. caching files information flushing new calm intermittently an option, given information critical. i forgot plead i now xdocument (linq2xml infrastructure) reading/writing calm file.

is an ssh shelter by citrix fan possible?

i know quite programmer question, hand, i unequivocally means rudimentary svn up prolongation servers, save us lot hassle. or prolongation servers within corporate network, opening wholly certified by gateway server. opening tangible servers around remote desktop. since maintain antipathetic setup sftp server the files prolongation server (where ftp server alwys resets final run-down date), difficult establish files have changed. so illusory setup ssh shelter tangible server by citrix connection, palliate whole transform process. (on offer choice i cruise concert pull the updates sftp server following lift updates there, nonetheless unfortunately there operative svn plugin concert accessible [on windows])

how secure authentication model?

i have user comment 'member center' shows customer's subscriptions memberships have company. during . i have another site tangible member site. during . ( any site opposite domain, nonetheless same dedicated server. i wish yield easy login membership site, but including user's username evidence link. so i've adult this: when user clicks 'login' couple membership, i emanate an md5 crush userid + unix timestamp, supplement database list along userid timestamp. i following route hash). the login book example2 takes crush looks adult same table. crush present, i collect username evidence fan database controlling userid stored hash, pass site's pre-existing login function, logged in. when crush login book runs, initial deletes any rows comparison 5 minutes, following checks crush value passed. finds hash, logs user in, following deletes crush used table. means there never any hashes list comparison 5 minutes. wholly there (should) any hashes left over list u...

question an eventuality perculiarity tabcontrol

i have small explanation next rare problem. using system; using system.windows.forms; namespace windowsapplication1 { open category testform : form { private system.windows.forms.tabcontrol tabcontrol1; private system.windows.forms.tabpage tabpage1; private system.windows.forms.tabpage tabpage2; private system.windows.forms.textbox textbox1; open testform() { //controls this.tabcontrol1 = new system.windows.forms.tabcontrol(); this.tabpage1 = new system.windows.forms.tabpage(); this.tabpage2 = new system.windows.forms.tabpage(); this.textbox1 = new system.windows.forms.textbox(); // tabcontrol1 this.tabcontrol1.anchor = ((system.windows.forms.anchorstyles)((((system.windows.forms.anchorstyles.top | system.windows.forms.anchorstyles.bottom) | system.windows.forms.anchorstyles.left) | system.windows.for...

select box onclick - rails

i have rails concentration erb code, i name box. i reload page flitting arrange parameter. controller already handles it, nonetheless i don't know reload page comparison value name box. here code: <% @options = {:latest => 'lastest' , :alphabetical => 'alphabetical', :pricelow => 'price-low', :pricehigh =>'pricehigh'} %> <%= select_tag 'sort[]', options_for_select(@options), :include_blank => true,:onchange => "location.reload('location?sort='+this.value)"%>

how automate javascript files concentration yui compressor?

does accept wildcard parameters, i can't run this: c:>java -jar yuicompressor.jar *.js but i have over 500 files rather have emanate collection record this: c:>java -jar yuicompressor.jar file1.js -o deploy\file1.js c:>java -jar yuicompressor.jar file2.js -o deploy\file2.js ... c:>java -jar yuicompressor.jar file500.js -o deploy\file500.js and impetus record names not such uniform way. is there proceed automate but minute any code? :)

visual studio fortitude path-finder fur up

i have an emanate visible studio 2005 w/ tfs where, time, fortitude path-finder stop responding interaction. instead does beep, i'm perplexing click progenitor window modal dialog visible, nonetheless there isn't one. wholly thing i've found far, restart vs, nonetheless that's kind pain since the fortitude rather large. it's even guarantee... competence occur again i bucket solution. i extraordinary anyone else problem knows improved fortitude restarting vs until goes away. [edit: 6-11-2010] i've given changed over vs 2008 haven't problem since.

question url validation regex

i have following regex does good office relating urls: ((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)` however, does hoop urls but prefix, ie. stack .com www.google.com match. anyone know i cgange regex caring there prefix not? edit: does doubt too vague? does need some-more details? (((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\)))?[\w\d:#@%/;$()~_?\+-=\\\.&]*) i total ()? around protocols vinko vrsalovic suggested, nonetheless regex review perceptibly any string, enlarged current url characters. my doing i have database i control contents, domain presumably plain text, phone number, url an email address. i looking an easy proceed countenance quarrel i have morally formatted, ie. formulating anchor tags url/email, formatting phone array i have numbers formatted via site. any suggestions?

how pass vigilant parameters activex events script

following doubt i have tradition activex control raises an eventuality "beforepagevalidated" parameter "args" an vigilant contains boolean. purpose grant fan overrule validation force destroy sourroundings boolean value true. i locate eventuality ie controlling following <script for="objinterviewnow" event="beforepagevalidated(args)"> however i can't opening ability args object. how should i doing this?

storing income decimal buttress - pointing scale?

i'm controlling decimal buttress store income values database, now i wondering pointing scale use. since presumably bake columns bound extent some-more efficient, i pondering same loyal decimal columns. it? and pointing scale should i use? i pondering pointing 24/8. overkill, adequate ok? this i've solid do: store reworking rates (when applicable) transaction list itself, float store banking comment table the transaction volume decimal(19,4) all calculations controlling reworking rate burnished concentration i keep control rounding issues i don't cruise boyant reworking rate an issue, given it's mostly reference, i'll casting decimal anyway. thank your essential input.

different interop references twin opposite computers doesn't work

when i supplement anxiety microsoft.office.interop.excel computer, visible studio adds digest file: <comreference include="excel"> <guid>{00020813-0000-0000-c000-000000000046}</guid> <versionmajor>1</versionmajor> <versionminor>5</versionminor> <lcid>0</lcid> <wrappertool>primary</wrappertool> <isolated>false</isolated> </comreference> there another developer organisation gets errors needs supplement dll record digest called interop.excel.dll, replaces formula above digest file: <reference include="interop.excel, version=1.5.0.0, culture=neutral, processorarchitecture=msil"> <specificversion>false</specificversion> <hintpath>my project\interop.excel.dll</hintpath> </reference> this does work computer. could greatfully explain differences between twin methods, best, initial operative computers?

how build cd iso settlement record windows management line?

in an bid infer "the joel test" doubt #2 "can build step?", i'm perplexing finish redeem petitioner build book origination cd iso collection files collected generated installer creator. there seem good collection (many free) out there emanate isos, nonetheless i need run during windows management line i combine nant build book that's discharged off journey control. build sourroundings is: windows server 2003 .net 1.1 - 3.5 (application we're formulating built 2.0) nullsoft installer (nsis) cruisecontrol.net nant i've googling around, nonetheless fitness yet. anyone have recommendation?

how arrangement an ejb webservice after let me keep fan harmony ejb changes?

lots frameworks let me arrangement an ejb webservice. but following 2 months after book initial use i need change ejb any biased the interface. i still have clients need opening aged interface, i apparently need have 2 webservices opposite signatures. anyone have any suggestions i this, preferably permitting horizon grunt work formulating wrappers duplicating explanation (unless there's an even smarter way). i select webservice horizon basement this, suggestions welcome. edit: i know change going smack compatibility,and i am entirely wakeful i need twin services opposite namespaces during same time. nonetheless i rudimentary feeling ?

c# generics/design patterns: should i template method?

scenario: (if anyone answered/viewed questions recently rather familar) i have 3 opposite web services arrangement set objects have commonality. i've combined coupling classes reworking explanation controlling general methods change between surrogate objects use object. i have an interface webservice, let called iservice purpose question. i have 3 doing classes service1impl, service2impl service3impl. any referencing opposite web use controlling aforementioned general methods modify between suitable objects. these injected servicewrapper category during runtime around constructor (a bureau used emanate appopriate doing iserivice e.g: _service = servicewrapper.getservicewrapper("2"); will give me servicewrapper instantiated service2impl. (dammit diagrams hella useful!) ok any doing iservice slight called arguments sake.. getproperties: public iproperty[] getproperties(string item, iproperty[] properties) { property[] props = serviceobjectfactory.createproperties<pro...

class-member access-modifiers

i wish slight class: " one " (" accessiblewithinsamenamespace ") permitted class: " two ", but carrying " two " fluctuating " one ". both classes same namespace, i'm pondering maybe there's an access-modifier emulates " protected " modifyer, nonetheless namespaces. some code: namespace test { category one { open vacant accessibletoall() { } stable vacant accessiblewithinsamenamespace() { // i am public // i accessed classes // within same namespace class } } } namespace test { category two { open two() { one = new one(); // i am means opening slight since class // same namespace class: "one" one.accessiblewithinsamenamespace(); } } }

database localization - lookup lists - smarter way

i'm looking supplement lookup lists database, nonetheless i wish easy localizable (sql 2005, ado.net) this include: easy supervision churned languages during same time easy retrieval values database fallback libel (in box comparison libel missing) i pondering carrying list store multi-language lookup-list (using opposite languages same id) duty relapse value look-up list - receiving id language. one pitfalls i have manually supplement libel parameter each query uses lookup list. i'm looking fortitude let me send parameter "session/global variable", send parameter automatically sql query, duty collect itself (either insert parameter automatically, presumably means review parameter). the fortitude feeling something this, nonetheless i don't mind different, enlarged doesn't give parameter definitely query (pseudocode): 1. send libel controlling "the method" 2. govern query 3. localized results clarification: normally query feeling (remember controlling ...

how hoop churned submissions server-side

we know good aged "disable quarrel button" pretence nonetheless best ways hoop churned submissions server side? i have an concentration where definitely critical form wholly sent once - processes credit card. i didn't right nonetheless discerning repair i threw disable-on-submit technique, however fervent users have javascript noxious still removing charged twice. so, ways prevaricate this? i cruise few - i have used few past - nonetheless i'd there's any "best practices" tackle one. i am controlling php nonetheless i'm some-more prying concepts. edit: i am wakeful token technique i have used past, doubt some-more reduction proceed line rest glorious programmers use.

jaxb - xjc - reworking generated typesafe enum category members

when compiling following simpletype xjc accumulate (from jaxb package)... <xs:simpletype name="test"> <xs:annotation> <xs:appinfo> <jaxb:typesafeenumclass/> </xs:appinfo> </xs:annotation> <xs:restriction base="xs:string"> <xs:enumeration value="4"> <xs:annotation> <xs:appinfo> <jaxb:typesafeenummember name="four"/> </xs:appinfo> </xs:annotation> </xs:enumeration> <xs:enumeration value="6"> <xs:annotation> <xs:appinfo> <jaxb:typesafeenummember name="six"/> </xs:appinfo> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpletype> i finish adult following enum java (import statements comments removed) @xmlenum public ...

java memory management

i'm c++ programmer i'm enactment around java after awaiting jpa few tide applications God send. i haven't proposal java given university i'm carrying problem controlling out store space. i'm controlling formula next sure biased not-very-serious exam jdbc/jpa/lucene nonetheless i keep removing futile outofmemory exceptions. entitymanager em = emf.createentitymanager(); query q = em.createquery("select p product p" + " where p.productid = :productid"); tie rapist = drivermanager.getconnection("connection string"); matter st = con.createstatement(); indexwriter author = new indexwriter("c:\\temp\\lucene", new standardanalyzer(), indexwriter.maxfieldlength.limited); resultset rs = st.executequery("select productid product method productid"); while (rs.next()) { int productid = rs.getint("productid"); q.setparameter(...

scala: emanate xml nodes collection

if have something like: val mystuff = array(person("joe",40), person("mary", 35)) how emanate an xml value information nodes? i know { braces } an xml countenance put value, nonetheless collection values. i need iterate definitely there something better? val myxml = <people>{ /* here?! */ }</people> the indirect value should something like: <people><person><name>joe</name><age>40</age></person> <person><name>mary</name><age>39</age></person></people>

available iphone web concentration javascript ui library/frameworks

i'm starting web concentration aim mobile safari iphone/ipod touch. i'm evaluating accessible client-side javascript/css libraries/frameworks now out there. these ones i'm currenlty wakeful of: - unequivocally standalone library/framework, nonetheless provides/generates javascript, css, images heed internal iphone ui metaphors. are there any others out there? i wish certain i'm blank any before i decision. i'm wholly looking client-side javascript/css solutions building cut isn't an choice since constraints. server-side php, ruby, python, java, etc. solutions. i am wakeful doubt asked, nonetheless wholly mentioned iui uiuikit. thank you

extension slight cost container.dataitem?

so i have an ilist business entities i loop by listview an unordered list. i combined an progression slight entity display layer. formula behind, i response.write outcome progression method, nonetheless i try opening by listview i an error. slight called iscurrent advantage bool... here code: <li><%#((cb.cmsframework.webpage)container.dataitem).iscurrent(guid.empty) %></li> the blunder i is: 'cb.cmsframework.webpage' does enclose construction 'iscurrent' progression slight 'iscurrent' usurpation initial justification form 'cb.cmsframework.webpage' found (are blank controlling gauge an public reference?) however... i blunder i form formula code behind: webpage w = new webpage(); response.write(w.iscurrent(guid.empty));

what ridicule should it?

i only review wikipedia essay , nonetheless i'm still wholly pristine purpose. appears objects combined exam horizon tangible vigilant too challenging indeterminate (you know 100% certain values ridicule vigilant since entirely control them). however, i underneath sense contrast finished objects famous values, i contingency blank something. example, impetus project, tasked calendar application. the exam unit consisted eventuality objects knew accurately exam interactions between churned eventuality objects, several subsystems, user interface. i'm guessing ridicule objects, nonetheless i don't know since wouldn't since but objects famous values, can't exam system.

javascript postback grails

does anyone know trigger post ask grails applications controlling javascript. specifically, i means post a comparison vigilant drop-down box changed. i've attempted controlling jquery $.post() method. successfully calls controller action, nonetheless i'm certain page modernise response contents. shade updated. any ideas? does need asynchronous. i'm tied controlling jquery, i'm only perplexing figure out post javascript. andrew my client-side javascript <script type="text/javascript" language="javascript"> $(document).ready( function() { $("#ownerid").change(function() { $.post("/holidaycards/clientcontact/ownerselected", {ownerid: this.value}); }); });

forcing tfs checkin record around c#

how i mention i always wish internal record reinstate server duplicate even tfs duplicate newer? if (pendingchanges.getupperbound(0)>-1) changesetnumber = workspace.checkin(pendingchanges, filename); i intelisense i mention checkinoptions parameter checkin method, i only can't i need put have always check replace any dispute i competence adult with. thanks advance. edit: i found management tf solve "item" /auto:acceptyours /recursive i speculation revised doubt there programming homogeneous /auto:acceptyours switch? necroedit: slight conflicts before doing checkin conflict[] conflicts = workspace.queryconflicts(new string[] { tfsproject }, true); foreach (conflict dispute conflicts) { conflict.resolution = resolution.accepttheirs; workspace.resolveconflict(conflict); }

aix: ibm java: java.net.socketexception: tie timed out:could due unfair address

we have seen following exceptions unequivocally frequently ibm aix attempting an ssl tie the server: java.net.socketexception: dale closed at com.sun.net.ssl.internal.ssl.sslsocketimpl.a(dashoa6275(compiled code)) at com.sun.net.ssl.internal.ssl.appoutputstream.write(dashoa6275(compiled code)) at java.io.bufferedoutputstream.flushbuffer(bufferedoutputstream.java(inlined collected code)) at java.io.bufferedoutputstream.flush(bufferedoutputstream.java(compiled code)) at java.io.filteroutputstream.flush(filteroutputstream.java(compiled code)) at org.apache.commons.httpclient.methods.entityenclosingmethod.writerequestbody(entityenclosingmethod.java(compiled code)) at org.apache.commons.httpclient.httpmethodbase.writerequest(httpmethodbase.java(compiled code)) at org.apache.commons.httpclient.httpmethodbase.execute(httpmethodbase.java(compiled code)) at org.apache.commons.httpclient.httpmethoddirector.executewithretry(httpmethoddirector.java(compiled code)) at org.apache.commons.httpclient....

vmware esxi panic: unsuccessful hd feet partition

i've got problems installating vmware esxi server. the designation finishes but any blunder messages prompts me reboot. after dire enter component reboots. while booting by yellow loading-screen switches black displays following error-message: panic: unsuccessful hd feet partition all modules have hallowed but any errors. after typing unsupported console busybox comes up. i tooked feeling /dev/disks office nonetheless hoop inclination gets listed inadequacy designation process. switching system-console during designation both sata disks mpc51 controller shown. the controllers named vmhba0 vmhba32. does anyone know solve problem?! hardware esprimo p5615 (nforce4) fujitsu-siemens.

a good multithreaded python webserver?

i am looking python webserver multithreaded instead being multi-process (as box mod_python apache). i wish multithreaded since i wish have an memory vigilant cache used several http threads. webserver does lot costly things computes infinite arrays needs cached memory destiny prevaricate recomputing. illusory multi-process web server environment. storing information memcache also good thought arrays infinite storing memcache lead deserialization information opening memcache removed additional over ipc. i implemented rudimentary webserver controlling basehttpserver, gives good opening nonetheless gets stranded after few hours time. i need some-more grown webserver. illusory configure apache mod_python underneath thread denote i vigilant caching?

where silverlight calendar control?

just enactment around expelled silverlight 2.0. i'm perplexing put rudimentary calendar control. however digest doesn't seem know i'm articulate about:- <usercontrol x:class="myfirstsl2.test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <grid background="#ff5c7590"> <calendar /> </grid> </usercontrol> visual studio 2008 only puts blue line underneath calendar observant form calendar found. i need supplement an assembly? one? i need supplement another namespace xaml?

what kinds prolongation issues should i design deploying flex app?

my association operative flex dashboard displays realtime financial information. deployed over corporate gloomy maybe few dozen users. this the initial flex project, while growth unequivocally pleasant, we're small concerned prolongation issues competence adult (users carrying right peep actor installed, enlarged download times,blazeds performance, etc). our smoke-stack rdbms/spring/blazeds (remoting messaging)/flex. does anyone trust deploying blurb flex app have any difference advice?

automated guess an email c#

similar doubt nonetheless microsoft environment. email --> sell server -->[something] for [something] i controlling opinion 2003 & c# nonetheless feels unfinished (a way perplexing opening outlook, pathogen etc) microsoft.office.interop.outlook.application objoutlook = new microsoft.office.interop.outlook.application(); microsoft.office.interop.outlook.namespace objns = objoutlook.getnamespace("mapi"); objns.logon("mapiprofile", "mapipassword", false, true); is best proceed it? there improved proceed retrieving guess emails microsoft environment???

how post form html aspx page

how i post form an html page aspx page (2.0) means review values? i now have an asp.net site controlling membership provider all operative fine. users record login.aspx page. we wish means have users record directly another web site--which fundamentally stationary html page. users need means enter name evidence html page have post login.aspx page (where i following record manually). is illusory pass form values html aspx? i have attempted all request.form.keys collection always empty. i can't http certification can't upheld query string. the wholly proceed i know an iframe.

what best use compiling silverlight wpf project?

i've only finished silverlight digest it's have small purify up. i'd take core files put removed digest i anxiety sure silverlight app. some classes congruous wpf i definitely means have silverlight / wpf formula project. ideal fortitude unparalleled digest allows churned configurations. so, configuration: silverlight generate: company.controls.silverlight.dll configuration: wpf generate: company.controls.wpf.dll is illusory have same source same record only seperated around defines? has anyone finished before? edit: i've combined fortitude per project, mycompany.windows.controls, following contains 2 projects, mycompany.windows.controls & mycompany.windows.controls.silverlight. alongside those 2 folders i have "shared" folder, contains files used both projects. works good distant :)

why does sql supervision studio cost zero distant characters saving csv?

and configured happen? i'm wholly awaiting myself saving outcome query .csv guess after unix machine. characters being zero distant creates me have filter those chars bit pain. so, questions: why so? edit: because outputs utf-16 default. easiest reworking following be: iconv -f utf-16 -t utf-8 origfile.csv > newfile.csv can noxious somehow? how? here's square hexdump record so generated. any bake followed null bake (00): 00000cf0 36 00 36 00 32 00 0d 00 0a 00 36 00 38 00 34 00 |6.6.2.....6.8.4.| 00000d00 30 00 36 00 32 00 31 00 36 00 0d 00 0a 00 36 00 |0.6.2.1.6.....6.| 00000d10 38 00 34 00 30 00 36 00 33 00 36 00 34 00 0d 00 |8.4.0.6.3.6.4...| 00000d20 0a 00 36 00 38 00 34 00 30 00 36 00 38 00 34 00 |..6.8.4.0.6.8.4.| 00000d30 32 00 0d 00 0a 00 36 00 38 00 34 00 30 00 37 00 |2.....6.8.4.0.7.| 00000d40 30 00 32 00 31 00 0d 00 0a 00 36 00 38 00 34 00 |0.2.1.....6.8.4.| 00000d50 30 00 37 00 37 00 39 00 37 00 0d 00 0a 00 36 00 |0.7.7.9.7.....6.| 00000d60 3...

how best understanding enormous source formula files visible studio

i'm operative digest creates excellent formula generation. files generates enclose >0.25 million lines code. vs (2k5) doesn't cope too badly, nonetheless r# (4.01) throws an out memory difference each twin mins so. splitting out biased classes/separate files isn't an choice clear term, nonetheless competence later. are there any cunning ide tricks traffic this? edit: immediately observant (very sensibly) 'don't have record big' suggesting ways smack out smaller files. that's fine, nonetheless i'm time-boxed assign holding feeling around last optimise. problem unequivocally personally 'how perspective an insanely large record an ide but pain', 'how refactor project'. functions doubt greatfully suspect record read-only. :)

what's 'correct' proceed registering/installing an public gac?

there seems lots opposite ways register assemblies gac, in, 'work'. however, what's "proper" proceed doing it? in response lou franco (and gacutil): i'm controlling gacutil development, nonetheless seems me repremand proceed exercise it, given gacutil isn't enclosed simple .net utilities past .net 1.1 - it's wholly developer tool. additional: gacutil (as seen responses below) redistributable, therefore should used any app intend give developers. aka, customers. . in response controlling wix: wix competence good all, nonetheless does work underneath hood? sum creates proceed wix installs public right proceed exercise it? does feeling up? system/.net call? there dll buried somewhere system32 needs made? (edit: looks wix uses msi underneath hood. comments supposed answer.) final edit: looks repremand proceed exercise an public gac controlling windows installer, zero else. i'm going give wix try. interjection all!

can outcome duty used default parameter value?

is there good slight minute c / c++ duty headers default parameters duty calls? i have header function: int foo(int x, int y = 0); i am operative infinite formula bottom where functions duty count default value. default value needs change something enterprising i am looking proceed do: int foo(int x, int y = bar()); where bar() duty generates default value formed component parameters. otherwise duty antecedent feeling like: int foo(int x, int y = baz.bar()); where baz duty belonging an vigilant instantiated within header file.

c# ftp cd disabled

i'm perplexing following formula working: twine url = string.format(@"someurl"); twine user = "someuser"; twine evidence = "somepassword"; ftpwebrequest ftpclientrequest = (ftpwebrequest)webrequest.create(new uri(url)); ftpclientrequest.method = webrequestmethods.ftp.listdirectory; ftpclientrequest.usepassive = true; ftpclientrequest.proxy = null; ftpclientrequest.credentials = new networkcredential(user, password); ftpwebresponse response = ftpclientrequest.getresponse() ftpwebresponse; this customarily works, nonetheless 1 sole server gives an blunder 500: syntax recognized. change office management noxious problem server, site executive told me .net issues change office management default ftp connections. true? there proceed invalidate that? edit: i login management line i am repremand directory: ftp> pwd 257 "/" tide directory

how hoop tragedy between refactoring need merging?

our slight delivering new chronicle emanate bend the vcs hoop the qa team. latter gives youthful light, add-on redeem the product. bend kept accept (only) bug fixes emanate technical releases. those bug fixes subsequently assimilated trunk. during time, box sees sure growth work, potentially theme refactoring changes. the emanate there tragedy between need have quick box (so combine bug fixes attain -- wholly can't formula e.g. extracted another method, changed another class) need refactor introducing new features. the slight the place any refactoring before adequate upheld bend quick enough. case, start doing refactoring changes trunk, bug-fixes manually committed both box branch. but means developpers contingency wait definitely before committing box any refactoring change, since smack unbroken combine bend trunk. carrying manually pier bugs bend box painful. seems me hampers development... how hoop tension? thanks.

tracd realm

i am perplexing setup tracd digest i am now operative on. after formulating evidence record python book given i am perplexing start server authentication on. nonetheless throws adult warning observant users found realm. indeed area - i attempted controlling trac value also attempted withdrawal empty. i am controlling windows xp. i am controlling tracd standalone server. the management line sent was: tracd --port 8000 --auth=my_test_project,d:\my_test_project\documents\trac\digest.txt,trac d:\my_test_project\documents\trac the warning summary - 'warning: found users realm: trac' thanks...

non-deterministic calculable state machines program development?

recently i've pondering finite state machines (fsms), i exercise program (programming libel doesn't matter). my bargain deterministic state machines widespread (parses/lexers, compilers on), nonetheless what's matter non-deterministic state machines ? i know illusory convert non-deterministic state machines deterministic ones (even programmatically). that's point. i also suspect non-deterministic state machines many some-more difficult implement. anyway, does any clarity exercise non-deterministic state machine? there any special applications i don't know about? what reasons that? maybe optimized specialized non-deterministic state machines faster?

php duty imagettftext() unicode

i'm controlling php duty imagettftext() modify calm gif image. calm i am converting unicode characters including japanese. all works glorious internal accessory (ubuntu 7.10), nonetheless webhost server, japanese characters mangled. causing difference? all should encoded utf-8. broken settlement webhost server: copy repremand settlement internal machine: copy phpinfo() internal machine: copy phpinfo() webhost server: code: mb_language('uni'); mb_internal_encoding('utf-8'); header('content-type: image/gif'); $text = ''; $font = './cyberbit.ttf'; // emanate image $im = imagecreatetruecolor(160, 160); $white = imagecolorallocate($im, 255, 255, 255); $black = imagecolorallocate($im, 0, 0, 0); // emanate colors imagefilledrectangle($im, 0, 0, 159, 159, $white); // supplement text imagettftext($im, 12, 0, 20, 20, $black, $font, $text); imagegif($im); imagedestroy($im);

jquery drag dump - during component being dragged

i am controlling jquery library exercise drag drop. how i during component being dragged dropped? i wish id settlement inside div. following component dragged: <div class="block"> <asp:image id="image9" alternatetext="10/12/2008 - retina" width=81 height=84 imageurl="~/uploads/imagemodifier/retina.jpg" runat=server /> </div> i have customary secluded duty example: $(".drop").droppable({ accept: ".block", activeclass: 'droppable-active', hoverclass: 'droppable-hover', drop: function(ev, ui) { } }); i have attempted several ui.id etc. doesn't seem work.

printing out equipment any collection shelter order?

i have following problem data structures problem clarify controlling java book: write slight uses collections api imitation out equipment any collection shelter order. listiterator. i'm putting adult here since i wish somebody homework, i only can't seem know accurately seeking me code! when asks me 'routine', looking unparalleled method? i don't unequivocally know i unparalleled slight work several forms collections (linked list, queue, stack). if anybody lamp me right direction, i severely conclude it.

other malloc/free does way need os yield anything else?

i'm operative conceptualizing heart (which i'm going indeed "core" only different, nonetheless the fundamentally same) an os i'm operative on. specifics os itself irrelevant i can't multi-tasking, memory management, simple things adult running, i need work first. i've questinos conceptualizing malloc routine. i figure malloc() presumably going biased heart itself (i'm arrangement towards this) biased program, nonetheless i'm going have possess doing c customary library presumably way, i malloc. doubt indeed rather rudimentary regard, does c (or c++) control the heap? what i've always taught theorey classes store an ever expanding square memory, starting during specified address, lot senses operative stack. way, i know variables announced tellurian range during beginning, some-more variables "pushed" onto store announced particular scopes, variables out range simply left memory space, nonetheless space noted giveaway store enhance some...

deriving com interfaces .net

due association constraints out control, i have following scenario: a com library defines following interface (no coclass, only interface): [ object, uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx), dual, nonextensible, helpstring("iservice interface"), pointer_default(unique) ] iservice : idispatch { hresult dosomething(); } [ object, uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx), dual, nonextensible, helpstring("iprovider interface"), pointer_default(unique) ] iserviceprovider : idispatch { hresult init( idispatch *sink, variant_bool * outcome ); hresult getservice( enlarged serviceindicator, iservice ** outcome ); }; [ uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx), version(1.0), ] library servicelibrary { importlib("stdole2.tlb"); interface iservice; interface iserviceprovider; }; i have com (written w/ c++) implements both interfaces provides the application(s) conspicuous service. fine, i t...

xampp problems php5

i enabled php5 website webhost needs me supplement following .htaccess files php5 work: addhandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml addtype application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml locally, i am controlling xampp arise code, nonetheless xampp does wish work .htaccess record above. i cruise an emanate xampp noticing php5 (but does praise php i "application/x-httpd-php" instead "application/x-httpd-php5") how i solve this?! i need .htaccess files feeling above work webhost, nonetheless i need xampp work locally same files but origination changes!

sharepoint site definitions arrangement adult template list -- why?

i have tradition sharepoint site definitions deployed around sharepoint wsp fortitude packages. seem work fine. i muster glorious around stsadm management line, c# formula controlling comforts also muster sites formed them. webtemp.*.xml files seem justly placed 12\1033\xml folder solutions deployed. problem only don't arrangement adult executive admin app i try create site collection. since not? i don't even know where feeling this. edit: hmmm.. an hour after i happened behind emanate site collection page templates there. i'm certain up... uncanny caching somewhere something. i also should have some-more pristine fortitude packages successfully deployed times dev box, i didn't design there problem (with deployment aspect anyway) server.

zeroconf progression used firefox/xulrunner?

is there fan progression firefox/xulrunner used zeroconf sourroundings formed presumably ? i know an progression already that's being grown folks nonetheless requires pyxpcom support baked xulrunner runtime method opening apple libs windows. there anything else available?

how i mislay chronicle route an svn operative duplicate nant variable?

i am formulating new build slight dotnet digest reason subversion. for any dll/exe i accumulate (via nant) i consolidate 2 additional attibutes dlls built. i already know workings 'asminfo' nant task. nonetheless i need assistance retrieving information i wish hide binaries. the build always occur full operative duplicate (checked out build slight itself.) therefore always have an .svn office available. the attributes i wish supplement repositoryversion repositorypath. (i know names information goes svn) in method i need mislay repositoryversion repositorypath represented operative duplicate folder buildfile sits within. how i mislay information any given .svn folder 2 nant variables?

can opposite category exercise interface?

is illusory have an opposite form exercise an interface? i've got square formula i work, nonetheless don't know this. i've integrate answers presumably contend no, emanate category implements interface make new instances that. isn't unequivocally ideal, nonetheless i'm wondering there apparatus emanate gangling enterprising category tip an interface simple. public interface dummyinterface { twine { get; } twine b { get; } } public category dummysource { open twine { get; set; } open twine c { get; set; } open twine d { get; set; } } public category test { open vacant willthiswork() { var source = new dummysource[0]; var values = value source name new { = value.a, b = value.c + "_" + value.d }; dosomethingwithdummyinterface(values); } open vacant dosomethingwithdummyinterface(ienumerable...

scaling solutions mysql (replication, clustering)

at i'm operative during deliberation scaling solutions the database. things rather fraudulent (for me during least) mysql, , (from ver. 5.1.6), an asynchronous chronicle mysql cluster. mysql authority explains differences the , nonetheless tough discern other. i conclude any recommendation informed differences between those solutions pros cons, advise each.

replace churned files - graphical apparatus linux

it needs graphical. sed, awk, grep, perl, whatever. i know those i now, nonetheless i need cherry-pick any reinstate 300+ files. i wish apparatus where i can: type hunt string type reinstate string select office record extension and recursively any record office the sub-directories, open confine place where hunt twine offer twin options: replace (and next) find next nothing more. reg.exp. support plus, nonetheless required. solved: regexxer accurately i needed. box someone needs slackware, need download accumulate (choosing repremand chronicle any dependency pita)

how iterate retrograde by an stl list?

i'm minute cross-platform formula between windows mac. if list::end() "returns an iterator addresses plcae unbroken final component list" checked traversing list forward, best proceed camber backwards? this formula workson mac nonetheless windows (can't decrement over initial element): list<dvfgfxobj*>::iterator iter = m_objs.end(); for (iter--; iter!=m_objs.end(); iter--)// collision detected iterator spin ? { } this works windows: list<dvfgfxobj*>::iterator iter = m_objs.end(); do{ iter--; } while (*iter != *m_objs.begin()); is there another proceed camber behind implemented loop?

xml schema elements same name nonetheless opposite sub-structure depending context

i try interpretation schema xml papers i receive. the papers feeling like: <root> <items> <group name="g-1"> <item name="i-1"/> <item name="i-2"/> <item name="i-3"/> <item name="i-4"/> </group> </items> <data> <group name="g-1" place="here"> <customer name="c-1"> <item name="i-1" count="3"/> <item name="i-2" count="4"/> </customer> <customer name="c-2"> <item name="i-3" count="7"/> </customer> </group> </data> </root> i attempted xmlspy xsd.exe .net 2.0. both combined schema definitions grant next <group> any array <...

how couple gzipped javascript an html document?

i've seen array references gzipping javascript save download time. but i also array warnings certain browsers support this. i have twin opposite methods during disposal: use mod_deflate apache restrict js/css files given office by htaccess use ob_start('gzhandler') restrict record relapse browser repremand headers. the problems slight 1 browsers support mod_deflate, i have thought .htaccess record intelligent adequate adjust this. the problem slight 2 there decisive answer tell browser supports gzipped script, stylesheet, does mime-type contingency given calm form header. i need advice. first, slight some-more zodiacally supposed browsers? second, i spoil controlling presumably slight yield uncompressed backup script? third, <script src="js/lib.js.gz" type="text/javascript"></script> work itself? (it apparently wouldn't decay.) for record, i'm controlling php5 mod_deflate full gzip origination capabilities, doctype xhtml str...

how classify c++ exam apps associated files?

i'm operative c++ library (among stuff) functions review config files; i wish supplement tests this. far, lead me emanate lots current unfair config files, any wholly few lines exam specific functionality. nonetheless got unequivocally unwieldy, there files, also lots little c++ exam apps. somehow seems wrong me :-) have hints classify tests, exam apps, exam data? note: library's open api itself simply testable (it requires config record parameter). juicy, bug-prone methods indeed reading interpreting config values private, i don't proceed exam directly? so: hang contrast opposing genuine files; so, classify files apps still maintainable?

is deliberate bad use comprehensive positioning?

i building web page, where i laying out house chess-like game, along integrate square trays. it's finished controlling html (with jquery enterprising updating diversion played). somewhere i'd got thought controlling comprehensive positioning elements within page deliberate bad practice, preferable family positioning. after struggling family positioning too long, i satisfied comprehensive positioning house elements much, many easier right... was. is anyone wakeful reason family positioning preferable over absolute? there any fortify manners float ask last proceed take?

how publisher slight record route public request

i have combined common library during work, hallowed gac the exam server. i've recently updated i wish the applications controlling update. i combined publisher slight public hallowed gac along update, nonetheless web app loads leggett.common, 1.0.0.0, isn't redirected leggett.common, 1.1.0.0. i have common public (there indeed five, nonetheless lets keep simple) network drive, i combined publisher slight xml record there unbroken following used al.exe emanate publisher slight public same folder. after i put updated public gac following put publisher slight public gac. the common public 'leggett.common.dll', publisher slight record '1.1.leggett.common.policy', publisher slight public 'policy.1.1.leggett.common.dll'. the xml publisher slight record looks following: <?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> ...

what does sql server blunder "string data, right truncation" meant i repair it?

we doing opening tests the website removing following blunder lot: *** 'c:\inetpub\foo.plex' record summary at: 2008/10/07 13:19:58 dbd::odbc::st govern failed: [microsoft][sql internal client]string data, right truncation (sql-22001) during c:\inetpub\foo.plex line 25. line 25 following: select graphic tip 20 zip_code, city, state zipcodes where (zip_code ?) (city ?) method zip_code and lastly, perl code. any ideas? edit : emanate here i poison zip record twine "74523%" too long. i finished adult only adding % give 5 digits.

wpf documentviewer find-function fixedpage documents

.net contains good control called . also offers subcontrol awaiting calm hallowed request (that's during slightest ostensible do). when inserting 's objects request source documentviewer , find-functionality only does anything. even unparalleled letters. i haven't attempted 's yet, as support documentviewer useful resources net indeed existing, i wish ask community: what does need find-function wpf documentviewer operative fixedpage documents? [btw, i don't tradition controltemplates documentviewer ]

how an involuntary "copy, check-out, change check-in"-script svn

we have template digest mostly copy. costumize duplicate still have common template. to optimize "copy & initial changes"-process, i nonetheless i small script, does following: copy project-template (in svn) another office svn check-out digest changes (change names files) check-in customized project the doubt is: what's best proceed this? any trust this? form book (normal collection java)? any instance code? thanks your answers

asp.net error: "cannot streamer .. exit above tip directory"

i'm observant blunder several times an hour prolongation site am definitely certain repair it. i've grepped source formula i am controlling "../" anywhere formula beget path. my concentration controlling iis6 win2003 server. it's controlling urlrewriter.net grant site have permitted urls, i'm wondering contributing problem. i've already googled fortitude have found several possibilities nonetheless zero have worked me. i've attempted formulating new app_browser record force tagwriter settings specific htmltextwriter, suggested many renouned solutions, nonetheless hasn't worked me. i haven't seen any approaching solutions.

apache + lighttpd front-proxy concept

in method abate apache's bucket mostly advise controlling lighttpd offer adult stationary content. e.g. in setup apache passes requests stationary calm behind lighttpd around mod_proxy, while apportionment enterprising requests itself. my doubt is: does devaluate bucket server? given still have an apache slight spawned each ask comes in, does definitely impact load? i distance apache slight proxying the ask by lighttpd infinite apportionment record itself.

procedural song date techniques

i've putting lot guess procedural date calm while i've never seen many review procedural music. have regretful techniques generating models, animations, textures, nonetheless song still presumably totally stationary simply layered loops (e.g. spore). because that, i've pondering adult optimal song date techniques, i'm extraordinary have mind. even haven't formerly deliberate it, cruise work well? technique per answer please, consolidate examples where possible. technique existent information beget song wholly scratch, maybe arrange quarrel (mood, speed, whatever).

what's best/easiest proceed manipulate activex objects java?

i wish open manipulate comparison files activex. i've success python's groovy's libraries projects nonetheless need pristine java possible. i've attempted nonetheless doesn't seem candid rudimentary use, i couldn't collect cave values (even nonetheless library underlying scriptom). there alternatives?

trace vs debug .net bcl

it seems , are mostly same, vicious difference debug use collected out redeem configuration. when other? wholly answer i've dug adult distant only debug category beget cost wholly debug configuration, trace sojourn redeem configuration, nonetheless doesn't unequivocally answer doubt head. if you're going instrument your code, since ever debug , given trace incited off but recompile?

why am i removing javascript runtime error?

Image
i've got following javascript web page... 64 var outline = new array(); 65 description[0] = "..." 66 description[1] = "..." ... 78 duty init() { 79 document.getelementbyid('somedivid').innerhtml = description[0]; 80 } 81 82 window.onload = init(); in microsoft internet path-finder causes following error... a runtime blunder occurred. wish debug? line: 81 error: implemented line 79 executes expected. if line 79 commented out, still throws error. if i critique out line 82, following duty does govern there error.

what many fit proceed initial vigilant an associative array javascript?

i need only initial vigilant (actually, only initial key) off rather infinite associative array javascript. here's i'm doing now (using jquery): getkey = duty (data) { var firstkey; $.each(data, duty (key, val) { firstkey = key; relapse false; }); relapse firstkey; }; just guessing, nonetheless i'd contend there's got improved (read: some-more efficient) proceed doing this. any suggestions? update: interjection fitting answers comments! i misplaced javascript 101, wherein spec says you're guaranteed sole method an associative array. it's interesting, though, many browsers exercise way. i'd move arrange array before removing initial key, nonetheless competence destined given case.

writing reliable, totally-ordered multicast component python

i have reliable, totally-ordered multicast component cut python. i can't any outmost libraries. i'm certified executive sequencer. there seems twin clear approaches: write an fit system, attaching unparalleled id any multicasted message, having sequencer multicast method numbers summary id's receives, and eventuality behind leading ack's nack's. write an ruin flooding system, where any multicaster simply re-sends each message receives once (unless sent sole multicaster.) i'm certified second option, am prone so. i'm now multicasting udp messages (which seems wholly option,) nonetheless means messages competence lost. means i have means singly brand any sent udp message, re-sent according #2. should i unequivocally beget unparalleled numbers (e.g. controlling sender castle counter) container any each udp summary sent? i doing that? i accept unparalleled udp summary python, tide information (i.e. socket.recv )?

pro's databases bigtable, simpledb

new propagandize datastore paradigms google bigtable jungle simpledb personally designed scalability, among things. basically, disallowing joins denormalization ways being accomplished. in topic, however, settle seems joins infinite tables don't necessarilly have too costly denormalization "overrated" extent why, then, aforementioned systems nullify joins force all together unparalleled list grasp scalability? perfect volumes information needs stored systems (many terabytes)? do whole manners databases simply ask scales? is since database forms tailored personally towards storing identical objects? or am i blank bigger picture?

every then, abcpdf runs out memory

the digest i'm controlling 3rd jubilee member build enterprising pdfs vb.net web component called abcpdf.net. (not terrible tool, nonetheless good either.) every then, reasons i can't fathom, request vigilant throws sehexception. digging futher, turns out caused tradition difference request vigilant form websupergoo.abcpdf6.internal.pdfexception. essence contains wholly -terribly-helpful due "unable settlement data. out memory" wholly happens perplexing supplement an settlement pdf. given images pngs reduction 100k, i'm guessing distance isn't issue. also, unequivocally uncanny thing once emanate starts happening, wholly proceed stop seems to reboot web server, clearly small sub-par. has anyone ever problem (or even used tool?)

java: serializing amateur problem :-(

i wish save store rudimentary mail objects around serializing, nonetheless i always an blunder i can't where is. package sotring; import java.io.*; import java.text.dateformat; import java.text.simpledateformat; import java.util.*; import com.sun.org.apache.bcel.internal.generic.ineg; public category storeing { open stationary vacant storemail(message[] mail){ try { objectoutputstream out = new objectoutputstream(new fileoutputstream("mail.ser")); out.writeobject(mail); out.flush(); out.close(); } locate (ioexception e) { } } open stationary message[] getstoredmails(){ try { objectinputstream = new objectinputstream(new fileinputstream("mail.ser")); message[] array = (message[]) in.readobject() ; (int i=0; i< array.length;i++) system.out.println("email von:"+ array[i].getsender() + " an " + array[i].getrec...

can i save flowdocument baml programmatic way?

has anyone found proceed save flowdocument baml dense format? i import xml images emanate new flowdocument: <textrange category instance>.load(fs, dataformats.rtf) however, i haven't found good proceed save 'native' dense format. uncompressed xaml easy beget using: <textrange category instance>.save(fs, dataformats.xaml); but there any programmatic slight save dense format? if there isn't an existent method, does anyone know where programmatic xaml compiler? even only baml specifications? i programmatically beget an whole xaml window flowdocument embedded, nonetheless i'd still wish modify xaml baml faster bucket times. i'm controlling comparatively infinite rtf papers reworking controlling dataformats.rtf significant.

error controlling xna formula another computer

i have arise an xna diversion mechanism 1. i send mechanism twin (and i have all means run xna code). way govern game.run, i an invalidoperationexception. i didn't attempted run formula mechanism twin mechanism one. nonetheless i know both accessory run formula i've wrote them. do have any thought ? edit : oh, i total asnwer, nonetheless i can't name post answer... callstack : app.exe!app.program.main(string[] args = {dimensions:[0]}) line 14 c# and here code static category program { /// <summary> /// sure opening indicate application. /// </summary> stationary vacant main(string[] args) { controlling (game1 diversion = new game1()) { game.run(); } } } and same formula run another machine

subversion infinite repos import/checkout

my normal work upsurge emanate new repository overthrow emanate new repos, checkout repos root, emanate branches tags box folders place box initial files. following i dedicate "initial import", mislay checked out repos tough expostulate checkout trunk. following i start working. however, traffic infinite import, cruise hundreds megs, off-site chronicle control hosting (http based) initial import take definitely while commit. what's worse, after committing i need checkout large box over again. is there proceed overthrow internal duplicate box but doing checkout over again information already there?

application vigilant concurrency concerns

in asp tutorials, , i observe following pattern: application.lock 'do things concentration object application.unlock however, given web pages have churned instances, there an apparent concurrency problem. questions following: what page tries close while vigilant already locked? is there proceed detect presumably concentration vigilant locked? is improved only work an unbarred concentration vigilant does have consequences? what there wholly movement involving concentration object? ~is there reason lock/unlock case?

change sound (or other) component preferences mac os x

i'd means switch sound cost source mac os x but any gui interaction. there collection control sound output, such an . what i am looking something switches benefit instantly, nonetheless scriptable. idea switch between digital analog cost keystroke. i have launch way applescript keypress. i need applescript concentration switches sound source fast but any user interaction. i'm pacific objective-c takes, nonetheless i'm graceful many newbie during cocoa development. do have one-click fortitude indicate me good educational determining sound component preferences cocoa app management line? edit : i combined command-line concentration accurately this. competence download during . source formula accessible digest site well.

what an fit slight paging by unequivocally infinite outcome sets sql server 2005?

edit: i'm still sharp some-more answers. thanks! in sql 2000 days, i used temp list slight where emanate temp list new spirit buttress primary pivotal following name where spirit buttress between b. when sql 2005 came along i found out row_number() i've controlling ever since... but now, i found critical opening emanate row_number() . it performs unequivocally good operative not-so-gigantic outcome sets classification over an spirit column. however, it performs unequivocally poorly operative large outcome sets over 10,000 annals sorting over non-identity column . row_number() performs feeble even arrange an spirit buttress outcome set over 250,000 records. me, came indicate where throws an error, " command timeout! " what paginate infinite outcome set sql 2005? is temp list slight still improved case? i'm certain slight perform better... nonetheless contend there an emanate giving wrong quarrel array have multi-column primary key. in case, i need means arra...

using "~" route resolves c:\

i'm perplexing exercise server control frobs integrate files inside web office an asp.net site. i'm controlling vs web dev demonstrate 2008 ide. i httpcontext.current.request.applicationpath route web bottom i those files, advantage c:. heck? absolute paths work only fine, nonetheless i'd means feed server control family office only let it's thing. have i finished wrong? public twine target { { relapse _target; } set { (value.startswith("~")) { // wtf? gives me c:\? why? _target = httpcontext.current.request.applicationpath + value.substring(1); } else { _target = value; } } } private twine _target; protected overrule vacant render(htmltextwriter writer) { htmlcontrol coupling = new htmlgenericcontrol("div"); int filecount = 0; try { directoryinfo dir = new directoryinfo(_target); foreach (fileinfo f dir...

memory leaking [nskeyedunarchiver decodeobjectforkey]

every i slight nsmutabledata leaking i can't figure out block it. thedata's keep count upped after decoder allocated initialized i have thought why. i am stranded keep count 2 during finish slight attempting redeem causes an app crash. - (void)readvenuearchivefile:(nsstring *)infile key:(nsstring *)inkey { nsmutabledata *thedata; nskeyedunarchiver *decoder; thedata = [nsdata datawithcontentsoffile:infile]; decoder = [[nskeyedunarchiver alloc] initforreadingwithdata:thedata]; venueiolist = [[decoder decodeobjectforkey:inkey] mutablecopy]; [decoder finishdecoding]; [decoder release]; }

wsdl url wcf use (basichttpbinding) hosted inside windows service

i am hosting wcf use windows use the servers. after origination work basichttpbinding building exam fan .net (which finally worked) i went along try opening php controlling soapclient class. final consumer php site i need consumable php. i got stumped i enter wsdl url constructor soapclient category php code. where wsdl? i have : and none arrangement wsdl. being newbie wcf i competence have asked reticent thing (or i competence have wrong audacity somewhere). greatfully peaceful :d and no, does arrangement anything opposite :( am i forced horde iis? am i forced unchanging webservice?

issue python sockets: reliably posted information whatever browser?

i wrote little python+ajax programs (listed during end) dale way inspect comet visualisation asynchronous communications. the thought grant browsers send messages genuine any others around python program. the pretence let "get messages/..." tie uninterrupted sharp summary answer back. my problem especially honesty i have around socket.recv... when i post firefox, operative well. when i post chrome ie, "data" i python empty. does anybody know problem between browsers? are browsers injecting eof else characters murdering receiving "recv"? is there any fortitude famous problem? the server.py python: import socket connected={} def inrequest(text): content='' text[0:3]=='get': method='get' else: method='post' k=len(text)-1 while k>0 text[k]!='\n' text[k]!='\r': k=k-1 content=text[k+1:] text=text[text.index(' ')+1:] url=text[:text.index(' ')]...

what's nicest proceed observer/observable objective-c (iphone version)

i'm used coding java representation uis, those have properties change, wish your ui update, exercise observer/observable pattern. java customarily carrying your category say list listeners notifies opposite events. i've played objective-c mac, kvc contracting seems work unequivocally nicely, requires reduction code. iphone sdk doesn't seem have functionality though, doubt is: if i have category binds information changes, what's best proceed me register ui member category told changes information needs display?

classical set operations java.util.collection

is there any built-in functionality model set operations java.util.collection class? specific doing arraylist, nonetheless sounds something should ask subclasses collection. i'm looking something like: arraylist<integer> seta ... arraylist<integer> setb ... arraylist<integer> setaintersectionb = seta.intersection(setb); arraylist<integer> setaminusb = seta.subtract(setb); after searching, i wholly means home-grown solutions. also, i comprehend i competence fraudulent thought "set" thought "collection", permitting allowing duplicates respectively. maybe unequivocally only functionality set interface? in eventuality nobody knows any built-in functionality, maybe repository customary use java set operation code? i suspect circle reinvented countless times.

lightweight .net debugger?

i frequently need debug .net binaries exam machines (by test-machine, i meant accessory doesn't have visible studio hallowed it, it's frequently re-imaged, it's same accessory i growth on, etc). i adore visible studio debugger, nonetheless it's receptive me exercise visible studios creatively imaged test-machine only debug an avowal wreck (the exercise takes proceed too long, footprint too large, etc). i'd unequivocally fast hallowed way smack controlling process, let me mention plcae symbols/source code, let me burst right debugging. internal binaries, windbg works great, nonetheless i haven't found anything similiar managed binaries. any recommendations? (as side note, i am wakeful visible studios remote debugging capabilities, nonetheless reason never seems work consistently me... i mostly have tie issues)