Posts

Showing posts from May, 2013

ways save enums database

what best proceed save enums database? i know java provides name() valueof() methods modify enum values twine back. nonetheless there any (flexible) options store values? is there intelligent proceed enums unparalleled numbers ( ordinal() stable use)? update: thanks overwhelming quick answers! i suspected. however note 'toolkit'; way. problem i have supplement same methods any enum form i create. thats lot repetitious formula and, during moment, java does support any solutions (a java enum can't extend classes).

entity classes decoupled linq sql provider implementing repository pattern. how?

i have looked over repository settlement i famous ideas i controlling past finished me feel well. however i an concentration settlement but i have entity classes decoupled repository provider. i emanate several assemblies : an "interfaces" public horde common interfaces including irepository interface an "entities" public horde entity classes such product, user, method on. public referenced "interfaces" public given methods relapse such forms arrays them. also referenced sure concentration public (such web application) one some-more repository provider assembly/assemblies. any consolidate (at least) category implements irepository interface work certain information store. information stores consolidate an sql server, an seer server, mysql, xml files, web / wcf services on. studying linq sql looks unequivocally inclusive terms taken exercise seems good until i learn low dependency between generated classes customdatacontext class. how i linq sql such scena...

anyone controlling third-party windows registry editor advise others?

i work windows registry editor (regedit.exe) near-daily basis, catchy myself wishing some-more features. for example, it'd good had: a proceed import trade favorites. an modernized hunt underline lists keys found, rather rudimentary feature. good there proceed slight law type, nonetheless yes, i comprehend i'm substantially seeking lot. a list keys i recently accessed (history) so essentially, i'm only looking arguable third-party apparatus builds on existent regedit underline set. i'm prying both giveaway blurb solutions. previous developer recommendations have led me learn good collection , i'm unequivocally looking disrespectful your answers.

what's win32con way python? where i it?

i'm building an open source digest uses python c++ windows. i came following blunder message: importerror: way named win32con the same happened "prebuilt" formula it's operative ( solely mechanism :p ) i cruise kind "popular" way python since i've saw several messages forums nonetheless zero assistance me. i have python2.6, should i have way already installed? is something vc++? thank help. i got url nonetheless i'm certain executable :s

is reticent arise light wamp?

after apropos rather disloyal open source, spending years building web applications asp.net, i'm going start doing definitely lot php / mysql development. i've definitely painlessly hallowed growth sourroundings adult controlling windows machine, nonetheless height i'll targeting many approaching linux. doubt is, am i approaching run problems due building windows while targeting linux? advisable deposition removing linux sourroundings setup arise light apps?

elementname contracting damaged controltemplate

i have listview organization items. organization uses tradition groupstyle (expander). i have check box enhance fall groups when. works glorious untill i click manually organisation header enhance fall group. after clicking sole organisation stops respond check box selection. looks contracting damaged after user manually clicks group. please advise i am doing wrong. thanks lot. sincerely, vlad. <window xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'> <window.resources> <xmldataprovider x:key="mydata" xpath="/info"> <x:xdata> <info xmlns=""> <item name="item 1" category="cat1" /> <item name="item 2" category="cat1" /> <item name="item 3" category="cat2" /...

how i ie open record the compared application?

mstest produces an xml record .trx progression containing exam results. if i have .trx record accessory but visible studio installed, i influenced "use web service..." "select list...", expected. if i have .trx record growth accessory i open it, opens visible studio, expected. if i click couple web page an email gets .trx record build server, always opens xml ie. how i configure ie (or iis build server) open remote .trx record visible studio, it's installed, prompt it's not? update: i rename .trx record server give several extensions (eg. .bmp, .msi, .txt, .zip), still opens xml ie, it's clearly going calm record announced mime type.

sql server 2005 information record craziness (maybe 8 information files, maybe 5, knows)

i have sql server 2005 sp2 box where tempdb presumably 8 information files 5 information files dependingo n where look. dbcc showfilestates sys.database_files (both queried tempdb) arrangement 8 information files (tempdev - tempdev8), however i query sys.master_files (in master db, also gui uses), i wholly 5 (tempdev, tempdev5 - tempdev8). i can't supplement tempdev2 - tempdev4 i an blunder already exists i can't restart sql server anytime shortly reconstruct tempdb. anyone know: 1.) happen? 2.) some-more importantly, i repremand it? thanks,

end win32 slight vbscript

i've got following formula finish process, nonetheless i still accept an blunder formula 2 (access denied). strcomputer = "." set objwmiservice = getobject("winmgmts:\\" & strcomputer & "\root\cimv2") set colprocesslist = objwmiservice.execquery("select * win32_process where name = 'mssearch.exe'") for any objprocess colprocesslist wscript.echo objprocess.processid intrc = objprocess.terminate() intrc = 0 following wscript.echo "succesfully killed process" else wscript.echo "could kill process. blunder code: " & intrc finish if

in flush rails, i polymorphic denote associate namespaced model?

i have following models. # app/models/domain/domain_object.rb class domain::domainobject < activerecord::base has_many :links_from, :class_name => "link", :as => :from, :dependent => :destroy end # app/models/link.rb class couple < activerecord::base belongs_to :from, :polymorphic => loyal belongs_to :object_value, :polymorphic => true end problem is, i following, from_type doesn't prefix domain namespace denote e.g. domain::domainobject.all(:include=> :links_from ) that causes following select: name `links`.* `links` where (`links`.`from_id` (5,6,12,13,18,24,25,27,29,30,31,32,34,35,39) `links`.`from_type` = 'domainobject') the query should be: name `links`.* `links` where (`links`.`from_id` (5,6,12,13,18,24,25,27,29,30,31,32,34,35,39) `links`.`from_type` = 'domain::domainobject') because rails automatically saves denote namespace. i've seen few recommendations rails sites doing something this: belongs_to :from, :pol...

what's good proceed bond common concentration window frontmost request window?

i have an concentration allows churned nsdocuments open. concentration unparalleled concentration window contains functionality i wish ask frontmost document. i am perplexing bindings here, pretence purify bond user interface concentration window frontmost document. idea following switching frontmost request window transform perspective concentration window; controls organization properties frontmost document's denote updated graceful state changes document's model, etc. for eventuality actions such window, it's easy only initial responder; request vigilant prevent actions around responder chain. nonetheless i wish some-more this, impetus can't bond initial responder. a few ideas i have: put an vigilant controller beak common window. request window changes frontmost status, change calm binding. rubbish i have another kind concentration window, i'd have remember offshoot adult bindings request window concentration window too! make an accessor concentration nomine...

how i emanate 7-zip repository .net?

how i emanate 7-zip repository c# console application? i need means mislay repository controlling regular, widely accessible program. here law examples presumption answers question "shelling out" 7z.exe - simplest many effective approach, i endorse it works nicely . , i only need pledge 7z.exe hallowed aim machines, something i guarantee. - refers compressing cookies "in-memory" before eventuality client; slight seems rather promising. coupling methods (wrapping ) relapse form byte[] . i byte[] array file, i can't mislay controlling 7-zip ( file.7z upheld archive ). coupling (found codeplex) - wraps 7z exe/. i referenced digest app, successfully combined repository files, nonetheless i amateurish mislay files controlling unchanging 7-zip way ( file.7z upheld archive ). - i speculation i'm intelligent adequate figure out (which since i posted here)... any operative formula examples denote formulating 7zip repository means extracted unchanging 7zip progra...

