Posts

Showing posts from July, 2015

page.load emanate asp.net 2.0

i am perplexing assist another programmer page called default.aspx code-behind section, unfortunately i am during bit loss. biased category _default inherits overheadclass 'a garland tellurian variables here' private servant page_load(byval sender object, byval e system.eventarts) handles me.load 'function goes here' and overheadclass have open servant sub_overheadclass_load(byval sender object, byval e system.eventargs) handles myclass.load the preferred outcome overheadclass inherited, wish the bucket run before bucket eventuality page runs. there substantially unequivocally rudimentary answer i am missing. edit: i forgot note vb, c# used asp.

outputting manipulated querystring c#

using following formula i good formatted string: request.querystring.tostring gives me something like: &hello=world&microsoft=sucks but i formula reflection collection another vigilant (of same type) i type() behind tostring() slight instead. system.collections.specialized.namevaluecollection variables = new system.collections.specialized.namevaluecollection(request.querystring); if (!string.isnullorempty(variables["sid"])) variables.remove("sid"); response.write(variables.tostring()); is there tidier proceed cost rather looking building twine manually?

invalid postback callback argument. eventuality validation enabled controlling '<pages enableeventvalidation="true"/>'

i am removing following blunder i post behind page client-side. i have javascript formula modifies an asp:listbox fan side. how repair this? error sum below: server blunder '/xxx' application. -------------------------------------------------------------------------------- invalid postback callback argument. eventuality validation enabled controlling <pages enableeventvalidation="true"/> settlement <%@ page enableeventvalidation="true" %> page. confidence purposes, underline verifies arguments postback callback events issue server control creatively rendered them. information current expected, clientscriptmanager.registerforeventvalidation slight method register postback callback information validation. description: an unhandled difference occurred during execution tide web request. greatfully hearing smoke-stack snippet some-more information blunder where originated code. exception details: system.argumentexception: unfair postback callback a...

why odbccommand.executescalar() throwing an accessviolationexception?

