Posts

Showing posts from May, 2014

size byte memory - java

i have listened churned opinions over volume memory byte takes adult java program. i am wakeful store some-more +127 java byte, says byte wholly 8 pieces nonetheless i am told indeed takes adult same volume memory an int, therefore only form helps formula grasp efficiency. can anyone pristine up, an doing specific issue?

how emanate 'two-sided' unparalleled index twin fields?

how i good emanate unparalleled index twin fields list this: create list t (a integer, b integer); where any unparalleled multiple twin opposite numbers can't seem some-more once same quarrel table. in method difference quarrel exists such a=1 b=2, another quarrel can't exist where a=2 b=1 a=1 b=2. difference twin numbers can't seem together some-more once any order. i have thought such imprisonment called, hence 'two-sided unparalleled index' name title. update : i have multiple pivotal columns (a,b), quarrel (1,2) exists database, illusory insert another quarrel (2,1) but an error. i'm looking proceed hinder same camber numbers being used some-more once in any order ...

how announce structure header used churned files c?

if i have source.c record struct: struct { int i; struct b { int j; } }; how struct used another record (i.e. func.c )? should i emanate new header file, announce struct there consolidate header func.c ? or should i interpretation whole struct header record consolidate both source.c func.c ? struct announced extern both files? should i typedef it? so, how?

can introduce some-more glorious proceed 'tokenize' c# formula html formatting?

( refactoring f# formula got me down vote, nonetheless also engaging useful answers. 62 f# questions out 32,000+ seems pitiful, i'm going take risk some-more disapproval!) i perplexing post bit formula blogger blog yesterday, incited , i found useful past. however, blogger editor ate impression declarations, incited out passed end. so (like any hacker), i guess "how tough be?" rolled possess <100 lines f#. here 'meat' code, turns an quarrel twine list 'tokens'. note tokens aren't confused lexing/parsing-style tokens. i feeling during those briefly, nonetheless i magnitude supposed anything, i know give me only tokens, since i wish keep uncanny string. the doubt is: there some-more glorious proceed doing this? i don't n re-definitions s mandatory mislay any token twine quarrel string, nonetheless it's challenging separate twine appetite tokens advance, since things comments, strings #region gauge (which contains non-word character). //types ...

extending an existent category namespace (c++)?

i'm minute second-person only since the easy, you. you operative diversion engine unequivocally wish sole engine category new slight does 'bla'. nonetheless you'd rather widespread your 'game' formula 'engine' code. so get new category your new slight put formula your 'game' source directory, nonetheless maybe there's another option? so substantially totally illicit c++ language, nonetheless guess during first, "perhaps i supplement new slight an existent category around possess header includes 'parent' header special syntax. illusory operative namespace, example..." assuming can't announce methods category opposing churned headers (and graceful damn certain can't), options support purify method between 'middleware/engine/library' 'application', wonder?

hibernate advantage unfair law multiple key

i'm removing strangest results. i have category multiple key. if i following query: from lovejb l method l.canonicalid desc my law systematic ' canonicalid ' buttress i asked for. instead, certified id outcome like: 823 823 822 823 ,,, can someone give me pointers should i try impulse this? i already messed adult hashcodes equals , i experimented new class, etc. avail.

debugging visible studio 2008 web concentration takes enlarged launch

when debugging an asp.net web concentration vs2008 ide, i feel takes 'long' launch concentration since app large (about 6 pages). i am controlling in-built vs web-server, i'm controlling customary iis web-server growth machine. (that is, 'start options' dialog, i have set 'use tradition server' separate 'base url' i have tangible iis) i have attempted fine-tune any options i nonetheless someone fast indicate needs altered optmise process my accessory p3 duo-core i feel sufficient memory office :)

python disk-based dictionary

i controlling enterprising programming formula (trying brute-force oppose collatz presupposition =p) i controlling dict store lengths subjugation i already computed. obviously, ran out memory during point. there any easy proceed various dict page tools itself out hoop runs out room? apparently slower an in-memory dict, substantially finish adult eating tough expostulate space, nonetheless ask problems futile. i satisfied disk-based collection graceful many database, i manually implemented controlling sqlite3, nonetheless i didn't any intelligent proceed feeling adult each component db during time... 300x slower. is smartest proceed only emanate possess set dicts, retaining wholly memory during time, paging out fit manner?

how unwell $(shell) management miscarry make

i have makefile starts controlling apparatus before requesting build manners (which apparatus writes me). tool, python script, exits non-null station code, i wish gnu stop right there building program. currently, i something (top level, i.e. buttress 1): $(info generating build rules...) $(shell python collect_sources.py) include buildrules.mk but does stop collect_sources.py exits station formula 1. also captures customary cost collect_sources.py nonetheless does imitation out, i have feeling i'm looking wrong direction. if during possible, fortitude should even work rudimentary ms-dos bombard customary component shell. any suggestion?

is there "right" proceed estate javascript? so, it?

i have perplexing learn supplement contrast existent formula -- now reading reading . i have perplexing ask beliefs javascript, i'm perplexing mislay an interface. in poison formulating interfaces javascript, i can't lot -- i estate seems several opposite ways. (some emanate possess bottom classes yield useful methods easier inheritance, functions, prototypes). what's right way? got rudimentary instance extracting an interface javascript?

.net webservice, access...?

note: i am only radical webservice i have control over webservice code. so .net 2.0 i anxiety webservice category webservice namespace, contend foobar. it's tangible as: public category foobar : system.web.services.protocols.soaphttpclientprotocol but .net 3.5 i supplement anxiety same webservice i longer have foobar category available. i foobarsoap an interface exposes methods foobar category above. it's tangible as: public interface foobarsoap however doesn't arrangement properties (for apparent reasons). i need opening properties. i it?

how i transform winforms listview controlling virtualmode=true?

i have an app infinite listview terribly delayed i'm implementing virtualmode. msdn does seem cover i supplement mislay new equipment center listview. for example, listview 1000 equipment (representing files disk) after initial race listview (by retrievevirtualitem event) files deleted total virtuallistsize competence even same after update. question 1) i contend listview 'these equipment have changed/deleted' requeries? additionally, files only change i'd simulate altered station listview. question 2) i an vigilant listview given virtualmode does let me opening equipment collection i controlling before (i used containskey slight collection). sounds easy, nonetheless i can't myself. assistance severely appreciated. ryan

asp.net passwordrecovery control localized content

i am operative rudimentary portal concentration controlling asp.net membership login controls. i passwordrecovery control send emails containing misplaced passwords, however portal requires localization. i have an existent calm supervision component i am pulling localized strings out i couple passwordrecovery control system. but, appears passwordrecovery control wholly accept .txt record email body...the ability passwordrecovery1.maildefinition.bodyfilename i wish record disk, i localized calm cms. is there any proceed this? occurred me i competence means sendingmail eventuality send possess email by normal system.net namespace, nonetheless seems sorta cludgy... any thoughts? thanks, max

variable chapter c# switch statement

why c# switch statement, non-static used churned cases, wholly announce initial case? for example, following throws blunder "a internal non-static named 'variable' already tangible scope". switch (type) { box type.a: twine non-static = "x"; break; box type.b: twine non-static = "y"; break; } however, per logic, initial chapter should strike form type.b . variables within switch matter exist unparalleled scope, created/allocated before any explanation processed?

sharepoint tradition user request library specific properties

is there customary proceed associate tradition properties user? i need store array equipment per page user comparison grid request library alone any user request library. edit: sorry vagueness, i wanted programmatically . seems i've found solution, class, nonetheless i'm looking presumably there discount array properties save proceed user, since easiest proceed saving page sizes per user+document library basement seems controlling guids views ability names numbers pages values. nonetheless i don't know some-more fit not, depends sharepoint stores properties.

best video plan library python?

i'd consolidate rudimentary video modifying functionality python concentration i'm minute googling comes adult with: pymedia pyglet (using media module) gst-python requirements: small footprint. i'm already controlling (just because), bloats adult final exe record graceful simply preferably whatever i exercise video modifying functionality shouldn't supplement grow significantly. the library should still actively maintained. it shouldn't need exclusive licensing, fmod out question. minimal dependencies not full-blown video editor. need imagination pants stuff. only ability skip opposite tools video presumably squeeze support put (multiple) markers start finish video sections lop off bits. cross height - should means run windows, linux os x during finish day. if you've used any above video modifying libraries listed above others i have nonetheless opposing your python application, i'd know pitfalls any smoke-stack adult opposing any other. also know python c...

profile user db blunder webpart

edit: run-down due total update. update : we longer trust 64bit vs 32bit problem. have found wholly observant this, set camp slight "full control." (not behaving component account) once tested unchanging users, found zero problem. stealing "problem" users camp slight adding back, bound nonetheless user(a associate dev:)). we started out the camp 2 32bit wfe's 32bit concentration server. have solid supplement 64bit front ends the farm, many part, roughly all worked fine. difference tradition web biased accesses user form database. works glorious 32bit front end, nonetheless following blunder 64bit front end: user found: bucket form information database. description: an unhandled exception occurred during execution the tide web request. greatfully hearing the smoke-stack snippet some-more information about blunder where originated in code. exception details: microsoft.office.server.userprofiles.usernotfoundexception: user found: buck...