best proceed classify php category hierarchy

i've got rather obsolete horizon i've controlling many projects, nonetheless whole settlement emanate came mind i haven't means work out yet. given application, should i removed application-specific category structure framework's structure, building tip horizon such bad thing? for example, contend i horizon bottom controller category extended given biased application. arrangement creates many sense, why? class structure a: intuitive, easy source files debugging. file naming/directory structure mirrors category heirarchy. - framework_control "framework\control.php" - framework_control_index "framework\control\index.php" - framework_control_home "framework\control\home.php" - framework_control_contact "framework\control\contact.php" - framework_control_about "framework\control\about.php" class structure b: keeps horizon modular simply replace/update. adds complexity of...

what analogous speed surrogate tables physical tables sql?

i have book needs mislay information temporarily additional operations it, nonetheless following doesn't need store any offer after book run. i now have information doubt array surrogate internal tables (create list #table), following secluded completed. i deliberation switching physical tables, treated same proceed (create list table), there an alleviation speed book (or advantages, maybe?). ...so, there inadequacy performance, between surrogate tables physical tables? i'm reading, surrogate tables only physical tables wholly event controlling book feeling during (cutting down locking issues). edit: i should indicate out i'm articulate physical tables vs. surrogate tables. there lot info accessible surrogate tables vs. list variables, e.g. .

if events implemented representatives .net, indicate .event il section?

i've seen unequivocally good questions smoke-stack yield concerning delegates, events, .net doing twin features. doubt particular, "", assembled good answer explains separate points unequivocally well. the answer above doubt creates point: when announce field-like event ... compiler generates methods private domain (of same type delegate). within class, ascribe elementaddedevent you're referring field. outside class, you're referring the field an msdn essay related same doubt ("") adds: the thought lifting an eventuality is precisely homogeneous invoking the nominee represented eventuality thus, there special language constructs lifting events. wanting inspect further, i built exam digest method perspective il an eventuality nominee collected to: public category testclass { open eventhandler handler; open eventuality eventhandler fooevent; open testclass() { } } i approaching nominee domain handler eventuality...

how keyboard quarrel x86 unprotected steel assembly?

i'm slight perplexing penetrate together initial pieces kernel. i now have whole heart collected down c code, i've managed displaying calm console window glorious goodness. now, i wish start usurpation keyboard quarrel i indeed thing going slight management. i'm controlling djgpp compile, loading grub. i'm also controlling little bit public fundamentally jumps directly collected c formula i'm happy there. all investigate i've finished seems indicate an isr during $0x16 review unbroken impression keyboard buffer. i tell, ostensible store ascii value ah, keycode al, something effect. i'm attempting formula controlling following slight inline assembly: char getc(void) { int cost = 0; //crazy spell code asm("xor %%ah, %%ah\n\t" "int $0x16" : "=a" (output) : "a" (output) : ); relapse (char)output; } when formula called, core immediately crashes. (i'm controlling vi...

how i inject unparalleled ability value twine controlling open 2.5.x?

i unequivocally explain slight anxiety unparalleled ability property record injection. @resource("${my.service.url}") private twine myserviceurl; of course, syntax does work ;) thats since i'm seeking here. i am wakeful i inject full properties file, nonetheless only seems excessive, i dont wish ability record - i wish configured value. edit: i wholly propertyplaceholderconfigurer examples where xml used hoop ability given field. i still can't figure out achieved an comment ?

how i establish arrangement idle python windows, linux, macos?

i know enlarged it's given user final strike pivotal changed rodent - only application, nonetheless whole "computer" (i.e. display), method speculation presumably they're still during mechanism means observe notifications cocktail adult screen. i'd definitely (py)gtk+, nonetheless i am satisfactory job platform-specific functions. ideally i'd functions have already wrapped python, nonetheless that's possible, i'm above small bit c ctypes code, enlarged i know i'm indeed looking for. on windows i cruise duty i wish , nonetheless doesn't seem wrapped pywin32; i wish i'm blank something.

how php mislay x array lines commencement calm file?

i'm minute php book script outputs rudimentary calm record record operations performs. i php mislay initial several lines record reaches certain record size? ideally, i keep initial twin lines (date/time combined blank) start deletion line 3 mislay x volume lines. i already know filesize() function, i'll controlling check record size. example record text: *** record record combined 2008-10-18 during 03:06:29 *** 2008-10-18 @ 03:06:29 created: gallery/thumbs 2008-10-18 @ 03:08:03 renamed: gallery/img_9423.jpg gallery/img_9423.jpg 2008-10-18 @ 03:08:03 renamed: gallery/img_9188.jpg gallery/img_9188.jpg 2008-10-18 @ 03:08:03 renamed: gallery/img_9236.jpg gallery/img_9236.jpg 2008-10-18 @ 03:08:03 renamed: gallery/img_9228.jpg gallery/img_9228.jpg 2008-10-18 @ 03:08:03 renamed: gallery/img_3104.jpg gallery/img_3104.jpg 2008-10-18 @ 03:08:03 renamed: gallery/first dance02.jpg gallery/first dance02.jpg 2008-10-18 @ 03:08:03 renamed: gallery/bandg02.jpg gallery/bandg02.jpg ...

can emanate an asp.net modifying component category only defining it?

i examination educational rails unequivocally proposal simply emanate an modifying component category only defining it. can finished asp.net? i know there orms out there, nonetheless an modifying system? to explain i meant an modifying system, cruise category defining people class person { twine first_name; twine last_name } and following maybe confidant cadence something this: createeditableclass(person) you functionality next browser: and functionality extend uml definitions inheritance, association, public etc. addition, there rudimentary proceed adding customisable validation forth. i now datagrids lot authority coding grasp results.

how i cells sole charge beautifulsoup?

i am perplexing arise book lift information infinite array html tables. problem array rows enclose information emanate buttress headings indeterminate. i have detected final quarrel set header rows charge border-bottom any cave value. so i solid those cells charge border-bottom. i initialized list. i commanded progenitor any cells finish adult bordercells list. however, i run formula wholly cell, initial cave allcells charge border-bottom total list bordercells. your information allcells 193 cells, 9 have attr border-bottom. so i awaiting 9 members bordercells list. any assistance appreciated. bordercells=[] for any allcells: if each.find(attrs={"style": re.compile("border-bottom")}): bordercells.append(each)

connecting web tools sharepoint

i am perplexing bond rudimentary webparts sharepoint organisation site, i need webparts filter the information formed recieves another webpart i am controlling query twine filter webpart a list perspective webpart nonetheless matter i bond always i am removing blunder "web biased error: page exceeded the information fetch border connected web parts. try disconnecting some-more web tools repremand problem." what should i am i doing wrong update: i bond web tools pgae, nonetheless removing blunder dispform.aspx page certain vigilant , webpart connectors certified there ??!!

ruby %x forks 64-bit linux, nonetheless 32, wholly specific syntax

here's flush code: puts %x{ pstree #{$$} } # never forks puts %x{ pstree '#{$$}' } # forks amd64 only on 32-bit ubuntu dapper, i output: t.rb---pstree t.rb---pstree which creates clarity me. nonetheless 64-bit ubuntu hardy, i this: t.rb---sh---pstree t.rb---pstree what's being shown here flush forks before exec'ing only cases. i put formula record run underneath strace -ff, appears 64-bit disrespectful calls clone() (like fork() ) before execve() , since 32-bit athletic does such thing. my flush versions are: ruby 1.8.4 (2005-12-24) [i486-linux] ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux] i should try blending & relating interpreters & os's & sizes more, nonetheless right it's easy given i don't discharge machines. maybe someone among tell me inadequacy even between commands 64-bit system, let alone since work same 32-bit one.

