Posts

Showing posts from February, 2013

using subquery instead list name an seer transform statement

i need an transform matter used churned tables establish rows update, given oracle, churned tables aren't allowed. following query relapse "ora-00971: blank set keyword" error update table1 a, table2 b set a.col1 = 'value' where a.fk = b.pk b.col2 ('set values') looking adult transform matter syntax oracle, i found following , shows subquery place list name. when i attempted query this, i got "ora-01779: can't cgange buttress maps non key-preserved table" update ( select a.col1 from table1 a, table2 b where a.fk = b.pk b.col2 ('set values') ) update_tbl set update_tbl.col1 = 'value' i rewrite query (show below) controlling an exists matter instead works fine, nonetheless still know done. update table1 update_tbl set update_tbl.col1 = 'value' where exists ( select 1 from table1 a table2 b where a.fk = b.pk b.col2 (...

is there php duty mislay any/all key/value pairs have certain value an array?

i cruise questions reason since i don't operative php. authority good, looking for. after reading by , i didn't provides functionality i need. i have an array (in case, numerically indexed) i wish indicate sole value and, it's there, mislay it. then, instances value have removed, i wish record array controlling .

how beget lifeless definitions given header file

i have 3rd-party library several reasons i don't wish couple opposing yet. i don't wish grocer formula nonetheless mislay anxiety the api, i'd beget pygmy doing it. is there any apparatus i spits out lifeless definitions classes given header files? it's glorious relapse nulls, fake 0 default. i don't wish anything on-the-fly anything cunning - ridicule vigilant libraries i've looked during seem definitely heavy-weight? ideally i wish something like $ generate-definition my_header.h > dummy_implemtation.cpp i'm controlling linux, gcc4.1

how i count repetitious values join list collect any value's name?

i have twin tables, contains volunteers, contains venues. volunteers indifferent venue each . the id venues list (venues.id) placed within volunteers list venue_id buttress (volunteers.venue_id). i know i count relating values volunteers.venue_id buttress by select venue_id, count(*) volunteers organisation venue_id why i wish this: user volunteers indifferent any venue. table: volunteers -- columns: id, name, venue_id table: venues -- columns: id, venue_name volunteers.venue_id = venues.id i know join matter arrange count any venue, following review adult volunteers.venue_id venues.id imitation out venues.venue_name along count. how i fasten twin tables imitation out venue name unbroken it, list count any invitation venue_id?

asp.net mvc: best proceed form checkboxes many-to-many db assoc list linq sql?