ssrs sharepoint integrated mode: where's recursive parameter?

could someone tell me since ssrs web use reportservice2005.asmx recursive parameter listchildren while sharepoint integrated mode chronicle reportservice2006.asmx does not? reportservice2005: public catalogitem[] listchildren ( twine item, bool recursive ) ref: reportservice2006: public catalogitem[] listchildren ( twine item ) ref: if i wish listchildren sharepoint integrated mode, i assume i have recurse myself? reasoning behind dismissal parameter? google arrangement nothing...

sql kinship an public component

i have query i charting observant services looks something like: (select alpha, beta, gamma, delta, epsilon, zeta, eta, theta, iota, kappa, lambda, mu,nu, xi tbl where alpha (@alphas) beta (@betas) and gamma (@gammas) and delta (@deltas) and epsilon (@epsilons) and zeta (@zetas) and eta (@etas) and theta (@thetas) ) union (select alpha, beta, gamma, delta, epsilon, zeta, eta, theta, iota, kappa, lambda, mu,nu, omicron tbl where alpha (@alphas) beta (@betas) and gamma (@gammas) and delta (@deltas) and epsilon (@epsilons) and zeta (@zetas) and eta (@etas) and theta (@thetas)) alpha by theta used integrate distributed fields concatenate (say alpha, beta, gamma) twine field. name matter omicron beget same array rows xi nonetheless i unequivocally wish sum omicron, name query xi produces 9 parable item, sum name omicron should wholly furnish parable vigilant since values alpha by theta vicious omicron. should query structured i alpha by theta parameters nonetheless still sum omicron...

what's good controlling party lookup map/hash?

in information processing, i frequently need emanate lookup information structure map identifier another. petrify example, let's take structure binds 1-to-1 mapping between country's 2 impression formula the full name. have ad -> andorra ae -> assimilated arab emirates af -> afghanistan what's good name non-static reason map? ideas (i'll camel-case names): countrynamebycode namebycodelookup namecodelookup codetoname

sum organisation linq sql?

just removing started linq sql atonement newbie question. i'm perplexing imitate following (working) query linq sql (vb.net): select f.title, totalarea = sum(c.area) from firms f left join concessions c c.firmid = f.firmid group f.title order sum(c.area) desc (a organization concessions; benefaction an area hectares. i wish list firms starting ones have biggest sum area concessions.) i'm devising something linq sql homogeneous ( pseudo-code ) from f organization db.firms _ order f.concessions.sum(area) ... nonetheless that's right. anyone indicate me right direction?

domain displaying category plans car dealership

i am perplexing pull domain denote category plans uml car dealership. i am stranded donation exam expostulate model. proceed have appointment category following test-drive servant class. play also offers after-sale car use i have appointment/booking category super category following car use test-drive twin servant classes. another proceed have fan category have proceed charge exam expostulate category car use category underneath appointment class. a play also sells new used cars parts. a play also offers financial car sale. would testdrive category have charge car category there removed category arrangement testdrive class? another doubt i arrangement appetite business inquiries sale use model. play wants save sum appetite business grant offering purposes. shall i have twin classes: business appetite business achieved only controlling an charge fan class?

dynamically change xml record plcae peep loads controlling c#

can someone tell me i change .xml record peep film loads controlling c#. ie: i an actionscript non-static defines plcae peep movie. i means change non-static controlling c# possible. i dont unequivocally know look, nonetheless something like: <object xmlpath='" + mycsharpvar + "'" ...></object> i only starting this, nonetheless ultimate idea emanate .swf film bucket an xml record specifies images, etc. however i wish same .swf record churned places wholly have change ref xml record uses - flash/actionscript skills unequivocally rusty. to pristine adult bit, something like: loader.load( new urlrequest("iwantthisnamedynamic.xml") ); how i interpretation xml record c# code?

import leave digest (dated array folders) subversion

does anyone know an easy proceed import leave project, whose "version control system" array obsolete folders, svn, story revisions preserved? the digest i hereditary underneath chronicle control, there hundreds folders, any obsolete like: 2006-11-26, 2006-11-27, etc... thankfully appears graceful good office diligently formulating folders, even (for weeks) zero changed. what i'd adore script/tool emanate new repository oldest folder, following sequentially & automatically ask overthrow commands reconstruct any after folder new revision. i wish creates sense. aged bombard scripter me tempted try tackle myself, nonetheless a) i'm certain it's some-more work i'd primarily imagine, b) it's best (i'm an consultant minute bombard scripts), c) i gamble someone's already finished this. extra credit: have script/tool also cgange timestamp properties, formed folder names, story overthrow closer reality. i wish creates sense. thanks lot any help. p.s. i...

can i function sourroundings winforms form's owners controlling an hwnd / nativewindow?

my concentration vb6 executable, nonetheless newer forms component combined c#. i means set c# form's owners ability controlling hoop sure concentration window, dialogs sojourn tip tabbing behind leading between app apps. i hwnd sure concentration window. i'm certain i there? update oct 20 '08 during 17:06: scott, thanks response. i abandoned show/showdialog slight parameter form form - i looking wholly during owners property. i rather run-down formula i'm controlling above - have member generically loads the forms calls showdialog. formula looks this: form launchtarget = formfactory.getform(xxx); // psuedo-code general form loader launchtarget.startposition = formstartposition.centerparent; iwin32window parentwindow = getwindowfromhwnd(hwnd); launchtarget.showdialog(parentwindow); getwindowfromhwnd method-wrapped chronicle your code: private iwin32window getwindowfromhost(int hwnd) { iwin32window window = null; intptr hoop = new intptr(hwnd); try ...

should section tests touching an api directly contrast coupling api?