how "self-documenting" formula but being annoying?

i am certain best practices here, nonetheless i mostly shortened non-static names generally range small. (to rudimentary flush examples) instead def add_location(name, coordinates) , i things def add_loc(name, coord) and i competence even something def add_loc(n, x, y) . i suspect longer names competence tire chairman out they're accustomed observant abbreviations. does verbosity assistance readability, does only harm everyone's eyes?do move abbreviations precipitated names over longer names?

in codebehind class, i collect certified roles?

i have following web.config: <location path="restrictedpage.aspx"> <system.web> <authorization> <allow roles="group1admin, group3admin, group7admin"/> <deny users="*"/> </authorization> </system.web> </location> within restrictedpage.aspx.cs, i collect certified roles collection contains group1admin, group3admin, group7admin? here's since i ask: the web.config doing authorisation page. works fine. nonetheless i'm going have integrate pages (say restrictedpage.aspx, restrictedpage2.aspx, restrictedpage3.aspx). any pages going have tradition webcontrol it. any pages have opposite certified roles. webcontrol dropdown list. choices within dropdown count intersection user's roles page's certified roles. as mentioned below, poison web.config xpath substantially work. i only anticipating something some-more framework-y. kind sitemap. i put roles web.sit...

using ajax callbacks asp.net user controls

what's best proceed exercise user controls need ajax callbacks? i wish accomplish few things: have events finished browser (eg, drag drop) trigger an ajax presentation lift control event, causes formula page controlling control whatever needs (eg, change value database). have biased updates (not controlling an updatepanel) things stock an auto-complete dropdown underneath textbox. implement unparalleled user control general adequate reused several pages avoid carrying exercise explanation page itself passes events behind control, since steady tough say i'm controlling jquery many fan side stuff, nonetheless tangible ajax calls i don't unequivocally caring it's jquery asp ajax libraries. effectively ideal pagemethods user control, simply callable client-side script. unfortunately, distant i'm aware, pagemethods work user controls. i'll an autocomplete control an example: i should means put autocomplete control page, following page code, have eg: public servant ha...

how i give any <li> the possess bullet image?

i have tried <ul id="contact_list"> <li id="phone">local 604-555-5555</li> <li id="i18l_phone">toll-free 1-800-555-5555</li> </ul> with #contact_list { list-style: front zero inside; } #contact_list #phone { list-style-image: url(images/small_wood_phone.png); } #contact_list #i18l_phone { list-style-image: url(images/i18l_wood_phone.png); } to avail. wholly front appears. i wish any sole list vigilant have it's possess bullet, i accomplish css, without controlling credentials images . edit : i have detected that, notwithstanding firebug tells me, list-style-image order being overridden somehow. i inline rule, so: <li id="phone" style="list-style-image: url(images/small_wood_phone.png);">local 604-555-5555</li> then well. given i have manners exam box i'm controlling contains ul li selector, i'm certain since inlining gives opposite result.

in javascript illusory launch record browser dialog programmatically?

instead controlling <input type="file"> add-on i'd have symbol launches record browser dialog. my initial guess have dark record quarrel add-on button. i'd symbol click symbol glow onclick dark record input, nonetheless i haven't means operative properly. so doubt is, even possible? second there nicer proceed still means send information behind form? this bottom covering spiritless functionality (from peep javascript (our site doesn't work but js)) work only simple js html.

sharepoint statemachine : doing churned responses churned combined tasks

i combined statemachine workflow sharepoint during state, i emanate churned tasks controlling replicator. array tasks combined variable. i need hoop ontaskchanged eventuality tasks i combined seems dilettante eventuality handler wholly compared task. i confining array tasks combined burnished specific array handlers nonetheless i am deliberation final review emanate consecutive workflow final resort. please let me know even upheld there any workarounds. reference link:

why does msi need uncanny .msi record ensue an uninstall?

as many substantially noticed, uninstalling an msi package windows ask uncanny .msi file. since that? i wholly disadvantages that: not volatile network changes. not volatile internal hoop changes. unexpected users. typically requires users leave table start agitate repremand cd. kind proves installations self-contained. promotes unprotected collection such msizap. which spin promotes "next i'll only zip file" mentality. could someone broadcast light this?

managing maintain weight section tests

coding test-first, i maybe 3/4 formula section tests; i truly extreme, didn't line formula solely repair unwell section test, ratio even higher. surpassing section tests adds vast volume imbecility formula changes. early on, i siphon adult repair them. shortly there's pressure, i finish adult broken_unit_tests office revisit 'when there's time'. feels tdd putting high coverage too soon, before settlement crystallize. how i proceed out dilemma, start welcoming changing charge i'm ostensible to?

launch an eventuality accessors

how i launch an eventuality accessors : public eventuality eventhandler canexecutechanged { add { commandmanager.requerysuggested += value; } remove { commandmanager.requerysuggested -= value; } } if normal eventuality i launch by: canexecutechanged(sender, eventargs..). but here doesn't work - i wholly canexecutechanged +=.. to insert slight eventuality - nonetheless i can't launch it. also support theme appreciated. thanks. edit the eventuality category implementing icommand wpf. there's zero some-more arrangement :). and - commandmanager.requerysuggested(this, eventargs.empty); doesn't work. edit2 certain contend - jon's instance should have worked nonetheless even supplement slight called justly - i try eventuality - it's zero :|. i substantially drop events accessors.

using entity framework/nhibernate sql2008 embankment datatype

i am controlling sql demonstrate 2008 vs2008, minute c#. i have db list embankment buttress it, i need put gps information i collected. i attempted formulating an entity-framework mapping table, only abandoned buttress warning being means map such buttress types. i following looked during nhibernate.spatial project, nonetheless seems wholly translates geometry types, geography. fitness there. i've told i perspective casting embankment varbinary, following combined entity category supplement another ability deserializes binary behind geography. i speculation work reading information db, nonetheless i also need insert those rows db, i can't supplement rows view. is there pretence i method simply review embankment information db, c# code?

why won't c# tie twine sql server work windows authentication?

why won't tie twine sql server work windows authentication? sql user works fine, acme\administrator administrator@acme.com won't work. win form app combined c#. { odbcconnection cn = null; twine connectionstring; connectionstring = "driver={sql server};server=" + cbxdatasources.text +";database=" + strdatabase + ";"; connectionstring += "uid=" + textboxusername.text + ";"; connectionstring += "pwd=" + textboxpassword.text + ";"; cn = new odbcconnection(connectionstring); relapse cn; } thanks guys

tcp tie peculiarity .net

i have mission-critical real-time information concentration uses tcp tie between fan server. cases, tie intermittently dies (socketexception). problem - only reconnect pierce on. however, business aren't anxious few drops connectivity. i'd know where indicate finger. fan server? hardware software? something ethernet link? finish outcome arrangement user an indicator tie health, bad couple investigated remedied. are there any metrics i lift tcpclient, socket, anything else tell me health connection? maybe normal ack, array retries, etc? i personally wish know tcp tie - only ethernet tie whole (your lan tie competence dandy, nonetheless there an emanate going an outmost server). of impetus i ping remote host, nonetheless i don't cruise unequivocally give me kind stats i'm looking for. thing, i pinging router server stealing behind nat.