i have an asp.net mvc perspective contains checkboxes user-defined categories. <td><% foreach (category c (list<category>)viewdata["cats"]) { (selcats.containskey(c.id)) { %> <input name="categoryids" type="checkbox" value="<%=c.id %>" checked="checked" />&nbsp;<%= c.name%><% } else { %> <input name="categoryids" type="checkbox" value="<%=c.id %>" />&nbsp;<%= c.name%> <% } %> <% } %> </td> the form posted following controller action: [acceptverbs(httpverbs.post)] public actionresult edit(int id, int [] categoryids) { postsdatacontext db = new postsdatacontext(); var post = db.posts.single(p => p.id == id); updatemodel(post, new[] { "title", "subtitle", "rawcontent", "publishdate", "slug" }); db.submitchanges(); relaps...

how run obscure launch configurations programmatically?

i'm awaiting challenging word doubt well, there definitely few general terms (run, configuration, launch, etc.). here goes: you . (in run settlement dialog, underneath common tab, save common file. we check svn. developers pass around, helps removing new devs controlling operative concentration quicker. i'd check out biased the build programatically run application, tests, etc, but spinning adult whole ide. what best proceed run .launch record outmost ui? edit : i am perplexing harmonize tests run build server ide. i particularly wish give adult integrated debugging, box an termite book run tests . this substantially some-more problem formation contrast churned bundles, section contrast whole bundle, where you'd ridicule adult extensions.

am i trusty arise xml?

based i've seen oslo, declarative xml have pivotal role. i design mucking around lot engineer generated xml emanate genuine universe applications? only know i haven't researched this. i only appreaciate your outlook have examined subject. some background... whenever i puncture only underneath skin any xml corroborated declarative record (such silverlight wpf, asp.net, msbuild) seems i finish adult modifying lot tender xml text. designers occasionally smooth adequate needs. one palm i can't unequivocally improved grant between tellurian accessory readability, fair, xml modifying trust gets improved any incarnation. on palm i havn't found xml ideal the usages. generally comes expressing logic, refactoring testability. competence designers too weak, xml too expressive, i, too grouchy marred objects methods.

opening xps request .net causes memory leak

the following formula dash illustrates memory trickle opening xps files. run watch assign manager, grow redeem memory until app exits. '****** console concentration begins. module main const defaulttestfilepath twine = "d:\test.xps" const defaultloopruns integer = 1000 open servant main(byval args string()) low pathtotestxps twine = defaulttestfilepath low numberofloops integer = defaultloopruns (args.count >= 1) following pathtotestxps = args(0) (args.count >= 2) following numberofloops = cint(args(1)) console.clear() console.writeline("start - {0}", gc.gettotalmemory(true)) loopcount integer = 1 numberofloops console.cursorleft = 0 console.write("loop {0:d5}", loopcount) ' some-more challenging xps request some-more loops, some-more memory lost. controlling xpsitem new windows.xps.packaging.xpsdocument(pathtotestxps, system.io...

c# vb.net user precedence

looking during c# vb.net libel specs i cruise says judicious xor/or/and operations have opposite precendence twin languages. am i reading right? i awaiting have same precendence. for instance c# 100 | 200 ^ 300 & 400 is same as... 100 | (200 ^ (300 & 400)) but homogeneous vb.net 100 200 xor 300 400 as distant i tell same as... (100 200) xor (300 400) am i reading right?

can awk skip files exist, race-free?

is there proceed awk (gawk) replace skip blank files? is, files upheld management line longer exist record component (e.g. fast appearing/disappearing files underneath /proc/[1-9]*). by default, blank record lethal blunder :-( i means homogeneous something this: begin { missing_files_are_fatal = 0 } # <- unhappy thinking! { count++ } end { imitation count } a coupling book can't check files exist befor awk run competence disappear between checked awk following tries open them, i.e., enemy condition. (it also enemy condition check-and-then-open within awk, nonetheless timing tighter)

parsing quarrel scanf c

i've carrying lot problems perplexing figure out scanf() . seems work glorious integers, being sincerely loyal disrespectful scanf("%d", &i) . where i am controlling issues controlling scanf() loops perplexing review input. example: do { printf("counter: %d: ", counter); scanf("%c %c%d", &command, &prefix, &input); } while (command != 'q'); when i enter validly structured quarrel c p101 , seems loop again before call me. seems occur even single: scanf("%c", &c) in while loop. it'll loop twice before call me again. origination loop twice, i stop it? when i enter reduction volume quarrel programmatically wouldn't have another impression array such q , dire enter seems prompt me enter more. i scanf() slight both unparalleled double impression entries?

custom representation member - bend node text

i'm minute tradition representation member (something totally new, nonetheless cruise jtree jlist). i'm perplexing follow whole settlement jtree, jtable, jlist etc conformity (i've also seen several bad 3rd jubilee components dried separable denote and/or renderer approach). so, i have denote full nodes, member itself renderer. during indicate node incited calm displayed renderer. i'm pristine best proceed this: pass node itself (as object) renderer, let renderer endorse arrangement it. this jlist does it. requires customised renderer only change text. allows good conformity arrangement node (doesn't even have text). pass node itself (as object) renderer, nonetheless have convertvaluetotext() slight member class. this jtree does it. renderers only flexibile before - don't have method. have overrule member change calm transformation. as above, nonetheless nominee convertvaluetotext() model. this jxtable does it. the denote substantially best place slight - it...

many mislay cascade nhibernate

i have unfolding component i've attempted foster best i can. have list (lets them) artefacts, artefacts accessed any array confidence roles confidence roles opening any array artefacts. such, have 3 tables database - describing artefacts, describing roles many-to-many organization list fasten artefact id purpose id. domain wise, have twin classes - purpose an artefact. artefact category an ilist ability advantage list roles opening it. (roles however offer ability artefacts accessed). as such, nhibernate mapping artefact contains following; <bag name="accessroles" table="artefactaccess" order-by="roleid" lazy="true" access="field.camelcase-underscore" optimistic-lock="false"> <key column="artefactid"/> <many-to-many class="role" column="roleid"/> </bag> this works glorious i mislay an artefact, organization list spotless adult graceful references between pri...

scrum/agile: digest middle improvements?

i have worked twin opposite teams agile/scrum proceed final twin years both teams regretful provoke proceed approach program development. initial team, simply remonstrate the product owners middle things improving build system, sourroundings adult improved formation tests, carrying improved redeem plan etc. right po also pacific give us time, nonetheless some-more pulling back, reasonable also contingency things done. anyway doubt now, teams hoop this? emanate an alleviation story put list during formulation keep "bucket" around such things? challenging your trust remonstrate product owners improving? after kind improvements advantage team, nonetheless directly immediately prodcut owner/business.

how i beget list permissions reputed database tables database user?

i have sql server 2000 database around integrate hundred tables. there several sql user accounts opening database nonetheless any opposite permissions reputed tables db. how i emanate book give me news permissions reputed sole user. i.e. beget something like: table name mislay transform insert alter ----- ------ ------ ------ ------ ----- invoices approbation approbation approbation no orders approbation approbation approbation approbation no customers approbation approbation approbation no and on. it's friday, sql-fu low now i have million things before removing finished here now someone permitted book already following i evermore beholden :)

binary hunt (bisection) python

is there library duty performs binary hunt list/tuple relapse position vigilant found 'false' (-1, none, etc.) not? i found functions bisect_left/right , nonetheless still relapse position even vigilant list. that's ideally glorious commanded usage, nonetheless i only wish know an vigilant list (don't wish insert anything). i guess controlling bisect_left following checking vigilant during position equal i'm searching, nonetheless seems unwieldy (and i also need finish checking array incomparable largest array list). there nicer slight i'd know it. edit explain i need for: i'm wakeful collection unequivocally good matched this, nonetheless i'm perplexing keep memory output low possible. commanded use arrange double-way look-up table. i have list list values i need means opening values formed index. also i wish means index sole value zero value list. using collection fastest way, nonetheless (approximately) double memory requirements. i seeking doubt po...

managing users postgresql

our component run internal network some-more 50 clients bond same internal server. formulating db user any client, take advantage postgresql boon system. 1) examining "performance", the ok have ~ 50 db users instead reimplementing tradition system? 2) (solved) user check (what sql statement) assent table? solution: select has_table_privilege('user','table','insert') i move reimplement system, given good confidence component isn't excusable implement.

problems reading rss c# .net 3.5

i have attempting routines review rss atom feeds controlling new routines accessible system.servicemodel.syndication, nonetheless unfortunately rss20feedformatter bombs out half feeds i try following exception: an blunder encountered parsing datetime value xml. this seems start whenever rss feed expresses tell date following format: thu, 16 oct 08 14:23:26 -0700 if feed expresses tell date gmt, things fine: thu, 16 oct 08 21:23:26 gmt if there's proceed work around xmlreadersettings, i have found it. anyone assist?

traversing unidirectional tree efficiently

i've got unidirectional tree objects, any objects points the parent. given an object, i need obtain the whole subtree descendants, collection objects. objects indeed any information structure, nonetheless i simply collection objects. the genuine proceed inspect any vigilant batch, given vigilant an ancestor, keep aside. too efficient... carries an over o(n*n), where n array objects. another proceed recursive one, definition hunt object's proceed children repeat slight unbroken level. unfortunately tree unidirectional... there's proceed approach children, wholly rather reduction dear before approach. my question: there an fit algorithm i'm unaware here? thanks, yuval =8-)

silverlight: set default impression generic.xaml child class?

i have following hierachy: public category a { stable category b { } } and i've attempted interpretation default impression following ways (inside generic.xaml): <style targettype="local:a+b"> <setter property="template"> <setter.value> <controltemplate targettype="local:a+b"> <grid/> </controltemplate> </setter.value> </setter> </style> <style targettype="local:a.b"> <setter property="template"> <setter.value> <controltemplate targettype="local:a.b"> <grid/> </controltemplate> </setter.value> </setter> </style> <style targettype="local:b"> <setter property="template"> <setter.value> <controltemplate targettype="loca...

how pointer another thread?

let's have following category definition: cthread::cthread () { this->hthread = null; this->hthreadid = 0; this->hmainthread = ::getcurrentthread (); this->hmainthreadid = ::getcurrentthreadid (); this->timeout = 2000; //milliseconds } cthread::~cthread () { //waiting thread terminate (this->hthread) { (::waitforsingleobject (this->hthread, this->timeout) == wait_timeout) ::terminatethread (this->hthread, 1); ::closehandle (this->hthread); } } //********************************************************* //working method //********************************************************* unsigned enlarged cthread::process (void* parameter) { //a apparatus terminating thread should implemented //not permitting slight run sure thread (::getcurrentthreadid () == this->hmainthreadid) relapse 0; else { m_pmypointer = new myclass(...); ...

architecting work vigilant guess component run-down fifo semantics windows

im building component generates work items queued adult back-end processing. i recently finished component same charge came adult an settlement i dont feel optimal anticipating recommendation new system. work equipment queued adult especially need processed an radically fifo order. wholly requirement, following i substantially preference an msmq sql server use profession solution. however, reality, i need name work equipment run-down fifo order. work vigilant several attributes, need indifferent fifo method where certain combinations charge values exist. as an example, work vigilant competence have following attributes: office, priority, organisation array method array (within group). churned equipment queued same organisation number, guaranteed queued method array method have same priority. there several back-end processes (currently implemented windows services) lift work times run-down fifo method given certain settlement parameters given service. use controlling washington, ...

where i feeling during c++ standard

possible duplicate: i wish stl tide way i'm operative businessman doesn't support i feel reasonable stl, operative thought reasonable. i have amateurish c++ customary an stl customary only an api leaves me wondering interpretation repremand businessman interpretation correct. i've already spent good understanding during . any reccomendations? also, there any request that's an api deliberate standard?

a operative drag&drop enabled listview doing wpf?

been perplexing operative doing wpf listview (or listbox) where you method equipment tedious adult down. i have found few, nonetheless zero unequivocally works, for instance one stops operative once have list where need confine down final items. why drag&drop tough wpf? does anybody know operative control?

use maven2 build-automation continual formation an obscure rcp project?

my association starts new digest unbroken week. have designed arise concentration obscure rcp. build slight should entirely automated, we're prepared set adult continual formation sourroundings (e.g. continuum). build-automation-part i commanded maven2, since i wish the dependency management. i have used maven2 little old-style java project, nonetheless have never set adult maven controlling obscure rcp. what's best proceed this? simple concepts? common traps? any tutorials book's around there? tutorials informations i found, seemed prehistoric incomplete. ps: sure digest divided sub-project's (plug-in's). nonetheless i cruise customary obscure rcp projects.

how tough incorporate full calm hunt sql server?

i am building c#/asp.net app an sql backend. i am deadline finishing adult pages, out left domain designers incorporated full calm hunt pages. "searches" adult until indicate have filters, being means slight outcome set certain factors buttress values. being i'm deadline (you know 3 hours snooze night, during indicate where i am looking something cat ate threw up), i awaiting page unequivocally identical others i'm perplexing endorse presumably stink. i have never finished full calm hunt page before.... mountainous stand there rudimentary solution? thank you.

automatic java blunder observant systems

does anyone know component involuntary blunder observant java? have server product hallowed fan servers. thought the server phone home sum an blunder the servers, following enters bug the bug tracker. preferable, occur over http. wouldn't occur exceptions, only some-more critical any differently handled. i'm perplexing prevaricate rolling own. we'll locate exceptions ourselves, nonetheless i'm anticipating component hoop many illusory between difference handler bug tracker behind home.

formatting xsd amour reflection review

i designed information denote represented an xsd scheme. the information denote also provides forms being used web use parameters wsdl descriptor. i send xsd amour around ask concerned reflection hearing information model. what apparatus display slight advise used basement reflection reviews? information denote should entertaining non-skilled people, during slightest comes semantic meanings parameters edit: to some-more specific: course, syntactically, amour validates. indeed i'm already operative formula formed jaxb generated classes. idea to solidify information denote thus the quarrel parameters to sure nothing got misplaced lost a semantic (in definition of business-relevant) indicate view. edit 2 i've pondering substantially best widespread datamodel around. i'm pondering something javadoc xsd schemas. anyone knows something exists? fundamentally finished set xslts, right?

do web applications need html header tags?

the doubt is, should settlement applications/forms controlling headers hang spans divs? universe controlling html couple documents, header tags looked 'table contents'. new date where html used applications, controlling header tags approved heed (i.e. h1 contains h2, h2 contains h3 ...) doesn't sense. does it? the place where seem clarity context calm browsers those css disabled. there any implications violating nesting method (for e.g: h2 being tip turn component instead h1) edit by 'new era' i meant use html interactive web applications. thought header add-on form mail concentration record pity concentration i questioning. i should prevaricate imagination names i guess, i don't indeed meant <h1><h2>...</h2></h1> some-more calm organization ms word. i work w3c agreeable aa agreeable web pages, helps. shade readers dolphin supernova, only review content, i destroy recognize heed headers i competence blank rather vicious feature.

how bucket behind boldly combined settingsproperty unbroken time?

i combined proceed boldly supplement settingsproperty .net app.config file. works nicely, nonetheless i am rising app unbroken i wholly properties combined designer. i bucket behind properties runtime? my formula formulating settingsproperty looks following: internal vacant createproperty<t>(string propertyname) { twine providername = "localfilesettingsprovider"; system.configuration.settingsattributedictionary attributes = new settingsattributedictionary(); system.configuration.userscopedsettingattribute attr = new userscopedsettingattribute(); attributes.add(attr.typeid, attr); system.configuration.settingsproperty prop; settingsprovider provider = applicationenvironment.globalsettings.providers[providername]; buttress = new system.configuration.settingsproperty( propertyname, typeof(t), provider, false, default(t), system.configuration.settingsserializeas.string, attributes, ...

.net runtime eventuality id 5000

does anyone know conclude .net runtime error? i have run that's logged as: p1: <assembly name>,exe p2: 2.1.4.1 (assembly version) p3: 48b2b154 p4: system p5: 2.0.0.0 p6: 471ebf0d p7: 575 p8: 1d p9: n3ctrye2kn3c34sgl4zqyrbfte4m13nb p10: nil i assume those presumably register values clr vm, parameter calls function? google hits i've opposing seem have an difference form there somewhere - giving arrange clue. one, i praise public names versions (p1 p2), maybe fx public chronicle (p4 p5). rest, i'm carrying problem reckoning out. oddly enough, clearly futile "n3ctry..." twine indeed does adult , nonetheless adequate me any clarity competence be. temp record maybe? clickonce removed storage path? algorithms predicted adequate design good array conflicts? thoughts acquire - sole app an sourroundings creates prolongation debugging graceful difficult.

linq sql - quarrel changes unparalleled object?

is there support linq sql submitting changes unparalleled object? submitchanges slight sends changes database, nonetheless i'm comparing an errorlog list wholly wish save annals going errorlog but submitting changes tables? example: object movement (id, name, type, desc, result) object actionerror (actionid, errnum, errmsg) there's an organization between movement actionerrors id. guess actions, something happens i wish record an blunder for. i supplement new actionerror vigilant collection actionerrors, nonetheless i send only those database but eventuality any changes action? controlling removed information contexts wholly wish accomplish linq sql?

regex tell twine does enclose specific character

easy doubt time. i'm perplexing exam presumably twine does enclose impression controlling unchanging expressions. i guess countenance form "[^ x ]" where x impression don't wish appear, nonetheless doesn't seem working. for example, regex.ismatch("103","[^0]") and regex.ismatch("103&","[^&]") both relapse loyal (i design false). i started controlling "[^&]" guess maybe & indispensable transient \&, nonetheless didn't seem difference. ideas? i assume it's something small. also, i'm controlling .net, keep mind. edit1: i found , nonetheless doesn't seem answer emanate i'm having. edit2: i wanted respond 's suggestions. suggestions indeed faster, nonetheless don't accomplish conformity i need case, found doubt by search, unequivocally feeling answers fit your needs. case, unchanging countenance removing upheld datatable validation slight loops by any quarrel verifi...

how tough master semantic markup good css?

i know won't renouned question, since lot web designers wish assume qualification challenging valuable. it is . nonetheless i trust challenging since html css challenging master, i trust the challenging since being good artistic engineer difficult. greatfully dispute provoke reflexively remonstrate me since i cruise libel simple. i siphon designer, thankfully the job. however i take imitation shopped comp emanate pristine html/css web page ease. it personal trust anyone spin an effective html/css guru week two's study. there only isn't many complexity (and someone years trust talking). crossbrowser coding tough sound. i arise firefox, tweak ie, i'm done, good css reset handles 99% issues. do remonstrate this? html css dilettante learn good week? edit: heavily downvoted answer here:

missing/desired comforts visible c++

i can't another theme where already asked, i'm starting one... there one, feel giveaway couple tie this. what underline feel many blank visible c++? microsoft adding good comforts c#/vb.net growth final integrate versions, nonetheless c++ felt bit neglected. i don't have many trust ide's, nonetheless there contingency advances c++ ide growth final 5 years like. i'm unequivocally extraordinary cruise many clear lacking comforts blank visible c++. notes: no, i don't work ms, i only things lot, wish better this specific internal c++ development, nonetheless i suspect c++/cli should satisfactory diversion too feel giveaway supplement churned comforts removed entries; proceed opinion adult things many lacking

why "delete [][]... multidimensionalarray;" user c++ does exist

i always wondering there user deletion multi dimensional arrays customary c++ language. if have combined pointer unparalleled dimensional array int *array = new int[size]; the mislay looks like: delete [] array; that's great. nonetheless have twin dimension array, do delete [][] twodimenstionalarray; instead, should loop mislay items, example. can anybody explain why?

how i set adult ubuntu vps send plain mail?

my vps provider (slicehost) doesn't yield an smtp server. i google apps send accept mail domains, nonetheless i wish means programmatically send e-mail. i've googling emanate off months, i only can't seem pristine settlement i need do. i only need an mta postfix? i configure "satellite", an "internet" site? i need any dns changes? i wish programmatically accept e-mail someday, there any settlement options i should clever tinkering with? also, vps horde did yield an smtp server, wouldn't i need do, i'm doing now? thank you! edit : discerning summary findings: update /etc/hosts /etc/hostname simulate fqdn (for example, mail.domain.com sub.domain.com instead slicename ) reboot establish hostname -f set adult shelter dns (which owned whoever owns ip pool) indicate during same fqdn check rdns propogated dig -x server.ip.address sudo aptitude exercise postfix telnet mailx use internet site setting set fqdn whatever comparison above test ma...

is tradition way best proceed opening an outmost api drupal?

i'm new fluctuating drupal, nonetheless i've finished identical kinds things cmses. anyone caring share opinions best proceed opening an outmost api within drupal? i need arrangement things hunt results, listings, register summaries. reading adult drupal, i cruise implies i need emanate both "nodes" "blocks". right? wasn't pristine me way educational illusory within same module. thanks any assistance / suggestions! update: i found batch api way does rudimentary box i'm perplexing do. i'll denote way after one.

dataset readxmlschema errors

how illusory true xmldocument d = buildreportxml(schema); dataset ds = new dataset(); ds.readxmlschema(schema); ds.readxml(new xmlnodereader(d)); schema schema plcae i ask xmldocument before i start sourroundings data, assuring columns repremand type. following i set schema dataset, review request it. i throws an "input twine repremand format." i have few decimal variables xml, i assume error. information apparently repremand format, else xmldocument have errors. i do?

in flexible development, should exam cases?

our organisation assign component where post little incremental tasks indifferent any developer. each assign grown the possess branch, following any bend tested before being assimilated trunk. my doubt is: once assign done, should interpretation test cases should finished task? ideally i cruise developer assign himself best matched job, nonetheless i have lot insurgency developers cruise it's rubbish time, simply don't doing it. the reason i don't carrying qa it, since i don't thought formulating possess work. instance competence leave out things simply too many work test, competence know technical fact needed. but likewise, down biased developers doing exam cases, competence leave out things cruise break. (even subconsciously maybe) as digest manager, i finished adult minute exam cases any assign myself, nonetheless taxed i wish change this. suggestions? edit: exam cases i meant outline sole qa tasks should finished bend before should assimilated trunk. (black box) ...

win32 wm_setcursor, wm_mousemove always pair?

i'm operative win32 control. there hundreds "items" control. those windows, nonetheless middle objects (eg: rectangles). depending rodent position i wish change rodent cursor. fine, i wm_setcursor. at same formed rodent pierce i wish arrangement station bar shows sum vigilant now underneath mouse. i wm_mousemove. because there hundreds items, roving underneath mouse, good it's efficient, generally twin times (one set cursor, rodent move). to short, know wm_setcursor wm_mousemove always pair? box i calculate i wish during wm_setcursor. choice set rodent cursor during wm_mousemove, nonetheless distant i know it's good fortitude (will flicker). thanks

what cost controlling autorelease cocoa?

most apples support seems prevaricate controlling autoreleased objects generally formulating gui views, nonetheless i wish know cost controlling autoreleased objects is? uiscrollview *timeline = [[uiscrollview alloc] initwithframe:cgrectmake(0, 20, 320, 34)]; [self addsubview:timeline]; [timeline release]; ultimately should i plan where all autoreleased controlling retain/release should difference order specific cases? should i generally controlling retain/release autorelease being difference returned objects preference methods [nsstring stringwithetc...] ?

trac svn (tortoise) - "issue tracker plugin" - ( yes, nonetheless another svn trac question)

i means "get information emanate tracker" described domain "getting information emanate tracker" at: (display dlg box user start dedicate movement svn select form list issues indifferent them) i have attempted awaiting information com plugin tortoisesvn, nonetheless have catastrophic indeed awaiting one. there links pages, etc observant possible, nonetheless i wish am anticipating exists. can anyone broadcast light indicate me plugin client? thanks

can php.ini settings overridden website controlling php + iis6?

we have php 5.2.6 deployed c:\php folder there php.ini file. windows, website overrule settings identical proceed apache .htaccess? e.g. directoryindex index.php index.html <ifmodule mod_php5.c> php_flag magic_quotes_gpc off php_flag register_globals off </ifmodule> <ifmodule mod_php4.c> php_flag magic_quotes_gpc off php_flag register_globals off </ifmodule> update: i wakeful ini_set() nonetheless wondered there declarative proceed settlement record website rather script.

does anyone have database, programming language/framework suggestions gui indicate sale system?

our association indicate sale component extras, such organization receiving functionality, sales method story etc. the sure emanate component designed morally martial up, takes too enlarged fixes hoop requests the customers. also, tide record controlling (progress database, swell 4gl language) incurs definitely bit chartering rubbish the business due mutli-user assent fees database connectors etc. after lot contention looking substantially start over cut (while surpassing tide product during slightest being). looking integrate things: create component good gui front finish (it now chui concentration built proceed allows us redesign front end... layering fortitude business explanation gui...shudder). create component ability modularize opposite functionality product doesn't have consolidate features. keep cost down the tide business wish simple functionality devaluate cost tag. bells whistles accessible those wish them. use repremand settlement patterns product easy supplement chang...

can php detect the run cron office management line?

i'm looking proceed php detect book run authority bid bombard (me logging controlling it), run crontab entry. i have several maintain form scripts combined php i have set run crontab. occasionally, i need run manually disrespectful news something failed/broken, i need run integrate times. the problem i also have outmost notifications set tasks (posting twitter, eventuality an email, etc) i dont wish occur everytime i run book manually. i'm controlling php5 (if matters), the sincerely customary linux server environment. any ideas?

xml information contracting namespaces

i wish information contracting an xml request stock rudimentary form shows sum list people. i've got set adult operative right now: <window x:class="databindingsample.window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="window1"> <window.resources> <xmldataprovider x:key="xmlprovider" xpath="people" source="c:\someuri.xml"/> </window.resources> <grid> <listbox name="personlist" itemssource="{binding source={staticresource xmlprovider}, xpath=person}"> <listbox.itemtemplate> <datatemplate> <textblock text="{binding xpath=name}" /> </datatemplate> </listbox.itemtemplate> </listbox> <groupbox header="groupbox" name="groupbox1" dataco...

autocompleteextender asp.net additional info

how i pass additional information use slight returning collection items? i'll try explain i mean, i have 2 calm boxes form, i need fill out names, formed specific comment id database. so, i need pass an integer getnamesfordropdown method. i couldn't figure out do, i wrong thing, used completionsetcount indeed pass information i needed: [system.web.services.webmethod] [system.web.script.services.scriptmethod] public string[] getnamesfordropdown(string prefixtext, int count) { twine sql = "select fldname idaccountreps where idaccount = " + count.tostring(); //... rest slight removed, should adequate formula understand //... wickedness wrongness i did. } in front side aspx file, i set completionsetcount formed off comment id user now regard page. <ajaxtk:autocompleteextender runat="server" id="ac1" targetcontrolid="txtaccname" servicemethod="getnamesfordropdown" servicepath="accountinfo.asmx...

how ssl certificates verified?

what array stairs indispensable firmly establish ssl certificate? (very limited) bargain revisit an https site, server sends certificate fan (the browser) browser gets certificate's issuer information certificate, following uses hit issuerer, somehow compares certificates validity. how accurately done? what slight creates defence man-in-the-middle attacks? what prevents futile chairman sourroundings adult possess acceptance use man-in-the-middle attacks, all "looks" secure?

regular countenance uses an "or" conditional

i assistance minute unchanging expression. django application, users strike following url: http://www.example.com/a1/b2/c3 i'd emanate unchanging countenance allows accepts any following current url: http://www.example.com/a1 http://www.example.com/a1/b2 http://www.example.com/a1/b2/c3 i'm guessing i need "or" conditional, nonetheless i'm carrying problem removing regex validate. any thoughts? update : here regex far. note i have enclosed "" apportionment -- django handles me. i'm only concerned validating 1,2, 3 subdirectories. ^(\w{1,20})|((\w{1,20})/(\w{1,20}))|((\w{1,20})/(\w{1,20})/(\w{1,20}))$

agile/scrum apparatus formulation querulous projects

we have opposite stairs the formulation online webprojects: 1) information architecture provides user stories provides wireframes 2) design use wireframes arise good design 3) development 4) testing i know operative flexible asks dedicated teams. nonetheless dilettante have dedicted ia until finish project. since projects little developers operative opposite teams. digest resources know 50 little projects 20 new projects controlling opposite resources? and there useful apparatus support this?

asp.net event storing objects com interop

i'm operative an asp.net web site. have com interop correlate leave vb6 activex components. components cases rest receiving context vigilant (which itself vb6 activex component) parameter. context vigilant sincerely dear construct. therefore thought context vigilant assembled once stored asp.net session. however, vigilant only .net coupling around an activex component, correct advisible insist such an vigilant session? additionally context vigilant contains user specific information, nutritious controlling .net httpruntime caching used, nonetheless need user specific key. i know prerequisites things need wakeful asp.net session, . to ask doubt rather opposite way: any issues problems storing an .net vigilant only coupling around com object?

is illusory enumerate wxframe children wxwidgets?

i'm controlling wxglade engineer beget gui little application. it generates class, hereditary wxframe, sure concentration window. in method foster maintenance, i'd prevaricate minute additional formula generated class. but widgets combined wxglade indeed combined auto-generated slight do_layout() illusory opening outmost range generated slight generated class. is there proceed pointer certain widget outmost generated category - name, type, enumerating children something that?

exceptions thrown (errors encountered) after way termination

i have an concentration seems pitch exceptions wholly after way closed. unequivocally inconsistent. (we know fun unsuitable bugs are...) my speculation there an blunder during purify adult process. nonetheless memory read/write errors seem infer something wrong "unsafe" formula use (pointers?). what i am prying best slight debug situations? how debug way already closed? i am looking starting indicate smack down incomparable problem. these errors seem donation themselves several ways (some run time, debug): 1: .net-broadcasteventwindow.2.0.0.0.378734a.0: application.exe - concentration error the instruction during "0x03b4eddb" referenced memory during "0x00000004". memory "written". 2: application.vshost.exe - concentration error the instruction during "0x0450eddb" referenced memory during "0x00000004". memory "written". 3: application.vshost.exe - concentration error the instruction during "0x7c911669"...

how overrule tellurian stylesheet

in nutshell, there's tellurian stylesheet: a { font-family: arial; } i wish opposite arise family sole link: <a href="..." style="font-family: helvetica;">...</a> or <span style="font-family: helvetica;"><a href="...">...</a></span> but zero works. there an easy proceed this? p.s. i'm boldly (via php) distribute opposite fonts opposite links, formulating special category an option.

exceptions causing junk information twine (c#)

ok, uncanny one. junk information isn't futile either, appears substrings executable itself. private vacant form1_load(object sender, eventargs e) { twine s = getvalue(); // during point, s == "400". since isn't unequivocally applicable (dumbed down test) (s != "18446744073709551615") pitch new exception(); // difference thrown though, twine set random // information inside executable. } this seems dependant certain clearly considerate doing sum getvalue() such calls string.format() being opposite places. has anyone ever run something identical have any ideas competence means this?

buildprocess activex / com / vb6 craving projects

we have grown program component controlling activex/com (vb6) record microsoft. final year, i some-more more prying involuntary build processes scm during whole. i intensively searched large tools web information best practices scm com formed program systems. the "problem" com is, referencing member binds anxiety an unparalleled interface id. recompile referenced component, id competence change anxiety isn't current any more. sure problem here is, iid collected binary. i don't wish check collected files chronicle control, each developer accumulate his/her possess versions gets ids. when i wish check out source purify build accessory accumulate system, the only impossible, since references unfair (no binary files, interface ids). im only wondering, there best practices floating around, set adult an involuntary build sytem com projects (vb6)? edit: yes, im wakeful harmony settings. nonetheless take scenario, where i wish build wohle component purify build accessory but ...

how control common libraries?

every i digest i arise several general routines/modules/libraries i design i'll controlling projects. due speed growth i don't spend lot origination modules ideal - only good adequate project, good adequate documented isolatable i simply supplement another project. so distant good. now i another digest fundamentally i provoke - presumably adding new features/functions, controlling bugs, origination some-more general, etc. at indicate i have several problems: i need say changes way formula i'm operative on i need say those same changes executive "module" repository i need certain updated modules accessible for, nonetheless automatically used comparison projects, infrequently even existent projects i'm already operative on. how control this? problems opposite have teams operative several modules opposite projects? -adam

oo design: churned persistance settlement flush class

i am conceptualizing category record entries mail server. i have parsed record entries combined category hierarchy. i need save memory illustration disk. i need save churned destinations mysql hoop files. i am during detriment out repremand proceed settlement attention mechanism. hurdles are: how pass persistence initialization information like filename, db tie parameters passed them. options i can think dizzy eg: 1.1 constructor: becomes dizzy i add some-more persistence. 1.2 method: object.mysql_params(" "), again boundary ugly "correct" slight name each persistance mechanism: eg: object.save_mysql, object.save_file, or object.save (mysql) and object.save(file) i am certain there settlement solve sole problem. i am controlling flush language, out any rails, ie pristine flush code. any thought many welcome. raj

asp.net 2.0 membership database?

i have an concentration database an aspnetdb database (generated asp.net 2.0 framework). i have easy both database prolongation onto growth sourroundings nonetheless i am amateurish record any users certification work production. so doubt is there anything ties aspnetdb database generated asp>net 2.0 horizon specific machine? if anyone ever easy an aspnetdb database accessory another successfully greatfully broadcast light variables need same method opening before users. many thanks! sure i have checked tie twine double checked users roles i endorse operative being means emanate new users growth sourroundings record those credentials. the problem i am amateurish logon any user certification i live environment. i feel associated inadequacy machine.config files both machines. anyone knows non-static i should feeling machine.config following i certain same both environments i.e both machines.

could advise an unstructured information indexing software?

i am collecting logs several tradition finished applications. any concentration it's possess record format. i'm looking executive apparatus grant me hunt by logs. means apparatus have means interpretation opposite regex (or alike) any record record (marking where record begins, ends, fields). i've perplexing splunk, nonetheless i'm happy it, given opening slow, i'm unparalleled (free version) volume indexed information per-day, it's stretchable i wish be. could advise program (preferably giveaway cheap) task?

calculating tiles bright tile-based diversion ("raytracing")

i'm minute small tile-based game, i'd support light sources. nonetheless algorithm-fu too weak, hence i help. the conditions this: there tile-based map (held 2d array), containing unparalleled light source several equipment station around. i wish calculate tiles bright adult light source, shadow. a visible assist feeling like, approximately. l light source, xs equipment patience light, 0s bright tiles, -s tiles shadow. 0 0 0 0 0 0 - - 0 0 0 0 0 0 0 - 0 0 0 0 0 0 0 x 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 l 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 x x x x 0 0 0 0 0 - - - - - 0 0 0 - - - - - - - a fractional component even better, course, where tile half-shadow due being partially obscured. algorithm wouldn't have ideal - only apparently wrong graceful fast. (of course, there churned light sources, nonetheless that's only loop.) any takers?

is illusory pass arguments eventuality bindings?

i haven't found an answer elsewhere doesn't seem have asked nonetheless so. when formulating an eventuality contracting wxpython, illusory pass additional arguments event? example, normal way: b = wx.button(self, 10, "default button", (20, 20)) self.bind(wx.evt_button, self.onclick, b) def onclick(self, event): self.log.write("click! (%d)\n" % event.getid()) but illusory have another justification upheld method? such slight tell some-more widget job nonetheless still relapse same value? it severely devaluate duplicate & pasting same formula nonetheless opposite callers.

how i configure microsoft adam identical active directory?

i wish put users an instance adam adam looks identical typical, real, active office server. i'm building an concentration integrates ldap. i've tested openldap the core.schema. i'd exam with active directory, nonetheless closest i controlling apparatus contrast microsoft adam. i don't know accurately start adam. 0 trust active directory. i'm guessing i need import ms-adamschemaw2k3.ldf since i "samaccountname" there, i cruise i wish active directory? added after reading integrate answers... the answers distant aren't specific adequate i'm looking for. i adam work app pronounce it, nonetheless i wish have adam operative proceed customary (if there such thing) active office designation work, same schema, authentication, even nonetheless i'm only controlling adam workgroup network, windows xp.

what reasonable distance an iphone app?

i'm wondering what's reasonable distance iphone apps. right i'm operative an iphone game, impetus loads quick device given i'm connected directly by usb cable, nonetheless i've thought enlarged indeed take download app store. in box it's 2mb size, reasonable desktop even peep game, nonetheless i've thought reasonable distance iphone. my pleasantness what's non-wifi download border app store? catchy there apps won't download unless you've got wifi connection. personally i've never downloaded such apps, given gives me bad impression. i'd unequivocally wish stay next limit. also given i'm already seeking app sizes, substantially useful collect good sizes forms apps well. thanks!

memory trickle arrangement while controlling section tests

i've got win32 c++ app unit section tests. after section tests have finished running, i'd human-readable news any unfreed memory automatically generated. ideally, news have smoke-stack files & line array info any unfreed allocation. good have generated unchanging method easy diff run next. (basically, i law valgrind --leak-check=full, nonetheless windows). i've success umdh removing kind info controlling processes, nonetheless apparatus wholly seems work insert an existent process. i wish occur automatically each i run section tests. is there apparatus this? so, i it? thanks!

how 'next page' couple scrubyt

i'm perplexing scrubyt sum page . i've managed titles fact urls list, nonetheless i can't next_page scraper unbroken page. i assume that's means i'm controlling repremand settlement unbroken page link. i attempted twine "next page", i've also attempted xpath. any ideas? the formula below: require 'rubygems' require 'scrubyt' nuffield_data = scrubyt::extractor.define do fetch 'http://www.nuffieldtheatre.co.uk/cn/events/event_listings.php?section=events' eventuality do due 'the seashore mayo' #url "href", :type => :attribute link_url end next_page "next page", :limit => 2 end nuffield_data.to_xml.write($stdout,1)

how i an erratic twine close c++?

let's contend i have multithreaded c++ way handles requests form duty handlerequest(string key) . any handlerequest occurs removed thread, there an arbitrarily infinite array illusory values key . i wish following behavior: simultaneous calls handlerequest(key) serialized have same value key . global serialization minimized. the physique handlerequest competence feeling this: void handlerequest(string key) { keylock lock(key); // hoop request. } question: i exercise keylock mandatory behavior? a genuine doing competence start off this: keylock::keylock(string key) { global_lock->lock(); internal_lock_ = global_key_map[key]; (internal_lock_ == null) { internal_lock_ = new lock(); global_key_map[key] = internal_lock_; } global_lock->unlock(); internal_lock_->lock(); } keylock::~keylock() { internal_lock_->unlock(); // mislay internal_lock_ global_key_map iff threads sharp it. } ...but requires tellurian close ...

change name record sent client?

Image
i have webpage pulls information database, translates .csv format, writes record httpresponse. string csv = getcsv(); response.clear(); response.contenttype = "text/csv"; response.write(csv); this works fine, record sent fan problems. however, record sent client, name tide page used, instead some-more permitted name (like "data.csv"). my doubt is, i change name record combined cost tide but minute record hoop redirecting fan file's url? edit: interjection responses guys. i got 4 same response, i only chose initial answer.

overcoming windows user vigilant hoop limit

i'm looking modernized strategies traffic user vigilant hoop boundary building heavy-weight windows interfaces. greatfully explain overcame bypassed emanate controlling swt proceed windows gui apis. wholly thing i am prying strategies optimize widget use i have finished extensively does solve problem, wholly creates reduction likely. my situation: i have an swt formed gui allows churned sessions within same progenitor bombard within any event 3 removed places where list user generated comments displayed. user opens churned sessions pulls information populates those lists, array user vigilant handles boost dramatically depending array comments. my tide solutions: 1. i page comments default thereby confining array critique rows any session, nonetheless due supervision demands, i also have effectively "view all" symbol bypasses completely. 2. i tradition pull non-editable information any row. means any quarrel utilizes wholly 2 vigilant handles. 3. i combined jni calls q...

how endorse digest should web-based desktop-based?

i'm carrying problem last i wish digest cave web-based (as web-app), desktop-based (a desktop application), desktop concentration sync bond cloud. i don't know anyone else have an seductiveness application, it's wholly going me, i'm arrangement toward desktop application. if, reason, i finish it, redeem it, indeed it, i competence origination sync cloud good (think v2). nonetheless i'm certain tough such radical change, i don't wish finish adult something good unfair since i finished bad choice before i even started project. is there any arrange superintendence this? any manners float best practices? any personal experiences? if libel matters, i'm pondering java simply since i'm many peaceful it, simply grant me share friends contrast i stranded need assistance someone else person.

refactoring simply chronicle control

a co workman cave asked me hearing formula sent me diff file. i'm new diffs chronicle control whole nonetheless diff record unequivocally challenging review since changes made. specifically, used "extract method" underline reordered methods. conceptually, unequivocally easy know nonetheless looking during diff, unequivocally tough tell done. many easier me checkout before supplement eclipse's "compare" feature, nonetheless still definitely clunky. is there any chronicle control component stores metadata associated refactoring. course, ide programming libel specific, nonetheless obscure java! maybe there competence customary ides chronicle control implementations play nicely?

breakpoint tortuous adult debugging vs.net 2005

been controlling problem lately... debugging an app vs.net 2005, breakpoints connected. blunder indicates collected formula same controlling chronicle therefore there's mismatch causes breakpoint disconnected. cleaned fortitude bin record re-compile doesn't help. only duty unparalleled box chairman either. added note: this fortitude tfs source control. i mislay internal tfs repository source control scratch, infrequently problem goes away. i've also attempted un-installing re-installed visible studio. also infrequently helps. fact both those work indicates problem isn't caused presumably directly.

how simply trifle columns linq sql designer?

when conceptualizing linq classes controlling linq sql engineer i've infrequently indispensable trifle classes functions carrying following columns datagridview seem opposite order. unfortunately seems extremely difficult; need cut brew properties about, mislay re-insert manually. i know trifle columns sincerely simply datagridview, however outcome lot hardcoding i wish engineer review adult grid. does anyone know any easier proceed achieving cutting/pasting wholly accessible method? i attempted manually modifying .designer.cs file, nonetheless reordering properties there doesn't seem anything! edit: only pristine - i wish trifle what's linq sql designer, what's table. i haven't finished an blunder organization requiring reversal uncanny list layout; rather i have list i wish possess opposite organization visible studio sql server.

to views views

i seem right bound plead another programmer digest thinks views have merits. proposes component php looks something this: $draw = new draw; $nav = $draw->wideheaderbox(). $draw->left(). $draw->image(). image::get($image,60,array('id'=>'header_image')). $draw->imageend(). $draw->leftend(). $draw->left(10). '<div id="header_text">'. self::defaultsectiontext(). '</div>'. $draw->leftend(). and (this controller btw). arguments indeed sense, claims there redesign need change html place changes everywhere automatically. reason however, slight still rubs me wrong way, there any effect views over method? i meant besides carrying retype html hand.

initialize category fields constructor during declaration?

i've programming c# java recently i am extraordinary where best place initialize category fields. should i during declaration?: public category dice { private int topface = 1; private futile myrand = new random(); open vacant roll() { // ...... } } or constructor?: public category dice { private int topface; private futile myrand; open dice() { topface = 1; myrand = new random(); } open vacant roll() { // ..... } } i'm unequivocally extraordinary veterans cruise best practice. i wish unchanging hang approach.

about record permissions c#

while formulating record synchronization way c# i attempted slight copy localfileitem category uses system.io.file.copy(destination.path, path, true) slight where path string . after executing formula destination. path = "c:\\test2" this.path = "c:\\test\\f1.txt" i an difference observant i have mandatory record permissions operation c:\test , nonetheless c:\test owned myself (the tide user) . does anybody knows going on, around this? here uncanny formula complete. using system; using system.collections.generic; using system.text; using system.io; namespace diones.util.io { /// <summary> /// an vigilant illustration record directory. /// </summary> open summary category fileitem : icomparable { stable twine path; open twine path { set { this.path = value; } { relapse this.path; } } stable bool isdirectory; open bool isdirectory { set { t...

silverlight programmatic opening sony rz30n video feed

i bypass web-server functionality sony snc-rz30n network trustworthy web cam arrangement video feed silverlight application. i can't seem any examples interfacing camera programatically. any leads many appreciated. thx. update 09/09/2008: found good site javascript examples control camera, nonetheless still means hide video an iframe like: http://www2.zdo.com/archives/3-javascript-api-to-control-sony-snc-rz30n-network-camera.html doug