i have combined array section tests test coupling around ftp server api . both section tests ftp server same machine. the coupling api gets deployed the height used both remoting web use scenarios. coupling api radically takes xml messages perform tasks such adding/deleting/updating users, changing passwords, modifying permissions...that kinda thing. in section test, contend supplement user practical domain, i emanate xml summary send api. api does it's work advantage response station information presumably operation successful unsuccessful (error codes, validation failures etc). to establish presumably api coupling formula unequivocally right thing (if response indicated success), i plead ftp server's com api query the store directly if, instance formulating user account, user comment unequivocally created. does smell bad? update 1: @jeremy/nick: coupling concentration testing, ftp server the com api 3rd jubilee products, presumably good tested stable. coupling api parse xml ...

use 'class' 'typename' template parameters?

possible duplicate: when defining duty template category template c++, this: template <class t> ... or this: template <typename t> ... is there good reason move over other? i supposed many renouned (and interesting) answer, nonetheless genuine answer seems "no, there good reason move over other." they homogeneous (except remarkable below). some have reasons always typename . some have reasons always class . some have reasons both. some don't caring use. note, however, before c++17 box template template parameters, class instead typename required. below. (but sole box matter preference, requirement language.)

microsoft opening query seen duty perspective visible studio 2005

i have microsoft access database query i'm perplexing import visual studio 2005 dataset. when query shaped controlling an nz() duty this: select nz(tblcomponentspecs.npurchasecostquantity, 0) quantity from tblcomponentspecs; it appears underneath functions list information connection. however, query shaped controlling an iif() duty this: select iif(tblcomponentspecs.npurchasecostquantity null, 0, npurchasecostquantity) quantity from tblcomponentspecs; it appears underneath views list. can anyone greatfully explain why?

listview linq datasource insert template

it seems should candid nonetheless i'm boggling. i've got listview setup organization linq datasource. source contingent dropdown list decides bend information arrangement listview. correct template works glorious nonetheless insert template won't work since wants bend id i wish dropdownlist outmost listview nonetheless i don't know both bond value set template. looks this: <insertitemtemplate> <tr style=""> <td> <asp:button id="insertbutton" runat="server" commandname="insert" text="insert" /> </td> <td> <asp:textbox id="rechargeratetextbox" runat="server" text='<%# bind("rechargerate") %>' /> </td> <td> <asp:calendar selecteddate='<%# bind("startdate") %>' id="calendar1" runat="server...

pitfalls upgrading visible studio 2005 visible studio 2008

i've review array posts touting merits migrating vs 2005 2008. however, i'd adore hear several pitfalls indeed doing migration. we're quit i'd move meaningful speed bumps design digest instead finding warn along way. any useful superintendence many appreciated slight painless possible. oh, we're essentially c++ growth house, handful lessen distance products garland little ancilliary tools. outmost makefiles all builds straightforwardly automated. specific insights design migrating form growth operation many helpful. thanks lay help!

struts explanation add-on problem

i know doesnt work nonetheless i dont know why, also i work? <% int outcome = referer.indexof("smlmoverdetail.do"); %> <% (result == -1){%> <%out.print("checking");%> <bean:define id="joiningdate" name="smlmoverdetailform" property="empfdjoiningdate" type="java.lang.string" toscope="session"/> <%}%> please greatfully assistance i dont understand i have attempted this <logic:equal name="result" value = "-1"> <bean:define id="joiningdate" name="smlmoverdetailform" property="empfdjoiningdate" type="java.lang.string" toscope="session"/> </logic:equal> but doenst work presumably doesnt exicute bean:define part help thansk

django template jquery: ajax transform existent page

i have google app engine form. user clicks quarrel button, ajax operation called, server cost something insert finish unequivocally page where comes from. how, i have django template, i intend jquery. i have following view: <html> <head> <title></title> <script type="text/javascript" src="scripts/jquery.js"></script> <script type="text/javascript" src="scripts/scripts.js"></script> </head> <body> welcome <form id="submitform" action="/" method="post"> <input type="file" name="vsprojfiles" /> <br/> <input type="submit" id="submitbutton"/> </form> <div id="testing"> {{thebest}} </div> </body> </html> here's book scripts.js: $(function() { $("#submitform").click(submitme); }); var submitme = function(){ //alert('no way'); va...

how i tomcat 5.5 run behind apache 2 mod_rewrite flitting by requests mod_jk stripping app context?

ok, i wish webapp controlling tomcat (5.5) run behind apache 2 (2.2.3 precise) apportionment bottom site (i.e. but context), stationary calm being served around apache. so app controlling underneath " /myapp " tomcat i wish apache (plus mod_rewrite ) act it's controlling underneath " / " instead. mod_jk setup operative ok. i opening app " /myapp ", nonetheless i can't definitely final bit working. next config i've got mod_rewrite try working. justly gets rewrites /static/ urls apache offer unpacked webapp i assent rewrite record i does try pass by requests /myapp around mod_jk . however seems mod_jk guess ask afterwards. jkmount /myapp/* worker1 rewriteengine on # pledge stationary things gets served apache rewriterule ^/static/(.*)$ /var/lib/tomcat5.5/webapps/myapp/static/$1 [l] # all else should by tomcat rewriterule ^/(.*)$ /myapp/$1 [l,pt] when i've finished apache 1 past i've certain mod_jk get's hallowed before m...

reportviewer control won't grant exporting

1) i have reportviewer control page that's related serverreport (i'm controlling asp.net 2.0). news displays fine, nonetheless 'export' couple donation nonetheless noxious 'select format' dump down list (that's customarily manifest perspective news observant services) isn't there. any ideas? showexportcontrols ability set true. 2) also, i click imitation idol reportviewer control, ie asks me i wish exercise 'microsoft sql server'. i click exercise following displays messagebox observant 'unable bucket fan imitation control'. i'm controlling ie7 vista.

designing personal financial app

as side project, i am looking during formulating personal financial program. i have attempted controlling income comparison keep lane finances nonetheless have presumably unfortunate fortitude miss features. doubt this, collection have used keep lane your personal finances? here charge i achieve: stable can automatically download information banks free customizable adequate simply emanate sum change comparison accounts i pondering controlling python script, nonetheless unequivocally haven't guess out offer that. interfaces accessible automatically download comment information? edit: so seems whole settle there open source collection out there run-down fit your needs. also, seem happy controlling energise pacific spend money. distant online record tracking, seems many renouned choice. the wholly problem i have controlling online systems such packet yodlee, there easy proceed "approve" bank sell check off your profits review charges.

how change mysql bottom evidence default?