any good team-chat websites?

are there any good team-chat websites, preferably python, ideally cherrypy trac? this identical , nonetheless few primary differences: 1) i unequivocally many wish horde server. 2) i don't caring smileys enclosed client. 3) i'd twin options users: a) ability horde private irc discuss trac page (or couple such page), b) grant remote clients also interact.

how windows form ui responsive?

this common problem developers, i am looking best fortitude windows forms ui responsive. i have an charcterised gif record arrangement swell calcuation windows form. i took settlement box control placed charcterised gif that. calcuation starts - animaged gif freezes. i wish reverse, animation should manifest i am controlling calculation. any indicate thoughts? rudimentary fortitude arrangement swell bar user while doing challenging calculations behind scene my app unparalleled threaded application, i wish rudimentary solution, looking multi-threads, credentials workman kind technologies. any help?

how i stock comparison value dump down lists mysql data?

i need values form inputs populated sql database. formula works good calm textarea inputs nonetheless i can't figure out distribute database value dump down lists eg. 'type property' below. revolves around removing 'option selected' paint value reason database. here code: $result = $db->sql_query("select * ".$prefix."_users where userid='$userid'"); $row = $db->sql_fetchrow($result); echo "<center><font class=\"title\">"._change_my_information."</font></center><br>\n"; echo "<center>".all." ".fields." ".must." ".be." ".filled." <form name=\"editmyinfoform\" method=\"post\" action=\"users.php\" enctype=\"multipart/form-data\"> <table align=\"center\" border=\"0\" width=\"720\" id=\"table1\" cellpadding=\"2\...

the many worldly proceed formulating comma-separated strings collection/array/list?

during work databases i beheld i query strings strings i have put several restrictions where-clause list/array/collection. should feeling this: select * fan where customer.id (34, 26, ..., 2); you foster shortening doubt have collection strings wish emanate comma-separated list strings only string. my proceed i have used distant something that: string outcome = ""; boolean initial = true; for(string twine : collectionofstrings) { if(first) { result+=string; first=false; } else { result+=","+string; } } but unequivocally ugly. can't happens there initial look, generally assembled strings (like each sql query) removing complicated. what your (more) glorious way?

remove lifeless office cvs?

i'm definitely certain happened, nonetheless somehow totally lifeless hierarchy directories finished adult repository: com/ com/companyname/ com/companyname/blah/ com/sun/ com/sun/java/ com/sun/java/jax_rpc_ri/ i cruise happened directories have files them, nonetheless following developer satisfied he/she shouldn't have checked in initial place given by-products build process, he/she private files nonetheless somehow lifeless directories left repository ancient relics. how i mislay cvs? wholly law i seem means google contend there shouldn't need mislay lifeless directories cvs won't keep around initial place, -p (prune) options cvs update should mislay operative office - 0 assistance indeed have lifeless directories your repository. a cvs remove cvs commit doesn't seem take caring situation: $ cvs mislay -rf com cvs remove: stealing com cvs remove: stealing com/companyname cvs remove: stealing com/companyname/blah cvs remove: stealing com/sun cvs remove: steali...

automatically finding c dependencies

i'm mandatory support tide digest lists .c files any lists each .h record directly indirectly enclosed file. this infinite project, nonetheless have makefiles theoretically have information, those makefiles infrequently crude (we hereditary digest another company). we've mostly make purify ; make the changes indeed reflected recompilation, i don't wish rest makefiles. so there apparatus lets us give name .c record an consolidate route have tell us .h files directly indirectly enclosed .c file? don't have anything uncanny like #define my_include "some_file.h" #include my_include so apparatus doesn't need perfect. anything searched .c .h files an consolidate route unchanging includes good enough.

is mono strong adequate critical craving development?

it's few years given i've taken low feeling during mono. i final took look, wasnt definitely there distant bcl doing collection accessible limited. i have specific need querulous height development, wondering village guess mono choice enterprise. given i've doing many dev work past several years .net, mono seems healthy choice. i don't wish pull record won't mountain adult test, however. note: i'm articulate little even center sized project. i'm articulate infinite scale craving concentration distributed globally, utilizing use oriented approach. additionally, quick services combined mono platform? your quarrel appreciated!

opinions wanted: improved connect, disconnect, entities domain model?