i have retard formula commanded lift calm descriptions database list save calm file. looks (c# .net): odbccommand getitemscommand = new odbccommand("select id items", databaseconnection); odbcdatareader getitemsreader = getitemscommand.executereader(); odbccommand getdescriptioncommand = new odbccommand("select itemdescription equipment where id = ?", databaseconnection); getdescriptioncommand.prepare(); while (getitemsreader.read()) { enlarged id = getitemsreader.getint64(0); twine outputpath = "c:\\text\\" + id + ".txt"; (!file.exists(outputpath)) { getdescriptioncommand.parameters.clear(); getdescriptioncommand.parameters.addwithvalue("id", id); twine outline = (string)getdescriptioncommand.executescalar(); streamwriter outputwriter = new streamwriter(outputpath); ...

should method scripting libel dev group?

at work little lessen volume scripts assist us normal development. have some-more peaceful python, perl, php, etc... sometimes i cruise best let work libel many peaceful with. meant infrequently improved office book (as know some-more tricks language). also lead reduction growth per script. other times i cruise advantage many standardizing there competence some-more common libraries don't conditions "i can't work book since i don't know python". do cruise should method let select any book write?

jstl, beans, slight calls

i'm operative jsp where i need methods vigilant bean. before chronicle page does jstl works properly. new chronicle set adult this: <jsp:usebean id="pagebean" scope="request" type="com.epicentric.page.website.pagebean" /> <c:set var="pagedividers" value="<%= pagebean.getpagedividers() %>" /> <c:set var="numcolumns" value="${pagedividers.size()}" /> the non-static pagedividers list object. i'm encountering issue: i ask pagedivider 's size, an difference thrown. i know rudimentary jtsl blunder -- am i doing wrong? the blunder summary is: the duty distance contingency used prefix default namespace specified how i justly opening methods pagedividers object?

best proceed exercise .lastchild controlling antecedent jquery

currently controlling antecedent jquery the js frameworks. right now, jquery set $j() hinder conflicts prototype. in past, we've used lot prototype's element.down(), element.next(), element.previous() camber dom. however, i need rudimentary proceed collect final child element. i know i loop by an array controlling element.childelements() nonetheless i something inline reads purify pipelined. just guess i ask before i reinventing wheel. here's dash formula lastchild needs replaced: _find : function(rows, address) { var obj = null; (var i=0; i < rows.length && obj == null; i++) { (rows[i].down().classname == 'b') obj = this._find(rows[i].lastchild.down().down().childelements(), address); else (rows[i].lastchild.getattribute('tabaddress') == address) relapse rows[i].lastchild; } relapse obj; }

c# debate approval - user said?

i have need an concentration uses debate approval engine -- presumably built perspective one, third jubilee -- arrangement phrase, recognize user reads (or an estimation it). i also need means switch fast between languages, but changing libel handling system. the users controlling component unequivocally brief periods. concentration needs work but requirement initial training approval engine users' voices. it also regretful work windows xp obtuse versions windows vista. optionally, component needs means review information shade behind user, user's comparison language. i work around preference controlling pre-recorded voice-overs, nonetheless comparison slight text-to-speech engine. can anyone advise something me?

databases hoop semi-structured data?

other internal xml databases (such ), databases store query un- semi-structured data? i've handed lots information opposite formats (xml, json, yaml, csv, tradition formats), i need combine work with, nonetheless building schema relational database time-consuming difficult. mainly, i'm looking during open-source solutions. also, during indicate i'd information accessible some-how. i know there over transforming information common format work with. there good choices out there xml front: exist-db berkeleydb-xml seem have good xquery support. also, while still definitely young, couchdb looks aspiring the rudimentary "document" format. other avenues i've looked during oodbmss such zodb db4o; rudimentary parsing scripts following only store indirect record vigilant "as-is". problem there querying afterwards; oodbmss don't seem have good story query engines. what i'm penetrating "blobs-in-relational-db" solutions. seems penetrate doesn...

using apache commons fileupload

this only won't work. problem i know adequate even know ostensible happen. i can't debug code. i'd store upload surrogate folder "temp" following pierce "applets". greatfully help? servlet apparently being accessed, nonetheless i can't uploaded files... interjection advance. form (which combined controlling scriptlet - i put here means problems): <% out.write("<p>upload new game:</p>"); out.write("<form name=\"uploadform\" action=\"game.jsp\" " + "method=\"post\" enctype=\"multipart/form-data\">" + "<input type=\"file\" name=\"uploadselect\" value=\"\" width=\"20\" />" + "<br><input type=\"submit\" value=\"submit\" name=\"uploadsubmitbutton\" " + "onclick...

eclipse category chronicle bug

in obscure 3.4 i'm perplexing opening tests infinite product, enclosed libraries vecmath.jar (javax.vecmath package) java3d project. all operative glorious following perplexing run yesterday i exception/error enlarged after starting up: java.lang.unsupportedclassversionerror: javax/vecmath/point2f (unsupported major.minor chronicle 49.0) which i trust means i'm perplexing bucket java 1.5 category record 1.4 jvm unsupported. however i went category record check i saw obscure category record viewer: compiled point2f.java (version 1.2 : 46.0, super bit) so category loader says chronicle 49.0 nonetheless category record says the 46.0. i've attempted cleaning entirely rebuilding project, i've reliable compiler chronicle digest 1.4, jre 1.4 run settlement 1.4 jvm selected. i'm totally stranded this, does anyone have any thought competence causing this? thanks ===edit=== it turns out chronicle java3d proud java 1.4.2 hallowed c:\program files\java\j2re1.4.2_18\lib\ext....

wildcard characters struts-config, chronicle 1.1

my concentration controlling struts 1.1. i'm perplexing organisation url forwards, controlling wildcards. for example, movement this: action path="/edit/product" type="classname" disrespectful name="success" path=".myapp.main" action replacing initial line above action path="/edit/*" type="classname" doesn't work. any step required, disrespectful any url commencement /edit/ myapp.main? edit: removed brackets, formula wasn't arrangement up.

best practices: nutritious information via churned web slight calls

i have web use 8 web methods. methods called synchronously, initial authenticates user, rest methods perform section work, methods called on until work done. i need store state work (e.g. actions perform next, work finished now being performed.) i now have state vigilant contains information. my doubt best proceed insist vigilant between any web use call? note there competence churned users job web service, any it's possess unparalleled state. here scenarios i am thinking: idea #1 store vigilant session. idea #2 create an instance non-static hashmap userid particular data. something like: [webservice(namespace = "http://developer.intuit.com/")] [webservicebinding(conformsto = wsiprofiles.basicprofile1_1)] public category qbwcservice : qbwebconnectorsvc { // instance non-static reason tide event data... private dictionary<guid,session&gt sessions; open qbwcservice () { sessions = new dictionary<guid,session&gt(); } [webmethod] ...

how i an updatepanel prevent compositecontrol's dropdownlist

i have compositecontrol contains dropdownlist. i have set autopostback ability dropdownlist true. on page, i have: <asp:updatepanel id="updatepanel" runat="server"> <contenttemplate> <mycontrol:control id="customcontrol" runat="server" /> </contenttemplate> </asp:updatepanel> i've also attempted sourroundings childrenastriggers="true" updatemode="always," nonetheless conjunction resolved problem. the problem updatepanel intercepting compositecontrol's dropdownlist's post back. (a full post being achieved dropdownlist changed) how i updatepanel hoop postback? thanks! edit -- requested info country states both dropdownlists compositecontrol. country.selectedindexchanged += new eventhandler(country_selectedindexchanged); protected vacant country_selectedindexchanged(object sender, eventargs e) { states.datasource = xxx; states.databind(); }

sql transform list another formed id match

i have database account numbers card numbers . i review record update any tag numbers comment number, i am wholly operative comment numbers. i combined perspective fasten list account/card database relapse table id associated comment number, i need transform those annals where id matches comment number. this sales_import table, where account number domain needs updated: leadid accountnumber 147 5807811235 150 5807811326 185 7006100100007267039 and retrieveaccountnumber table, where i need transform from: leadid accountnumber 147 7006100100007266957 150 7006100100007267039 i attempted below, nonetheless fitness far: update [sales_lead].[dbo].[sales_import] set [accountnumber] = (select retrieveaccountnumber.accountnumber retrieveaccountnumber where [sales_lead].[dbo].[sales_import]. leadid = retrieveaccountnumber.leadid) it updates tag...

sharepoint alteration forms state accessory workflows

i've nonplussed newly operative sharepoint state accessory workflow. i anticipating supplement alteration forms workflow i reassign assign while the state. unfortunately, alteration forms don't seem documented state accessory workflows (pretty loyal disrespectful method workflows though) anywhere i find. a scopehandlingactivity the compared eventuality handlers don't seem rope good state machine. has anyone gotten alteration forms work state accessory workflow doing it? thanks!

calling performselectoronmainthread => multithreaded app?

i beheld following boring sure thread [self performselectoronmainthread:@selector(rollbar:) withobject:nil waituntildone:false]; was causing [nsthread ismultithreaded] news app had spin multithreaded. i guess wholly supposed to occur detach thread, something queueing a summary within thread shouldn't need do. any insights? this doubt same one. stop press my fault, rollbar: called [m_progress_bar incrementby: 0.5]; . the pretty, lickable, animating nsprogressindicator responsible for origination app spin multithreaded. surprising. i didn't know that. surprisingly, [m_progress_bar usesthreadedanimation] always returns no , even nonetheless bar animates app hung.

how set datagridcell's template wpftoolkit's datagrid?

is illusory set datagridcell's template controlling wpftoolkit's datagrid? illusory set impression ability unparalleled cave during time? i know there templatecolumn category lets user set templates displaying modifying cell's information nonetheless that's i'm looking for. i need arrangement two-dimensional arrays datagrid impression unparalleled cells according values. i'd also vm-m-v denote emanate viewmodel coupling any cave have an isselected ability binded cell's isselected ability i simply iterate over information source comparison cell's instead controlling datagrid's some-more quarrel oriented api.

client notification, should i an ajax pull poll?

i am operative rudimentary presentation use used broach messages users surfing website. notifications have sent genuine nonetheless competence improved user trust happened some-more frequently contend each 5 minutes. information being sent fan unequivocally infinite loyal disrespectful database query collect data. in reading conversations theme seem an ajax pull outcome aloft server loads. given i endure longer server delays value while have server pull notifications simply poll. it many harder exercise pull unfolding i guess i opinion here. thanks your help. edit: i have looked rudimentary ajax pull implemented rudimentary demo formed mike purvis. the fan bucket sincerely low during around 5k initial chronicle approaching stay proceed definitely time. thank everybody your responses. i have solid polling fortitude nonetheless hang within concentration library wish change after easier.

java slight never called while controlling json rpc struts2

i'm perplexing formula operative before developer written. yep, left company. :-( i have json rpc being finished js code. the js runs glorious callback slight gets an vigilant behind (not an blunder object). but slight java category never gets hit. the smd slight does strike though. public twine smd() { relapse success; // smack indicate reaches here } @smdmethod public vacant updaterowvalueforfield(string key, twine value, twine fieldname) { // never method. } <package name="entrybarrpc" namespace="/" extends="star-default"> <action name="ebtoggleselection" class="eboggleselectionaction" method="smd"> <interceptor-ref name="jsonstack"> <param name="enablesmd">true</param> </interceptor-ref> <result type="json"> <param name="enablesmd">true</param> </result> ...

c# generics: i constrain set classes don't exercise an interface?

i have 3 classes radically same nonetheless don't exercise an interface since opposite web services. e.g. service1.object1 service2.object1 service3.object1 they have same properties i am minute formula map any controlling an surrogate vigilant implements possess interface iobject1 i've finished controlling generics public stationary t[] createobject1<t>(iobject1[] properties) where t : class, new() { //check form allowed checkobject1types("createobject1<t>(iobject1[])", typeof(t)); relapse createobjectarray<t>(properties); } private stationary vacant checkobject1types(string method, form type) { (type == typeof(service1.object1) || form == typeof(service2.object1) || form == typeof(service3.object1) || form == typeof(service1.object1[]) || form == typeof(service2.object1[]) || form == typeof(service3.object1[])) { return; } pitch new argumentexception("incorrect form upheld serviceobjectfactory::" + slight...

what underline that's blank your favorite web framework?

there several unequivocally high peculiarity web frameworks out there today, everybody seems means becomes favorite. then, have zero nonetheless good things contend horizon question, news personal practice horizon finished web growth some-more pleasant them. that's excellent, web framework-related questions i've seen have answered useful ways while avoiding glow wars - says lot attend here it's pleasure review peculiarity content. so here's question: sure, there 99 reasons adore your favorite web framework, nonetheless 1 additional underline wish had? 1 area cruise improvement? hopefully we've changed past "my horizon improved your framework" futile discussions, we've also satisfied frameworks have saccharine spots. i certainly honour acknowledge favorite horizon perfect, i'd review forms comforts blank improved. knows, developers those frameworks competence hear implement/improve those features! thanks lay your responses.

bind namevaluecollection gridview?

what kind collection i should modify namevalue collection bindable gridview? when doing directly didn't work. code aspx.cs private vacant bindlist(namevaluecollection nvplist) { resultgv.datasource = list; resultgv.databind(); } code aspx <asp:gridview id="resultgv" runat="server" autogeneratecolumns="false" width="100%"> <columns> <asp:boundfield datafield="key" headertext="key" /> <asp:boundfield datafield="value" headertext="value" /> </columns> </asp:gridview> any tip many welcome. thanks. x.

pros cons controlling nested c++ classes enumerations?

what pros cons controlling nested open c++ classes enumerations? example, suspect have category called printer , category also stores information cost trays, have: class printer { public: std::string name_; enum type { type_local, type_network, }; category output_tray { ... }; ... }; printer prn; printer::type type; printer::output_tray tray; alternatively: class printer { public: std::string name_; ... }; enum printer_type { printer_type_local, printer_type_network, }; class output_tray { ... }; printer prn; printer_type type; output_tray tray; i advantages nesting private enums/classes, nonetheless comes open ones, business separate - seems some-more impression choice. so, move why?

rotation settlement instruction vector

i've enactment algorithms internet while i can't seem work, i'm tossing doubt out here; i am attempting news quickness settlement line point. sketch line isn't difficult: only insert line length velocity.length graph. puts line centered during indicate y-axis direction. need repremand series translation. the translational settlement challenging calculate: half quickness vector. rotational matrix, however, being extremely interloper me. given directional settlement <x, y, z> , what's settlement i need? edit 1: look; don't know question, substantially won't means give me an answer. here i now have: vector3f interpretation = new vector3f(); translation.scale(1f/2f, body.velocity); vector3f vec_z = (vector3f) body.velocity.clone(); vec_z.normalize(); vector3f vec_y; // anxiety vector, repremand later (vec_z.x == 0 && vec_z.z == ...

locating installer paths c#

in vs2008 i have writen c# service, an installer combined setup package exercise it. use needs bucket an xml record operate. where best place put record several filesystem folders offering vs setup project, i following ascribe paths code? thanks [i should indicate out the use runs localservice, means applicationdata folder offering "user's concentration information folder" vigilant vs setup digest accessible, even "install users" used during installation. i simply penetrate around this, nonetheless know best practice]

database denormalization opportunity

i'm looking plan distant pause steady problem branching out tables. instance fictitious case, contend i have list users contains name, login, evidence meta data. sole scenario, contend user limited login per specific subset ip(s). thus, have 1:m relationship. everytime box such following comes up, your normal work upsurge includes have 'users' list table such 'user_ips' box you'd have something such pk(ip_id), fk(user_id) ip user_ips side. for identical situations, folks customarily fan out heed above? there an event denormalize effectively here? maybe store ips blob buttress csv delimited fashion? strategies folks deploying today?

best settlement allowunsafeupdates

so far, investigate i have seen ridiculous set allowunsafeupdates ask operation prevaricate querulous site scripting. but, mandatory grant this, repremand proceed hoop conditions lessen any exposure? here best initial speculation arguable settlement definitely need grant web site updates request. best practice? protected overrule vacant onload(system.eventargs e) { if(request.httpmethod == "post") { sputility.validateformdigest(); // automatically set allowsafeupdates true } // post following allowunsafeupdates should used only // during indicate transform reset immediately after finished // note: true? cross-site scripting used get // mitigates vulnerability? } // indicate vigilant update using(spsite site = new spsite(spcontext.current.site.url, spcontext.current.site.systemaccount.usertoken)) { controlling (spweb web = site.rootweb) { bool allowupdates = web.allowunsafeupdates; //store uncanny ...

sql server 2005 focus opposite array columns

i am operative set information looks something following. studentname | assignmentname | grade --------------------------------------- studenta | assignment 1 | 100 studenta | assignment 2 | 80 studenta | sum | 180 studentb | assignment 1 | 100 studentb | assignment 2 | 80 studentb | assignment 3 | 100 studentb | sum | 280 the name array assignments dynamic, i need law simlilar following. student | assignment 1 | assignment 2 | assignment 3 | total -------------------------------------------------------------------- student | 100 | 80 | zero | 180 student b | 100 | 80 | 100 | 280 now ideally i arrange buttress formed "due date" included/associated any assignment. sum should during finish illusory (it distributed private query possible.) i know 3 assignments controlling focus simply controlling columns, perplexing enterprising heed i haven't...

relative instead comprehensive paths comparison vba

i have combined an comparison vba macro imports information html record (stored locally) before behaving calculations data. at impulse html record referred an comprehensive path: workbooks.open filename:="c:\documents settings\senior caterer\my documents\endurance calculation\tricatendurance summary.html" however i wish family route ascribe opposing comprehensive (this since i wish liberate spreadsheet colleagues competence same folder structure). html record comparison spreadsheet lay same folder i have guess difficult, however i am only totally amateurish it. i have searched web suggested solutions have seemed unequivocally complicated. i am controlling comparison 2000 2002 during work, nonetheless i digest liberate i wish work versions comparison possible. any suggestions gratefully received.

turning gqlquery outcome set python dictionary

let's contend i have denote this class foo(db.model): id = db.stringproperty() bar = db.stringproperty() baz = db.stringproperty() and i'm going gqlquery this foos = db.gqlquery("select * foo") i wish take law gqlquery spin arrange json twine i manipulate opposite languages. here's i'm doing now add slight foo category translates dictionary def todict(self): relapse { 'id': self.id, 'bar': self.bar, 'baz': self'baz } loop by gqlquery law manually supplement any foo instance dictionary foodict = {} for foo foos: foodict[foo.id] = foo.todict() return simplejson.dumps(foodict) my proceed above works nonetheless feels kind gross. is there cleaner, some-more "pythonic" proceed hoop this? the finish format doesn't have accurately i've finished above. only something translates simply json i understanding javascript/php/whatever.

parameter sniffing (or spoofing) sql server

a while ago i query i ran definitely lot users. still being grown tweaked nonetheless eventually stablised ran definitely quickly, combined stored way it. so far, normal. the stored procedure, though, dog slow. component inadequacy between query proc, nonetheless speed change massive. [background, we're controlling sql server 2005.] a permitted internal dba (who longer works here) took feeling during stored way conspicuous "parameter spoofing!" ( edit: nonetheless seems presumably also famous 'parameter sniffing', competence explain scarcity google hits i attempted hunt out.) we preoccupied stored way second one, wrapped new middle proc pre-existing outdoor one, called outdoor and, hey presto, discerning uncanny query. so, gives? someone explain parameter spoofing? bonus credit highlighting prevaricate suggesting recognize illusory cause discuss choice strategies, e.g. stats, indices, keys, mitigating situation

does linux yield monotonically augmenting time applications

does linux/unix/posix yield an api user-space applications opening monotonically augmenting clock, centisecond millisecond accuracy? on linux, /proc/uptime provides string-based illustration floating indicate array number seconds component up. gettimeofday(2) does yield monotonically augmenting clock. i getitimer(2) itimer_real domain, set timer start during (platform dependent) border replace fasten generated, nonetheless according male page longest timer run approximately 100 days, shorter approaching run time.

jquery - live validation plug-ins

i'm looking plugin jquery countenance pivotal pulpy after loses concentration (text boxes). i'm now controlling . works graceful good. wholly emanate i have i wholly general blunder message. for example: i need twine between 2 5 characters. the too brief i arrangement an blunder summary indicates short, equally the too long. i know i arrangement an blunder summary requires twine between 2 5 characters. the validation being finished some-more complicated. any ideas validators i plug-in arrangement unparalleled blunder messages. edit: the validation apparatus needs hinder sole letters numbers need form. thanks

function pointers, closures, lambda

i am only training duty pointers and, i reading k&r section subject, initial thing strike me was, "hey, kinda closure." i knew audacity essentially wrong somehow after hunt online i didn't unequivocally any research comparison. so since c-style duty pointers essentially opposite closures lambdas? distant i tell fact duty pointer still points tangible (named) duty opposing use anonymously defining function. why flitting duty function seen some-more comprehensive second case, where unnamed, initial where only normal, bland duty being passed? please tell me since i am wrong review twin closely. thanks.

need assistance selecting name an interface

i'm refactoring array classes an concentration interfaces instead bottom classes. here's interfaces i combined far: icarryable implemented vigilant objects iactable implemented actor objects iuseable implemented vigilant sub-classes iwieldable implemented vigilant sub-classes you vital base-classes still vigilant actor. have common interface both located map, have plcae property. map shouldn't caring presumably vigilant an actor an item, i wish emanate an interface it. here's interface feeling like public interface iunnameable { eventuality eventhandler<locationchangedeventargs> locationchanged; plcae location { get; set; } } that's problem, nonetheless i can't cruise interface. imappable comes mind seems bit lame. any ideas?

stripes: urls resolved by stripesdispatcher forwarded pre-compiled jsps

is illusory have stripesdispatcher unique determiner webserver urls looking during @urlbinding annotations movement beans also carrying those movement beans disrespectful pre-compiled jsps / servlets but wanting interpretation say <servlet> <servlet-mapping> pairs web.xml? basically, i only wish have wholly say @urlbinding annotations unique determiners accessible webapp paths. perhaps there proceed indicate jasper where servlets bucket adult automatically but carrying definitely interpretation any each one? the sole proceed achieved important, wholly i leave land eloquent servlet web.xml dependencies.

sql subquery

i have sql information looks this events id name capacity 1 cooking 10 2 swimming 20 3 archery 15 registrants id name 1 jimmy 2 billy 3 sally registrant_event registrant_id event_id 1 3 2 3 3 2 i name fields 'events' good an additional domain array now purebred event. box archery have 2 registrants, swimming have 1, cooking have 0. i suspect achieved unparalleled query nonetheless i'm certain repremand syntax. how query combined data? update: interjection good answers, rock!

rounded corners uiimage

i'm perplexing pull images iphone controlling lifeless corners, la hit images contacts app. i've got formula generally work, nonetheless catchy crashes inside uiimage sketch routines an exec_bad_access - kern_invalid_address . i guess competence associated i asked few weeks back, nonetheless i trust i'm sourroundings adult writing route correctly. here's formula i'm controlling - doesn't crash, outcome looks glorious anybody looking identical feeling giveaway steal code. - (uiimage *)borderedimagewithrect: (cgrect)dstrect radius:(cgfloat)radius { uiimage *maskedimage = nil; radius = min(radius, .5 * min(cgrectgetwidth(dstrect), cgrectgetheight(dstrect))); cgrect interiorrect = cgrectinset(dstrect, radius, radius); uigraphicsbeginimagecontext(dstrect.size); cgcontextref maskedcontextref = uigraphicsgetcurrentcontext(); cgcontextsavegstate(maskedcontextref); cgmutablepathref borderpath = cgpathcreatemutable(); cgpathaddarc(borderp...

flex: duty enclosed component

this identical before posting. nonetheless i wish duty exists sure mxml page. this sure mxml page: main.mxml <mx:application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:ns1="*"> <mx:script> <![cdata[ open duty changetext(currenttext:string):void{ switch (currenttext){ box "changetext": lblone.text = "more text"; } } ]]> </mx:script> <mx:hbox x="137.5" y="10" width="100%" height="100%"> <ns1:menu id="buttons"> </ns1:menu> </mx:hbox> <mx:canvas x="137" y="88" width="408.5" height="200"> <mx:hbox x="0" y="10" width="388.5" height="190"> <mx:panel width="388" ...

how i automatically return duplex channel gets faulted?

i'm building client/server concentration .net 3.5 controlling wcf. basically, enlarged controlling fan use (on several machines) settle duplex tie server over nettcpbinding. server following uses callback agreement fan perform certain on-demand oparations, fan responds an asynchronous heed (fairly customary things i think). i subclass duplexclientbase category hoop many communication. unfortunately, something goes wrong presumably finish (such network failure, astonishing exception, etc), channel gets faulted/aborted unbroken operations fail. i've gotten around discount non-duplex channels formulating recoveringclientbase category automatically picks adult fan faulted retries operation. so doubt is, there an dynamic proceed last duplex channel faulted? where should i check this, server client? unwell that, options i have pledge tie gets re-established? update: i'm looking recommendation specific duplex channels, where server competence try callback channel faulted. thus, i...

c++ headers - fortitude between interface doing details

one classes way uses third-party library. library vigilant private member class: // my.h #include <3pheader.h> category { ... private: 3pobject m_object; } the problem - any section way uses category should configured consolidate 3p headers. relocating another kind 3p imperil whole build... i twin ways repair - is 3pobject extern spin m_object pointer, being initialized constructor; second emanate an "interface" "factory" classes trade them... could advise another ways solve ?

projection/replication sql query?

my sql bit rusty -- there sql proceed digest an quarrel list looks something this: name slotvalue slots ---- --------- ----- abc 3 1 abc 4 2 abc 6 5 into 'projected' outcome list looks this: name slotsum slot ---- ------- ---- abc 13 1 abc 10 2 abc 6 3 abc 6 4 abc 6 5 in words, outcome set should enclose array rows equal max(slots), enumerated (slot) 1 max(slots), sum any 'slots' should simulate sum slotvalues projected out 'slots' position. pathological case: name slotvalue slots ---- --------- ...

how configure server little hosting association django-powered peep sites?

i'm looking during sourroundings adult little association hosts flash-based websites artist portfolios. fan control quarrel django-powered, yield interface uploading images, handling galleries, offering prints, etc. seeing decrease trade hosted sites finish adult during tip turn domain, outcome wholly stationary media hits (the html page embedded peep movie), i set adult lighttpd nginx hoop those requests, pass django things behind apache/mod_whatever. seems i set adult box, django sites horizon retaining any site's admin separate. i'm many server admin. there any gotchas i'm seeing?

how i solve "index unique_schema_migrations already exists" rails?

running rake db:migrate followed rake test:units yields following: rake test:functionals (in /projects/my_project) rake aborted! sqlite3::sqlexception: index unique_schema_migrations already exists: emanate unparalleled index "unique_schema_migrations" "ts_schema_migrations" ("version") the applicable biased db/schema.rb follows: create_table "ts_schema_migrations", :id => false, :force => loyal |t| t.string "version", :null => false end add_index "ts_schema_migrations", ["version"], :name => "unique_schema_migrations", :unique => true i'm manually changing index anywhere, i'm controlling rails' default sqlite3 adapter formula new database. (that is, controlling rm db/*sqlite3 before rake db:migrate doesn't help.) is test:units assign maybe perplexing re-load schema? so, why? shouldn't praise schema already adult date?

how notifiy clients altered information server controlling .net 2.0?

imagine winforms fan app displays sincerely challenging distributed information fetched server app .net remoting over httpchannel. since fan app competence controlling whole workday, i need slight report fan new information accessible user means start reload information needs to. currently i am controlling remoted .net events, serializing eventuality fan following rethrowing eventuality side client. i am unequivocally happy setup digest reimplement it. important me is: .net 2.0 formed technology easy use low complexity robust adequate tarry server fan restart still functional when unparalleled .net 2.0, exercise such feature? technologies / libraries use? i am looking provocation dispute problem. edit: the fan server exist same organisation, typically lan, maybe wan/vpn situation. this apparatus should wholly fan wakeful there new information available. i'd keep remoting removing tangible information fan given operative graceful well. msmq comes windows, doesn't it? should ok ...

making comparison functions impact 'other' cells

let's contend i emanate servant (not function) whose idea life take active cave (i.e. selection) set an adjacent cave value. works fine. when try modify servant duty try weigh from spreadsheet (i.e. sourroundings it's law "=myfunction()") comparison cry during fact perplexing impact value non-active cell, simply force duty relapse #value but touching adjacent cell. is illusory spin off safeguarding behavior? not, what's good proceed around it? i am looking something efficient developer accomplish over 1-2 week period, possible. regards, alan. note: i am controlling 2002, i preference fortitude work version. carrying said, destiny versions significantly easier, i'd know too.

problem parsing an xls record c#

ok, let's i make sense. i have way combined parses an comparison record works only fine. i following file: string filetoconvert = server.mappath(".") + "\\app_data\\cp-arfjn-flag.xls"; string connectionstring = "provider=microsoft.jet.oledb.4.0;data source=" + filetoconvert + ";extended properties=excel 8.0;"; oledbconnection tie = new oledbconnection(connectionstring); connection.open(); //this unbroken line assumes record default comparison format sheet1 initial square name, adjust accordingly oledbdataadapter adapter = new oledbdataadapter("select * [cp-arfjn-flag$]", connection); and works only fine. nonetheless i try tangible record (it reputed me another program) i error: system.data.oledb.oledbexception: outmost list approaching format. during system.data.oledb.oledbconnectioninternal..ctor(oledbconnectionstring constr, oledbconnection connection) during system.data.oledb.oledbconnectionfactory.createconnection(dbconnectio...

are there settlement patterns modelling structure containing teams, roles skills?

i need denote component where there organisation include users perform roles organisation have skills indifferent them. i.e. organisation 5 members, performs organisation celebrity role, perform respond to email role, nonetheless have an additional ability answer phone i'm perplexing establish i best denote this. this problem contingency have solved before, there any good resources denote this? edit: i need establish user certified do, since certain team, perform certain purpose have indifferent certain skill

good proceed "switch" makefile

i'm experimenting an updated build component during work; currently, i'm perplexing good proceed set compiler & flags depending aim platform. what i something like switch $(platform)_$(build_type) box "linux_x86_release" cflags = -o3 box "linux_x86_debug" cflags = -o0 -g box "arm_release" cc = armcc ar = armlink cflags = -o2 -fx ... which upheld gnu make. now, initial guess only do -include $(platform)_$(build_type) which graceful decent solution, however, creates tough an overview differs between files, plead i'm looking disrespectful minute & surpassing good 60-80 files, any containing set non-static definitions. does anyone occur know improved proceed accomplish this? i.e. sourroundings set flags options formed another variable?

how stringize/serialize flush code?

i wish means lambda/proc flush code, serialize i disk, following govern lambda later. arrange like... x = 40 f = lambda { |y| x + y } save_for_later(f) later, removed run flush interpreter, i wish means say... f = load_from_before z = f.call(2) z.should == 42 marshal.dump does work procs. i know perl , lisp trivial. nonetheless there proceed ruby? words, doing save _ for _ later ? edit : nice, nonetheless does tie over giveaway variables (like x ) serialize along lambda. instance ... x = 40 s = save_for_later { |y| x + y } # => "lambda { |y|\n (x + y)\n}" ... twine cost does consolidate construction x . there fortitude takes account, maybe serializing representation table? opening ruby? edit 2 : i updated answer incorporate serializing internal variables. seems acceptable.

.net assemblybinding settlement abandoned machine.config

i have conditions where i need means bucket assemblies gac formed biased names. method i have total following app.config file: <runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"> <qualifyassembly partialname="myassembly" fullname= "myassembly, version=1.0.0.0, culture=neutral, publickeytoken=0123456789abcdef"/> </assemblybinding> </runtime> this works accurately proceed i wish to. however, i place same component machine.config file, seems ignored, i filenotfoundexceptions perplexing bucket myassembly. the following public contracting record component app.config, bond succeeds: log: bond starts default bucket context. log: controlling concentration settlement file: c:\documents settings\jon_scheiding\my documents\source\testing\test projects 1\cmd\bin\debug\testers.cmd.vshost.exe.config log: controlling accessory settlement record c:\windows\microsoft.net\framework\v2.0.50727\conf...

why an summary category implementing an interface skip declaration/implementation interface's methods?

a extraordinary thing happens java an summary category exercise an interface: interface's methods totally blank (i.e. conjunction an summary chapter an tangible doing present), nonetheless compiler does complain. for example, given interface: public interface ianything { vacant m1(); vacant m2(); vacant m3(); } the following summary category gets merrily collected but warning an error: public summary category abstractthing implements ianything { open vacant m1() {} open vacant m3() {} } can explain why?

generating futile array proud range

how beget futile array within operation while proud certain range(s). eg. operation 1-10 nonetheless 2-4 7. solutions i've used far: generate futile an exam it is within dis-allowed range. based outcome presumably cost the number try again. map allowed ranges uniform range. a random between 1 6 following map back (ie. 6 becomes 10). create allowed ranges (1-1,5-6,8-10). randomly select operation (optionally use weights) array chosen range. what your solution?

unresolved outmost representation stationary category members

very simply put: i have category consists mostly stationary open members, i organisation identical functions together still have called classes/functions. anyway, i have tangible twin stationary unsigned bake variables category open scope, i try cgange values same class' constructor, i am removing an "unresolved outmost symbol" blunder during compilation. class exam { public: stationary unsigned bake x; stationary unsigned bake y; ... test(); }; test::test() { x = 1; y = 2; } i'm new c++ easy me. since can't i this?

any c++ libraries accessible modify between floating indicate representations?

i recently need conclude dec 32-bit floating indicate representation. differs ieee floating indicate representations array pieces allocated exponent mantissa. here's outline garland floating indicate formats: i managed play possess c++ formula things dec 32-bit boyant an ieee 32-bit boyant nonetheless wondering there any libraries out there tackled reworking others already. i checked nonetheless didn't any there.

how classify several program contrast methods?

would right?? black box 1.1 functional 1.1.1 equivalence 1.1.2 bva 1.1.3 case 1.1.4 regression 1.1.5 uat 1.2 non functional 1.2.1 contrast component design white box 2.1. functional 2.1.1 unit 2.1.2 integration 2.1.3 system do above tumble underneath right categories? the reason i ask since biased news i perplexing adult good anxiety categorised exam techniques well. research investigate several sources gave me. i wish useful someone else competence doing same research, nonetheless the crude should updated.

why does doing wm_nccalcsize means window jump?

i have wpf app snaps shade edges (i only set .top .left window you're within 20 pixels shade edge), nonetheless i recently total formula "mess" window chrome, nonetheless it's operative good (), it's causing "snapto" pierce window astonishing (e.g.: jumps left should chewing loyal down bottom) i've narrowed down doing wm_nccalcsize ... unequivocally rare since fundamentally don't anything, only contend hoop it, relapse 0. according support wm_nccalcsize, should only outcome whole window being treated fan (having non-client edge), nonetheless somehow also means whenever snap-to formula moves window down bottom screen, also moves left 134 pixels ... (moving edges identical side effects) enlarged i reason rodent drag it, flickers behind leading where it's ostensible be. i critique wm_nccalcsize doing out, snap-to works proceed should (but form doesn't feeling right). i've attempted all i thing wm_nccalcsize handler, nonetheless i can...

what customary clr xml petrify general an array?

this rudimentary emanate me meaningful repremand xml syntax. palace windsor i register line code: ioc.container.addcomponent<iinputrequesteddialog<string>, sealsinputdialog>("seals"); with xml: <component id="seals" service="myapp.inputrequesteddialog`1[[system.string]], myapp" type="myapp.sealsinputdialog, myapp" /> but petrify general twine array rather string? i xml-ize following? ioc.container.addcomponent<iinputrequesteddialog<string[]>, sealsinputdialog>("seals");

how kdiff3 used morally tortoisesvn solve conflicts?

i have tortoisesvn set adult kdiff3 dispute fortitude apparatus (i shows some-more information useful combine built-in tortoisemerge does). when i open record tortoise's "edit conflicts" management shows me 3 files i have name "merge->merge tide file" manually. problem kdiff3 saves outcome source_file.working instead source_file . but doing save as, genuine record dispute doesn't modified. there proceed around doing authority save each time? i know isn't quite programming doubt nonetheless it's an subordinate slight common adequate programmers should useful here. i couldn't answer elsewhere.

firefox links internal network pages work

i have .asp concentration where settlement files (.pdf) stored office (fed copier/scanner). combined record names stored database table. query launched web page couple record created. clicked settlement should displayed. this functionality works 100% internet explorer. such fitness firefox (and i have firefox users). combined hyperlink looks file://server/scanner/xyz.pdf the firefox helps advise reason this: links internal network pages work. confidence precaution, firefox forbids sites internet couple files stored your internal computing environment. files competence consolidate files your computer, mapped network drives, unc network paths none suggestions workaround seem work (or i am bargain stairs emanate settlement display) any suggestions?

latent dirichlet allocation, pitfalls, tips programs

i'm experimenting theme disambiguation assignment, i'm looking advice. which way "best", where best multiple easiest use, best before estimation, fast how i incorporate intuitions topicality. let's contend i cruise i know equipment corpus unequivocally same category, articles same author. i supplement analysis? any astonishing pitfalls tips i should know before embarking? i'd move there r python front ends whatever program, nonetheless i design (and accept) i'll traffic c.

oracle - does transaction, rollback shred undo_retention parameter work?

i'm dba, i'm carrying bit tough bargain oracle's transaction supervision process. from i supposed reading reliable-looking pages internet (most quite -- nonetheless don't worry comments), transaction commited, new information not reported tangible information retard yet, nonetheless stays logged rollback segment. someone issues name data, undo_retention seconds have upheld -- whichever twin events happens initial --, new information following (and wholly then) combined information blocks. but someone the company, presumably know, recently told me opposing : according him, transaction commited, new information is immediately combined information blocks, rollback segment/undo tablespace keeps aged information generation undo_retention seconds. aged information stays accessible during opening queries launched scns before transaction. so, unequivocally happens inside oracle, yield references behind adult your respond ? we're controlling seer 9.2.0.8. thanks advance. ...

what purpose cbsize member win32api structs

i frequently confront definitions win32api structures (but unparalleled it) have cbsize member following example. typedef struct _test { int cbsize; // members follow } test, *ptest; and following this: test t = { sizeof(test) }; ... or test t; t.cbsize = sizeof(test); ... my initial speculation potentially used versioning. dll receives pointer struct check cbsize member approaching value dll compiled. check repremand make-up finished struct. nonetheless i here you. what purpose cbsize member c++ structures win32api?

trouble deploying formula combined vs2008 server controlling .net horizon 2.0

when i combined digest i'm perplexing muster i comparison i wanted aim .net horizon 2.0. after deploying digest i try brows blunder page shows: <compilation debug="true"> <assemblies> <add assembly="system.web.entity, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/> <add assembly="system.web.extensions, version=3.5.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/> <add assembly="system.core, version=3.5.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/> </assemblies> </compilation> one offering points vs2008 arise muster server controlling .net2.0 am i doing wrong?

connecting sql server visible studio demonstrate editions

i rare visible c# 2008 demonstrate edition, database explorer, your options are: microsoft access sql server restrict 3.5, sql server database file. but visible web developer 2008 express, bond unchanging sql server, oracle, odbc, etc. for building command-line c# apps need pronounce sql server database, unequivocally need build your linq/data opening formula ide (visual web developer) your way another (visual c#)? it's tough workaround, nonetheless seems weird. microsoft wanted force stand visible studio bond sql server, since consolidate underline giveaway ides nonetheless other? i feel i competence blank something (like visible c#).

seriously, should i bad php code?

i'm doing php work recently, formula i've seen, tend few methods. (they also tend few variables, nonetheless that's another issue.) i wondering since is, i found note "a duty parameter an lifeless duty physique takes same doing 7-8 $localvar++ operations. identical slight impetus 15 $localvar++ operations" . is true, even php page collected cached? should i prevaricate controlling methods many illusory efficiency? i well-organized, human-readable formula methods wherever formula retard repeated. required boring formula but methods, there any programs "inline" slight bodies? proceed i good formula following dizzy adult before deployment. by way, formula i've looking during joomla 1.5 core several wordpress plugins, i assume know they're doing. note: i'm gratified everybody jumped doubt pronounce optimization in general , nonetheless fact we're articulate optimization interpreted languages. during slightest idea fact we're articulate p...

automated component contrast approaches multiple pc + embedded sw

the component consists hardware device pc. pc runs gui controls hardware device. exam device several exam hardware used tranquil rs232 gpib. automate contrast exam program have control exam hardware correlate pc gui. what best proceed know automate contrast system? there lots ways exam component this. tests tranquil cots exam program tradition exam program built house. presumably multiple cots packages best proceed - specializes gui contrast device. i've seen labview receptive contrast inclination - certain guis too. maybe withdrawal off gui covering windows app exposing an automation covering best approach. think? have tried? voting adult improved techniques should unequivocally interesting. "the best way" have take comment things like: many effective, maintainability, doing time, cost, etc.

any proceed establish speed removable expostulate windows?

is there any proceed establish removable expostulate speed windows but indeed reading file. i have review file, many needs review roughly accurate speed (e.g. establish presumably device usb2 usb1)? edit : only clarify, usb2 usb1 an example. restrict flash, ssd, removable drive. i am perplexing establish quick illusory genuine outcome responsiveness application. edit : should also clarify, finished programatically. substantially finished c++. edit : boost answer kind i looking (though i haven't combined any wmi c++). nonetheless i need know properties i have check establish family speed. i don't need accurate speed (like i conspicuous inadequacy speed between usb1 usb2), nonetheless i need know going slloooowww.

groovy govern "cp *" bombard command

i wish duplicate calm files wholly calm files src/ dst/ groovy:000> "cp src/*.txt dst/".execute().text ===> groovy:000> you management executes w/out blunder nonetheless record src/test.txt does copied dst/ this also fails: groovy:000> "cp src/* dst/".execute().text ===> groovy:000> however... "cp src/this.txt dst/".execute().text works also, "cp -r src/ dst".execute().text works why sip furious tag seem means management silently fail?

what techniques many effective traffic millions records?

i once mysql database list containing 25 million records, finished even rudimentary count(*) query takes footnote execute. i finished adult origination partitions, separating integrate tables. i'm seeking is, there any settlement pattern techniques hoop kind problem (huge array records)? mssql seer improved doing lots records? p.s the count(*) problem staid above only an instance case, existence app does gunk functionality sum query (for reporting), nonetheless zero unequivocally complicated. it's only takes definitely while (minutes) govern queries since list volume

reloading page around ajax window.location=self.location doesn't work

on homepage i got: <ul id="login"> <li> <a id="loginswitch" href="./login-page">log-in</a> | </li> <li> <a id="signupswitch" href="./signup-page">sign-up</a> </li> </ul> via mootools, i anchor elements id once they're clicked, ornate div popup next contains login signup form (with methods stop propagation events course) and on filling-up fields ajax kicks - that's ostensible emanate event reload page user have visible logged user-level-controls appears etc.. the ajax instituted mootools ajax category evalscripts choice set true. ajax page advantage book code: <script type="text/javascript">window.location = self.location;</script> this component works ideally - i'm wondering since i change anchors' href values href="#" scripts won't work anymore? does have anything window? did change the ability i clicked couple even ev...

what's repremand php.ini's session.save_path?

i'm controlling php windows/iis. my event variables don't seem recorded page-to-page. this code… //echos out event variables good format inspection echo "<p><pre>"; print_r($_session); echo "</pre></p>"; …outputs vacant values, this… array ( [s_firstvar] => [s_var2] => [s_third] => [s_numberfour] => [s_youget] => [s_thepoint] => [] => ) i found suggestions forum… i identical problem recently (win2000, iis), incited out php have write-access whatever office event information was stored in. competence wish feeling this. and have set session.save_path? what's repremand php.ini's session.save_path? and, problem?

tts engine recommendation

can anyone advise arguable cost effective tts engine telephony application? requirements are: must support windows platform must have abounding libel support including support accents (ie us english vs gb english) nice have: integration .net platform budget friendly though cost trusty telephony app, good means have finish control over peculiarity cost (for appetite uses future) i'd prying contention any practice opposite packages. note: unfortunately open source packages an choice around here.

exitcodes bigger 255, possible?

if yes, handling system, bombard whatever? consider following java way (i'm controlling java only an example, any libel good question, some-more operation systems): public category exitcode { open stationary vacant main(string args[]) { system.exit(integer.parseint(args[0])); } } running linux bash, advantage always values reduction equal 255, e.g. ( echo $? prints exit formula before executed command) > java exitcode 2; relate $? 2 > java exitcode 128; relate $? 128 > java exitcode 255; relate $? 255 > java exitcode 256; relate $? 0 > java exitcode 65536; relate $? 0 edited: (only, far) answer next entirely explain happens unixes. i'm still wondering oses.

is o/r mapping value it?

the elocution query languages (ql) presumption orms unequivocally powerful. unfortunately, once have quick challenging queries, following mysterious schema information problem arises, unequivocally challenging enroll dba assistance need? here are, biased organisation elaborating database, nonetheless can't review concentration ql, many reduction advise modifications. i generally finish adult grabbing generated sql out record them. nonetheless following advise changes it, does news uncanny ql? slight round-trip. so after decade compelling value orms, i am wondering i should minute sql manually. maybe i unequivocally wish horizon automate information marshaling many possible. question : have found proceed understanding round-trip emanate your organization? there sql-marshaling horizon beam well, maintains easily? (yes, i know pristine sql competence bond me database vendor. nonetheless is illusory standards-compliant sql.)

filter "list" divs javascript

i have repeater outputs divs following each vigilant returned method. <div class="editor-area"> <div class="title">the title</div> <div>the description</div> <div class="bottom-bar"> <a href="link">modify</a> <a href="link2">delete</a> </div> </div> i need have textbox page allows user filter list formed what's due field. i occur user types. i finished but seeking help, nonetheless i wish right. i'm controlling asp.net 2.0 webforms (unfortunately), i jquery useful (i have unequivocally small trust it). any tips samples appreciated. if filter operation takes integrate seconds, keep locking adult screen? eventuality should i filter on? there anything jquery javascript small cleaner?

how exercise querystring authentication

im building website fan eventuality out newsletters business (through website administration interface) the newsletters personal any subscribed recipients/customers. each recipient/ fan also user username/password enables pointer website control newsletter subscriptions attend sites community. this works charm. now fan wish manage subscriptions couple newsletter email pulpy automatically signs recipient/customer website need remember username password. this simply solved origination couple this: of impetus information should pristine calm nonetheless encrypted way. this however poses problem given wholly proceed user real website providing current username password. in name security, passwords stored hashed values database origination dilettante me insert evidence link. what best proceed accomplish but compromising security?

is there proceed datetime value timestamp form column?

i need name list does have buttress tells quarrel inserted, wholly timestamp buttress (values like: 0x0000000000530278). information alien list yesterday i need out accurately alien :( is there proceed controlling wholly timestamp info? i found that: timestamp 8 bytes consecutive conjuration number, zero conjunction date nor time. to tide value timestamp, use: @@dbts. perhaps there proceed timestamp value around specific time? assistance form select. maybe there good famous solution?

java2d: writing graphics vigilant line

is there proceed graphics object's 'setclip()' slight trim controlling line-ish shape? right i'm perplexing polygon figure nonetheless i'm carrying problems simulating "width" line. i fundamentally pull line, i strech end, i redraw nonetheless subtract line extent y-coordinate: polygon poly = new polygon(); for(int i = 0; i < points.length; i++) poly.addpoint(points.[i].x, points.[i].y); // retrace line supplement 'width' for(int i = points.length - 1; i >=0; i--) poly.addpoint(points[i].x, points[i].y - lineheight); it roughly works nonetheless extent line varies formed on the slope. i can't brushstroke drawline() methods since line change tone once passes erratic anxiety line. there doing figure i overlooked, an easy i create, let me some-more easily?

is there proceed collect elements controlling wholly internal names linq-to-xml query?

lets assume have xml: <?xml version="1.0" encoding="utf-8"?> <tns:registryresponse status="urn:oasis:names:tc:ebxml-regrep:responsestatustype:failure" xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"> <tns:registryerrorlist highestseverity=""> <tns:registryerror codecontext="xdsinvalidrequest - dcoumentid unique." errorcode="xdsinvalidrequest" severity="urn:oasis:names:tc:ebxml-regrep:errorseveritytype:error"/> </tns:registryerrorlist> </tns:registryresponse> to collect registryerrorlist element, xdocument doc = xdocument.load(<path xml file>); xnamespace ns = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"; xelement errorlist = doc.root.elements( ns + "registryerrorlist").singleordefault(); but this xelement errorlist = doc.roo...

how i take preview documents?

i'm operative record pity website, i need proceed take screenshots uploaded documents. the site support several record formarts, plain calm business papers (doc, xls, ppt, ...), videos (mpeg, avi, ...), images (jpg, gif, png, ...) pdf's, open office, etc. each request need have "preview" it, good biased fan wants following formats have previews: doc, xls, ppt pdf. files format optionals, they'll have preview i proceed take them. additionally, images problem since i only need consolidate thumbnail preview. also i ffmpeg converting videos flv i holding screenshots videos too. i pondering controlling supports business open business formats, i don't know translates jpg nonetheless during slightest translates pdf somenthing. the site being build php underneath drupal 5 controlling dedicated debian server box i select jod i'll webservice controlling practical server same machine. does anybody knows improved concentration slight converting files images? any assi...

php website, should i arise linux chain instead windows?

in few months i start digest php i am hesitating common : arise windows perspective 64bits machine. given i know few things linux, i cruise good proceed learn operative linux distribution. do cruise it's good thought not? i run ubuntu (on vista64bits). i pondering exercise means arise php. if cruise it's good idea, feel giveaway advise me educational i should know virtualizing an os, linux/dev. update i have build website php windows, doubt some-more it's good proceed start training linux building around practical machine? i have 4 gigs rams, well-spoken i exercise obscure practical machine? etc.

disable anchors chrome/webkit/safari

consider following code: $("a").attr("disabled", "disabled"); in ie ff, anchors unclickable, nonetheless webkit formed browsers (google chrome safari) does nothing. good thing noxious charge simply private does outcome href onclick attributes. do have any suggestions preferred result. answers contingency be: easily revertable, given i wish invalidate form quarrel controls while i have an ajax running. must work ie, ff, webkit

how parameters too many?

routines have parameters, that's news. interpretation parameters competence need, nonetheless too your slight challenging know maintain. of course, structured non-static workaround: putting those variables unparalleled struct flitting routine. fact, controlling structures foster parameter lists techniques described steve mcconnell code complete . nonetheless says: careful programmers prevaricate bundling information any some-more logically necessary. so your slight too parameters struct costume large parameter list, you're substantially doing something wrong. is, you're retaining coupling loose. my doubt is, when i cruise parameter list too big? i cruise some-more 5 parameters, too many. think?

how duplicate ms sql 2000 database programmatically controlling c#?

i need duplicate several tables db another sql server 2000, controlling c# (vs 2005). needs parameterized - i need means pass name database i am going duplicating tables. i dts parameters, nonetheless i can't any illustration formula does c#. alternatively, i only use drop list tablename select * tablename sourcedb..tablename and following transform indexes etc - nonetheless really kludgy. any ideas? thanks!