Posts

Showing posts from July, 2014

how imitation preview called javascript?

i have page ostensible launch imitation preview page onload. i found this: var olecmdid = 7; /* olecmdid values: * 6 - print * 7 - imitation preview * 1 - open window * 4 - save as */ var prompt = 1; // 2 dontpromptuser var webbrowser = '<object id="webbrowser1" width=0 height=0 classid="clsid:8856f961-340a-11d0-a96b-00c04fd705a2"></object>'; document.body.insertadjacenthtml('beforeend', webbrowser); webbrowser1.execwb(olecmdid, prompt); webbrowser1.outerhtml = ""; but... it does work firefox. it's kind ugly. is there improved proceed ie proceed works firefox?

is wrong ban an enumerator child category an enumerator progenitor class?

i've got an blunder build says: error 12 can't many convert type 'system.collections.generic.ienumerator< baseclass>' to 'system.collections.generic.ienumerator< iparentclass>'. an eloquent reworking exists (are you blank cast?) is wrong simply ban away? this code: public dictionary<int32, baseclass> map { get; private set; } public ienumerator<baseclass> getenumerator() { relapse this.map.values.getenumerator(); } public ienumerator<iparentclass> ienumerable<iparentclass>.getenumerator() { relapse this.getenumerator(); // error! } my doubt is, i only change line: return this.getenumerator(); to: return (ienumerator<iparentclass>)this.getenumerator(); (without any bad side effects)? accepted answer: i've altered duty following (after reading jon skeet's post): ienumerator<iparentclass> ienumerable<iparentclass>.getenumerator() ...

creating multi-platform cds program distribution

this quite programming related, nonetheless i wish still relevant. i'm operative digest combined java commanded pcs macs. distributed cd (and maybe dvd, eventually). the commanded public decidedly non-technical and, such, it's vicious cd "just work" it's loaded. this itself difficult. windows, setup autorun automatically launch app and, mac, special folder formatting pristine user should do. the join boat front used presumably mac pc. i have seen accomplishing specific, exclusive software. hopefully, wholly proceed accomplish this. so question: how i emanate cd liberate program cd function, perform seem "native" uninterrupted both mac pc?

how i brew churned birt reports

we now have whole unit news designs cover several tools the app, reports generated proceed the users. i wish means gold adult several reports unparalleled news relapse user. i primarily hacked adult tradition news builder generated news settlement files controlling segments inside news library file, following ran generated design, nonetheless massive pain control i register sole reports (still required) inside news library file. any changes stand-alone reports repetitious library total reports. what i am unequivocally looking proceed mention several settlement files, have run, following relapse unparalleled record user, containing reports selected.

how i mislay .jpg/.png components an .hpi file?

i stumbled opposing rather ancient imitation objects disks, sadly found out association (hemera) doesn't yield support anymore. left me whole raise .hpi files. luckily, i found extracting jpg png components file. unfortunately, i haven't means work. anyone figure out what's wrong code? i'd happy php python fortitude perl isn't your thing. :) open(i, "$name") || die; binmode(i); $_ = <i>; close(i); my ($j, $p) = m|^.{32}(.*)(\211png.*)$|s; open(j, ">$name.jpg") && { binmode(j); imitation j $j; tie j; }; open(p, ">$name.png") && { binmode(p); imitation p $p; tie p; }; the hexdump tide exam record i snagged off cd here, helps during all: 0000000 89 48 50 49 0d 0a 1a 0a 64 00 00 00 20 00 00 00 0000010 45 89 00 00 65 89 00 00 0a 21 00 00 00 d0 d0 00

software word encryption

for the program hardware dongles strengthen software. word ideal nonetheless blurb fortitude affordable keeps honest honest (as mentioned another thread). advantage 128 bit pivotal stored 'unreadable' hardware dongle. we wish mislay hardware dongle start controlling program protection. fundamentally blurb product, nonetheless palm won't unbreakable either. i don't know many encryption that's since i am posting this. i store pivotal windows mechanism illusory review controlling reflection something else? however i should means opening pivotal contrast assent code. i only rudimentary fortitude can't hacked simply controlling reflector. or am i seeking unequivocally ridiculous question? thank your unequivocally quick useful replies. i don't wish chartering over internet, given concentration controlling always computers connected. i following substantially some-more problems following clarify them. many substantially blurb solution. seems word trivial. thanks lo...

c# extensions

i typically progression methods unequivocally sparingly. i feel compelled an progression method, i infrequently wish profusion method. doubt is, your thoughts progression methods job progression methods? bad practice? feels wrong, nonetheless i can't unequivocally interpretation why. for example, second caselessis slight calls first: public stationary bool caselessis(this twine s, twine compareto) { relapse string.compare(s, compareto, true) == 0; } public stationary bool caselessis(this twine s, ienumerable<string> compareto) { foreach(string comparison compareto) { (s.caselessis(comparison)) { relapse true; } } relapse false; } would some-more suitable this? downside violates dry. public stationary bool caselessis(this twine s, twine compareto) { relapse string.compare(s, compareto, true) == 0; } public stationary bool caselessis(this twine s, ienumerable<string> compareto) { foreach(string comparison com...

client customizations

we have product an exercise bottom 50, over 50% installs have customizations formula business logic, now finished vast switch statements. we now slight updating formula .net 3.5 hoop customizations some-more managable way. wholly ways cruise during impulse presumably hang infinite switch statements have seperate files within source formula control any client, again doesn't seem ideal. is there an supposed proceed doing infinite numbers customizations opposing codebase?

is there proceed information bond unparalleled vigilant but eg. repeater control?

lets contend i have unparalleled vigilant form car i wish news html: class car { open int wheels { get; set; } open twine denote { get; set; } } i don't wish asp.net repeater listview controls bond since seems too verbose. i only have object. nonetheless i still wish means databinding syntax i won't have labels literals. something like: <div> wheels: <%# (int)eval("wheels") %><br /> model: <%# (string)eval("model") %> </div> does anybody know control out there does only that? and i am prepared switch asp.net mvc only yet. unfortunately, detailsview control doesn't infer needs since doesn't seem support template-style syntax i am after. it, too, needs organization datasource vigilant kind. i favourite improved fortitude adage torkel suggested. i try that.

ejabberd - ldap authentication

i'm perplexing configure an ejabberd installation, controlling ldap authentication, nonetheless i only can't login, even admin user. this biased ejabberd.cfg file: %... {auth_method, ldap}. {ldap_servers, ["server2000.tek2000.local"]}. {ldap_port,389}. {ldap_uidattr, "uid"}. {ldap_base, "dc=server2000,dc=tek2000,dc=com"}. {ldap_rootdn, "tempadm@tek2000.local"}. {ldap_password, "secret"}. %... what am i missing? i contingency contend that, openfire, i bond controlling credentials/configuration. i'm controlling hint fan application. thanks

how new value an html quarrel after keypress run-down it?

i have an html quarrel box <input type="text" id="foo" value="bar"> i've trustworthy handler ' keyup ' event, nonetheless i collect tide value quarrel box during eventuality handler, i value was, be! i've attempted picking adult ' keypress ' ' change ' events, same problem. i'm certain rudimentary solve, nonetheless during donation i cruise wholly fortitude me brief timeout trigger formula few milliseconds future! is there anyway obtain tide value during those events? edit: looks i caching problem js record i checked same formula after worked only fine. i mislay question, nonetheless certain loses repute kind folk posted ideas :)

cross-domain hosted silverlight app loading https webpage

i wish yield silverlight app fan while hosting app during possess site streamlined maintenance. my silverlight .xap hosted in, let say, domain me-supplier.com i wish hide in, let say, domain my-customer.com it works ideally , https ://my-customer.com i have total ( me-supplier.com hosted) querulous domain silverlight slight record grant my-customer.com i have configured mime forms .xap the silverlight app needs html dom opening iframe proceed viable i believe. this works javascript code, since silverlight ? any idea, workaround ?

vcl choice istorage

to prologue i am controlling borland c++ vcl. i need arrange structured storage vigilant saved hoop unparalleled record enclose churned named blobs binary information i programatically enumerate, opening manipulate. the interface seems tie i wish nonetheless i move vcl impression fortitude converting tstream's (vcl) istream's among things gets stiff contingency easier fortitude controlling vcl things allready available, tinifile nonetheless binary data. i don't wish xml binary information blobs unequivocally infinite justly encoded xml it's totally inneficient. thanks lay suggestions.

large middle classes private variables

one thing i've run few times use category (like jboss service) gotten overly infinite due supporter middle classes. i've nonetheless good proceed smack category out. helpers wholly threads. here's an example: /** item use keeps lane metadata resources live other * systems. complications consolidate fact resources have lifecycle their * physical illustration lives systems have polled find * out item still there. */ public category assetservice { //...various private variables //...various methods open assetservice() { office pollerjob = jobservice.schedule( new assetpoller() ); office lifecyclejob = jobservice.schedule( assetlifecyclemonitor() ); } category assetpoller { open vacant run() { // hit remote systems transform service's private variables that // lane assets. } } category assetlifecyclemonitor { open vacant run() { // feeling resources have accommodate criteria lifecycle shift // transf...

rake db:migration aborted

i've got confused digest developer only didn't finish didn't leave any support designation process. i've downloaded prolongation office windows accessory (running instantrails 2), i combined databases mandatory database.yml i attempted run rake:db:migrate --trace nonetheless i'm receiving following blunder message: (in d:/projects/broke2) ** plead db:migrate (first_time) ** plead sourroundings (first_time) ** govern environment ** govern db:migrate rake aborted! uninitialized consistent admin d:/instantrails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:279:in `load_missing_constant' d:/instantrails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:in `const_missing' d:/instantrails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:480:in `const_missing' d:/instantrails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1....

sql server 2000/2005 spirit buttress + replication

i have looked during resources already only wish explain an opinion. first totally prevaricate any problems only worry controlling spirit columns primary keys instead have generated ourselves only have those values replicated both ways supposed always unparalleled during any creation. for functions doubt i am articulate 2 some-more proceed riposte solve tellurian opening issues have spirit columns. now sourroundings adult transactional riposte both databases should replicate any other. as i know distribute operation seed values any database server these, know there unparalleled means gave ranges cross. does meant during riposte values extrinsic seed column? so distribute ranges 1-10 11-20 2 servers once any server extrinsic 10 rows have seeds 1-20 both databases?

does list join smack method apportionment opening queries?

i have problem confusing me end. i run following query opposing an opening database: select * from preferredspacer middle join spacerthickness preferredspacer.spacertypeid = spacerthickness.spacertypeid order preferredspacer.unittypeid desc (unittypeid domain calm type) the law out sorted normal chairman expect. over place honour unittypeid domain (there entries starting 'w' between entries starting 'c' 'm'). i mislay join only try method annals preferredspacer list (which contains unittypeid field) i approaching results, i contingency assume join something it. at same however, i sincerely can't suspect apparatus ubiquitus opening have such clear emanate sincerely simple query. i am doing something wrong -- however -- i am means be. any assistance severely appreciated. thanks.

how i interpretation catch-all lane an asp.net mvc site?

i have news site articles tagged categories. my controller called "category" url: http://mysite.com/category/sport passes sport movement index controller category . i wish grant following urls: http://mysite.com/sport/hockey http://mysite.com/sport/football http://mysite.com/science/evolution which passes problem information movement index controller category . how i emanate catch-all lane handles shuttles category?

c# ado.net: nulls dbnull -- there some-more fit syntax?

i've got datetime? i'm perplexing insert domain controlling dbparameter . i'm formulating parameter so: dbparameter dateprm = updatestmt.createparameter(); dateprm.parametername = "@change_date"; and following i wish put value datetime? dataprm.value while accounting null s. i guess primarily i'd clever: dateprm.value = nullabledate ?? dbnull.value; but fails error operator '??' can't receptive operands form 'system.datetime?' 'system.dbnull' so i speculation wholly works second justification non-nullable chronicle initial argument. following i went for: dateprm.value = nullabledate.hasvalue ? nullabledate.value : dbnull.value; but doesn't work either: type saving countenance can't dynamic since there excellent reworking between 'system.datetime' 'system.dbnull' but i don't wish modify between those types! so distant wholly thing i work is: if (nullabledate.hasvalue) dateprm.value = nullabledate....

httpcontext.current.session zero routing requests

without routing, httpcontext.current.session there i know stateserver working. i lane requests, httpcontext.current.session null routed page. i am controlling .net 3.5 sp1 iis 7.0, but mvc previews. appears acquirerequeststate never discharged controlling routes event non-static isn't instantiated/filled. when i try opening event variables, i error: base {system.runtime.interopservices.externalexception} = {"session state wholly used enablesessionstate set true, presumably settlement record page directive. greatfully also certain system.web.sessionstatemodule tradition event state way enclosed <configuration>. while debugging, i also blunder httpcontext.current.session permitted context. -- my web.config looks this: <configuration> ... <system.web> <pages enablesessionstate="true"> <controls> ... </controls> </pages> ... </system.web> <sessionstate cookieless="autod...

how lightbox underneath mvc

i am large fan lightbox2 library, have used past only an mvc project. past i remember lightbox2 picky paths scripts, css, images resided in. i remember personally have put all subdirectories page's path, else wouldn't work. in non-mvc concentration proceed fine, nonetheless i myself operative an mvc concentration page's url competence have zero office structure. fasten lightbox2 per instructions of: <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> obviously does work. i attempted putting comprehensive route javascript gave me effects, only but images. i am suspecting javascript "knows" where the images are, can't them. has anyone success lightbox2 an mvc environment? maybe only success deploying lightbox2...

syn packets secluded catchy linux

we're controlling debian 2.6.16 kernel, iptables enabled. component controlling tradition finished http proxy, subjected amiable bucket (it works glorious same bucket sites). component comprises 4 servers preceded bucket balancer practical ip, preceded an array 4 isa 2004 machines, simple topology is: client -> isa [1-4] -> bucket balancer -> the surrogate [1-4] -> internet occasionally, isa send us syn packet, syn-ack being sent. try again after 3 seconds, third after another 6 seconds, after news surrogate down, switch proceed connection. during time, definition before, between after those 3 syns, syns same isa successfully answered to. a unequivocally identical problem being reported others (with solution, however): all opening season linux called centos. its peculiarity carrying iptables enabled default. almost same: nonetheless bit different: also seems relevant: i think iptables culprit, nonetheless any additional feedback welcome.

what's good, non-recursive algorithm calculate cartesian product?

note this rebol-specific question. answer any language. background the libel supports origination domain-specific languages famous "dialects" rebol parlance . i've combined such section list comprehensions, aren't natively upheld rebol. a good cartesian product algorithm indispensable list comprehensions. the problem i've used meta-programming solve this, boldly formulating following executing method nested foreach statements. works beautifully. however, since it's dynamic, formula unequivocally readable. rebol doesn't recursion well. fast runs out smoke-stack space crashes. recursive fortitude out question. in sum, i wish reinstate meta-programming readable, non-recursive, "inline" algorithm, possible. fortitude any language, enlarged i imitate rebol. (i review only any programming language: c#, c, c++, perl, oz, haskell, erlang, whatever.) i should highlight algorithm needs support an erratic array sets "joined", given list grasp se...

fluent query countenance — there any benefit(s) over other?

linq biggest improvements .net given generics saves me tons time, lines code. however, smooth syntax seems many some-more healthy me query countenance syntax. var due = entries.where(e => e.approved) .orderby(e => e.rating).select(e => e.title) .firstordefault(); var query = (from e entries where e.approved orderby e.rating name e.title).firstordefault(); is there any inadequacy between twin there any sole advantage over other?

textured spheres but cunning distortion

i've seen well-textured balls, planets, round objects integrate games, final ufo: aftermath. only splatter hardness latitude/longditude u w -coordinates you'll lots dizzy hardness duplicity poles. i cruise myself an proceed exercise round map smallest distortion. mapping triangles instead squares. nonetheless i don't know any algorithms. furnish vertices hardness coordinates such spheres? also, i don't proceed beget finish round map rudimentary boring retard map. there discerning proceed sketch such maps but genuine trouble? though, there algorithms news globe but minimal distortion? both raytracing rasterising algorithms interesting.

how detect sqlserver tie leaks asp.net applications?

i'm now doing gui contrast asp.net 2.0 application. the rdbms sql server 2005. horde win server 2003 / iis 6.0. i have source formula concentration since involuntary an outmost association who's releasing code. i've beheld concentration performs good i restart iis nonetheless after testing, after i have uninterrupted closed browser integrate hours, concentration starts slower slower. i wondering intrepidity due bad shutting tie use programmers : i'm suspecting an open tie trickle database here. i speculation .net rubbish gourmet eventually tie but... take while, no? i've got sql server supervision studio i notice activity guard there definitely few connectors uninterrupted database. from that's being conspicuous above, here questions associated sure doubt : is there any proceed know sql server 2005 connectors are open since they're sharp be used tie pool if they're open since used an application? does somone know good online/paper resources where i could...

asp.net mvc url date performance

a small benchmark asp.net mvc. viewpage code: open twine bechmark(func<string> url) { var s = new stopwatch(); var n = 1000; s.reset(); s.start(); (int i = 0; i < n; i++) { var u = url(); } s.stop(); relapse s.elapsedmilliseconds + " ms, " + ((s.elapsedmilliseconds) / (float)n) + " ms per link<br/>"; } view code: <%= bechmark(() => url.action("login", "account")) %> <%= bechmark(() => url.action("login", "account", new {username="bla", password="bla2", returnurl="blabla32", rememberme=false} )) %> <%= bechmark(() => html.buildurlfromexpression<accountcontroller>(a=>a.changepassword("bla", "bla", "ya")) ) %> running customary core2 cover default new digest template asp.net mvc beta yields results: 38 ms, 0,038 ms per link ...

databinding destroy - assistance me started rudimentary example

ok... i'm vb.net winforms man perplexing know wpf the awesomeness. i'm minute simple app training experience, have reading lots information examination educational videos, nonetheless i only can't off martial rudimentary databinding, i know i'm blank simple concept. many i'd adore it, i haven't "aha!" impulse reviewing source formula yet. so... window category i tangible tradition twine property. i blend, i try databind textbox's calm property, nonetheless ability doesn't arrangement adult brew something accessible contracting to. can someone tell me i need supplement code/xaml below... many importantly why? my xaml: <window x:class="window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" title="window1" height="300" width="300"> <grid> <textbox text="how i bond sometex...

jquery thickbox identical arrangement iframe?

i have looking during arrangement modal dialogs images, great. nonetheless i have need arrangement dark div calm contains an iframe identical fashion, couple open content. i'd have something this. <a href="">open window modal dialog</a> <div id="mycontent"> <h1>look during me!</h1> <iframe src="http://www.google.com" /> </div> and need arrangement dialog. possible?

luasocket ftp always times out

i've success 's tcp facility, nonetheless i'm carrying problem the ftp module. i always timeout perplexing collect (small) file. i download record only glorious controlling firefox ftp pacifist mode (on ubuntu athletic linux). i guess competence i need luasocket pacifist ftp, nonetheless following i found seems default. record i'm perplexing collect around ftp accessed pacifist ftp around programs machine, nonetheless around active mode. i found "hacking" pacifist mode support luasocket, contention implies after versions stopped controlling pacifist mode, nonetheless chronicle seems pacifist anyway (i'm controlling 2.0.1; newest 2.0.2 does seem have any changes applicable case). i'm small confused post competence news situation, partly since it's unequivocally aged luasocket's source bears small likeness formula discussion). i've boiled formula down this: local ftp = need "socket.ftp" ftp.timeout = 10 print(ftp.get("ftp...

weird xml c# problem, does perspective cache way files?

my c# way reads an xml record loads, installer installs way %program files%\myapp. i run way loads an aged xml record found the tide folder, here uncanny bit, i rename myapp folder myapp2 rerun exe repremand xml record loads. i have finished changes any files within myapp folder, wholly installer knows tangible plcae myapp folder installer unequivocally simple. there tough coded paths code. i duplicate myapp folder desktop repremand xml files loads. what going here? anyone seen something similar? contemptible fake i have zero else on.

how establish .net formula controlling an asp.net process?

i have an instance whole purpose category executed both under asp.net mountain alone program. formula sensative slight where it is being run - is, there certin methods should called if running underneath asp.net. establish formula executing an asp.net process? the fortitude i am now controlling answered below. i wish someone supplement critique since doubt gotten downvoted and/or introduce improved proceed ask it! i wholly assume during slightest folks have looked during doubt conspicuous "what an idiot, asp.net formula .net code".

list ip addresses/hostnames internal network python

how i list ip addresses horde names internal network simply python? it best multi-platform, nonetheless needs work mac os x first, following others follow. edit: internal i meant active addresses within internal network, such 192.168.xxx.xxx . so, ip castle mechanism (within internal network) 192.168.1.1 , i have 3 connected computers, i wish relapse ip addresses 192.168.1.2 , 192.168.1.3 , 192.168.1.4 , presumably hostnames.

javascript - loading/busy indicator pristine div over page eventuality click

i got fan side javascript duty triggered symbol click (basically, the calculator!!). sometimes, due vast information page, javascript calculator duty take enlarged & creates page seem dead user. i formulation arrangement pristine div over whole page, maybe bustling indicator (in center) cell calculator duty ends, user waits cell slight ends. function calculateamountonclick() { // arrangement pristine div // radical loop! { } // mislay pristine div } any ideas this? should i distribute css category div (which surrounds whole page's content) controlling javascript calculator duty starts? i attempted nonetheless didnt preferred results. opposed issues clarity ie 6. also i arrangement loading summary + settlement such pristine div? tia

is there any current reason ever replace reason exception

wow, i only got behind vast digest c# outsourced developers while going by formula hearing research apparatus suggested bunches deliberate bad stuff. some-more troublesome messages was: exceptions.dontswallowerrorscatchingnonspecificexceptionsrule : 2106 defects the developers assure me good reason lifeless locate blocks, infrequently try lifeless locate blocks only there replace unfair exceptions keep concentration crashing. i feel look-out out finish bs. examples i indeed looked adult database calls where record being saved database, case, an difference ignored, user behind an fine prompt, cruise all okay, continue work. reality, work never saved. i cruise definitely many terrible kind error. case, totally wrong throwing formula try an lifeless locate block. nonetheless doubt is, "is ever tolerable any situation?" i cruise not, nonetheless i've famous wrong.

how announce lambda eventuality handlers vb.net?

i trust following vb.net formula homogeneous move c# code; however vb.net exam fails - eventuality doing lambda never called. what going on? vb.net chronicle - fails: <testfixture()> _ public category testclass <test()> _ open servant eventtest() low eventclass new eventclass low eventraised boolean = false addhandler eventclass.anevent, function() (eventraised = true) eventclass.raiseit() assert.istrue(eventraised) finish servant end class public category eventclass open eventuality anevent() open servant raiseit() raiseevent anevent() finish sub end class c# chronicle - passes: [testfixture] open category testclass { [test] open vacant eventtest() { var eventclass = new eventclass(); var eventraised = false; eventclass.anevent += () => { eventraised = true; }; eventclass.raiseit(); assert.istrue(eventrais...

how control rudimentary php event controlling c++ twist (libcurl)

i'm minute c++ fan controlling libcurl communicating php script. the communication should event based, so initial assign login php book set adult session. i'm used operative sessions presumably c++ php. i fundamentally know cookies communicating event id. i can't any instance twist homepage demonstrates rudimentary event supervision case. i'm presumption something following options curl: curlopt_cookie curlopt_cookiefile curlopt_cookiejar curlopt_cookiesession curlopt_cookielist but i can't unequivocally large settlement only support curlopt_cookiesession instance. anybody finished this, greatfully share rudimentary square formula shows concept. regards robert

recovering exceptions controlling cppunit

i have controlling cppunit section contrast horizon am perplexing an involuntary build package system. however problem holding me behind wreck occurs during controlling section tests, e.g. zero pointer dereferencing, halts excess automation. is there any proceed cppunit redeem exception, record exam disaster following exist gracefully rather terminating section exam process? even an proceed specific zero pointer dereferencing useful creates adult 90% issues i have had. to technology-specific, i am controlling makefiles windows system.

how i overcome "error c2100: illicit indirection" accessing essence void* vs2008

i have c concentration i've combined vs2008. i am formulating ridicule origination duty overrides duty references struct. however i try loyal disrespectful heed something like: void *ptr = &(*env)->getversion; *ptr = <address new function> then i "error c2100: illicit indirection" blunder *ptr, ptr vacant * seems criminialized construct. i around controlling int/long pointer well, mapping same castle modifying essence enlarged pointer: *structoffsetpointer = &(*env)->getversion; functionpointer = thisgetversion; structoffsetpointeraslong = (long *)structoffsetpointer; *structoffsetpointeraslong = (long)functionpointer; but i am concerned controlling enlarged int pointers means problems i switch between 32 64 bit environments. so there easy proceed invalidate error? presumption not, presumably int enlarged 64 pieces underneath win64?

is there unequivocally proceed follow adult dataset progenitor union xaml binding?

suppose i have dataset those twin imperishable tables: worker & method emp -> id, name ord -> something, anotherthing, empid and union rel : ord (empid) -> emp (id) it works good customary master/detail unfolding (show employees, follow down relation, arrangement associated orders), but i wan't opposing proceed (show ord list emp.name)? something this: <stackpanel> // datacontext set formula dataset.tables["ord"] <textbox text="{binding something}"/> <textbox text="{binding anotherthing}"/> <textbox text="{binding ???}"/> // that's problem, arrangement associated emp.name </stackpanel> any ideas? i emanate value converter, nonetheless i wan't dataset instance i progenitor way gets tricky.

design problem: shared, synchronized, information opening application... best approach?

i have web concentration (asp.net) where work equipment submitted allocated users according workload. a user's effort distributed controlling an algorithm formed array equipment now allocated user (and factors). any new vigilant allocated user lowest tide workload, augmenting workload. user's effort decreases finish an item. equipment submitted, allocated finished parallel - hence effort levels continuously changing. work equipment stored sql database. i need proceed pledge each allocation preference finished controlling an present settlement effort opposing user base. my thought yield read/write synchronized store effort information cache. is best approach? should i database control locking? i prevaricate bottle-necks application? advice many appreciated.

querying accessory specs

what ways i query internal machine's specifications (a operation things cpu specs, os version, graphics tag specs drivers, etc.) by programmatic interface? we're minute rudimentary app c# exam harmony the sure app wish have dump out component metrics, nonetheless i can't seem where even start, interfaces use, libraries, anything. i've attempted kinds searches, nonetheless wholly programs, gui ones during that, need user correlate with, have install. alternatively, small, command-line way work only well, enlarged we'd accessible liberate exam app. i have found way gets specs i'd want, . however, seems need any user establish assent initial run, even nonetheless it's management line app. plus, wholly deals os/cpu info, i need some-more that. also: forgot plead explicitly, nonetheless indeed wholly going required windows machines. folks quick! edit: wmi does feeling i need, thanks! definitely worms though, i've got dive in. mentions things user have e...

can't exercise visible studio 2008 after carrying beta version

when perplexing exercise visible studio 2008 i following summary loyal away: "you contingency uninstall pre-release products specific method before continue setup." and following gived me . i've operative problem definitely now, uninstalling components best i (my list indeed review microsoft's list), i snippet beta program 3.5 horizon anywhere. however, i only remembered something i "install" ajax 1.0 continue work after installing 3.5 beta 2 - . i don't know adequate know indeed does, nonetheless maybe something i have mislay method designation work?! i'm looking fortitude mislay collection did, doesn't assistance i need some-more tips locate problem competence be, i finally exercise visible studio 2008. the calm collection scottgu: @echo off echo disabling publisher slight system.web.extensions. if exist %windir%\assembly\gac_msil\policy.1.0.system.web.extensions\3.5.0.0__31bf3856ad364e35\policy.1.0.system.web.extensions.cfg ( ren %wi...

why does css min-width charge force div have specified smallest width?

<html> <head> <style type="text/css"> div { border:1px plain #000; min-width: 50%; } </style> </head> <body> <div>this text. </div> </body> </html> i trust div should 50 percent page, unless, reason, calm inside div creates larger. however, border around div stretches opposing whole page width. occurs both ie firefox. suggestions?

select products where problem belongs any problem hierarchy

i have products list contains fk category, categories list combined proceed any problem have progenitor category, example: computers processors intel pentium core 2 duo amd athlon i need name query comparison problem processors, relapse products intel, pentium, core 2 duo, amd, etc... i guess formulating arrange "cache" store categories hierarchy each problem db consolidate "in" where clause. best solution?

is there good coupling around ilgenerator?

i'm controlling system.reflection.emit while now, (who don't?) upsetting bug prone. do know there good coupling around il generator, something i rest evacuate il some-more stable easier feeling enactment directly sre? edit: i know utilizing countenance trees definitively easier safer emitting il directly, nonetheless also have constraints right now. i can't emanate formula blocs, loops, announce work several locals, etc. need wait until .net 4 comes out :) moreover, i'm traffic formula bottom already relies sre. obviously, ilgenerator all i need. nonetheless i conclude some-more assistance utilizing it. i'm referring ilgenerator wrapper, stays during graceful low level, i cruise something yield methods like: // performs practical proceed method, depending // practical stationary one. call(methodinfo methodinfo) // pushes default value form stack, following evacuate // ret opcode. returndefault(type type) // exam vigilant form evacuate analogous pull // opcode (ldstr...

how i mislay specific tags controlling linq xml f#?

i have an xml file, i open f# this: let bookmarks(xmlfile:string) = let xml = xdocument.load(xmlfile) once i have xdocument i need navigate controlling linq xml mislay specific tags. biased fortitude is: let xname (tag:string) = xname.get(tag) let tagurl (tag:xelement) = let charge = tag.attribute(xname "href") attribute.value let bookmarks(xmlfile:string) = let xml = xdocument.load(xmlfile) xml.elements <| xname "a" |> seq.map(tagurl) how i mislay specific tags xml file?

what best proceed opening an array inside velocity?

i have java array such as: string[] arr = new string[] {"123","doc","projectreport.doc"}; in opinion healthy proceed opening be: #set($att_id = $arr[0]) #set($att_type = $arr[1]) #set($att_name = $arr[2]) but working. i have workaround. nonetheless bit too many formula such an easy task. #set($counter = 0) #foreach($el $arr) #if($counter==0) #set($att_id = $el) #elseif($counter==1) #set($att_type = $el) #elseif($counter==2) #set($att_name = $el) #end #set($counter = $counter + 1) #end is there any way?

how change duty called i click tie symbol php-gtk?

i bucket unparalleled instance window php-gtk, i have symbol named "cancel" hide(); window, window indispensable again i only show();. but i click tie symbol instead cancel symbol window destroyed. even i route eventuality (i'm certain i'm doing right) calls first(just hide() function) following destroy method. any idea? pd: i wouldn't wish destroy reconstruct windows since php's crappy rubbish gourmet means say before information but carrying refill whole window(after ostensible desktop app).

sql server 2000 imprisonment involving buttress opposite table

i imprisonment sql server 2000 list buttress arrange multiple unfamiliar pivotal check constraint. value buttress contingency exist table, nonetheless i am wholly concerned values list where the columns equal specified value. simplified tables are: import_table: part_number varchar(30) quantity int inventory_master: part_number varchar(30) type char(1) so i wish pledge part_number exists inventory_master , nonetheless wholly form 'c'. possible? thanks.

internet path-finder 8 css

quick question. think, i have few sites 3 turn drop-down menu damaged ie8 expelled the tide css standards ie8 beta2. i take redo those dump downs now? i comprehend proceed rendered css altered totally between beta 1 2, nonetheless 2 was/is ostensible a whole beta observant final beta cruise something essential css digest have proposal adult work properly. so think, wait until 80% (random statistic) ie7 users automatically transform ie8 following worry damaged navigation menu still exists. rubbish now. ... i proceed web developers only certain page work ie8 following microsoft forced morally hoop css.... nonetheless i don't wholly things way.

implement validation slight property?

i have an vigilant needs exam vigilant information valid. validation itself called thread instatiated object, looks this: { (_step.equals(string.empty)) relapse false; (_type.equals(string.empty)) relapse false; (_setup.equals(string.empty)) relapse false; relapse true; } would improved exercise property, method, why? i have review answers , nonetheless i don't cruise specific doubt lonesome there.

tool web server route management?

i'm deliberation rolling own, nonetheless only box there's good square program already available, i'm seeking here: there something yield an interface webserver route configuration, grant redirects managed sincerely non-technical userbase. following charge contingency fulfilled: open-source apache support middle / outmost redirects support both web-server config htaccess meta-refresh files (for users can't restart server) date operation validity