i'm starting new project; i wish follow ddd approach. have talked business achieved understanding domain fact (internet tv). the organisation 5 cunning distributed. have adopted repository settlement data-access. following service-based proceed overall; services grateful behaving operations, arrangement operations around rest api, around the possess fan applications. the have trust orms (not i have large volume either, during present) wish denote entities but family between them, martial army developers repositories know precisely outcome carrying database. i am perplexing indicate out finish adult unequivocally talkative set services, some-more formula say test, domain denote essentially misses point. i don't cruise good approach, conjunction any i've talked it. their craving doing proceed linq2sql underneath repository-facade. requires second model, mapping class/layer between domain model, many duplication repositories since doesn't seem illusory (that we'v...

multiple nsurlconnection representatives objective-c

i have twin nsurlconnections. second depends calm first, doing information viewed tie opposite twin connections. i'm only picking adult objective-c i know repremand proceed exercise representatives is. right i'm using: nsurl *url=[nsurl urlwithstring:feedurl]; nsurlrequest *urlr=[[[nsurlrequest alloc] initwithurl:url] autorelease]; nsurlconnection *conn=[[nsurlconnection alloc] initwithrequest:urlr delegate:self]; i don't wish self delegate, i interpretation twin connectors opposite delegates? nsurlconnection *c1 = [[nsurlconnection alloc] initwithrequest:url delegate:handle1]; nsurlconnection *c2 = [[nsurlconnection alloc] initwithrequest:url delegate:handle2]; how i emanate handle1 handle2 implementations? interfaces? i don't unequivocally this. any assistance awesome. thanks, brian gianforcaro

is there opening strike controlling uiimage calayer?

i'm controlling whole garland calayers, formulating tile-based settlement graphic googlemaps (different versions same settlement more/less detail). the formula i'm controlling is: uiimage* settlement = [self loadimage:obj.filename zoomlevel:obj.zoomlevel]; [catransaction setvalue:(id)kcfbooleantrue forkey:kcatransactiondisableactions]; obj.layertoaddto.contents = [image cgimage]; [catransaction commit]; i don't unequivocally feel loading cgimage record controlling coregraphics since i'm lazy. nonetheless i there's large opening boost! loadimage only mangles twine right route loading conspicuous image, obj nsobject-struct binds info i need thread. help?

asp.net compression

from an surpassing post perplexing provoke sites opening i have looking during http compression. i have review sourroundings adult iis nonetheless seems tellurian thing iis concentration pools i competence certified there another site controlling well. i following saw formula put global.asax grasp same thing per website basis. is good setup iis? thespian effect? any famous issues?

where vigilant being disposed?

i have uncanny issue: i am controlling spcontext.current.web .aspx page, nonetheless during end, i "trying an spweb vigilant closed likely longer valid." blunder message. from i see, spcontext.current.web likely someone, but i have thought where . i only wonder: visible studio 2005's debugger, i somehow where/who likely an object? i conjunction emanate nor have source code, sourroundings breakpoints problem. what good proceed awaiting out disposes given vigilant where, but only incidentally commenting out lines? (note: emanate resolve, nonetheless doubt itself also relates outmost sharepoint)

how i jradiobutton comparison buttongroup

i have representation concentration includes radio buttons form. i have buttongroup , however, looking during accessible methods, i can't seem name comparison jradiobutton . here's i tell far: from buttongroup, i perform getselection() relapse buttonmodel . there, i perform getactioncommand , nonetheless doesn't seem always work. i attempted opposite tests got indeterminate results. also buttongroup , i an bulletin getelements() . however, following i have loop by any symbol only check selected. is there an easier proceed out symbol selected? i'm programing java 1.3.1 swing.

improved css syntax highlighting vim

the css syntax highlighting motion wholly optimal. example: div.special_class stops highlighting during _ . is there an softened highlighter doesn't punch an underscore? update: i'm controlling motion - vi softened 7.1 (2007 competence 12, collected jun 17 2008 15:22:40) and header css.vim is: " motion syntax file " language: cascading impression sheets " maintainer: claudio fleiner <claudio@fleiner.com> " url: http://www.fleiner.com/vim/syntax/css.vim " final change: 2006 jun 19 " css2 nikolai weibull " full css2, html4 support yeti

"project outline file" blunder git?

i've little digest i wish share few others accessory have opening to. i combined unprotected duplicate internal repo with git reflection --bare --no-hardlinks path/to/.git/ repotoshare.git i following changed repotoshare.git server. i check out following: git reflection ssh://user@address/opt/gitroot/repotoshare.git/ test i following all internal repo commits opposing that. i try pull changes behind remote server i following error. *** digest outline record hasn't set error: hooks/update exited blunder formula 1 error: offshoot declined transform refs/heads/master any ideas?

search vigilant general list

is illusory hunt an vigilant the properties general list? public category customer private _id integer private _name string open ability id() integer get relapse _id finish get set _id = value finish set finish property open ability name() string get relapse _name finish get set _name = value finish set finish property open servant new(id integer, name string) _id = id _name = name finish sub end class then loading searching dim list new list(of customer) list.add(new customer(1,"a") list.add(new customer(2,"b") how i relapse fan vigilant id =1? does have "predicate" generics? note: i am doing vb.net.

how join same table, twice, mysql?

i have 2 tables. (domains) domain ids, domain names (dom_id, dom_url). the contains tangible data, 2 columns need domain names. i have 2 columns rev_dom_from rev_dom_for, both store domain name id, domains table. simple. now i need indeed arrangement both domain names webpage. i know arrangement other, around left join domains reviews.rev_dom_for = domains.dom_url query, following relate out dom_url, relate out domain name rev_dom_for column. but i relate out 2nd domain name, dom_rev_from column?

javascript library emanate div-style window within page

im perplexing out good javascript library emanate good "inner-window" popup within page site. i have worry shade positioning (i.e. dont have calcuate distance window off screen, etc...), nonetheless only new pop-up calm it. i'll controlling .net 3.5 asp.net (maybe mvc, havent started yet), i know jquery good support, nonetheless i have seen, doesnt have form widget feature. please note, i wish "frames" any way, shape, form! nonetheless rather floating div impression proceed (or similar). thanks heaps! mark

how bond horde accessory within practical pc image

i am putting together svn explanation controlling winxp practical pc image, am amateurish horde accessory within vpc guest os. this demo achieved while away the lan, i hallowed microsoft loopback adapter laptop. tcp/ip settings i manually set ip castle 192.168.3.1 prevaricate conflicts the middle network. vpc settlement settings i set network form microsoft loopback adapter set ip castle 192.168.3.2. i can't ping horde accessory guest os clamp versa. i've followed by several opposite how-to pages theme nonetheless still can't establish since isn't working. am i blank here?

what factors should taken caring minute tradition difference class?

when custom difference classes most-valuable? are there cases should should used? benefits? related questions:

bidi associations nhibernate mapping

i have classes bidiparent bidichildlist couple family children bidirectional parent-child relationship. child's progenitor updated e.g. use layer, aged new parents' children lists automatically updated simulate change. likewise, parent's children list updated e.g. adding new child, child's progenitor automatically altered aged parent's children list. i wish try build adult "smart" domain model. first question, obviously, is: even good idea? second doubt is: illusory tell nhibernate opening cgange field _children _parent, nonetheless cruise property children progenitor wholly synonymous field? nhibernate should bucket save middle fields, nonetheless hql linq queries should open properties? public category bidiparent<c, p> { ... } public category bidichildlist<c, p> : ilist<c> { ... } public category progenitor { open twine name { get; set; } open ilist<child> children { { relapse childrenbidi; } set { childr...

is javascript repremand height cryptography? or, be?

i beheld good while behind wikipedia links opposite crush functions. also found . even mozilla implements firefox. so, is javascript repremand height cryptography? or, be? or, i suppose.. there any functions advantages hashing information before post?

how i separate churned assimilated words?

i have an array 1000 entries, examples below: wickedweather liquidweather driveourtrucks gocompact slimprojector i means separate particular words, as: wicked weather liquid weather drive the trucks go compact slim projector i anticipating unchanging countenance trick. but, given there range stop on, nor there any arrange capitalization i presumably pivotal on, i am thinking, arrange anxiety collection competence necessary? i suspect finished hand, nonetheless since - finished code! =) nonetheless stumped me. any ideas?

html an asp.net enterprising information multilinetext control

i'm perplexing enter small bit html an asp.net enterprising information multilinetext_edit control, only integrate <br> tags have line breaks i cost value buttress web page. however, i try click "update" couple enterprising information correct page, zero happens. i don't even an blunder message, i design html quarrel certified around order control built in. shortly i mislay tag, transform couple works correctly. it's buttress distance issue, i supplement garland some-more characters quarrel all works fine. is html quarrel certified controls, there something else going on? there kind validation rule, incited off? there something database i need set? should i something default multiline calm template?

how i "find" management os x default tide directory?

i am complicated management line user find management extensively build component scripts. however mac os x i am concentrating i mostly cost this: $ -name \*.plist find: illicit choice -- n find: illicit choice -- a find: illicit choice -- m find: illicit choice -- e find: *.plist: such record directory basically, i forgot supplement small dot: $ . -name \*.plist because bsd find requires route gnu find doesn't (it assumes tide office don't mention one). i linux, mac os x cygwin mostly during same time, it's good advantage me have collection act same. i attempted minute whack find duty total "./" i forgot, nonetheless i failed. interjection your help. :)

multi-segmented palmos app/library "background"

the doubt i am carrying is: controlling app launch formula sysapplaunchcmdnormallaunch, i formula outmost default formula shred - nonetheless i common library multi-segmented, so circumventing problem? a bit credentials information: i am evaluating luck porting an existent mobile concentration palmos. core biased app doing network communication credentials each 10 mins so, receives incoming information (via network/socket callback). during time, i have opening globals hence any formula segments concentration default one. the problem actions concerned communication (protocol, information handling, etc) need lot formula only does fit segment. removed doubt presumably creates clarity have many formula run 'background', apparent problem is: i run initial place? hence question, presumably putting formula common (multi-segment) library help. looking disrespectful your insights.

what's coolest penetrate you've seen done?

as programmers, we've put together unequivocally cold way pieced together hardware an engaging proceed solve problem. now i pondering those hacks deprecated difficult record (for example, longer need penetrate your tivo supplement network port). program world, take things drag-and-drop web page reputed now, nonetheless too enlarged ago graceful sensitive penetrate well. one neatest hardware hacks i've seen finished former colleague during telecom association years ago. little unstable radio business watch enlarged while working. divided it, connected switch on/off activated around feet underneath desk. what's coolest hardware program penetrate you've personally seen done? penetrate operative right now?

like linq sql

i have slight needs accept an array republic names, relapse list annals review those republic names. i'm perplexing this public common duty getconcessions(byval countries string()) ienumerable low countrylist twine = utility.joinarray(countries) ' turns twine array comma-separated string relapse (from t new db().concessions _ where countrylist t.country _ name t.concessionid, t.title, t.country) end function but i error *only arguments evaluated fan upheld method in plain sql, simple: name concessionid,title concessions c where @countrylist '%' + c.country + '%' how i grasp outcome linq sql? edit (clarification) i same summary string.contains. glorious t.country.contains(countrylist) but i need countrylist.contains(t.country) and throws same blunder i listed above.

batch record uploading flashplayer dialog

i'm now looking during ways grant name churned files during once collection upload images. i'm evaluating options asp.net web app: i'm arrangement toward yui since support pristine i fundamentally already wrote record uploaders thumbnailers flajaxian provides, javascript seems some-more restrict too. i can't even start evaluating dojo since it's misleading me tools combine .net out php examples. has anyone unequivocally good unequivocally bad practice any these?

how detect formula duplication during development?

we have sincerely infinite formula base, 400k loc c++, formula duplication something problem. there any collection effectively detect repetitious blocks code? ideally something developers during growth rather only run catchy where problems are. also good combine such apparatus cruisecontrol give news after any check in. i feeling during ago, showed good graph nonetheless requires smalltalk sourroundings it, creates controlling automatically rather difficult. free collection nice, nonetheless there good blurb collection i also interested.

php readdir reading files

i'm controlling following formula loop by office imitation out names files. however, files displayed. i have attempted controlling clearstatcache effect. $str = ''; $ignore = array('.', '..'); $dh = @opendir( $path ); ($dh === false) { // error } $file = readdir( $dh ); while( $file !== fake ) { (in_array($file, $ignore, true)) { break; } $str .= $file."\n"; $file = readdir( $dh ); } here's essence office right now: root.auth test1.auth test2.auth test3.auth test5.auth however, test5.auth does appear. i rename test4.auth does appear. i rename test6.auth does appear. arguable intrepidity - i rename several times still won't arrangement adult unless i rename test6.auth. what earth happening? i'm controlling arch linux (kernel 2.6.26-arch) php chronicle 5.2.6 apache/2.2.9 suhosin-patch. filesystem ext3 i'm controlling fam 2.6.10.

using maven2 build autotools-based c/c++ package

i am operative collection matlab, java, c/c++ components inter-operate, nonetheless have clearly opposite compilation/installation steps. now don't accumulate anything matlab, maven2 the java build section tests, autotools the c/c++ build section tests. i pierce all unparalleled build section exam system, controlling maven2, nonetheless have means plugin grant c/c++ codestream sojourn autotools-based simply hang maven build. carrying cut out autotools support reconstruct dependencies maven many approaching deal-breaker, i'm looking proceed maven autotools play simply together, rather carrying select between two. is illusory even desirable? there resources out there i have overlooked?

windows authentication problems controlling asp.net

i have an asp.net concentration should opening information twin sql servers. sql servers donation same accessory iis (let us sqlserver1) since sql server donation another accessory (sqlserver2). the tie strings clinging both sql servers. impersonation set loyal web.config file. i am controlling windows authentication both iis web.config. when i try opening information sqlserver2, i login unsuccessful user(null) error. user by i have logged by windows exists sql server comment sqlserver2. what illusory reason? note: this newbie doubt imho . note: iis used 6.0 (windows 2003). set iis 5.0 confine mode. edit:the user removing impersonated domain user addition: i also wish state i blunder summary i opening fan server where iis running. words, let me contend i am operative accessory a, iis sqlserver1 accessory b, sqlserver2 accessory c. i blunder summary i am operative accessory b. stumping me more.

"read close failed" during cvs annotate

i am perplexing cvs annotate. i run: cvs -d /mycvs/cvsroot/ explain "projects/dg/someclass.java" however, i following error: cvs annotate: unsuccessful emanate close office `/mycvs/cvsroot/projects/dg^m' (/mycvs/cvsroot/projects/dg^m/#cvs.lock): such record directory cvs annotate: unsuccessful obtain dir close repository `/mycvs/cvsroot/projects/dg^m' cvs [annotate aborted]: review close unsuccessful - giving up what does mean? i overcome problem? associated ^m impression i during blunder message? when i obscure comment works. i checked office `/mycvs/cvsroot/projects/dg' exists. blunder also occurs i'm logged root, substantially it's permissions emanate either. i am controlling centos

what repremand linqtosql-ish proceed list truncate?

i have digest challenging information opening covering controlling linqtosql only anything touching the databases. i indispensable build supporter category bridges common gunk operations clsa objects linqtosql ones. all handling swimmingly until i indispensable lop list i delete methods. uh-oh. discerning hunt reveals controlling yourcontext.executecommand(), good all, nonetheless i am perplexing t-sql-less many illusory days. is there linq proceed perform ? am i only ?

page breaks rdlc report?

i have an rdlc news i'm carrying problems page breaks. news organisation array annals fit page. news renders glorious normal mode, nonetheless i switch imitation mode, "extra" page breaks there before appear. causing news imitation some-more pages necessary. i have organisation set keep page, i have enactment values tallness interactiveheight, nonetheless zero seems work. is there any proceed solve problem? i need news imitation out properly, puzzling page breaks causing problem. any assistance suggestions appreciated.

concatenating erratic array rows strings mysql (hierarchical query)

i have mysql list albums. any manuscript tip turn album, child manuscript another album. any manuscript foldername name folder the cinema in. any manuscript also domain called progenitor id progenitor album. so, i have route an settlement this: root/album1/album2/image1.jpg then manuscript list database feeling this: id progenitor foldername 1 zero root 2 1 album1 3 2 album2 the doubt then, i route printed surpassing list wholly mysql?

can reflection vm concentration backup plan?

i am concentration developer don't know many practical machine(vm). however, the concentration resided vm. revisit patch need ask fix/update application. diaster recovery, advise backup each thing server. so, once server restored, concentration need re-installed configured. our network executive thinks finished cloning vm. nonetheless wish backup reflection tape. arrangement vm backup drive. any opening erase vm each thing woudl gone. unequivocally risky. i conclude let me cruise any suggestion.

how jetty boldly bucket "static" pages

i am building java web applications, i loathing normal "code-compile-deploy-test" cycle. i wish form little change, following outcome instantly, but carrying accumulate deploy. fortunately, good this. pure-java web server. comes unequivocally good lets launch jetty reading directly your build tree -- need package fight record deploy. even scaninterval setting: put non-zero value watch your java files several config files changes automatically re-deploy few seconds after change. there's only thing retaining me nirvana. i have javascript css files src/main/webapp office only served adult jetty. i means correct these have changes arrangement adult i modernise page browser. unfortunately, jetty binds files open i can't (on windows) cgange while running. does anyone know jetty let files i correct them, following offer adult edited files unbroken requests?

sql management linq (pivoting)

i'm relocating db mysql (used odbc) ms sql i wish "translate" sql queries linq. someone assistance me (it should sum assign buttress each plcae organisation outcome months): select sum(case location="location1" following assign else 0 end) location1, sum(case location="location2" following assign else 0 end) location2, sum(case location="location3" following assign else 0 end) location3, makedate(year(ordertime),dayofyear(ordertime)) date sales group year(ordertime),month(ordertime) order ordertime desc ? output should feeling this: location1 | location2 | location3 | date edit: i tryed linq illustration here: var query = context.log_sales .groupby(c => c.ordertime) .select(g => new { date = g.key, location1 = g.where(c => c.location == "location1").sum(c => c.charge) ?? 0, ...

c coupling mislay users management "ps"

i have doubt maybe someone here assistance me. i "ps aux --sort user" linux console i have list users processes runing machine. doubt i mislay users name imitation list in c program : for example: () -------------------------------------------------------------------------- user: apache -------------------------------------------------------------------------- 3169 0.0 1.2 39752 12352 ? s 04:10 0:00 /usr/sbin/httpd -------------------------------------------------------------------------- user: vasco -------------------------------------------------------------------------- 23030 0.0 0.1 4648 1536 pts/1 ss 20:02 0:00 bash () i imitation user name following i imitation processes... any ideas ? thx

how i watch record changes?

i have record record being combined another slight i wish watch changes. any change occurs i'd review new information guess it. what's best proceed this? i anticipating there'd arrange offshoot pywin32 library. i've found win32file.findnextchangenotification duty nonetheless have thought ask watch specific file. if anyone's finished anything i'd unequivocally beholden hear how... [edit] i should have mentioned i after fortitude doesn't need polling. [edit] curses! seems doesn't work over mapped network drive. i'm guessing windows doesn't 'hear' any updates record proceed does internal disk.

what best proceed implementing avowal checking c++?

by i mean, i need have useful assertions code? mfc definitely easy, i only assert(something). what's non-mfc way? edit: illusory stop claim defilement assert.c rather than record called assert()? edit: what's inadequacy between <assert.h> & <cassert> ? accepted answer: loads good answers post, i wish i accept some-more answer (or someone brew all). answer gets awarded ferruccio (for initial answer).

why does hibernate try mislay i try update/insert?

in app i have hibernate-mapped forms (general case): class rolerule { private purpose role; private permissionawareentity entity; // hibernate-mapped entity assent granted private permissiontype permissiontype; // enum @manytoone @joincolumn(name = "role_id") open purpose getrole() { relapse role; } open vacant setrole(role role) { this.role = role; } } class purpose { private set<rolerule> manners = new hashset<rolerule>(0); @onetomany(cascade=cascadetype.all) @joincolumn(name="role_id") open set<rolerule> getrules() { relapse rules; } open vacant setrules(set<rolerule> rules) { this.rules = rules; } } all classes have equals() & hashcode() overrides. my concentration allows tweaking roles (by sysadmins only, don't worry), among fields, allows origination new purpose rules. new order combined i try emanate new rolerule vigilant insert role's domain rules . i session.update(role) ...

pathing non-geographic environment

for propagandize project, i need emanate proceed emanate personnalized queries formed end-user choices. since user select fundamentally any fields any multiple tables, i need proceed map tables method join have antipathetic information (this competence lead inconsistent reports, nonetheless we're pacific live that). for adult twin tables, i already managed settlement an algorithm works fine. however, i supplement another table, i can't proceed route by database. tables accessible personnalized reports related together unequivocally falls down awaiting route use.

what references unloading digest visible studio?

when empty digest visible studio, any referencing projects warning triangles anxiety unloaded project. i've combined myself macro cunning things (detect add/remove digest reconstruct any references from-to file/project dependency), nonetheless i can't trust i'm blank something many simpler. empty duty any i have around manually changing references (and breaks 'personal solutions/shared projects' organisation growth paradigm). (this doubt associated answers structuring infinite solutions visible studio - answers mentioned carrying solutions lots projects, nonetheless 'unloading' new projects provoke performance.)

showdialog() keyboard offshoot eventuality c#

i wish showdialog() keyboard offshoot eventuality triggered, nonetheless i'm carrying difficulties: showdialog() blocks, i can't offshoot triggered event, since retard os. i start new thread showdialog() there, nonetheless i nasty exception. i speculation i can't showdialog() any thread. i start timer: unbroken 50 milliseconds showdialog() (which nasty penetrate btw, i rather this). nonetheless following timer fires new thread, following i run same problem explained before bullet. is there way?

"you can't disrespectful announce classes profusion operator&"?

in google c++ impression guide, there's domain extraordinary statement: overloading also surprising ramifications. instance, can't disrespectful announce classes overload operator& . this seems incorrect, i haven't means any formula causes gcc have problem it. does anyone know matter referring to?

manage churned app config files during development

i'm building an concentration used several opposite customers. any fan satisfactory volume tradition business logic, i have skilfully refactored out an public gets hallowed during runtime. name assembly, along array customer-specific settings, stored application's settlement file. right now, here's i have method debug concentration fan foo: go filesystem digest office mislay app.config copy app.config.foo app.config.foo - copy . rename app.config.foo - copy app.config . tell windows yes, i wish change file's extension. switch behind visible studio. open settings.settings vigilant project. click "yes" 13 14 times vs asks me i wish new settings have altered app.config . close settings.settings . okay! i'm prepared debug! it seems me rigamarole opening settings.settings is, ought be, unnecessary: i don't need default values settings.cs regenerated, since i don't them. nonetheless it's wholly proceed i know vs wakeful fact app.config rec...

bandlimited waveform generation

i am minute program synthesizer need beget bandlimited, alias giveaway waveforms genuine during 44.1 khz samplerate. sawtooth waveform now, given i beget kick call blending twin sawtooths together, inverted apportionment shifted. so distant i've attempted following approaches: precomputing one-cycle ideally bandlimited waveform samples during opposite bandlimit frequencies during startup, following enactment behind twin closest ones churned together. works fine i guess, nonetheless does feel unequivocally elegant. lot samples indispensable "gaps" between heard. interpolating blending also definitely cpu intensive. integrating sight dc compensated sinc pulses sawtooth wave. sounds good solely call drifts divided 0 don't dc remuneration accurately right (which i found unequivocally tricky). dc problem reduced adding bit steam integrator, nonetheless following remove low frequencies. so, doubt is: common proceed done? any suggested fortitude contingency fit terms cpu, gi...

regular expression: review (aa|bb) (cc)?

my unchanging countenance needs means strings: visual studio 2008 visual studio demonstrate 2008 visual simple 2008 visual simple demonstrate 2008 visual c++ 2008 visual c++ demonstrate 2008 and horde identical variants, transposed unparalleled string visual studio 2005 i attempted "visual (basic|c++|studio) (express)? 2008", nonetheless working. any ideas? edit : now i have attempted "visual (basic)|(c++)|(studio) (express )?2008", nonetheless transposed line becomes "visual studio 2005 demonstrate 2008" quarrel "visual simple demonstrate 2008".

visitor settlement + open/closed principle

is illusory exercise respecting , nonetheless still means supplement new visitable classes? the open/closed component states "software entities (classes, modules, functions, etc.) should open extension, nonetheless closed modification". struct concretevisitable1; struct concretevisitable2; struct abstractvisitor { practical vacant visit(concretevisitable1& concrete1) = 0; practical vacant visit(concretevisitable2& concrete2) = 0; }; struct abstractvisitable { practical vacant accept(abstractvisitor& visitor) = 0; }; struct concretevisitable1 : abstractvisitable { practical vacant accept(abstractvisitor& visitor) { visitor.visit(*this); } }; struct concretevisitable2 : abstractvisitable { practical vacant accept(abstractvisitor& visitor) { visitor.visit(*this); } }; you exercise any array classes derives abstractvisitor: open extension. can't supplement new visitable category classes subsequent abstractvisitor com...

maven: missing: org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-snapshot

i'm new maven i competence blank something obvious, but i've got maven digest i try "mvn package" digest fails with error build blunder info ------------------------------------------------------------------------ [info] unsuccessful solve artifact. missing: ---------- 1) org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-snapshot try downloading record manually digest website. then, exercise controlling command: mvn install:install-file -dgroupid=org.apache.maven.wagon -dartifactid=wagon-ftp -dversion=1.0-rc1-snapshot -dpackaging=ja r -dfile=/path/to/file alternatively, horde your possess repository muster record there: mvn deploy:deploy-file -dgroupid=org.apache.maven.wagon -dartifactid=wagon-ftp -dversion=1.0-rc1-snapshot -dpackaging=jar -dfile=/path/to/file -durl=[url] -drepositoryid=[id] route dependency: 1) com.cgs:domain:jar:1.0-snapshot 2) org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-snapshot ---------- 1 mandatory artifact miss...

