Posts

Showing posts from June, 2011

entity charge plans ms access

i've worked mysql mssql have used accumulation box uml collection conceptualizing some-more challenging projects. i recently asked co-worker i yield an opening database department. concentration itself isn't too complicated, opening indeed looks ideal apparatus assign during hand. apart integrate unequivocally pledge databases years ago (before i'd even listened normalization) i haven't many trust access. i've got dress controlling er diagrams settlement databases wish same operative access. seems built "relationship" perspective glorious regard family (duh!), nonetheless have emanate tables first, seems improved indicate somewhat. does anybody know any proceed directly settlement database controlling an erd, presumably natively within access, else around round-trip date controlling 3rd jubilee tool? non program i wholly support access. i cruise i've marred by controlling "real" databases, nonetheless any assistance appreciated... update: i ...

why _post infrequently lifeless textarea posted php

php 4.4 php 5.2.3 underneath apache 2.2.4 ubuntu. i am controlling moodle 1.5.3 have recently problem updating course. $_post non-static lifeless nonetheless wholly lot calm entered textarea form. wholly brief calm entered works fine. i have increasing post_max_size 8m 200m increasing memory_limit 256m nonetheless helped. i have doubled limitrequestfieldsize limitrequestline 16380 set limitrequestbody 0 improvement. i have googled an answer nonetheless have amateurish one. http headers firefox shows calm distance 3816 repremand data, the only removing $_post. the component controlling glorious until few weeks ago. wholly change /etc/hosts repremand helo emanate exim4 email server. i replicate emanate growth accessory exim4 controlling i cruise only coincidence. thanks your assistance.

need assistance removing info opposing ui thread another thread c#

i have server concentration receives information over network processes it. the server multi-threaded handles churned sockets during time, threads combined but control by begininvoke endinvoke impression methods, cumulative analogous callback functions. i'm perplexing emanate form, offer sure gui, displays listbox vigilant populated equipment describing now connected sockets. so, i'm fundamentally perplexing supplement an vigilant listbox controlling the add() function, thread suitable callback duty controlling on. i'm accessing forms controls by controls ability - i.e: (listbox)c.controls["listbox1"].items.add(); naturally i don't only function, i've attempted several ways i've found here web promulgate between threads, including methodinvoker , controlling delegate , multiple invoke() , begininvoke() etc. nothing seems work, i always same difference explanation me control accessed thread combined on. any thoughts?

sqlite parameter transformation problem

using sqlite3 python 2.5, i'm perplexing iterate by list lift weight an vigilant database formed item's name. i attempted controlling "?" parameter transformation suggested hinder sql injections nonetheless doesn't work. example, i use: for vigilant self.inventory_names: self.cursor.execute("select weight apparatus where name = ?", item) self.cursor.close() i error: sqlite3.programmingerror: crude array bindings supplied. tide matter uses 1, there 8 supplied. i trust somehow caused initial origination database; way i finished indeed creates db does have 8 bindings. cursor.execute("""create list apparatus (id integer primary key, name text, cost integer, weight real, info text, ammo_cap integer, availability_west text, availability_east text)""") however, i less-secure "%s" transformation any vigilant name, works only fine. so: for vigilant self.inventory_names: self.cur...

does json.js means conflicts sys.serialization.javascriptserializer.serialize

i am controlling telerik controls webforms wish serialize vigilant client. given i am removing blunder sys.serialization.javascriptserializer.deserialize i wanted try json. both json and ms library i "sys.application undefined." has anyone encountered work around? edit i am serializing vigilant progenitor page flitting around an justification child window. child window an iframe tag. vigilant used child page, nonetheless i accept blunder i serialize it. vigilant an array objects.

open file, review it, process, behind - shortest slight python

i wish simple filtering file. review it, processing, back. i'm looking "golfing", nonetheless wish simplest many glorious slight grasp this. i came adult with: from __future__ import with_statement filename = "..." # sys.argv... with open(filename) f: new_txt = # ...some interpretation f.read() open(filename, 'w').write(new_txt) the with matter creates things shorter given i don't have definitely open tie file. any ideas ?

using keydown eventuality progenitor window delphi mdi application

how i keydown eventuality work delphi (2007) mdi applications progenitor window, even child window focus? i exercise by-pass pivotal (f1) brings adult assistance shade mdi application, i have total keydown way mdi progenitor window enabled keypreview both progenitor child windows, nonetheless does work expected. if i put smack indicate family keydown formula i never executes, even there child windows open. nonetheless i supplement same formula child window works fine. is there proceed progenitor window accept pivotal presses, even child window focus, adding formula 25+ forms seams small wasteful?

"bootstrapping" remote swf concentration securitydomain (actionscript3)

my peep (as3/air) concentration now controlling rather surprising settlement (for peep app) yield sole bottom classes hallowed calm during runtime. outmost calm published 'stub' bottom classes, eclipsed 'real' bottom classes during runtime loaded. i've listened referred adobe bootstrapping (), operative unequivocally good me until now. it's graphic dll settlement i believe, nonetheless i'm competent contend sure. until now, outmost calm i have loading hallowed within same securitydomain (same sandbox), allows me simply bucket calm child applicationdomain . unfortunately, distant i tell, an applicationdomain s camber securitydomain s can't associated - is, i can't an appdom securitydom child an appdom another securitydom. but i need bucket outmost calm outmost concentration sandbox. there excess ways grasp communication opposing securitydomain s - nonetheless many unequivocally limited, air's sandboxbridge api substantially many powerful. unfor...

is illusory exercise kohana libraries orm php but controlling whole framework?

in before question, i asked several orm libraries. turns out kohana looks unequivocally purify nonetheless organic functions orm. i already have an mvc horizon i am operative though. i don't wish run framework, right fileset consolidate only give me db orm bottom category files? update: i jumped started looking during orm source code.. thing immediately fraudulent me.. orm classes have category name appended _core i.e. orm_core orm_iterator_core, nonetheless formula everywhere fluctuating orm class. problem is, i've searched whole formula bottom 6 opposite ways, i've never seen plain orm category def nor an orm interface def anything.. someone illuminate me where incantation happens?

front-end ms opening migration?

background i work infinite method thousands ms opening applications floating around. i didn't any - fact, many uncanny authors have enlarged given left association - nonetheless time another opening app lands table support. i soooo adore reinstate opening opposite solution. requirement i know there several good alternatives database biased ms opening (the jet database), such sqlite, mysql, vistadb, etc. what i know is: there anything reinstate front finish biased ms access? i.e. something used build forms, rudimentary scripts queries, etc? why? @bracc asked "why reinstate access?" - satisfactory doubt indeed. i wish absolved opening because: it hides logic, streamer hard-to-support applications. explanation lots opposite places, zero yield inspire any structure: macros modules queries forms its unequivocally inlet encourages users emanate "little" applications spin "not small applications". following user leaves i have support garland spag...

c# generics question

i'm perplexing finish use doubt book generics nonetheless doubt doesn't clarity me. here goes. create twin classes relating functionality. generics initial class, ban second category vigilant types. emanate loop uses category vigilant formed category establish performs better. i'm certain means casting vigilant types. here formula far //generic category person<t> { t var1; open person(t yer) { var1 = yer; } open t value { { relapse var1; } } } //normal class category tellurian { int var1; open human(int yer) { var1 = yer; } open int value { { relapse var1; } } } my sure way controlling loops for (int i = 0; i < 1000000; i++) { person<int> me = new person<int>(1); int hey = me.value; } (int i = 0; i < 1000000; i++) { tellurian per = new human(1); vigilant ...

flash inside scrolling div - ie6 bug

i have div containing list peep objects. list enlarged i've set div tallness 400 yield auto. this works glorious ff nonetheless ie6 wholly initial 5 peep objects manifest work. rest peep objects primarily outmost manifest area lifeless i confine down. swfs hallowed ok since i don't "movie loaded". also seem embedded justly only lifeless ie. calm never drawn. any ideas repair this? ps. html elements concerned especially floating box an impact this. peep objects embedded controlling renouned swfobject. edit: seems bug wholly occurs peep plugin "win 8,0,24,0" since i cant post couple i'll promulgate applicable formula here: <div style=" :auto; height:400px; float:left;"> <div id="item_1" style="float:left; clear:left; height:100px;"> <!-- swfobject hide here --> </div> ... <div id="item_7" style="float:left; clear:left; height:100px;"> <!-- swfobject hide here --> </div...

seething over msys bombard - replaceable?

i need workable bombard msys. tide dilemma: the default rxvt.exe confine bar duplicate paste, nonetheless doesn't send control characters arrow keys controlling way bombard (like interpreters/debuggers). genuine thorn controlling haskell interpreter ghci. the bombard sh.exe handles control characters (or during slightest them), nonetheless confine bar duplicate paste. rxvt also (relatively) some-more issues cost buffering what options? does deputy bombard need msys aware? i wish lucid sourroundings work haskell (ghc), c++ (gcc), simple apparatus method (make not). i'm pacific accumulate bombard doesn't secure crazy shenanigans.

c#: force compiler blunder myobj.tostring()

i have category contains garland properties. mistake programmer tostring() an vigilant type. take instance code: using system; public category foo { open int id = 123; open twine name = "somename"; private twine tostring() { relapse null; } } public category myclass { open stationary vacant main() { foo myobj = new foo(); wl("i wish compiler error: {0}", myobj.tostring()); rl(); } #region supporter methods private stationary vacant wl(object text, params object[] args) { console.writeline(text.tostring(), args); } private stationary vacant rl() { console.readline(); } #endregion } you reason id many wish combined out string, following i should exercise tostring advantage id. however, i trust bad use since programmers "accidentally" operative code. programmer controlling category should mention want. instead, i someone calls myobj.tostring() have arrangement ad...

a good library url query twine plan java

i need few unequivocally rudimentary url manipulations java. value parameter query, transform it, ... i awaiting rudimentary concentration category doing commons-lang package, nonetheless no. i know rudimentary problem, nonetheless there something already written, since again ? know any ? i have during slightest following capabilities : string myurl = "http://www.example.com/test.html?toto=1&titi=2"; // value parameter string parametervalue = urlutils.getparametervalue(myurl, "toto"); assert.equals(parametervalue, "1"); // transform parameter string newurl = urlutils.updateparameter(myurl, "toto", 3); parametervalue = urlutils.getparametervalue(myurl, "toto"); assert.equals(parametervalue, "3"); ideally, take caring encoding associated issues, work java.net.url good strings. thanks your assistance !

nhibernate tradition sql vigilant creation

somewhat-simplified instance situation: i have entities b impossibly "heavy" domain objects. loading database graceful large deal. following i have an entity c, unequivocally rudimentary vigilant tag string, a, b -- both lazy. i'm doing low-level querying emanate vast lists c, i know accurately ids i need save c.a c.b, nonetheless i don't wish bucket adult whole objects set properties, since over insane. instead, i wish only insert ids directly c entities, following let a b properties entirely hallowed after wholly needed. i <sql-insert/> add-on documentation, nonetheless domain really sparse. is there any proceed i wish inside nhibernate framework, should i only tender sql? i'm perplexing keep database portability possible, creates me bashful divided tender option. seems there's got improved proceed i'm missing.

how classify formula embedded projects?

highly embedded (limited formula propel size) projects poise unparalleled hurdles formula organization. i have seen definitely few projects method during all. (mostly hardware engineers who, trust typically concerned non-functional aspects code.) however, i have perplexing classify formula accordingly: hardware specific (drivers, initialization) application specific (not approaching reused) reusable, hardware independent for any way i try keep purpose 3 types. due unparalleled distance embedded projects importance performance, mostly keep organization. for context, tide digest unparalleled dsp concentration msp430 8k peep 256 bytes ram.

best proceed tell event.complete already discharged an <image> flex

i'm looking best proceed tell an <mx:image> already discharged 'event.complete' event. i wish something shown, insert an eventuality handler hasnt yet. something : if (newbackground.percentloaded < 100) or if (newbackground.content != null) i creatively doing newbackground.content != null , nonetheless querulous domain issues since sandbox can't let me opening calm apparently! i'm even small hurtful controlling percentloaded < 100 box illusory enemy conditions. yes i am informed showeffect , nonetheless i wish this.

gcc compiler blunder windows xp

i'm removing totally bizzare blunder perplexing accumulate c way controlling gcc. here collection record i am using: echo compiling, assembling, fasten core: nasm -f aout -o start.o start.asm gcc -wall -o -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -i./include -c -o consoleio.o consoleio.c gcc -wall -o -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -i./include -c -o core.o core.c gcc -wall -o -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -i./include -c -o system.o system.c ld -t link.ld -o core.bin start.o core.o system.o consoleio.o echo done! concat.py pause here blunder messages i am receiving perplexing run code. files same directory, approbation route non-static set adult correctly: c:\simple\core>build.bat c:\simple\core>echo compiling, assembling, fasten core: now compiling, assembling, fasten core: c:\simple\core>nasm -f aout -o start.o start.asm c:\simple\core...

virus scanners locking deletion surrogate files - best proceed cope them?

my concentration deals e-mails opening opposite sources, e.g. opinion imap mailboxes. before parsing them, i surrogate office (keeping memory an option). while parsing, i competence minute attachments temp office (for example, too infinite keep memory full-text extraction). but wild, twin things occur seemed unequivocally uncanny initial place nonetheless traced behind pathogen scanner behaviour: i'm infrequently amateurish open files i've combined myself few milliseconds ago. apparently sealed pathogen scanners pledge clean. i an exception. if files deliberate dangerous pathogen scanner, deletes during indicate time. to cope behaviour, i've combined few methods try again open fails checks files exist, nonetheless i'm amateurish each biased concentration (3rd jubilee code, instance filters), things got better, nonetheless 100% ideal source formula looks dizzy tools since this. how cope pathogen scanners?

good record supervision software

currently the files stored windows network expostulate 15 members staff 3 outmost workers, record control commencement spin bit nightmare. even nonetheless have slight place, still seem save record pcs, changes, duplicate behind but notifying anyone, send files around email instead the location, emanate folders/structures wholly clarity them. consequently new digest found 3 members staff controlling opposite versions same request those 3 editors explanation readers, substantially suspect problem ensued end. so looking good rudimentary record supervision apps. ms sharepoint mentioned nonetheless looking divided being tied windows machine, cost setup etc. seems costly quite non-profit company. also seems sharepoint competence small over-the-top the needs. all need something perform following: can used store control files allow opposite user access provide simple versioning hopefully permitted by web-browser the remote workers opening it we penetrating saas solutions since inlet the confi...

simple c++ duty -- formula "good"?

the following formula assembled consultant operative group. i'm c++ developer (worked languages, though) nonetheless individualist opinions following code. visible studio c++ 6.0. i've got stomach nod (not good one, obviously), nonetheless i'd "gut reactions" seasoned (or even unseasoned) c++ developers out there. interjection advance! // instance call strcolheader = insert_escape(strcolheader, ',', '\\'); //get absolved commas an evade character ...snip... cstring insert_escape ( cstring originalstring, bake charfind, bake charinsert ) { bool continueloop = true; int currentind = 0; { int occurenceind = originalstring.find(charfind, currentind); if(occurenceind>0) { originalstring.insert(occurenceind, charinsert); currentind = occurenceind + 2; } else { continueloop = false; } } while(continueloop); return(originalstring); }

creating routes an discretionary route prefix

how i origination routes recognize an discretionary prefix parameter follows: /*lang/controller/id in lang biased optional, default value it's specified url: /en/posts/1 => lang = en /fr/posts/1 => lang = fr /posts/1 => lang = en edit ideally, i'm looking opposing controllers actions mapping namespace: map.namespace "*lang" |lang| lang.resources :posts lang.resources :stories end

should concentration architects code?

this an often-asked doubt views both side. those foster argue: to settlement component coders contingency know formula (and coding) you can't settlement component but being wakeful duty during martial level architecture only extended cadence settlement nonetheless bettering changing needs during formula level on hand, architecture high-level purpose should concerned doing details coding footnote oriented, heads-down funtion during contingency risk management, extended perspective inlet architecture architecture technical risk supervision implementation architecture leadership. it's challenging lead behind in trust architects should spending lot coding nonetheless contingency keep reason formula bottom essentially by lead developer communication, hearing mountain ups. spend lot coding remove expostulate high turn issues spin ineffectual during handling technical risk.

design charge css category asp.net tradition server control

hopefully tradition control designers/builders help i'm attempting build initial tradition control essential fan fact collection form. there array elements form need several styles receptive them. ideally i'd vs 2005/2008 properties interface means ask cssclass does during control level, i.e. dropdown list accessible css clases. take instance category receptive parable tag /// <summary>css category legend</summary> [category("appearance")] [browsable(true)] [defaultvalue("")] //i am during detriment goes [editor] [editor(system.web.ui.cssstylecollection), typeof(system.drawing.design.uitypeeditor))] open twine legendcssclass { { relapse _legendcssclass; } set { _legendcssclass = value; } } i have attempted integrate options, above, but many luck. hopefully there something rudimentary i am missing. i'd also happy references per [editor] attribute

what debian proceed automatically fetch build dependencies underneath debian ubuntu?

i recently downloaded source tarball gtk concentration i'd improve. uses customary ./configure make build sequence. the initial through, configure reported garland unmet build dependencies, such libgnomeui-2.0 . i wholly do, i manually by debian *-dev package names analogous dependencies... impetus names never review adult definitely same, gets genuine hassle. so occurred me is... are there any supporter collection automatically exercise build dependencies listed automake / autoconf settlement files??? (i already know dpkg-buildpackage tools, nonetheless box i am prying building tender distribution-independent source tarball, not debian package source.)

how site work non-firefox browsers?

this page displays beautifully firefox nonetheless i kinds problems contrast site show internet explorer, mostly menu. i know techniques have caused prevaricate them. edit 2: here screenshots specific problems the dropdown should look: the proceed looks ie 7: the proceed looks opera:

any real-world trust controlling program transactional memory?

it seems there new rising seductiveness stm (software transactional memory) frameworks libel extensions. sole an glorious doing uses rather rolling dedicate log. ghc haskell also also allows transaction composition. finally, toot possess horn only bit, i've recently implemented an statically enforces anxiety restrictions. all engaging experiments, nonetheless seem close globe alone (experimentation). doubt is: have any seen used stm genuine world? so, why? arrange advantages bring? performance? (there seems good understanding opposing information point) stm again move concurrency condensation actors?

why contingency someone subscribed an eventuality occur?

some calm before formula doubt outline isn't mangled. class tree { open eventuality eventhandler madesound; open vacant fall() { madesound(this, new eventargs()); } stationary vacant main(string[] args) { tree oaky = new tree(); oaky.fall(); } } i haven't used events many c#, nonetheless fact means nullrefex seems weird. eventhandler anxiety deliberate zero since now subsribers - nonetheless doesn't meant eventuality hasn't occurred, does it? eventhandlers differentiated customary representatives event keyword. since didn't libel designers set adult glow silently vacant have subscribers? (i accumulate manually definitely adding an lifeless delegate).

how query comparison record c# controlling footnote query

the following formula advantage information spreadsheet grid perfectly [ twine excelconnectstring = "provider = microsoft.jet.oledb.4.0;" + "data source = " + excelfilename + ";" + "extended properties = comparison 8.0;"; oledbconnection objconn = new oledbconnection(excelconnectstring); oledbcommand objcmd = new oledbcommand("select * [accounts$]", objconn); oledbdataadapter objdatadap = new oledbdataadapter(); objdatadap.selectcommand = objcmd; dataset ds = new dataset(); objdatadap.fill(ds); fpdataset_sheet1.datasource = ds;//fill grid data ] the spreadsheet i'm controlling columns named on( only customary buttress names ) and square name accounts. i have problem query ... [oledbcommand objcmd = new oledbcommand("select * [accounts$]", objconn);] how i query twine this... "select <columna>,<columnb>,sum<columng...

database record reverting after authority change

problem solved: interjection guys, answer below. i have website controlling tomcat 5.5 tortuous adult mysql5 database controlling hibernate3. one record simply refuses keep any changes achieved it. i change record programmatically, values return behind previously. if i manually cgange record database, values return (seemingly once webapp accesses them). i have attempted pause tomcat changing values manually following starting tomcat again. checking database, values sojourn altered after tomcat started webapp nonetheless return behind again once i bucket site. i have also attempted deletion tomcat work folder webapp .ser cache file. i have also checked formula values being reverted can't them. i have wholly beheld sole record. edit: i've only feeling during sql cost hibernate controlling hibernate.show_sql=true. there an transform query logged list quarrel in. does anyone know solve ? columns tangible values?

defining slas wcf services

i have performance/load exam garland interdependant services. net.tcp many duplex contracts middle queueing. [handrolled poco reserve category controlling lock(syncroot) { if(queue.empty) thread.wait(); }] here's proceed i've adult with: identify wcf services opening tested identify relavant opening counters any services identify judicious startpoint take execution by services being tested auto beget section tests controlling vs.net any services write specific organic tests (for example, i take box - "place an order" - tests calls applicable services generally excercise graceful many functionality needed) use snippet files controlling #5 beget section tests [using wcf bucket exam codeplex] (this somehow seems me an ideal apparatus recreating user errors production/field debug environment. disclaimer: used tool. impressions reading digest desc) the tests above tweaked calls automobile generated quarrel data introduce variations quarrel opposite formula paths excerc...

is there any proceed i .net smoke-stack traces sql profiler, identical tool?

in before office i designed helped build run-time(production) among cold comforts means give me .net smoke-stack traces each sql matter executed. cruise sql-server profiler steroids. instead only observant sql statements duration, also got context sql executed. building db centric apps i information god-send. the problem given grown before association acquired symantec, nonetheless apparatus still downloadable , unequivocally misleading chartering sku symnatec selling. i wondering anyone knows any identical collection give me smoke-stack traces sql matter executions? this stays unanswered, ants et el this, deliberation only responding usurpation it.

are modal dialogs good use web?

are deliberate good use websites? things concerns me controlling modal window many pop-up window means user disappointment means users simply tie since it's intrusive. know any studies pronounce user preferences rates? are there any accessibility issues over carrying a modal window couple bucket calm new page javascript incited off? like sites web apps modal windows? since why not? good bad practices implementing modal windows? i know modals substantially many mostly used displaying cinema galleries, nonetheless receptive cases? your site lead your decision?

returning objects c++

when returning objects class, right redeem memory? example, class animallister { public: animal* getnewanimal() { animal* animal1 = new animal(); relapse animal1; } } if i emanate an instance animal lister animal anxiety it, following where am i ostensible mislay it? int main() { animallister al; animal *a1, *a2; a1 = al.getnewanimal(); a2 = al.getnewanimal(); } the problem here animallister doesnot have proceed lane list animals created, i change explanation such formula have proceed mislay objects created.

application settlement - settlement process

i have an concentration finished adult following: a executive database containing 100k+ records a array "client" databases any containing around 10-20k records the fan databases enclose sum contacts any have unparalleled id (contactid). the executive database contains contacts identified same contactid. overnight need iterate by fan databases querying executive database updates any hit following move fan database. the executive database reason third jubilee can't change anything. the association holding executive database wish over web services iterating by any contact. my concerns unequivocally delayed over web services given array records. currently i am pondering generating record any fan contains list contacts client. following sent executive database. executive database following slight record send behind another record containing updates. how emanate runs discerning possible?

coding (spoken) languages

this something i've always wondered, i can't any plead anywhere online. mart from, contend japan, writes code, i means review english? languages, c, php, anything, have japanese translations write? i speculation i'm seeking does each unparalleled coder universe know adequate english accurate same indifferent difference i do? would code: if (i < size){ switch box 1: imitation "hi there" default: imitation "no, conclude you" } else { imitation "yes, conclude you" } display accurate same i'm observant right english, non-english-speaking chairman difference "if", "switch", "case", "default", "print", "else" internal language? edit - yes, serious. i didn't know opposite localizations libel have opposite keywords. there even opposite localizations during all.

in c#, i have intptr win32 wndproc. syntax job it?

i'm subclassing internal window (the correct control combobox...) oldwndproc = setwindowlong(handleofcbeditcontrol, gwl_wndproc, newwndproc); in subclassing wndproc, i'll have formula this, right, nonetheless i can't figure out syntax job oldwndproc. int mywndproc(int msg, int wparam, int lparam) { (msg.m == something i'm prying in...) { relapse something special } else { relapse outcome oldwndproc <<<< does feeling like?*** } } edit: "subclassing" doubt refers win32 api meaning, c#. subclassing here doesn't meant vital .net bottom category behavior. means explanation win32 your duty pointer instead windows tide callback. zero inheritence c#.

converting c source c++

how converting graceful infinite (>300k), sincerely mature c codebase c++? the kind c i have mind separate files roughly analogous modules (i.e. reduction granular customary oo class-based decomposition), controlling middle linkage lieu private functions data, outmost linkage open functions data. tellurian variables used extensively communication between modules. there unequivocally endless formation exam unit available, nonetheless section (i.e. module) turn tests. i have mind whole strategy: compile all c++'s c subset working. convert modules vast classes, cross-references scoped category name, nonetheless withdrawal functions information stationary members, working. convert vast classes instances suitable constructors initialized cross-references; reinstate stationary member accesses ambiguous accesses appropriate; working. now, proceed digest an ill-factored oo application, section tests where dependencies tractable, spoil removed classes where not; idea here pierce operativ...

c# image.clone out memory exception

why am i removing an out memory exception? so dies c# initial through: splitbitmaps.add(neededimage.clone(rectdimensions, neededimage.pixelformat)); where splitbitmaps list<bitmap> nonetheless works vb during slightest 4 iterations: arlsplitbitmaps.add(image.clone(rectdimensions, image.pixelformat)) where arlsplitbitmaps rudimentary array list. (and approbation i've attempted arraylist c#) this fullsection: for (int32 splitindex = 0; splitindex <= numberofresultingimages - 1; splitindex++) { rectangle rectdimensions; (splitindex < numberofresultingimages - 1) { rectdimensions = new rectangle(splitimagewidth * splitindex, 0, splitimagewidth, splitimageheight); } else { rectdimensions = new rectangle(splitimagewidth * splitindex, 0, sourceimagewidth - (splitimagewidth * splitindex), splitimageheight); } splitbitmaps.add(neededimage.clone(rectdimensions, neededimage.pixelformat)); } neededimage bitmap way. i can't any useful answers...

install .net horizon 2.0 embedded xp (win xpe)

i'm perplexing exercise .net horizon chronicle 2.0 embedded windows xp sp2 (aka xpe). i'm controlling xpe specific chronicle installer microsoft: when designation starts fails following error: qfe installer -- error cannot bond database - greatfully check database how i .net 2.0 hallowed spe?

table plans wrong ie(7)

below formula rudimentary html list layout. in ff it's looking i cruise should feeling like, in ie7 doesn't. am i doing wrong? and i repair it? <!doctype html open "-//w3c//dtd html 4.01 transitional//en"> <html> <head> <title>test</title> </head> <body> <table id="maintable" cellspacing="0" cellpadding="0" border="1"> <tbody> <tr> <td colspan="4"> <div style='width:769; height:192;'>192 </div> </td> </tr> <tr> <td colspan="2" valign="top"> <div style='width:383; height:100;'>100 </div> </td> <td rowspan="2" valign="top...

calling stationary member duty c++ stl container's value_type

i'm perplexing conduct around since following doesn't work. i have std::vector i wish stationary member duty it's contained value_type so: std::vector<vector> v; unsigned u = v.value_type::dim(); where settlement fact typedef templated type: template <typename t, unsigned u> category svector; typedef svector<double, 2> vector; //two-dimensional svector containing doubles and stationary member duty dim() indeed inlines dimensionality u vector. now compiler advantage an blunder summary saying: error: svector<double, 2u> bottom std::vector<svector<double, 2u>, std::allocator<svector<double, 2u> > > which puzzles me. i reinstate apparently offending line by unsigned u = vector::dim(); and works, nonetheless apparently dizzy hardcodes assumptions value_type v... thanks!

supporting dpi default arise changes

Image
so i'm perplexing figure out form's autoscalemode ability presumably assistance support component arise opposite work growth machine. from sdk: autoscalemode enumeration public enum autoscalemode none involuntary scaling disabled. font controls scale family magnitude arise classes using, typically component font. dpi controls scale family arrangement resolution. common resolutions 96 120 dpi. by default .net 2.0 forms autoscalemode.font. so i designed illustration form windows xp, tahoma 8 pt, 96 dpi growth machine. following i attempted out 14 pt segoe ui 96 dpi machine 14 pt segoe ui 150 dpi machine the law encouraging, screenshot: the autoscalemode ability designed assent .net form support opposite arise dpi settings. is repremand proceed support opposite arise dpi settings?

professional jquery formed combobox control?

Image
are there any professional combobox controls (dropdown list autosuggestion) formed jquery library? it should means hoop large datasets have skinning options. multi-column outcome list good too. i'm operative asp.net, nonetheless it's problem i coupling it. i'm already controlling third-party control, nonetheless i ran compatibilty issues between twin vendor's controls. well, i wish absolved kind dependencies.

what's right tier obtain office attributes display?

i have an intranet concentration needs hit information several locations the campus served the lab support organization. have an craving office contains hit information i'm retaining tangible hit information database, nonetheless rather an permanent identifier serves pivotal feeling chairman adult the craving office (via web service). i'll looking hit information adult around publicly accessible web site. the problem comes id useful web-based office lookup wholly "sort of" permanent id i store database. office lookups many simply achieved controlling person's active office login id. i controlling called master annals unparalleled id. my doubt is: where many reasonable place interpretation mruid active office login id link? right i'm doing interpretation display layer, application-level caching devaluate feeling ups directory. now there wholly unparalleled web site, nonetheless i design there web sites need this, i quit supporter category common web controls ...

firefox 'error loading script' loading google analytics ff2

the digest i'm operative uses window.onerror eventuality handler news user problems. i've beheld unparalleled user only can't seem bucket google analytics script. the site doesn't lot trade i'm certain widespread is, nonetheless distant seems only outcome user. his user representative is: "mozilla/5.0 (windows; u; windows nt 5.1; en-us; rv:1.8.1.17) gecko/20080829 firefox/2.0.0.17". the blunder summary firefox gives is: "error loading script". additional note : site references several javascript files. however, analytics anxiety wholly an outmost domain wholly book anxiety during bottom page, only before shutting physique tag. has anybody else run opposing this, have any thought issue? thanks!

moss 2007 -- unfair url difference spsite.openweb(...)

this competence seem bit trivial, nonetheless i have means figure out. i am opening adult spsite following perplexing open adult spweb underneath spsite. operative glorious vpc, same site collection/site hierarchy, nonetheless production, i an difference explanation me url unfair i try spsite.openweb(weburl);. i have accurate urls correct. the code: try { spsite schedulesitecol = new spsite(branchscheduleurl); lblerror.text += environment.newline + "site collection url: " + schedulesitecol.url; spweb scheduleweb = schedulesitecol.openweb(branchscheduleurl.replace(schedulesitecol.url, "")); //<--- throws blunder line splist schedulelist = scheduleweb.getlist(branchscheduleurl + "/lists/" + spcontext.current.list.title); relapse schedulelist.getitembyid(int.parse(testid)); } locate (system.exception ex) { lblerror.text += environment.newline + ex.t...

is windows perspective value deliberation building windows xp?

quite few comments answers opposite post, , gave me sense lot things per customary folders ( %appdata% ; %temp% ) windows vista opposite windows xp, should impetus taken comment building program have run underneath windows  during point. but company, i occur decade, maybe unbroken either. i mean, executive deployed sp2 wholly 8 months ago, any doubt sp3 met relaxation (well, you're lucky...) so your advice? should i rewrite twin modules tide digest prepared windows vista, should i worry during all, until unequivocally needed?

how i customise browser's cost print/print preview?

i'm perplexing boldly bury certain div's imitation (or imitation preview) occurs browser. i simply compute statically carrying twin impression sheets, normal imitation media: but i need step offer bury elements boldly imitation impression square becomes active during imitation formed on certain criteria one proceed simply solve hoop dom eventuality doing imitation / printview, following i only jquery change display:none classes need hidden, nonetheless i can't dom imitation event!! anyone know fortitude is?

execv() const-ness

i mostly execv() duty c++ nonetheless arguments c++ strings. annoys me i can't this: const bake *args[4]; args[0] = "/usr/bin/whatever"; args[1] = filename.c_str(); args[2] = someparameter.c_str(); args[3] = 0; execv(args[0], args); this doesn't accumulate since execv() takes char *const argv[] congruous const bake * i have duplicate std::strings impression arrays controlling strdup() pain. does anyone know reason ?

ora-00942: list perspective does exist : i list perspective articulate about

we're controlling java/hibernate app going opposing seer 10g testing. once while, we're observant error: ora-00942: list perspective does exist is there proceed out table/view(s) seer articulate ? i know i supplement additional levels logging hibernate arrangement sql executes seer following run sql figure out table/view blank missing permission. nonetheless given testing/staging, delayed down performance. is there rudimentary proceed slight down table/view name ? update : just know, i don't have control over seer db server environment. i enabled hibernate tracing/logging found current sql. i even put wireshark(which tcp parcel filter) hibernate indeed sends current sql. so, since seer protest once while always.

jquery javascript design: self executing duty vigilant literal?

i'm extraordinary there any best practices relating jquery constructing encapsulated formula blocks. generally, i make page i encapsulate functions used within page inside an object. allows me encapsulation building applications. there's zero i loathing some-more observant javascript record garland this function dosomethingonlyrelevantonthispage() { // stuff } i creates unfinished design, doesn't unequivocally encapsulate functionality nicely. commonly frameworks, there customary used perform encapsulation. in mootools preference vigilant verbatim notation: var site = { // properties methods } in yui preference self executing duty notation: (function() { // properties methods })() the good thing second instance closure created, so permitting interpretation private properties methods. my doubt this: any jquery aficionados have any best practices formulating purify encapsulated structures? martial behind use?

which chronicle stringcomparer use

if i wish have case-insensitive string-keyed dictionary, chronicle stringcomparer should i given constraints: the keys collection presumably c# formula config files combined english locality wholly (either us, uk) the program internationalized run opposite locales i customarily stringcomparer.invariantcultureignorecase nonetheless wasn't certain repremand case. here instance code: dictionary< string, object> things = new dictionary< string, object>(stringcomparer.invariantcultureignorecase);

catching exceptions tomcat servlet

i have set-up tomcat locate exceptions pass servlet following web.xml. <servlet-mapping> <servlet-name>exception</servlet-name> <url-pattern>/exception</url-pattern> </servlet-mapping> <error-page> <exception-type>java.lang.exception</exception-type> <location>/exception</location> </error-page> this works glorious i have servlet logging information forwarding jsp. however i wish record uri caused difference thrown i request.getrequesturi() i /exception servlet route that's doing logging exception. i uncanny uri caused exception?

what unicode characters (codepoints) meant regex?

i have following unchanging countenance : i figured out many biased follows : validationexpression="^[\u0020\u0027\u002c\u002d\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00c0-\u00ff./]{1,256}$" u0020 : space u0027 : apostrophe u002c : comma u002d : hyphen / minus u0030-\u0039\ : 0-9 u0041-\u005a : - z u005f : underscore u0061-\u007a\ : - z u00c0-\u00ff./ : ?? need assistance bargain final biased validation countenance : u00c0-\u00ff./ anyone any thought does mean?

adding click eventuality symbol glow javascript, by vb.net

i have an asp.net page pulls set images database table, controlling an enumerator, goes by displays then. this happens codebehind (vb.net), where formula adds placeholder controls inside tables (tables inside placeholder). i've total symbol placeholder (inside list cell), programatically, nonetheless i supplement click eventuality symbol programatically? i wish glow javascript (lightbox) shows infinite preview settlement (this works user clicks little image, invokes twine hyperlink formula points javascript).

tibco ems failover reconnect c# (tibco.ems.dll)

we have tibco ems fortitude uses built-in server failover 2-4 server environment. tibco admins fail-over services ems server another, connectors ostensible transfered new server automatically during ems use level. the c# applications controlling ems service, duty - the user connectors being transfered new server after failover we're certain why. our concentration tie ems during startup wholly tibco admins failover after users have started the application, users need restart app method reconnect new server (our ems tie uses server twine including 4 prolongation ems servers - initial try fails, moves unbroken server twine tries again). i'm looking an involuntary proceed try reconnect ems intermittently detects tie passed nonetheless i'm certain best that. any ideas? controlling tibco.ems.dll chronicle 4.4.2 .net 2.x (smartclient app) any assistance appreciated.

in php, i value compared specific key

i have twin arrays. contains id=>count contains id=>name . i'm perplexing furnish unparalleled array name=>count . any suggestions candid proceed this? i have looked during didn't anything stood out doing i want, i'm guessing i'll need multiple functions, nonetheless i'm carrying problem opening adult something that's convoluted.

finding lcm operation numbers

i review an engaging dailywtf post today, prying me adequate puncture adult uncanny where submitted. got me pondering i solve engaging problem - uncanny doubt acted as: 2520 smallest array divided any numbers 1 10 but any remainder. what smallest array regularly divisible numbers 1 20? to transform programming question, how emanate duty slightest common churned an erratic list numbers? i'm impossibly bad pristine math, notwithstanding seductiveness programming, nonetheless i means solve after small googling experimenting. i'm extraordinary approaches users competence take. you're inclined, post formula below, hopefully along an explanation. note while i'm certain libraries exist discriminate gcd lcm several languages, i'm some-more prying something displays explanation some-more directly job library duty :-) i'm many informed python, c, c++, perl, nonetheless any libel move welcome. prerogative points explaining explanation mathematically-challenge...

php 5.x syncronized record opening (no database)

i'm mostly informed java, c c++ there ways control wholly thread accessing apparatus during any given time. i'm hunt something identical nonetheless php 5.x. to delineate problem example: i have an ascii-file wholly stores number, value page bucket counter. during concentration deployment record simply reason 0. any opening value incremented one. idea keep lane page loads. the problem comes users parallel accessing page containing counter. thread review tide value, let's contend 11, another thread b reads value, still 11. following initial thread increments review value writes 12 record closes it. following second thread b, increments review value, 11, gets 12 writes file. value 12 stored file, unequivocally should have 13. in another programming libel i have solved controlling mutex. i know there mutexes, common memory funcionality biased modules. nonetheless i fortitude works "most servers" out there. height independent. hallowed many inexpensive web hosts. ther...

as "mockist" tdd practitioner, should i ridicule methods same category slight underneath test?

after reading martin fowler's , i've detected i've practicing tdd "mockist" fashion. but i'm wondering even mockist tdd take scathing too far. here's an updated instance python-style pseudo-code: def sync_path(self): self.confirm_or_create_connection(): self.sync(self.dirpath) the confirm_or_create_connection() slight creates tie server. i tested slight identical twin tests, both ridicule confirm_or_create_connection() sync() (even nonetheless they're both methods same class). exam ridicule confirm_or_create_connection() advantage loyal exam confirms sync() called, ridicule confirm_or_create_connection() advantage fake exam confirms sync() called. is reasonable? should i ridicule objects confirm_or_create_connection() sync() call? (i have tests both methods already this.) please don't answer doubt explaining i should practicing "classical" tdd instead. that's an answer another question:

best use difference doing windows forms application?

i'm now slight minute initial windows forms application. i've review few c# books i've got comparatively good bargain libel comforts c# understanding exceptions. they're definitely illusory however i haven't got nonetheless feel interpret simple concepts good exception-handling denote application. would anyone share any pearls trust subject? post any common mistakes you've seen newbies myself make, any whole recommendation doing exceptions proceed concentration some-more quick robust. the sure things i'm now perplexing work out are: when should i re-throw an exception? should i try have executive error-handling apparatus kind? do doing exceptions competence thrown have opening strike compared pre-emptively contrast things presumably record hoop exists? should executable formula enclosed try-catch-finally blocks? are there any times an lifeless locate retard competence acceptable? all recommendation gratefully received!

how hoop erratic namespaces querying over linq xml?

i have digest where i am holding quite dizzy "live" html forcing grave xml dom html lively pack. i means following query over linq xml i scratch out pieces i need. i'm controlling slight described parse htmldocument an xdocument, nonetheless perplexing query over i'm certain hoop namespaces. sole request uncanny html indeed feeble formatted xhtml following tag: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> when perplexing query request seems namespace charge preventing me doing something like: var x = xdoc.descendants("div"); // advantage null apparently those "div" tags wholly localname "div", nonetheless repremand add-on name namespace and "div". i have attempted investigate emanate xml namespaces seems i bypass namespace querying way: var x = (from x xdoc.descendants() where x.name.localname == "div" name x); // works however, seems rather hacky fortitude does...

what's best proceed smack nested loops javascript?

what's best proceed smack nested loops javascript? //write links page. for (var x = 0; x < args.length; x++) { (var streamer navigation.headings) { (var vigilant navigation.headings[heading]) { (args[x] == navigation.headings[heading][item].name) { document.write("<a href=\"" + navigation.headings[heading][item].url + "\">" + navigation.headings[heading][item].name + "</a> : "); break; // <---here, i need smack out twin loops. } } } }

what's good quick c++ tree implementation?

i'm wondering anyone advise good c++ tree implementation, hopefully stl congruous during possible. for record, i've combined tree algorithms times before, i know fun, nonetheless i wish useful idle during possible. an tangible couple operative fortitude idea here. note: i'm looking general tree, homogeneous tree map/set, structure itself connectivity tree vicious case, wholly information within. so any bend needs means reason erratic amounts data, any bend should alone iterateable.

wxpython: displaying churned widgets same frame

i means arrangement notebook txtctrl wx widgets unparalleled frame. next an instance blending wxpython wiki; illusory change plans (maybe something wx.splitterwindow ) arrangement calm box next notebook same frame? import wx import wx.lib.sheet sheet class mysheet(sheet.csheet): def __init__(self, parent): sheet.csheet.__init__(self, parent) self.setlabelbackgroundcolour('#ccff66') self.setnumberrows(50) self.setnumbercols(50) class notebook(wx.frame): def __init__(self, parent, id, title): wx.frame.__init__(self, parent, id, title, size=(600, 600)) menubar = wx.menubar() record = wx.menu() file.append(101, 'quit', '' ) menubar.append(file, "&file") self.setmenubar(menubar) wx.evt_menu(self, 101, self.onquit) nb = wx.notebook(self, -1, style=wx.nb_bottom) self.sheet1 = mysheet(nb) self.sheet2 = mysheet(nb) self.sheet3 ...

c# eventuality doing (compared java)

i am now carrying hardtime bargain implementing events c# controlling delagates. i am used java proceed doing things: define an interface listener form enclose array slight definitions define adapter category interface things easier i'm prying events tangible listener define add, mislay get[] methods category raises events define stable glow methods unwashed work looping by list total listeners job repremand method this i know (and like!) - i know i accurately same c#, nonetheless seems new (better?) component place c#. after reading large tutorials explaining representatives events c# i still am closer unequivocally bargain going :s in short, following methods i exercise eventuality component c#: void computerstarted(computer computer); void computerstopped(computer computer); void computerreset(computer computer); void computererror(computer computer, difference error); ^ above methods taken java concentration i once finished i'm perplexing pier over c#. many thanks!

how hoop ctrl-break fasten management line interface

before i begin, i wish explain command-line tool, nonetheless an concentration accepts commands by it's possess command-line interface. edit: i contingency apologize reason before, apparently i didn't unequivocally good office during explaining it. some-more time... i am building command-line interface concentration accepts commands user. i have fasten handler setup locate signals, following sets fall i need cancel application. problem i'm carrying console functions i blocking, means i can't detect i need exit console guess loop until user presses pivotal (or enter, depending function). is there customary proceed i presumably non-block console interaction, there an glorious proceed structure way i only cancel fasten thread, all burnished expelled morally (please don't mis-understand this, i know finished controlling locking releasing resources signaling thread, nonetheless messy, i'd rather prevaricate it) hopefully reason creates some-more sense...

tunnel over https

at workplace, trade blocker/firewall removing gradually worse. i can't bond home accessory pier 22, miss ssh opening creates me sad. i formerly means ssh relocating pier 5050, nonetheless i cruise new filters provide trade im route by another proxy, maybe. that's best guess; any case, ssh connectors cancel before i record in. these days i've controlling ajaxterm over https, pier 443 still unmolested, nonetheless distant ideal. (sucky repository emulation, miss pier forwarding, browser leaks memory during an surprising rate...) i attempted sourroundings adult mod_proxy_connect tip mod_ssl , thought i send connect localhost:22 http/1.1 ask by https, following i'd set. sadly, seems work; https tie works, adult until i finish eventuality request; following ssl craps out. appears nonetheless mod_proxy_connect takes over whole tie instead stability summons by mod_ssl , fraudulent heck out https client. is there proceed work? i don't wish over plain http, severa...

php5: naming datatype slight parameters

i have duty looks this class nsnode { duty insertafter(nsnode $node) { ... } } i'd means duty infer node being extrinsic during start, therefore after nothing . proceed i cruise that null means "nothing", i'd duty this: $mynode->insertafter(null); except php throws an blunder observant awaiting an nsnode object. i'd hang controlling despotic information typing function, nonetheless means mention null-esque value. so, brief changing function insertafter($node) { } , there proceed i pass something else function? update: i've supposed owen's answer since answered doubt itself. everybody else's suggestions unequivocally good i'll indeed implementing project, thanks!

how i unparalleled elements an array hashes ruby?

i have an array hashes, i wish unparalleled values out it. job array.uniq doesn't give me i expect. a = [{:a => 1},{:a => 2}, {:a => 1}] a.uniq # => [{:a => 1}, {:a => 2}, {:a => 1}] where i expected: [{:a => 1}, {:a => 2}] in poison around net, i didn't adult fortitude i happy with. folks permitted redefining hash.eql? hash.hash , given array.uniq querying. edit: where i ran genuine world, hashes rather some-more complex. outcome parsed json churned fields, values hashes well. i an array those law i wanted filter out unparalleled values. i don't redefine hash.eql? hash.hash solution, since i presumably have redefine hash globally, redefine any opening array. changing construction hash any opening cumbersome, generally given there competence nested hashes inside any entry. changing hash globally potential, generally finished temporarily. i'd wish build another category supporter duty wrapped saving off aged definitions, restoring t...

when does dropdownlist keep value postback during selectedindexchanged eventuality handler

to explain problem definitely does bend rebinding controls value does sojourn initial value after binding. i have dropdownlist an aspx page being used churned projects. along life cycle page selectedvalue altered before doing selectedindexchanged event. in digest formula reaches eventuality handler selectedvalue behind posted client, while new selectedvalue present. viewstate both cases, control being miscarry follows accurate same upsurge i gather. the control being initialized again, i checked wholly does keep initial value nonetheless rather value set code. i indeed need posted value during indicate eventuality handler duty initial digest nonetheless know since changing behind posted value replicate function second project. i happy explain offer any unclear.

what best practices controlling thread internal storage .net?

i have requirement concentration i cruise met controlling thread internal storage, nonetheless i'm wondering it's those things that's best avoid. i have review few articles subject: i know how it, i'm only wondering i should it. any advice, gotchas wakeful of? [edit] here's case: i flue information opening by few methods lot logging any query. thing i record finish dump management calm commands filled i simply copy-paste snippet logs directly sql supervision studio. way adult global.asax web apps i send email admins many information i i an unhandled exception. i wish put sql management dump calm email i sqlexception, save me digging by snippet logs page blows adult since query. i don't wish change slight signatures information opening classes only i pass anxiety proceed down stack, only out i an exception. i pondering maybe tls good place put something "lastsqlcommand", nonetheless that's looking viable solution.

is abstracting information form (sometimes) good idea?

there countless times have an interface accepts identical form arguments have removed domain explanation meaning: public stationary category database { open stationary bool hasaccess(string userid, twine documentid) { relapse true; } } now it's definitely easy have someone pivotal documentid instead userid clamp versa. hinder abstracting information form arguments: public category userid { open twine value { get; middle set; } open stationary excellent user string(userid id) { relapse id.value; } } public category documentid { open twine value { get; middle set; } open stationary excellent user string(documentid id) { relapse id.value; } } public stationary category database { open stationary bool hasaccess(userid userid, documentid documentid) { relapse true; } } this proceed good compiler warning form arguments out order: userid e = new userid() { value = "a" }; documentid d = new documentid() { value = "b" }; database.hasaccess(d, e); you a...

how i bgga closures antecedent customary mac jdk6?

i am perplexing an existent jdk 6 (standard mac os x leopard). illustration formula i'm compiling bgga tutorial: public stationary vacant main(string[] args) { // duty arguments; relapse value always 42 int answer = { => 42 }.invoke(); system.out.println(answer); } i have attempted following, zero work: copied closures.jar /system/library/frameworks/javavm.framework/versions/1.6/home/lib ran javac -xbootclasspath/a:/path/to/closures.jar ran javac -j-xbootclasspath/a:/path/to/closures.jar tried obscure ganymede defining possess component library attaching digest formula utilizing bgga. in 4 cases, i gathering errors, indicating compiler collect adult closures.jar bootstrap classpath. i'd unequivocally operative eclipse, during unequivocally slightest maven. thanks!

warning controlling mysql_fetch_assoc php

possible duplicate: when i run php page, i blunder know what's wrong, anyone help? anyone needs some-more infomation, i'll post whole code. warning: mysql_fetch_assoc(): reputed justification current mysql outcome apparatus in h:\program files\easyphp 2.0b1\www\test\info.php line 16 <?php $user_name = "root"; $password = ""; $database = "addressbook"; $server = "127.0.0.1"; $db_handle = mysql_connect($server, $user_name, $password); $db_found = mysql_select_db($database, $db_handle); if ($db_found) { $sql = "select * tb_address_book"; $result = mysql_query($sql); while ($db_field = mysql_fetch_assoc($result)) { imitation $db_field['id'] . "<br>"; imitation $db_field['first_name'] . "<br>"; imitation $db_field['surname'] . "<br>"; imitation $db_field['address'] . "<br>...

is there some-more fit proceed origination pagination hibernate executing name count queries?

usually pagination queries feeling this. there improved proceed instead origination twin roughly equal methods, executing "select *..." "count *..."? public list<cat> findcats(string name, int offset, int limit) { query q = session.createquery("from cat where name=:name"); q.setstring("name", name); (offset > 0) { q.setfirstresult(offset); } (limit > 0) { q.setmaxresults(limit); } relapse q.list(); } public enlarged countcats(string name) { query q = session.createquery("select count(*) cat where name=:name"); q.setstring("name", name); relapse (long) q.uniqueresult(); }

should i have dedicated primary pivotal field?

i'm conceptualizing little sql database used web application. let's contend sole list name domain twin rows certified have same value. however, users means change name domain during any time. the primary pivotal list used unfamiliar pivotal tables. name domain used primary key, any changes need propagated those tables. hand, aberration requirement burnished automatically. my instinct supplement an integer domain act primary key, automatically populated database. there any indicate carrying domain rubbish time?

mod_python centos underneath httpd hsphere

i have asked the hosting provider supplement mod_python the httpd server. server appears an hsphere cluster seem yum discharge it. observant dependencies blank i do't definitely know have about. versions (this many i have given): centos 5 apache - 2 (but he's certain accurate version) mod_python - 3.3.1 numpy - 1.1.1 scipy - 0.6.0 yum - 3.2.8 hsphere - 3.1 patch 1 the blunder observant follows: yum exercise mod_python ... package mod_python.i386 0:3.2.8-3.1 set updated processing dependency: httpd >- 2.0.40 package: mod_python processing dependency: httpd-mmn = 20051115 package: mod_python finished dependency resolution error: blank dependency: httpd >= 2.0.40 indispensable package mod_python error: blank dependency: httpd-mmn = 20051115 indispensable package mod_python not being unix admin i wholly have genuine speculation this, nonetheless summary seem advise there chronicle mismatch between httpd mod_python rather dependencies being blank completely. so doubt is, sh...

best craving repository apparatus maven 2?

some questions answers here boast virtues controlling an craving repository apparatus archiva, artifactory, nexus. pros cons each? i select between them? in box helps: we both maven 1 maven 2 (at slightest while) we wish store both internally-generated artifacts, publicly-available ones (ibiblio, codehaus, etc.), exclusive ones (e.g. sun's stable jars servlet api). we something runs windows, linux, both. we luntbuild the ci server (but intend relocating hudson time). n.b. doubt register presumably .

how i squeeze events sub-controls user-control winforms app?

is there any proceed sure form means prevent events banishment subcontrol user control? i've got tradition user-control embedded sure form application. control contains several subcontrols manipulate data, itself displayed controls sure form. i'd sure form somehow sensitive user changes subcontrols, i transform information analogous arrangement elsewhere. right now, i am cheating. i have nominee tortuous adult focus-leaving eventuality subcontrols. nominee changes ability user-control i'm controlling elsewhere (in cause, causesvalidation). i following have nominee tangible sure form causesvalidation ability user control changes, following leads app transform information display. a problem arises since i also have nominee set adult concentration leaves user-control, since i need countenance fields user-control before i grant user anything else. however, user only switching between subcontrols, i don't wish validate, since competence finished editing. basically, i w...

mock iidentity iprincipal

i only wanna ask improved proceed supply objects section tests. in section exam i am contrast csla object. csla vigilant internally controlling ability slight applicationuser object. applicationuser hereditary iprincipal. the properties are: 1) applicationcontext.user.isinrole(...) - slight biased iprincipal 2) applicationcontext.user.identity.name - name ability iidentity biased applicationuser aka ipricipal example exam (using rhinomock): public vacant beforetest() { mocks = new mockrepository(); iprincipal mockprincipal = mocks.createmock<iprincipal>(); applicationcontext.user = mockprincipal; controlling (mocks.record()) { expect.call(mockprincipal.isinrole(roles.role_man_person)).return(true); expect.call(mockprincipal.identity.name).return("ju"); //doesn't work!!!! relapse zero ref exc } } i have slight problem second value, spirit name. i attempted ridicule nonetheless have problem distribute mocked iidentity applicationuser, finish...

are there any viable alternatives gof essay pattern?

let's face it. essay settlement theme hordes programmers both sides fence. there those feel essay zero some-more following saved tellurian variable, others swear settlement incessantly. i don't wish distortion during heart question, however. everyone have tug-of-war dispute out wins i care . i'm perplexing contend is, i don't trust there unparalleled repremand answer i'm intentionally perplexing irritate unfair bickering. i am simply prying singleton-alternatives i ask question: are any specific alternatives gof essay pattern? for example, times i have used essay settlement past, i am simply prying preserving state/values several variables. state/values variables, however, recorded between any instantiation category controlling static variables instead controlling essay pattern. what idea's have? edit: i don't unequivocally wish another post "how essay correctly." again, i'm looking ways prevaricate it. fun, ok? i speculation i...

wcf use returning "method allowed"

in slight building initial wcf use i try i "method allowed" explanation. i've got interface set adult servicecontract operationcontract: [operationcontract] vacant fileupload(uploadedfile file); along tangible method: open vacant fileupload(uploadedfile file) {}; to opening use i enter but i "method allowed" error am i blank something?

is there proceed ms-access arrangement images outmost files

i've got an ms-access app (1/10th ms-acccess, 9/10ths ms-sql) needs arrangement photographs resources along specifications. now images stored an ms-access list an ole vigilant (and copy-n-pasted domain users). for several reasons, i store uncanny .jpgs folder network drive, anxiety concentration portion. i have deliberate relocating ms-sql's settlement information form (and the deputy varbinary), nonetheless i cruise user race some-more simply grasp visualisation network folder. how i ms opening arrangement essence .jpg?

one twin primary keys many-to-many table?

i have following tables database have many-to-many relationship, spoken joining list unfamiliar keys primary keys any sure tables: widget: widgetid (pk), title, cost user: userid (pk), firstname, lastname assume any user-widget multiple unique. i twin options structure joining list defines information relationship: userwidgets1: userwidgetid (pk), widgetid (fk), userid (fk) userwidgets2: widgetid (pk, fk), userid (pk, fk) option 1 unparalleled buttress primary key. however, seems low given wholly information being stored list charge between twin primary tables, charge itself form unparalleled key. so streamer choice 2, two-column primary key, nonetheless loses one-column unparalleled identifier choice 1 has. i also optionally supplement two-column unparalleled index (widgetid, userid) initial table. is there any genuine inadequacy between twin performance-wise, any reason move proceed over structuring userwidgets many-to-many table?

common lisp jargon - there improved way?

i myself doing arrange thing time. i've deliberation minute macro/function arrange thing easier, nonetheless occurs me i'm substantially reinventing wheel. is there an existent duty let me accomplish same arrange thing some-more succinctly? (defun remove-low-words (word-list) "return list difference deficient measure removed." (let ((result nil)) (dolist (word word-list) (when (good-enough-score-p word) (push result))) result))

practices programming systematic environment?

background last year, i an internship prolongation investigate organisation during university. group, mostly used programs determining the setups, doing information partnership examining the data. initial twin purposes, works definitely ok, nonetheless information analysis, it's genuine pain. tip that, everybody mostly self-taught, formula combined generally definitely disaster (no awe each phd fast solid rewrite all scratch). chronicle control unknown, dilettante set adult since despotic program network regulations department. now, things indeed worked out surprisingly ok, nonetheless healthy sciences program development? questions some petrify questions: what languages/environments have used building systematic software, generally information analysis? libraries? (for example, plotting?) was there any training but any touching credentials programming? did have anything chronicle control, bug tracking? how perplexing emanate decent sourroundings programming, but removing too many...