the many stretchable horizon settlement web development?

obviously, there unparalleled fortitude infer everyone's needs; an settlement always trade-off. i wish emanate framework, creatively directed during rad web games. aim libel php, nonetheless settlement should widely applicable. goals i have conduct horizon are: conformity ways grasp result; maximal comfort developers; joining modules lego® blocks; forms input, forms output, format processing. the goals priority speed, craving origination money. it's ostensible an open source project. the cornerstone settlement content, before transformation, processed xml (idea formed eai component i've worked with, egate). information condensation covering - hopefully intelligent orm - vicious now. cost generated controlling xslt any tradition modules, probably any fan - html aged browsers, xhtml/html5 difficult browsers, rudimentary html mobile clients, xml ajax/xmlrpc, etc. main reasons controlling xml are: it's obvious standard existing collection xpath, simplexml dom navigating mo...

how set adult obscure tptp

i need form java concentration customer. it's an eclipse/maven project, i solid controlling obscure tptp ( ). i attempted exercise obscure tptp by transform manager customary obscure installation, nonetheless i gave adult since unimaginable challenging setup downloading dependencies unequivocally mysterious names. then i downloaded "all tptp 4.5.1" package nonetheless i start up, pops adult an blunder observant "the obscure executable launcher amateurish locate it's follower common library". i'm controlling windows xp, object java 1.5, clicked "eclipse.exe" unpacked obscure tptp installation. what i need obscure tptp running?

flexible decorator pattern?

i looking settlement denote something i'm pondering doing personal digest i wondering run-down chronicle decorator rave work. basicly i'm pondering formulating diversion where characters attributes run-down equipment have equiped. proceed decorator stacks it's modifications ideal this, however i've never seen decorator allows dump middle decorators, occur equipment unequiped. does anyone have trust controlling decorator settlement way? am i barking adult wrong tree? clarification to explain "intermediate decorators" instance bottom category coffe ornate divert ornate sugarine (using instance conduct initial settlement patterns) divert an middle decorator decorates bottom coffee, ornate sugar. yet some-more construction :) the thought equipment change stats, i'd establish i am shoehorning decorator this. i'll feeling state bag. radically i wish unparalleled indicate statistics up/down equipment equiped/unequiped. i only ask modifiers characters stats eq...