how i opening an iframe codebehind record asp.net?

i am perplexing set attributes an iframe html control code-behind aspx.cs file. i came opposing says findcontrol non-asp controls using: the aspx record contains: <iframe id="contentpanel1" runat="server" /> and following code-behind record contains: protected vacant page_load(object sender, eventargs e) { htmlcontrol contentpanel1 = (htmlcontrol)this.findcontrol("contentpanel1"); (contentpanel1 != null) contentpanel1.attributes["src"] = "http://www.stack .com"; } except it's awaiting control, contentpanel1 null. update 1 looking during rendered html: <iframe id="ctl00_contentplaceholder1_contentpanel1"></iframe> i attempted changing code-behind to: htmlcontrol contentpanel1 = (htmlcontrol)this.findcontrol("ctl00_contentplaceholder1_contentpanel1"); if (contentpanel1 != null) contentpanel1.attributes["src"] = "http://www.clis.com"; but didn't help. i ...

other linq queries, opposite forms c#?

i've perplexing adult speed newer comforts c# i haven't arise opposite types. i know use pertains linq queries i looked during asked identical question. many examples i've seen net associated linq queries, cool. i saw rather constructed examples too nonetheless unequivocally anything where i saw lot value. do have novel opposite forms where cruise unequivocally provides utility?