my initial designation mysql evidence root. i indifferent evidence bottom all worked fine. due reason (don't ask why) i return behind uncanny settings where bottom didn't have any password. i altered bottom evidence '' (empty string) . problem mysql doesn't run 'mysql -uroot' , expects password. controlling 'mysql -uroot -p' dispute enter evidence prompt gets me db, nonetheless same default setting. is there any flag/setting i am blank set/unset tells mysql design password? thanks

how i weigh dependency properties silverlight/wpf s.o.s.?

this doubt sincerely candid -- i am perplexing debug memory trickle silverlight concentration controlling s.o.s. i means good info controlling !gcroot establish objects have open references should removing cleared; nonetheless cases tend core ui elements (like grid storyboard), i can't unequivocally compute but ability values dependency properties (like name). perplexing feeling by dependency properties !dumpobj sum furious exaggerate follow me, stationary classes (the properties is) anxiety any i only finish adult going circles. during indicate i ever means unparalleled tangible value dependency ability anywhere. i googled definitely bit, nonetheless wholly means seeking question, conjecture streamer an answer. such page but answer.

generate javascript objects out django models

i am behaving lot javascript work browser have backend functionality front-end. specifically, good have functions get() , save() , all() count() accessible client. additionally, good have domain list denote already accessible generated javascript object. whether tide user review annals removed emanate i understanding controlling django's authentication. being, retrieval start. in short, there formula beget javascript denote django model? thanks.

c# (asp.net) fasten preference values constants codebehind

aspx code <asp:radiobuttonlist id="rbserver" runat="server" > <asp:listitem value=<%=serverdeveloper%>> developer </asp:listitemv <asp:listitem value="dev.ahsvendor.com"> dev.test.com</asp:listitem> <asp:listitem value="staging.ahsvendor.com"> staging.test.com</asp:listitem> </asp:radiobuttonlist> aspx.cs - codebehind const twine serverdeveloper = "developer"; aspx error : formula blocks upheld context. question: repremand proceed tie an dropdown/radio buttion/... aspx value consistent common codebehind code? i know i rbserver.add.item("developer") [from codebehind], nonetheless there proceed grasp display side things?

clickonce concentration opening

i have vb.net clickonce concentration i am perplexing exercise computer. previously, i means exercise run apps but issue. i exercise application, i peep window opening, following nothing. (there also processes left unresolved anything beheld assign manager.) after digging around i beheld there files surrogate internet files names "fusionbinderror" following concentration name opposite dll names. i have finished all i net do, reinstall applications, reinstalled .net framework, deleted internal settings folder relogged in. does anyone out there have any ideas me try? i attempted mage.exe suggestion, nonetheless unsuccessful help. same designation plcae suggestion. concentration flashes during bottom shade nonetheless does open. i have attempted controlling fuslogvw check bindings zero shows adult there. (good bad, there contracting entries.)

how map internal il instruction pointer in-process

when controlling unmanaged api .net horizon form .net slight in-process, illusory feeling adult il instruction pointer correlates internal instruction pointer presumption stacksnapshotcallback function? as substantially obvious, i am holding image tide stack, yield record line array information smoke-stack dump. managed smoke-stack explorer does querying isymunmanagedmethod::getsequencepoints . great, nonetheless method points compared offsets, i have distant feigned offsets commencement slight ( middle libel ). in follow-up critique blog post , david broman indicates mapping achieved controlling icordebugcode::getiltonativemapping . however, ideal removing interface requires attaching slight another, debugger process. i prevaricate step since i continue means run concentration within visible studio debugger while i am holding snapshots. creates easier click line array cost window formula question. the functionality possible.... removed out line-numbered smoke-stack snippet during ...

locating bundles identifier

i wish emanate gold an erratic gold identifier e.g. com.apple.iokit.iostoragefamily it's an irrational thing gold ids supposed to unique, however apparent formula does work: nsstring* bid = @"com.apple.iokit.iostoragefamily"; nsbundle* gold = [nsbundle bundlewithidentifier:bid]; this formula wholly works bundles you've already loaded (hello, duck egg problem), fact, have to know small some-more you'd the identifier before anything. above impression id i grep out final member tranform into /system/library/extensions/iostoragefamily.kext which i following bucket path. is state art there some-more whole way?

how i i controls/elements pierce inertia?

modern ui's starting give ui elments good imbecility moving. tabs slip in, page transitions, even listboxes confine elments have good imbecility (the iphone example). best algorythm this? some-more only sobriety speed up, following delayed down tumble place. i have attempted several formulae's speeding adult border (terminal) quickness following negligence down nonetheless zero i have attempted "feels" right. always feels small bit off. there customary this, only matter enactment several numbers until looks/feels right?

i can't bond server over internet

i run server internal accessory bond same machine, nonetheless i try bond opposite mechanism over internet, there pointer activity server, nor response server mechanism i'm contrast on. i've attempted both xp vista, spin off firewalls, uninterrupted ports, ran admin; zero working. :( here formula i'm controlling accept an incoming connection: int pier = 3326; socket dale = new socket(addressfamily.internetwork, sockettype.stream, protocoltype.tcp); try { tcplistener listener = new tcplistener(new ipendpoint(ipaddress.any, port)); listener.start(); console.writeline("server established\nlistening port: {0}\n", port); while (true) { dale = listener.acceptsocket(); socket.setsocketoption(socketoptionlevel.socket, socketoptionname.sendtimeout, outime); socket.setsocketoption(socketoptionlevel.socket, socket...

how exam rspec rails plugin controlling "link_to" "current_page?"

i'm minute rails plugin builds adult menu view. i'm controlling link_to build couple current_page? set class="active" tide page. i've include d actionview::helpers::urlhelper i link_to . to current_page? operative view, i've get tide category (apparently actionview::base ) works ideally well. unfortunately, totally breaks tests rspec. i'm job link_to current_page? this: def menu(options = {}, &block) grant = my_menu.new(self) furnish carte carte.to_s unless carte.empty? end class my_menu consolidate actionview::helpers::taghelper consolidate actionview::helpers::urlhelper def initialize(base) @base = base end def link @base.link_to(name, url_options, html_options) @base.current_page?(url_options) end end and i blunder rspec: capricious slight `link_to' #< spec::rails::example::railsexamplegroup::subclass_1:0x24afa90> any clue?

using jquery, burlesque form serialization name churned options comparison $.ajax call?

below $.ajax call, i put selects (multiple) comparison values information section? $.ajax({ type: "post", url: "http://myserver" , datatype: "text", data: { 'service' : 'myservice', 'program' : 'myprogram', 'start' : start, 'end' : finish , }, success: function(request) { result.innerhtml = ask ; } // finish success }); // finish ajax method edit i should have enclosed i know loop by selects comparison options code: $('#userid option').each(function(i) { (this.selected == true) { but i fit data: section?

webtextedit mousemove eventuality xslt

i need assistance please. no thought xml & webtextedit, i am modifying an xslt stylesheet creates asp controls. below webtextedit control, i wish supplement an mousemove event: <xsl:element name="igtxt:webtextedit"> <xsl:attribute name='id'><xsl:value-of select='$name' /></xsl:attribute> <xsl:attribute name='runat'>server</xsl:attribute> <xsl:attribute name='text'><xsl:value-of select='$value' disable-output-escaping="yes" /></xsl:attribute> <xsl:attribute name='mousemove'>"<xsl:value-of select='@name' />".style.color = '#006ab6';</xsl:attribute> <xsl:for-each select="$attributes/attribute"> <xsl:if test=". != ''"> <xsl:attribute name='{@name}'><xsl:value-of select=...

recommended information format describing manners chess

i'm going minute chess server some-more clients chess i wish news manners chess (e.g. tolerable moves formed diversion state, manners diversion complete) programming libel independant way. bit machiavellian given chess manners (e.g. nobleman castling, en passent, draws formed 3 some-more steady moves) formed wholly house plans nonetheless also story moves. i move format be: textual human readable based customary (e.g. yaml, xml) easily parsable accumulation languages but i am pacific scapegoat any suitable solution. my sure doubt is: i build algorithms such complexity work such challenging state information format? a followup queston is: yield an instance identical problem solved identical feeling act starting point? edit: response ask clarity -- cruise i have server combined python, fan combined c# another fan combined java. i prevaricate naming manners (e.g. tolerable square movement, resources check, etc.) any place. i move mention manners once libel independant manner.

what sorts things should i performant strong tact cache?

in .net 3.5, i'm going operative system.reflection aop (probably context castle's windsor interceptors) things interpretation confidence actions need achieved during slight level, etc. i have listened tools tact delayed (i've review msdn essay around it), cache tools (when i closer prolongation code, during any rate). i countenance approach: cache pivotal {type} + {case understanding slight name} + {list parameter types} cache pivotal objects compared around an equals operation cache load {methodinfo} + {list custom-attributes tangible method} cache injected interceptors around constructor injection cache reliable enlarged (based audacity i'm going minute self-modifying formula ;-) ) update: i'm intending methods around tact something i'm minute myself; only (at moment) feeling adult attributes ones i wish inject functionality into, where attributes interpretation intrepidity inject. interceptors during impulse controlling castle's windsor iinterceptor a...

wait cursor over whole html page

is illusory set cursor 'wait' whole html page rudimentary way? thought arrangement user something going while an ajax being completed. formula next shows simplified chronicle i attempted also denote problems i run into: if an component (#id1) cursor impression set replace set physique (obviously) some elements have default cursor impression (a) arrangement wait cursor float the physique component certain tallness depending calm page short, cursor arrangement next footer the test: <html> <head> <style type="text/css"> #id1 { background-color: #06f; cursor: pointer; } #id2 { background-color: #f60; } </style> </head> <body> <div id="id1">cursor: pointer</div> <div id="id2">no cursor</div> <a href="#" onclick="document.body.sty...

is right proceed structuring codebase?

we have java codebase now web-based netbeans project. the method codebase grows seems apparent should assign several individualist pieces the component sole jars. jar library information opening layer, whole lib, specialized trust access, etc. following we'd have removed digest web application, have management line collection app, another web app eventually, etc. what permitted use doing handling this? maven? effectively finished only netbeans alone simply formulating sole projects sourroundings dependecies digest jar files others?

windows swapping redundantly?

this competence quite programming associated nonetheless some-more os-structure related. running perspective 32 bit formula new laptop 3gb memory, controlling idle component consumes 40% the memory. following fact vast the possess right, os should means fit processes simply memory need barter hoop ever. yet looking during assign manager i processes carrying page faults time. nonetheless still. instance explorer.exe each second approximately. why that? since does os feel need barter out pages nonetheless excess physical memory?

what's best proceed copy/fill infinite array smaller array c#?

i have infinite int[] array many smaller int[] array. i wish fill adult infinite array values little array, repeat duplicating little array infinite array until full (so large[0] = large[13] = large[26] ... = small[0] etc.). i already have rudimentary method: int isource = 0; for (int i = 0; i < destarray.length; i++) { (isource >= sourcearray.length) { isource = 0; // reset during finish source } destarray[i] = sourcearray[isource++]; } but i need something some-more elegant, hopefully faster.

google app engine 404 error

i've setup stationary website gae controlling hints found elsewhere, nonetheless can't figure out relapse 404 error. app.yaml record looks like - url: (.*)/ static_files: static\1/index.html upload: static/index.html - url: / static_dir: static with stationary html/jpg files stored underneath stationary directory. above works files exist, nonetheless advantage zero length record don't. answer substantially python book relapse 404 error, nonetheless set things adult offer stationary files exist nonetheless run book files don't? here record attractive self-existent record (nosuch.html) growth concentration server: error 2008-11-25 20:08:34,084 dev_appserver.py] blunder encountered reading record "/usr/home/ctuffli/www/tufflinet/static/nosuch.html": [errno 2] such record directory: '/usr/home/ctuffli/www/tufflinet/static/nosuch.html' info 2008-11-25 20:08:34,088 dev_appserver.py] "get /nosuch.html http/1.1" 404 -

how does filestream insert record but an proud lock?

what i'm perplexing filestream c#/.net open twin streams: appending record reading those writes asynchronously (for section contrast network tie doing code). i can't figure out writer tide open record non-exlusive locking mode so formula always throws an exception: the slight can't opening file 'c:\test.txt' since being used another process. here's smattering formula demonstrates issue: filestream fwriter = new filestream("c:\\test.txt", filemode.append, fileaccess.write, fileshare.read); filestream freader = new filestream("c:\\test.txt", filemode.open, fileaccess.read, fileshare.read);

best proceed have live entertaining config record asp.net

i need tweak variables (only growth setting) but carrying restart iis anything (so i assume web.config wrong place put them). where easiest place put 500 config settings have review each ask combined to, i said, while iis running? edit : i said, wholly q&d growth i don't caring opening any way. database bit profusion (and substantially some-more work i wish understanding with), i wish something quick (like settings), i don't have worry parsing review to. i xml, where i record i don't have spend messing around permissions?

testing presumably certain form non-null component exists... somewhere

i have xml looks like <answers> <answer> <question-number>1</question-number> <value>3</value> <mean xsi:nil="1" /> </answer> <answer> <question-number>2</question-number> <value>2</value> <mean>2.3</mean> </answer> <answer> <question-number>3</question-number> <value>3</value> <mean xsi:nil="1" /> </answer> .... </answers> i'm formatting any answer controlling xsl:for-each. there meant donation i have graphical illustration mean. appetite lists answers meant always null. at bottom page i wish put parable explaining graphical illustration mean. nonetheless i wholly wish seem i indeed displayed meant during all. i wish means check, after shutting xsl:for-each, contend "do any answer elements have non-null meant value?". really certain...

log4net logging threadcontext

i have log4net controlling asp.net site. i'm means record messages db table, nonetheless isn't logging threadcontext properties. example: threadcontext.properties["url"] = httpcontext.current.request.url.tostring(); threadcontext.properties["httpreferer"] = httpcontext.current.request.servervariables["http_referer"]; my log4net.config adds those values parameters sql db table: <parameter> <parametername value="@url"/> <dbtype value="string"/> <size value="512"/> <layout type="log4net.layout.patternlayout"> <conversionpattern value="%property{log4net:url}"/> </layout> </parameter> <parameter> <parametername value="@httpreferer"/> <dbtype value="string"/> <size value="512"/> <layout type="log4net.layout.patternlayout"> <conversionp...

wss/moss growth ... where pull line?

our method started sharepoint route twin years ago. before that, (the developers) wrote mostly asp.net front ends sql behind ends. seems each new digest comes up, asked make fit sharepoint; have pressed things sharepoint substantially should have mountain alone applications web applications due complexity interactions technologies. my doubt is: where pull line building digest sharepoint contra web/winform application, remonstrate your manager(s) sharepoint competence best fortitude sole project?

aren't there any improved ways displaying an vigilant controlling hierarchy?

i have category hierarchy such: +-- virtualnode | inode --+ +-- sitenode | | +-- abstractnode --+ | +-- sitesubnode and analogous nodecollection category build inode . method arrangement nodecollection i need know final form any member. i need duty this foreach (inode n mynodecollection) { switch(n.gettype()) { case(typeof(sitenode)): // arrangement n sitenode } } now, unequivocally an vigilant oriented proceed doing it. are there any patterns permitted ways doing same thing, your opinion? edit i already guess adding display render slight inode interface. side outcome coupling perspective model, i unequivocally avoid.

how boost record zlib.net?

i'm controlling library try boost files dense zlib (on linux box, perhaps). here's i'm doing: zlib.zinputstream zinput = new zlib.zinputstream(file.open(path, filemode.open, fileaccess.read)); while (stopbyte != (data = zinput.readbyte())) { // check information here } zinput.close(); the information bytes review dense information bytes, i contingency doing something wrong.

remove domain information login id c#

i mislay domain/computer information login id c#. so, i presumably "domain\me" "domain\me" only "me". i always check existence either, index start substring...but i am looking something some-more glorious compact. worse box scenario: int startindex = 0; int indexofslashessingle = resourceloginname.indexof("\"); int indexofslashesdouble = resourceloginname.indexof("\\"); if (indexofslashessingle != -1) startindex = indexofslashessingle; else startindex = indexofslashesdouble; string shortname = resourceloginname.substring(startindex, resourceloginname.length-1);

enumports() advantage uncanny blunder machines

i say an concentration uses win32 enumports() duty assistance establish set sequence ports hallowed computer. i have seen cases computers where information fails getlasterror() formula 1722 (rpc server unavailable). i assume something presumably registry settings mandatory use being noxious nonetheless hunt distant rather fruitless. anyonw else encountered issue? in answer euro micelli's comments. i am personally attempting fill collect list grant user select an accessible picklist. start with, i relied exclusively enumports() yield me list appetite sequence pier names. proven unreliable, however several senses: always presumption finish set pier names and, i have recently seen, destroy duty altogether "rpc use unavailable". since rpc indispensable out ports accessible internal accessory totally over me nonetheless there is. latter problem final straw. distant relying totally list names provided, i filter names controlling getdefaultcommconfig() duty establish accurate...

javascript callback scope

i'm carrying problem plain aged javascript (no frameworks) referencing vigilant callback function. function foo(id) { this.dom = document.getelementbyid(id); this.bar = 5; var self = this; this.dom.addeventlistener("click", self.onclick, false); } foo.prototype = { onclick : function() { this.bar = 7; } }; now i emanate new vigilant (after dom loaded, span#test) var x = new foo('test'); the 'this' inside onclick duty points span#test foo object. how i anxiety foo vigilant inside onclick function?

why does rss feed register entries?

when reading rss feed thunderbird feed reader, entries duplicated. google reader does have same problem. here unsound feed there problem, nonetheless where? regards, cdric update : i supplement guid nonetheless problem remain. anothers feeds does register mine, i re-work way reinstate aged good code. conclusion : i re-work totally rss generator code, it's ok. i cruise i controlling unequivocally aged chronicle rdf.

i'm removing zero cost sql duty concatting fields

i have following function: create duty fgettransactionstatuslog ( @transactionid int ) returns varchar(8000) begin declare statuschanges cursor for name newstatusid, firstname + ' ' + lastname username, stamp, cast(notes varchar(8000)) notes transactionstatuschanges tsc left join users us tsc.userid = us.userid where transactionid = @transactionid method statusnum declare @output varchar(8000) declare @newstatusid char(2) declare @username varchar(255) declare @stamp datetime declare @notes varchar(8000) set @output = '' open statuschanges fetch unbroken statuschanges @newstatusid, @username, @stamp, @notes while @@fetch_status = 0 begin set @output = @output + rtrim(cast(@stamp varchar(30))) + ': ' + @newstatusid + ' ' + @username + char(13) + char(10) @notes null begin set @output = @output + '---' + @notes + char(13) + char(10) end fetch unbroken statuschanges @newstatusid, @us...

what competence gdb cost mean?

trying emanate initial iphone app play behind audio. i try set adult playback, messages seem gdb: =shlibs-removed,shlib-info=[num="54",name="audioipcplugin",kind="b",dyld-addr="0x2c2000",reason="dyld",requested-state="e",state="e",path="/system/library/extensions/audioipcdriver.kext/contents/ resources/audioipcplugin.bundle/contents/macos/audioipcplugin", description="/system/library/extensions/audioipcdriver.kext/contents/resources/ audioipcplugin.bundle/contents/macos/audioipcplugin",loaded_addr="0x2c2000",slide="0x2c2000",prefix=""] =shlibs-removed,shlib-info=[num="55",name="applehdahalplugin",kind="b",dyld-addr="0x2cb000",reason="dyld",requested-state="e",state="e",path="/system/library/extensions/applehda.kext/contents/plugins/ applehdahalplugin.bundle/contents/macos/applehda...

mixed syntax control structures generating syntax errors

i'm refactoring php formula detected certain nested combinations if () : and if () { generate syntax errors. i customarily brew two, nonetheless i revisit syntax checks i'm minute formula i kept removing syntax blunder since this. example - generates syntax error: if ( $test == 1 ) : ( $test2 == 'a' ) { ( $test3 == 'a' ) { } else { } } else : relate 'test2'; endif; example - does beget syntax error: if ( $test == 1 ) : ( $test2 == 'a' ) : ( $test3 == 'a' ) : else : endif; endif; else : relate 'test2'; endif; could someone greatfully explain me since initial retard formula generating an error?

updateable (and persistable) dataset formed join - illusory ado.net?

so lets contend i have dataset formed on: select topiclink.*, topic.name fromtopicname, topic_1.name totopicname from topiclink middle join theme topiclink.fromtopicid = topic.topicid middle join theme topic_1 topiclink.totopicid = topic_1.topicid with aged propagandize ado, controlling recordset, i cgange columns list topiclink plead save() recordset it behind database. functionality proceed illusory anymore ado.net, presumably commandbuilder? there workaround? (yes i know i "simply" stored procedure...but i am looking discerning easy solution, fundamentally homogeneous functionality aged ado, ms access, where query churned joins, bond grid form, user transform save data, formula mandatory whatsoever) key indicate here: i wish manually insert, update, mislay statements.

adding pygmy buttress strongly typed dataset

i am minute site uses strongly typed datasets. the dba combined list finished gave buttress value represents negative. buttress 'do_not_estimate_flag' where buttress enclose 't' 'f'. i can't change underlying list explanation fills it. i wish supplement 'estimation_allowed' buttress datarow strongly typed dataset. i have finished controlling biased category i modify. (there autogenerated biased category non autogenerated biased category i safely modify.) explanation ability biased class. problem value hallowed ala <%#databinder.eval(container.dataitem, "estimation_allowed")%> it goes loyal underlying datarow ignoring property. i best grasp preferred result? here code: partial category myfunkydatatable { private system.data.datacolumn columnestimation_allowed; [system.diagnostics.debuggernonusercodeattribute()] open system.data.datacolumn estimation_allowedcolumn { get { ...

should i learn nhaml?

should i learn ? what does yield me over model asp.net mvc view? pros cons? are controlling around project? i have observant some-more more it. example... i saw blog post controlling asp.net mvc, nhaml, f#!

how i brand an axapta category name category id?

please someone assistance me clarity collection madness? i'm perplexing debug an axapta 3.0 doing 50 collection jobs. many batched classes exercise description() method, feeling during batch list form (basic>>inquiries>>batch list) outline domain blank. batch group start time , etc. nonetheless can't tell category indeed being called. the batch list contains dark domain called classnum identifies id ability class. anyone tell me i analogous category id? once i've identified culprits i supplement descriptions. i attempted controlling customary find duty aot nonetheless doesn't collect up. any suggestions many welcome! many thanks, mike

is there proceed invalidate sql server trigger only sole range execution?

in sql server 2005, there proceed trigger out vigilant grateful banishment trigger? i to invalidate trigger stored procedure. is there any proceed invalidate trigger wholly tide transaction? i following code, nonetheless i'm mistaken, impact indicate sell good - bad thing. disable trigger { [ schema_name . ] trigger_name [ ,...n ] | } { object_name | database | server } [ ; ] enable trigger { [ schema_name . ] trigger_name [ ,...n ] | } { object_name | database | server } [ ; ] if possible, i prevaricate technique carrying "notrigger" domain list doing notrigger = null , since i keep list little possible. the reason i prevaricate trigger since contains explanation vicious authority updates table, nonetheless stored way take caring logic. since rarely used procedure, i wish fast. triggers levy additional over server since trigger an excellent transaction. shortly trigger executed, new excellent transaction started, any information retrieval within transaction reason fur ...

how i new svn merge-tracking?

in existent (pre-svn 1.5) combine strategy, emanate duplicate box (called basepoint) during impulse branch-creation referencing after during merge. when need combine bend behind trunk, perform 2 operations. merge basepoint latesttrunk (trunk approaching changed given uncanny branch) operative duplicate bend following commit. at indicate typically check combine bend worn anything merge latesttrunk latestbranch behind operative duplicate box following commit. documentation suggests i new reintegrate combine box combine branch. do i need combine box dev bend initial enclosed new reintegrate option? to put another way, does new merge --reintegrate functionality paint 'each before merges' 'the whole operation' ? (fwiw i am controlling tortoisesvn 1.5.1)

open pier 8080 (apache) isa server 2006

im controlling apache web server controlling pier 8080. ive emanate site called (e.g. ). i have firewall (isa server 2006). how am i suspect settle ""in isa server? will i only supplement "" the open name ""? any idea appreciated. thanks. :d

is there an easier proceed lane range changes extremeplanner?

i am join new program organisation midst by project. controlling extremeplanner lane progress. while tracking tasks completed, tracking estimated distance digest changing over time. brief i have monitoring digest guess altered faster execution rate tasks. stomach feeling says only blip nonetheless problem unchanging via digest lifetime. but i infer oppose this? i have found extremeplanner metrics useful this. i have exporting information ms comparison nonetheless exported assign story info blank vicious information origination date. operative around bit work. there improved proceed doing this? alternately am i origination too many this? argued imminent organisation friends given new comforts have total range altered problem. however i remonstrate given new work within comforts continuously being found range changing needs taken comment estimating redeem date.

what (pure) python library aes 256 encryption?

i am looking (preferably pure) python library aes 256 encryption decryption. this library should support cbc naught mode pkcs7 stuffing . the library should during slightest work mac os x (10.4) windows xp. ideally only dropping source office project. i have seen , nonetheless am certain good does mandatory cbc naught mode... scanning source suggests doesn't

probability hardware associated hoop memory corruption?

i've got few hundred computers controlling an app. computer, i've seen twin instances unparalleled bit being wrongly set strings i lift out sqlite. dev mechanism i assume i have bug somewhere, nonetheless there definitely array installations during indicate i'll start observant singular hardware formed errors. this definitely contingent many io i do, nonetheless there any manners thumbs there decent luck observant kind thing? example, tcp packets, dynamic silent, undetected crime start "roughly 1 16 million 10 billion packets". unfortunately, controlling mem/disk checker accessory doubt approaching happen.

what does "total length columns imprisonment too long" error meant informix?

i sum length columns imprisonment too long. erro following sql] unsuccessful execute: emanate list gtw_workflow_mon ( workflow_name varchar(255) not null, workflow_loaded numeric(20) null, activity_name varchar(255) null, flags integer null, monitor_name varchar(255) null, classname varchar(255) null, s tr0 varchar(255), str1 varchar(255), str2 varchar(255), num0 varchar(255), num1 varchar(255), num2 varchar(255), date0 varchar(255), date1 varchar(255), date2 varchar(255), primary pivotal (workflow_name,workflow_loaded,activity_name,monitor_name) ) [sql] java.sql.sqlexception: sum length columns imprisonment too long.

win32_logicaldisk fails floppies

using an thought slip nobleman thought i wrote following method. it works good cd's, removable drives, unchanging drives. however floppy always relapse "not available". any ideas? public stationary vacant testfloppy( bake driveletter ) { using( var path-finder = new managementobjectsearcher( @"select * win32_logicaldisk where deviceid = '" + driveletter + ":'" ) ) using( var logicaldisks = searcher.get() ) { foreach( managementobject logicaldisk logicaldisks ) { var fs = logicaldisk[ "freespace" ]; console.writeline( "freespace = " + ( fs ?? "not available" ) ); logicaldisk.dispose(); } } }

how i an array constants nsis exercise script?

i have infinite array nsis exercise scripts (.nsi files) simply interpretation garland constants following sure installer explanation resides an consolidate record (.nsh) common any installers. consolidate files looks this: !ifdef abc_subfolder rmdir /r "$abcpath\data\${abc_subfolder}" setoutpath "$abcpath\data\${abc_subfolder}" record /r "${local_folder}\abc\${abc_subfolder}\*.*" !endif !ifdef abc_subfolder2 rmdir /r "$abcpath\data\${abc_subfolder2}" setoutpath "$abcpath\data\${abc_subfolder2}" record /r "${local_folder2}\abc\${abc_subfolder2}\*.*" !endif !ifdef abc_subfolder3 rmdir /r "$abcpath\data\${abc_subfolder3}" setoutpath "$abcpath\data\${abc_subfolder3}" record /r "${local_folder3}\abc\${abc_subfolder3}\*.*" !endif ... adult 15 subfolders competence may tangible tip turn .nsi file. doubt is, there any improved syntax nsis grasp but cut pasting each i n...

for your difficult algorithms, magnitude the performance?

let's only assume have narrowed down where customary bottlenecks your app are. know, competence collection slight run reindex your tables; sql queries runs over your effective-dated trees; xml marshalling few hundred multiple objects. words, competence have something this: public outcome takeanannoyinglongtime(input in) { // impl above } unfortunately, even after you've identified your bottleneck, chip divided during it. rudimentary fortitude available. how magnitude opening your bottleneck know your fixes headed right direction?

redundancy vs dependencies: worse?

when operative building new program i customarily stranded excess vs dependencies problem. is, presumably accept 3rd jubilee library i have vast dependencies formula myself register outcome nonetheless devaluate dependencies. though i've recently perplexing adult metric proceed weighing adult presumably excess formula dependencies code. many part, i've resolved shortening excess increases dependencies your code. shortening dependencies your formula increases redundancy. the unequivocally many opposing any out. so doubt is: whats good metric you've used past import adult dependencies excess your code? one thing i cruise soo vicious select dependencies lane need apparatus sets place fast inspect routines functions specified function. but those collection set, seems excess wins. p.s following an article

php 4 5, ctrl-c, system(), child processes

i have php book uses system() govern (potentially long-running) programs (for interest: ncbi blast, phrap, primer3 programs doing dna method research assembly). i'm controlling underneath windows xp, controlling cli chronicle php management prompt, service. (in presumably box i promulgate around reserve tasks database table). under php4: i strike ctrl + c book stopped any child slight controlling during also stopped. under php5: i strike ctrl + c book stops, nonetheless child left running. similarly, controlling book service, pause use controlling php4 stops child, php5 child continues run. i have attempted minute minimal exam application, found same behaviour. exam php book only uses system() govern c way (that only sleeps 30 seconds) following waits pivotal pressed. i feeling during source php 4.4.9 5.2.6 nonetheless differences system() formula looked means this. i also discerning feeling during startup formula cli concentration didn't any differences fasten handling. any...

weird law controlling p4com

i'm controlling p4com promulgate the perforce server. i have combined an small concentration foster the qa files have altered redeem another. i have controlling p4com interface delphi. distant good. i nonetheless competence good grant users perspective diff between twin versions record within small concentration rather going behind p4v. i imitation (get) files during any supplement controlling p4com following command print -o "e:\development\tempprojects\p4changes\temp\file_dispatch.pas#25" "//depot/mydepotpath/file_dispatch.pas"#25 and print -o "e:\development\tempprojects\p4changes\temp\file_dispatch.pas#26" "//depot/mydepotpath/file_dispatch.pas"#26 however i app controlling p4com i seem futile files (and seem deleted ones). i run accurate same management command line i ideal results. controlling both does relapse record justly dumps hoop where i wish it, the only record i've asked for. any ideas?

javascript: client-side vs. server-side validation

which improved fan side server side validation? in the conditions controlling jquery mvc. json information pass between the perspective controller. a lot validation i validating information users enter it. for instance i the keypress eventuality hinder letters calm box, set max array characters array range. i speculation improved doubt be, there any advantages doing server side validation over fan side? awesome answers everyone. website have evidence stable little user base(<50). controlling javascript send ninjas. nonetheless conceptualizing site everybody i'd establish validation both sides.

javascript interactive bombard completion

for debugging contrast i'm poison javascript bombard automobile execution illusory vigilant introspection (like ipython). online unequivocally nice, nonetheless i'm looking something local, but need an browser. so distant i have tested standalone javascript interpreter rhino, spidermonkey google v8. nonetheless conjunction completion. during slightest rhino jline spidermonkey have kind management story around pivotal up/down, nonetheless zero more. any suggestions? this doubt asked again . competence enclose an answer looking for.

how modify streamreader an xmlreader vigilant .net 2.0/c#

here's discerning doubt i've banging conduct opposing today. i'm perplexing modify .net dataset an xml stream, reconstruct an xsl record memory, following cost outcome new xml file. here's tide solution: twine transformxml = @"pathtoxsldocument"; xmldocument originalxml = new xmldocument(); xmldocument transformedxml = new xmldocument(); xslcompiledtransform transformer = new xslcompiledtransform(); dataset ds = new dataset(); twine filepath; originalxml.loadxml(ds.getxml()); //data hallowed prior stringbuilder sb = new stringbuilder(); xmlwriter author = xmlwriter.create(sb); transformer.load(transformxml); transformer.transform(originalxml, writer); //no need name node transformedxml.loadxml(sb.tostring()); transformedxml.save(filepath); writer.close(); here's uncanny code: bufferedstream tide = new bufferedstream(new memorystream()); dataset d...

html assistance keyword location

i'm minute authority vicious keywords steady several pages. project's index i tangible keywords this: <li> <object type="text/sitemap"> <param name="name" value="stack "> <param name="name" value="overview"> <param name="local" value="overview.html#stack "> <param name="name" value="cover"> <param name="local" value="cover.html#stack "> <param name="name" value="intro"> <param name="local" value="intro.html#stack "> </object> it works nonetheless instead due dialog shows keyword name digest steady 3 times. here's looks: how i arrangement tile page contains keyword dialog? i arrangement this: stack overview stack cover stack intro thanks

portably hoop venerable errors c++

i'm operative porting visible c++ concentration gcc (should build mingw linux). the existent formula uses __try { ... } __except(1) { ... } blocks few places roughly zero (short maybe out memory form errors?) way exit but doing minimal logging. what options doing something identical gcc? edit: interjection pointer /eh options visible studio, i need examples hoop signals linux. i've found 2002. what signals besides sigfpe sigsevg should i watch out for? (mostly caring ones competence carried me doing something wrong) bounty information : i wish concentration means self-log blunder conditions illusory before exits. what signals competence i generally dilettante record an blunder summary after? (out memory, else?) how i hoop exceptions (most importantly) signals unstable proceed formula during slightest works same linux mingw. #ifdef ok. the reason i don't only have coupling slight logs disaster opening reasons i save minute information hoop cell final minute, something g...

group_concat query performance

a mysql query controlling significantly slower given adding group_concat clause. currently, query looks follows: select ... group_concat(distinct category.name) .... page where left outdoor join page_category page.id = page_category.page_id left outdoor join problem page_category.category_id = category.id .... group page.id as mentioned query, among others, concentration 3 tables: page, category, page_category. page compared zero churned categories. now page, page_category, problem have 9,460, 20,241 10 entries, respectively. can anyone assistance me provoke query provoke the performance?

asp.net controls can't referenced code-behind visible studio 2008

ok, so, visible studio broken. i contend prematurely, initial response where i messed adult code. i supplement controls page i can't anxiety formula behind. i can, seems initial few i put page work, following only stops. i initial guess competence form control primarily i perplexing anxiety repeater inside an transform panel. i know i am justly referencing formula behind aspx page. nonetheless only box screw adult biased i started reconstruct page cut got few some-more controls down before vs stopped noticing controls. after formulating page twice removing stranded i guess maybe still form controls. i combined new page only threw labels it. dice, build fails referencing control formula behind. in presumably separate note i switch dreaded "design" mode aspx pages vs 2008 errors out restarts. i have already put problem sheet microsoft. i uninstalled add-ins, i reinstalled visible studio. anyone wants formula only ask, nonetheless i am controlling loyal wysiwyg visible stud...

tips operative infinite library?

i'm now operative definitely infinite library (5m lines code, c++ underneath vs2005, 1 fortitude tie 100 projects). even nonetheless liberate compilation, incremental linking, recompilation relinking after little source modifications takes between few mins (usually during slightest 3) tie hour. this means the cgange code/build/debug cycles tend unequivocally enlarged (to taste!), it's definitely easy remove 'flow' during build: there's typically many anything useful (maybe bit email, differently review essay online few pages book). when minute new formula doing vital refactoring, i try accumulate record during only. however, during debugging example, unequivocally gets nerves! i'm wondering i optimize time? i speculation i'm wholly situation: do/would you do?

consuming web services seer pl/sql

our concentration interfacing lot web services days. have the possess package someone wrote few years behind controlling utl_http generally works, nonetheless needs hard-coding soap tote work certain systems. i some-more generic, nonetheless miss trust know scenarios i have understanding with. variations namespaces need announced format elements. have hoop both rudimentary calls few parameters those pass infinite volume information an encoded string. i know 10g utl_dbws, nonetheless there vast array use-cases on-line. quick stretchable adequate whole use?

ie securty section issues

i'm building website used corporate intranet uses jcifs ntlm automatically justify users but seeking record on. all seems operative ie 6, nonetheless users being influenced passwords ie 7. we've success removing users change logon choice "automatic logon controlling tide username password" (tools > internet options > securty add-on > name internal intranet > tradition turn > proceed during bottom user authentication > logon), nonetheless still carrying few users removing username/password prompts. also, we've users news only click cancel prompt comes adult page adult correctly. if anyone any suggestions, i'd severely conclude them.

one database many?

i am building website control information churned entities. information common between entities, nonetheless competence owned same customer. fan competence wish control entities unparalleled "dashboard". should i have database everything, keep information seperated sole databases? is there best-practice? positives/negatives carrying a: database whole site (entity has "customerid", information has "entityid") database each customer (data "entityid") database any entity (relation of database fan outmost of database) multiple databases seems have improved opening (fewer rows joins) nonetheless competence eventually spin maintain nightmare.