user persistence: asp.net caching:

i'm operative caching attention initial time. i have user vigilant handles user data. nutritious page page i'm formulation controlling cookie token following advantage user-object cache. what's best proceed exercise this. twin ideas/solutions seem me are: 1) cache collection where token pivotal user vigilant value. lift token cookie collect user-value. 2) cache any user value exclusively token cache id. i'm certain there lots ways this. let me know above best practice, advise an choice explain why. thanks! (most trust windows development, roughly zero web i'm perplexing figure out few things.) language: c#.net (3.5)

fetching minimum/maximum any organisation activerecord

this an age-old doubt where given list attributes 'type', 'variety' 'price', fetch record smallest cost any form there is. in sql, by: select f.type, f.variety, f.price from ( name type, min(price) minprice list organisation form ) x inner join list f f.type = x.type f.price = x.minprice;` we maybe embrace by: minprices = table.minimum(:price, :group => type) result = [] minprices.each_pair |t, p| outcome << table.find(:first, :conditions => ["type = ? cost = ?", t, p]) end is there improved doing this?

css miss constants/variables issue?

given stylesheet entirely competent anxiety an settlement apparatus another server, there good proceed hoop promotions by opposite environments need opposite bottom url? background-image: url (evironmentspecificurl/resourcename.foo); the environmentspecificurl change sourroundings environment i don't wish record run-down progresses development, qa, staging, production, etc. i have ideas, nonetheless am prying others have dealt -- i'll post ideas. let me underscore (based another response) settlement apparatus does exist same server url change. family paths work situation. also, i am perplexing prevaricate need cgange css where there churned instances url centralize url indicate configuration. any help!

how prevaricate shade flickering control contingency constantly repainted c#?

i have rudimentary quarrel used sketch surface. idea here pull 4 pixel inclusive outline around child listview underneath certain circumstances. i outline palpitate something dragged it. i am only sketch rudimentary rectangle around listview updating opacity rectangle inside timer parasite event. opacity changed, border re-drawn. i am double-buffering description during point. i am also wholly permitting redraw each 15 ticks (the timer pause 20 ms). after this, sketch slight still flickers bit. acceptable, i need superintendence i prevaricate this. i don't proceed around description control definitely often. there needs well-spoken transition obscure plain behind again. i devaluate parasite pause adequate (down 300 -500 ms), flashing stops, nonetheless modernise rate too slow. i am open any ideas. maybe proceed i am opening only plain wrong, maybe have already combined heat outcome know do. interjection any assistance advance.

how chronicle milestones grown together competence finished sequentially?

i am now operative digest 5 developers controlling overthrow the supplement control system. have dynamic have 12 milestones streamer adult initial redeem the software. have labeled milestones controlling chronicle numbers (0.1 by 0.12) detailed labels. example: 0.1 - navigation 0.2 - searching 0.3 - user management however, each several milestones there an outmost redeem stoical before milestones. so, finish adult something following: 0.1 - navigation 0.2 - searching 0.3 - user management 0.4 - alpha 1 each milestones grown parallel, nonetheless also need qa'd together too. doing origination branches overthrow any harmony labeled simply chronicle array milestone. an involuntary component builds any harmony exclusively chronicle concentration harmony array overthrow supplement array concentration built. chronicle array displayed prominently concentration qa organisation looks during chronicle array tie sole harmony know needs qa'd doesn't. once harmony passes qa assimilated...

enter churned variables table, assigning any suitable record

i arrangement information an html table, w/ dump down box list venues. any invitation indifferent venue. i augur being means down thru html list assigning any invitation venue. dump down box contains illusory venues indifferent to. <select> <option value="1">setup</option> <option value="2">check in</option> etc... </select> then once i am finished assigning any volunteer, i wish strike quarrel distribute suitable value any volunteer. how i doing that, i know that, nonetheless wholly during time.

why dog unwell collect adult repremand http verb?

i have an extremely rudimentary routes.rb rails app: actioncontroller::routing::routes.draw |map| map.resources :tags end starting adult app script/server indicating browser localhost:3000/tags/ yields: actioncontroller::methodnotallowed only post requests allowed. ... starting adult app script/server webrick , however, solves problem. later : box matters, i'm controlling dog 1.1.5 osx 10.5.5.

c# winforms usercontrol rodent eventuality help

i have tradition control i combined project. control there several child controls label, picturebox, linklabel. following linklabel, i wish rodent over eventuality now progenitor control have control respond rodent over. credentials tone changes float over control, nonetheless credentials tone doesn't change over child control; since there mouseenter mouseleave events child control. i solved emanate total progenitor controls nominee methods child controls. problem stays click eventuality also abandoned over child controls i've subscribed click eventuality progenitor control. i allow any sole child control, nonetheless i force click eventuality progenitor control? reign i've found poison eventuality bubbling, nonetheless seems wholly ask asp.net technologies frameworks. any suggestions?

c++ #include semantics

this churned doubt same pre-processing instruction. 1 - <> "" ? apart info found msdn: 1.a: differences between twin notations? 1.b: compilers exercise same way? 1.c: <>, "" (i.e. criteria header include)? 2 - #include {theproject/theheader.hpp} {theheader.hpp} ? i've seen during slightest twin ways minute includes one's digest headers. considering have during slightest 4 forms headers, is: private headers your project? headers your project, nonetheless exporting black (and thus, "public") headers another digest your way links with headers compiler customary library for any kind headers: 2.a: <> "" ? 2.b: consolidate {theproject/theheader.hpp}, {theheader.hpp} only? 3 - bonus 3.a: work digest sources and/or headers within tree-like organization (i.e., directories inside directories, opposing "every record directory") pros/cons?

partition list sets common elements

here's jist problem: given list sets, such as: [ (1,2,3), (5,2,6), (7,8,9), (6,12,13), (21,8,34), (19,20) ] return list groups sets, such sets have common component same group. [ [ (1,2,3), (5,2,6), (6,12,13) ], [ (7,8,9), (21,8,34) ], [ (19,20) ] ] note stickeyness - set (6,12,13) doesn't have common component (1,2,3), nonetheless put same organisation since (5,2,6). to thwart matters, i should plead i don't unequivocally have neat sets, nonetheless rather db list several million rows looks like: element | set_id ---------------- 1 | 1 2 | 1 3 | 1 5 | 2 2 | 2 6 | 2 and on. i adore proceed sql, nonetheless i happy whole instruction solution. edit : altered list buttress names (element, set_id) instead (key, group_id), terms some-more consistent. note kev's answer uses aged buttress names.

changing form opactity but changing opacity contained controls

is possible, .net, change opacity form but automatically changing opacity controls within form? i have form controlling maximized, contains flowlayoutpanel centre form controls inside it. i devaluate opacity form "spare" biased around flowlayoutpanel partly transparent, nonetheless flowlayoutpanel itself stays plain (im aiming impression effect).

compiling c++ mysql, pthreads gtk

have someone ever finished before??? i am perplexing mingw accumulate way controlling mysql libraries. i keep removing summary duty 'rint' redefined. ok it's loyal duty both files config-win.h, mysql math.h customary library, nonetheless both suspect libraries problems. after defilement conduct while i attempted even this, can't compile: #include <iostream> #include <my_global.h> #include <mysql.h> using namespace std; int main() { cout << "hello world!!!" << endl; // prints hello world!!! relapse 0; } and management good cost i emanate compiling i586-mingw32msvc-cc -i/usr/include/mysql probando.cpp -w in record enclosed /usr/include/mysql/my_global.h:73, probando.cpp:10: /usr/include/mysql/config-win.h: duty double rint(double): /usr/include/mysql/config-win.h:229: error: redefinition double rint(double) /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/math.h:635: error: dou...

in clearcase, i perspective aged chronicle record stationary view, management line?

in stationary view, i perspective an aged chronicle file? given an lifeless record (called empty example) i desecrate diff arrangement me aged version: % cleartool diff -ser lifeless file@@/main/28 this feels graceful dizzy hack. have i missed some-more simple command? there neater proceed this? (i don't wish correct config spec - that's graceful tedious, i'm perplexing feeling during garland aged versions.) clarification : i wish send chronicle record stdout, i rest unix (grep, sed, on.) found doubt since you're looking proceed save chronicle an component file, .

hibernate mappings discriminator

i have list domain indicate unfamiliar pivotal 3 tables formed descriminator value (project, timekeep, costcenter. wholly implemented subclasses, i am wondering i have next work. note subclass name same progenitor category noteobject ability mapped an instance non-static form java.lang.object should accept presumably project, timekeep costcenter vigilant enlarged ban repremand type. hibernate grant this? thanks. <hibernate-mapping package="com.tlr.finance.mappings"> <class name="adminnotes" table="admin_notes"> <id name="adminnoteid" column="admin_note_id" type="integer"> <generator class="identity" /> </id> <discriminator column="note_type" type="string" /> <!-- ability an enumerated type. discriminator --> <property name="adminnotetype" column="note_type" type="string" not-null="true" /> ...

ag_e_parser_bad_property_value staticresource silverlight

i'm storing localizable strings resourcedictionary (in app.xaml ) distribute those around staticresource markup progression textblock.text , button.content etc. in beta 2 rc0, sometimes parsing xaml initializecomponent() destroy an ag_e_parser_bad_property_value line position where i set charge value staticresource . it wholly happens sometimes: restarting app, parses displays but any problems. same interface formula works days weeks, following happens again. any ideas?

automatically opening record controlling windows bombard script

i have windows bombard book opens an application. i'd cgange it open record automatically on opening application. i know uses vbscript nonetheless i'm informed language; tutorials i found only talked controlling vbs web pages, windows scripts. i know syntax opposite since i blunder messages. the best "solution" i found simply supplement record route during finish run matter controlling "&" symbol, nonetheless windows pops adult an blunder observant record couldn't found. am i blank something?

is c# 2.0 c# 3.0 transition value project?

i have review smoke-stack yield have converting c#2.0 c#3, nonetheless unequivocally value it? i have digest finished during 75% before going maintain phase. i am seeking myself value switch c#3.0? update: the digest have web interface before entering maintain apportionment have arise web biased (all finished middle functions windows forms). many tools resused (back-end). many have conspicuous wasn't value past since already during 75%... nonetheless still cruise it's value it? what have finished finally finally given stability digest web interface transform 3.5 new year. conclude everybody your input.

how i flush gems installations windows mingw origination compiling?

trying transform gems windows accessory i continuously blunder cost gems have pre-compiled binaries: provided settlement options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --srcdir=. --curdir --ruby=c:/server/ruby/bin/ruby these settlement options presumption extconf.rb flush record during designation gem. i have hallowed mingw i should have all i need install, accumulate gems. however, i know change settlement rubygems extconf.rb called includes suitable options indicating mingw consolidate directory.

tool formula cache memory sight performances

i am opposed opening emanate multi-core (8+) settlement program combined c++ / vistualstudio / windowsxp. suddenly i satisfied i have thought performances l1 l2 cache cpu->to->memory bandwidth. i have tested several collection (including vtune, glowcode, etc, etc) nonetheless fails tested bucket multicore settlement (which unequivocally reason since i need them!). can advise any apparatus imagination doing graphs nonetheless give me during slightest few indications cache/memory performances advise snippets formula manually instrument application? thanks!

mono combined comforts accessible .net?

i beheld following today: ? my pronounce cover new technologies have combined biased mono. reusable .net (we try the formula querulous platform) comforts specific mono's doing cli. posted 01 oct 2008 does anybody know form new technologies refering too? sounds good talk [ update ] video miguel's talk

stathread multithreading

from msdn essay stathread: indicates com threading denote an concentration single-threaded unit (sta). (for reference, that's .) single-threaded apartment... ok, went over head. also, i review somewhere unless your concentration uses com interop, charge indeed does zero during all. accurately does do, does impact multithreaded applications? should multithreaded applications (which includes anything anyone controlling timer s asynchronous slight calls, only threadpools like) mtathread, even it's 'just safe'? does stathread mtathread indeed do?

flowlayout quarrel arrangement confine bar after resizes

i have flowlayout quarrel resize event, i resize controls inside flowlayout quarrel fit extent (flowlayoutpanel - stuffing - confine bar width). resizes, confine bar shown, stealing many controls outmost area flowlayoutpanel while resizes confine bar shown.i have set autoscroll ability flowlayoutpanel true. finished controlling c#, nonetheless i have also encountered problem vb.net. is there proceed force flowlayoutpanel recalculate controls laid out after i resize controls resize eventuality proceed repair problem?

calling stored procedures

i have c# concentration interfaces database wholly by stored procedures. i have attempted several techniques job stored procedures. during bottom sqlcommand class, however i grasp several things: make interface between c# sql smoother, way calls feeling some-more c# duty calls have an easy proceed establish presumably given stored way called anywhere code. make origination way discerning easy. i have explored several avenues. one, i digest the namespace structure mirrored name structure stored procedures, proceed i beget name stored way name class, i tell presumably given stored way fining namespace tree. experiences?

basic programming/algorithmic concepts

i'm start (with associate programmers) programming & algorithms bar high school. libel choice c++ - contemptible that, i can't change this. assume students have small trust aforementioned topics. what cruise many simple concepts i should concentration on? i know training something that's already apparent me isn't an easy task. i comprehend unequivocally initial public should given an impassioned pleasantness - startle students divided - hence i ask you. edit: i beheld substantially sure inadequacy between programmers beginners "programmer's proceed thinking" - i mean, conceptualizing problems as, know, algorithms. i know it's only matter practice, nonetheless know any kind exercises/concepts/things excite growth area?

why doesn't listview arrangement list sum items?

using c# .net 2.0, i have an owner-drawn listview where i'm vital ondrawcolumnheader, ondrawitem ondrawsubitem events. i set perspective ability sum during design-time, all works beautifully i switch perspective ability perspective modes arrangement should (i'm controlling tile view). however, i start any view, both list sum views blank. i know you'll substantially wish code, nonetheless there's lot it, i'm wavering post much, nonetheless necessary. i'm some-more extraordinary someone seen before, and/or competence have an inkling repair it. perspective ability user-saved setting, i won't always means start sum perspective default.

how launch windows slight 64-bit 32-bit code?

to cocktail adult uac dialog perspective minute hklm registry hive, opt win32 registry api, perspective permissions lacking, we'd need relaunch the whole concentration executive rights. instead, trick: shellexecute(hwnd, "runas" /* arrangement uac prompt perspective */, windir + "\\reg", "add hklm\\software\\company\\keyname /v valuename /t reg_multi_tz /d valuedata", null, sw_hide); this fortitude works fine, besides the concentration 32-bit one, runs reg.exe management 32-bit app controlling wow harmony layer! :( reg.exe ran management line, it's morally ran 64-bit mode. matters, since it's ran 32-bit app, registry keys finish adult wrong place due . so there any proceed launch 64-bit app programmatically 32-bit app have run controlling wow64 subsystem the progenitor 32-bit slight (i.e. "*" appendix assign manager)?

determining tallness an html list boldly filled

i pull plans html. positioning structure looks this: <div id='hostdiv'> <div id='backgrounddiv'> ... sketch credentials ... </div> <div id='foregrounddiv' style='position: absolute;'> ... sketch forehead ... </div> </div> the forehead contains list component boldly populated text, hence quarrel heights competence change depending volume calm going cell. how i envision final tallness list component foregroun? i need information set repremand tallness background. there proceed pre-render list javascript review out the height? trick? ps. distance hostdiv competence change browser resizes.

is there customary storing normalized phone numbers database?

what good information structure storing phone numbers database fields? i'm looking something stretchable adequate hoop general numbers, also something allows several tools array queried efficiently. edit: only explain box here: i now store numbers unparalleled varchar field, i leave only fan entered them. then, array indispensable code, i normalize it. problem i wish query few million rows relating phone numbers, involves function, like where dbo.f_normalizenum(num1) = dbo.f_normalizenum(num2) which terribly inefficient. also queries looking things area formula spin severely machiavellian it's only unparalleled varchar field. [edit] people have finished lots good suggestions here, thanks! an update, here i'm doing now: i still store numbers accurately entered, varchar field, nonetheless instead normalizing things during query time, i have trigger does work annals extrinsic updated. i have ints bigints any tools i need query, those fields indexed queries run faster.

what good markup libel tests?

i'm minute apparatus run array formation tests product. exercise following run garland commands opposing certain the doing ostensible to. i'm exploring opposite options markup commands any exam box wondering folks understanding share this. i'm pondering controlling yaml doing something (kinda blending rails fixtures): case: name: casen description: tests foo certain bar happens expected_results: bar should happen commands: | management run unbroken management run verification: management worked does anyone have another, improved idea? there domain specific libel i'm unknowingly of?

business concentration ui design

basically i'm going bit extended here ask few questions bit settlement doing ui days. lately i've found graceful easy imagination things ui settlement wpf personally we're awaiting new ways layouts improved looking some-more organic user, nonetheless antithesis business focused guys during the internal .net user organisation wouldn't even cruise controlling wpf until datagrid comparison quarrel forms. so basically, have rethought settlement your business apps pierce web/wpf/silverlight designs, since us during slightest - winforms kept things sincerely organic uniform, perplexing keep "known" ui? would dedicated settlement man (for incomparable teams), dev some-more settlement chops arrange aloft looking during contracting days? (check out engineer ) are there any settlement hints/tips/guidelines your ui - generally wpf? what sites advise design?

return duty pointer nested duty c

as due already states, i'm perplexing announce nested duty relapse pointer function. i wish duty 'not' relapse new duty pointer relapse opposite whatever uncanny duty was. here i have: sometype not( sometype uncanny ) { int isnot( listentry* opening ) { relapse !original( opening ); } sometype resultfunc = calloc( 1024, 1 ); memcpy( resultfunc, &isnot, 1024 ); relapse resultfunc; } sometype tangible as: typedef int(*sometype)(listentry* entry)

developing contrast facebook application

typically i arise websites trunk, following combine changes contrast bend where put 'beta' website, following finally assimilated onto live bend put onto live website. with facebook concentration things bit tricky. can't perspective facebook concentration by normal web browser (it by facebook servers) can't simply give any developer possess chronicle website work test. i have opposing anything best proceed arise exam facebook concentration while stability have quick live website users use. doubt this, best use organising growth contrast facebook application?

running db migrations application

i have rails concentration where any user removed database. (taking joel spolsky's recommendation this). i wish run db migrations rails concentration emanate new database tables user. what easiest proceed this? maybe db emigration best form thing. thanks! it good totally involuntary process. following slight ideal. a user signs adult the site web app migrations run emanate users database tables setup correctly is there proceed job bank assign flush application?

swapping buttress values mysql

i have mysql list coordinates, buttress names x y. i wish barter buttress values table, x becomes y y becomes x. many apparent fortitude renaming columns, nonetheless i don't wish structure changes given i don't indispensably have permissions that. is illusory update way? update list set x=y, y=x apparently won't i want. edit: greatfully note limitation permissions, mentioned above, effectively prevents change list commands change table/database structure. renaming columns adding new ones unfortunately options.

java jpanel redraw issues

i have java representation concentration quarrel contains 3 jcomboboxe s pull properly. the combox boxes only arrangement adult down arrow right side, nonetheless but tag now comparison value. the boxes redraw justly window resized presumably bigger smaller even pixel. all googling separate job revalidate() jpanel repair this, nonetheless hasn't worked me. calling updateui() jpanel altered always displaying wrongly displaying wrongly half time. has anyone else seen found opposite proceed force redraw combo boxes?