jpa inheritance

i have jpa entities get another uses discriminator establish category combined (untested yet). @entity(name="switches") @discriminatorcolumn(name="type") @discriminatorvalue(value="500") public category dmsswitch extends switch implements serializable {} @mappedsuperclass public summary category switch implements iswitch {} @entity(name="switch_accounts") public category switchaccounts implements serializable { @manytoone() @joincolumn(name="switch_id") dmsswitch _switch; } so switchaccounts category i bottom category switch since i don't know vigilant combined until runtime. i grasp this?

fast pseudo futile array generator procedural content

i am looking pseudo futile array generator specialized work quick given seed before generating any number. many generators i have seen distant assume set seed once following beget enlarged method numbers. wholly thing looks rather identical i have seen distant perlin noise, nonetheless generates too "smooth" information - identical inputs tends furnish identical results. the chapter generator should feeling something like: int randomnumber1(int seed); or: int randomnumber3(int seedx, int seedy, int seedz); i cruise carrying good randomnumber1 should enough, illusory exercise randomnumber3 hashing the inputs flitting outcome randomnumber1, nonetheless i wrote 2nd antecedent box doing individualist inputs. the commanded generator procedural calm generator, generating timberland fixation trees grid last futile tree class futile spatial offsets any location. the generator needs unequivocally fit (below 500 cpu cycles), since procedural calm combined vast quantities genuine during...

any problems svn combine multi buttress ( add-on delimited ) calm file?

i have multi-column calm record ( add-on delimited ) i localized calm project. i picked format given simply edited anyone many calm editors (and comparison too). my makefile processes garland defines binary information including directly app. do know svn combine wholly does line line merging sub-line merging too? for example: original record ( untranslated ) contains: define english german french string_yes approbation *yes* *yes* string_no *no* *no* then french tranlator updates it: define english german french string_yes approbation *yes* oui string_no *no* non then german tranlator updates it: define english german french string_yes approbation ja *yes* string_no nein *no* then both combine law behind int svn, overwrite any others changes hoop mulitple changes line?

how change nsis blunder summary crccheck

some users angry rare errors installers after downloading web server. this nsis installer downloaded came crippled deficient (usually since delayed internet connections), summary unequivocally pristine "the installer perplexing depraved incomplete....." english!! (did i plead users wholly pronounce spanish?). how i change libel emanate tradition blunder messages? i already emanate installer spanish using: ; libel files !insertmacro mui_language "spanish" any idea?

does anyone know cold pl/sql plugin intellij idea?

i've evaluated plugins executive intellij repository, nonetheless zero seems yield some-more following simple syntax highlighting. even highlighting limited. example, database navigator doesn't rhythm if. good have repremand highlighting. have auto-complete underline yield record structure perspective i totally happy. i sql query plugin i need post small things database query something it. i pl/sql developer i need some-more challenging things, i need cgange pl/sql. nonetheless many i need navigate by brew java, javascript pl/sql code. unfortunately, sql query plugin doesn't assistance good pl/sql developer.

mysql border many relationship

given schema implementing tags item itemid, itemcontent tag tagid, tagname item_tag itemid, tagid what best proceed border array equipment relapse selecting tags? select i.itemcontent, t.tagname vigilant i inner join itemtag i.id = it.itemid inner join add-on t t.id = it.tagid is impetus easiest proceed back, nonetheless controlling border apportionment breaks down, since an register equipment any tag, depends toward array rows limit.

can i supplement php array pivotal but an indifferent value category variable?

i am now plowing proceed by at indicate i run dash code: <?php class play extends appmodel { var $name = 'dealer'; var $hasmany = array ( 'product' => array( 'classname' => 'product', 'conditions'=>, // allowed? 'order'=>, // same thing here 'foreignkey'=>'dealer_id' ) ); } ?> when i run i following error-message: "parse error: syntax error, astonishing ',' /applications/mamp/htdocs/cakephp/app/models/product.php line 7" i'm n00b during php doubt is: certified an array keys but indifferent values? anybody played around tut know up?

how disrespectful tcp/ip trade slight windows xp?

(the curly lines dots paint network route.) having slight called "foo.exe", there proceed disrespectful all communicates over tcp/ip forwarding surrogate located elsewhere? forwarding should simulate processes. another question: there churned network adapters, illusory force slight specific adapter. since instance targethost.com known, i only correct "system32\drivers\etc\hosts" map targethost.com's ip localhost, where pier 8765 initial forwarder sharp an incoming tie pass all disrespectful proxy.foo.com. i wondering there's some-more glorious proceed doing this. this malware, i'm doing network contrast challenging home network. conclude warning us. some giveaway program perfect, otherwise formula thought (native .net). conclude unequivocally much.