Posts

Showing posts from August, 2012

filtering warnings obscure filename

we obscure the java development, we've got maven compiling the jsps servlets used the embedded jetty instance. means run digest eclipse, i have consolidate ./target/jsp-source source folder, works great. warnings arrangement adult generated formula everywhere though, i wish filter out. mainmenu_jsp.java warning internal non-static being used. it's generated code, i don't caring it, nonetheless i can't figure out filter out any warnings filename pattern. i know i interpretation operative set , nonetheless since i'm always opening,closing, infrequently adding deletion projects, i don't wish another indicate authority bookkeeping i have keep adult date. i supplement new digest forget supplement operative set, i won't any warnings it, projects, i competence notice. operative sets wholly unequivocally work there proceed set boldly enhance consolidate projects (not only right now), have filtering automatically ask any new digest it's added.

how i overcome "the mystic couple can't followed since the form disabled." blunder removing aim mystic link?

following , i am formulating mystic couple server 2008 perspective accessory controlling unc paths. i emanate couple only fine. i server 2008 box double click couple path-finder open aim file. i can't nonetheless filecreatew hoop unc route couple (from perspective box). i try it, fails getlasterror() advantage blunder formula 1463 (0x5b7), is: the mystic couple can't followed since the form disabled. how assent the "type" server 2008 (assuming blunder means says)?

httpwebrequest ssl fails

i'm controlling code, ask given url: private stationary twine getwebrequestcontent(string url) { twine sid = string.empty; httpwebrequest req = (httpwebrequest)httpwebrequest.create(url); req.keepalive = false; controlling (httpwebresponse res = (httpwebresponse)req.getresponse()) { controlling (streamreader sr = new streamreader(res.getresponsestream())) { sid = sr.readtoend().trim(); } } relapse sid; } i'm controlling exam stickyness work bucket balancer, 3 servers behind it. have stationary htm record called sid.htm, where server's server id written. for url's http works fine. nonetheless https doesn't work. i exception: the ask aborted: emanate ssl/tls secure channel. at moment, i have wholly 2 servers behind wlb the possess open ip behind firewall. https requests works glorious i strike stand-alone server - nonetheless i strike wlb i above error. one thing: method switch between dispute unparalleled server, wlb i hosts file. dn...

makefile problem saving used interpretation used commands biased rule

i have domain makefile arrange structure: bob: ifdef debug @echo running endif @echo chug chug chug ifdef debug @echo done endif bobit: @echo "before" @make bob @echo "after" i'm simplifying severely here, echo's indeed non excusable blocks commands there some-more saving stuff, nonetheless captures idea problem. for technical reasons i don't wish right now, i need absolved submake, nonetheless since echo's paint nontrivial amounts formula i don't wish only duplicate past physique slip place submake. ideally i'd something this define bob_body ifdef debug @echo running endif @echo chug chug chug ifdef debug @echo done endif endef bob: $(bob_body) bobit: @echo "before" $(bob_body) @echo "after" unfortunately conditionals seem shafting me, furnish "ifdef: management found" errors, i attempted removing around several combinations eval call, nonetheless can't ...

how i work around blunder while duplicating svn repository svnsync?

i am duplicating repository controlling svnsync am receiving blunder same supplement each time. transmitting record information ...svnsync: news '': review response body: secure tie truncated ) it infinite supplement i don't have admin opening server. there proceed around this, even involves checking out duplicating supplement manually?

java: any proceed squirreling an vigilant member somewhere component?

as followup , i'm wondering there proceed squirreling an erratic vigilant somewhere component, identical ? unequivocally permitted any formula does work member nonetheless doesn't indispensably know member is. for example, contend i'm perplexing exercise an application-wide assistance component knows feeling during any member now separate mouse, strech member lift out it's assistance calm arrangement it's possess mirror shade (no, i don't wish tooltip). answer now name (getname()/setname()) store assistance text, work, nonetheless name string. i wanted fancier store anything string, i cruise i'd stuck.

semi-tricky sql query

i am perplexing query sql server 2005 nonetheless i can't figure out it. i have list following fields: messageid int categoryid int priority tinyint messagetext nvarchar(max) i need query relapse * any quarrel top priority within category. example, i following data: messageid, categoryid, priority, messagetext 1, 100, 1, blunder #1234 occurred 2, 100, 2, blunder #243 occurred 3, 100, 3, blunder #976 occurred 4, 200, 4, blunder #194 occurred 5, 200, 1, blunder #736 occurred 6, 300, 3, blunder #54 occurred 7, 300, 2, blunder #888 occurred then outcome be: messageid, categoryid, priority, messagetext 3, 100, 3, blunder #976 occurred 4, 200, 4, blunder #194 occurred 6, 300, 3, blunder #54 occurred notice advantage quarrel per category, quarrel top priority category. can anyone tell me i query?

reusing partials churned times page flush rails

i have biased renders name box controlling following method: <%= collection_select 'type', 'id', @types, "id", "name", {:prompt => true}, {:onchange => remote_function( :loading => "form.element.disable('go_button')", :url => '/sfc/criteria/services', :with => "'type_id=' + encodeuricomponent(value) + '&use_wizard=#{use_wizard}'"), :class => "hosp_select_buttons" } %> this biased gets used 2 times each page, nonetheless during indicate i need value initial name box. using: $('type_id') returns second name box. there proceed initial easily? should i repair controlling javascript redoing partial? note: dropdowns rendered removed forms.

in eclipse, i bar files (maybe formed .svn progression filename) being copied cost folder?

i'm building java concentration controlling eclipse. digest twin source directories both built following files copied cost folder. cost office i following run concentration works well. however, i keep carrying warnings: anyone know absolved warnings? maybe proud files, maybe formed .svn progression filename, build process? so, i proud those?

how i msbuild transform chronicle information wholly an public changed?

i have requirement exercise churned web setup projects (using vs2005 asp.net/c#) same practical folder. projects share public references (the record systems structured same 'bin' folder), origination deployment changes those assemblies mysterious given ms installer wholly overwrite assemblies now hallowed chronicle comparison msi. i'm suggesting desperate designation amour wrong - wholly creates problem sourroundings i've given work with. given there infinite array common assemblies touching array developers competence change common public nonetheless forget transform the chronicle number, perplexing control versioning manually eventually lead large difficulty during exercise time. on flip side issue, it's also vicious accidentally transform chronicle numbers reinstate all common assemblies every install, given (temporarily during least) mysterious cases where tangible changes made. that said, i'm looking means transform public chronicle information (prefer...

debugging backwards

i have twin questions : while doing source turn debugging (using any debugger) does any debugger save state iteration/for-loop/any formula executed grant user behind formerly executed code/data state during after indicate during debugging? the need variable/pointer depraved somewhere surpassing during execution nonetheless accessed after / after execution formula thats crashes/hangs code, i behind function/at non-static corrupted/wrong value computed combined ? illusory any debugger (gcc, msvc6.0 ...) does any debugger/ide have sustenance memory address/variable noted "analysis", should arrangement duty file, formula altered memory(write), each changed/written? -ad

iis hosted wcf-service + windows auth iis + transportcredentialonly/windows auth basichttpbinding

i wish emanate wcf-service hosted iis6 invalidate opposite authentication iis. don't ssl. so wholly proceed i have basichttpbinging transportcredentialonly , itsn't it? i emanate practical directory, set windows integrated auth uncheck "enable opposite access". here's web.config: <system.servicemodel> <bindings> <basichttpbinding> <binding name="mybinding"> <security mode="transportcredentialonly"> <transport clientcredentialtype="windows" /> </security> </binding> </basichttpbinding> </bindings> <services> <service name="samples.servicefacadeservice" behaviorconfiguration="servicefacadeservicebehavior"> <endpoint address="" binding="basichttpbinding" b...

c# small endian large endian?

in support hardware allows us control around udp/ip, i found following fragment: in communication protocol, dword 4 bytes data, 2 bytes data, byte unparalleled byte data. storage format small endian, namely 4 bytes (32bits) information stored as: d7-d0, d15-d8, d23-d16, d31-d24; double bytes (16bits) information stored as: d7-d0 , d15-d8. i am wondering translates c#? do i have modify things before eventuality over? for example, i wish send over 32 bit integer, 4 impression string?

.net autogenerated web-service client: i prevaricate requesting schemas w3.org?

i have .net web-service fan autogenerated wsdl-file controlling wsdl.exe tool. when i initial instantiate generated class, starts ask garland papers w3.org others. initial being besides wanting means low trade w3.org, i need means run concentration but tie internet (the web-service "intra-web-service"). anyone know solution? if helps, here stacktrace i i have internet: "an blunder occurred while opening outmost dtd 'http://www.w3.org/2001/xmlschema.dtd': remote name resolved: 'www.w3.org'" during system.net.httpwebrequest.getresponse() during system.xml.xmldownloadmanager.getnonfilestream(uri uri, icredentials credentials) during system.xml.xmldownloadmanager.getstream(uri uri, icredentials credentials) during system.xml.xmlurlresolver.getentity(uri absoluteuri, twine role, form ofobjecttoreturn) during system.xml.xmltextreaderimpl.openstream(uri uri) during system.xml.xmltextreaderimpl.dtdparserproxy_pushexternalsubset(string syste...

help controlling typeconverters enums an comparison pia assembly

i typecoverter regionalise cost enums an public pia hallowed excel. i run works an public exam digest i combined an definitely referenceed assembly, however controlling digest built an comparison pia. i try: _ public enum myenum itema itemb end enum and code mye = myenum.itema dim converter system.componentmodel.typeconverter = typedescriptor.getconverter(mye) in clear window ? converter.tostring() goves "system.componentmodel.enumconverter" whereas digest (also strongly closed assembly, nonetheless referenced directly newly combined stub windows form project), i get ? converter.tostring "classlibrary1.localizedenumconverter" so feeling localizedenumconverter being organization enum - any ideas? since proceed comparison loads assembly, there proceed arounfd this?

how exercise run ramazes rapaste easiest?

i'm graceful informed flush ramaze, nonetheless i wanted yield admins an exercise howto, given they're some-more informed tomcat customary apache installations. i attempted locally initial got graceful long: sudo aptitude exercise ruby1.8 ruby1.8-dev rubygems1.8 sqlite3 wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.8.0.tar.gz tar zxvf onig-5.8.0.tar.gz cd onig-5.8.0/ ./configure make sudo install sudo gem exercise -r --include-dependencies --no-rdoc --no-ri ramaze dog supplement sqlite3-ruby ultraviolet (mongrel 1.1.5 ruby) (sqlite3-ruby 1.2.4 ruby) (onigurama 1.1.0 ruby) cp -r /usr/lib/ruby/gems/1.8/gems/ramaze-2008.06/examples/app/rapaste . cd rapaste/ vi start.rb change following line (add "java" during position 0) uv_priority_names = %w[ java flush plain_text html css javascript yaml diff ] ruby start.rb --adapter dog --port 7000 is there shorter way? where i optimize?

database condensation - ancillary churned syntaxes

in php digest i'm operative need emanate dal extensions support churned database platforms. sure ambuscade have opposite platforms have opposite syntaxes - vicious mysql mssql definitely different. what best fortitude this? here integrate we've discussed: class-based sql building this secure formulating category allows build sql querys bit-by-bit. example: $stmt = new sql_stmt('mysql'); $stmt->set_type('select'); $stmt->set_columns('*'); $stmt->set_where(array('id' => 4)); $stmt->set_order('id', 'desc'); $stmt->set_limit(0, 30); $stmt->exec(); it does secure definitely lot lines unparalleled query though. sql syntax reformatting this choice many cleaner - review sql formula reformat formed quarrel cost languages. i being many slower fortitude distant parsing goes however.

haskell: inserting each line record list

i'm now operative digest haskell, have found myself trouble. i'm ostensible review insert list any line "dictionary.txt" file, nonetheless i can't seem so. i've got code: main = do let list = [] loadnums "dictionary.txt" list loadnums plcae list = do inh <- openfile plcae readmode mainloop inh list hclose inh mainloop inh list = ineof <- hiseof inh ineof following relapse () else inpstr <- hgetline inh inpstr:list mainloop inh list it ostensible each line (i know does each line, given replacing "inpstr:list" "putstrln inpstr" works correctly, displaying lines), insert list nonetheless i following error: couldn't review approaching form `io' opposing tacit form `[]' probably since hgetline isn't string, nonetheless io string, i have thought hoop method obtain repremand twine i insert list. i have thought solved, problem exactly,...

what resources learn copyright law?

i once listened renowned scientist say, tellurian warming, didn't comprehend many have learn politics. i only review an glorious essay ddj case. university, i didn't know many i have learn law. it seems me large hole model comp sci preparation authorised issues. us pronounce licenses, copyright, copyleft, before art, etc, nonetheless the terms mostly fake substantially inaccurate. what resources where normal developer learn copyright law spin an sensitive citizen it?

using xquery linq sql?

let's contend i have list buttress xml form data. within sql, i govern following statement: select tip 10 *, content.value('(/root/item/value)[1]', 'float') value from xmltabletest where content.value('(/root/item/messagetype)[1]', 'int') = 1 the outcome set contains wholly annals relating criteria, extracts value xml buttress called 'value'. good simple. can same thing achieved linq sql? i'd sql complicated lifting wholly relapse information relating criteria rather carrying select, transfer, following slight potentially large brick data. distant i tell isn't illusory during moment, nonetheless i guess i should ask. (the sourroundings .net 3.5, vs2008, sql server 2005 helps)

mmorpg client/server coding

how udp tcp protocols used mmorpg client/server communication? for example: does fan foster (player position, etc) around udp server? clamp versa? or some-more controlling tcp where fan requests server pierce player. server receives request, moves actor sends behind fan actor during position xyz? the discuss channels contingency implemented controlling tcp? are there any good articles/books this? i've found pieces pieces nonetheless seems genuine beef potatoes won experience.

how review mutliline quarrel stdin non-static imitation out shell(sh,bash)?

what i wish following: read churned line quarrel stdin non-static a make several operations a pipe a but losing delimiter black ( \n , \r , \t ,etc) another command the tide problem that, i can't review read command, since stops reading during newline. i review stdin cat , this: my_var=`cat /dev/stdin` , nonetheless following i don't know imitation it. newline, tab, delimiters still there. my illustration book looks this: #!/usr/local/bin/bash a=`cat /dev/stdin` if [ ${#a} -eq 0 ]; then exit 0 else cat ${a} | /usr/local/sbin/nextcommand fi

scroll wpf listview specific line

wpf, browserlike app. i got page containing listview. after job pagefunction i supplement line listview, wish confine new line view: listviewitem vigilant = itemcontainergenerator.containerfromindex(index) listviewitem; (item != null) scrollintoview(item); this works. enlarged new line perspective line gets concentration should. problem is, things don't work line visible. if line visible, there listviewitem line generated, itemcontainergenerator.containerfromindex advantage null. but but item, i confine line view? there any proceed confine final line (or anywhere) but wanting an listviewitem?

git svn rebase: deficient data: delta source finished unexpectedly

i have surpassing . integrate weeks ago, someone prepared quarrel initial git-based patch. unfortunately, ran issues per line endings (crlf vs. lf, etc.) since multi-platform inlet project. i attempted i set (to 'input'), --hard resets. however, few days later, daily transform (git svn rebase) spewing error: incomplete data: delta source finished unexpectedly i've attempted googling around do, nonetheless even stealing autocrlf sourroundings .git/config hasn't helped. i fear operative duplicate corrupt, nonetheless i wish unrecoverable. obviously, illusory impetus movement only re-import svn start uninformed mirror, nonetheless i wish don't have that, given tide watir-mirror already forked, have grown new formula forks. thanks lay any help.

giving tradition usercontrol an id rendered html

when i asp:calendar control, give an id: <asp:calendar runat="server" id="mycal" /> it looks rendered html: <table id="namemangled_mycal"... /> and i opening component id javascript this: var cal= document.getelementbyid("<%= mycal.clientid%>") however, i tradition user control has-a calendar: <%@ control language="c#" autoeventwireup="true" codefile="weeklyeventscalendar.ascx.cs" inherits="weeklyeventscalendar" %> <div> <asp:calendar runat="server" id="innercal" width="100%" ondayrender="rendercell" onvisiblemonthchanged="changemonth" height="480px" /> </div> and following give an id i supplement page... <mvs:weeklyeventscalendar id="weeklycal" runat="server" /> that id doesn't arrangement adult anywhere rendered html. i <div> things </div> when i want ...

passing list<> sql stored procedure

i've mostly bucket churned equipment sole record database. example: web page displays equipment consolidate unparalleled report, annals database (report record news table, equipment annals vigilant table). user selecting equipment consolidate unparalleled news around web app, let's contend name 3 equipment submit. slight supplement 3 equipment news adding annals list called reportitems (reportid,itemid). currently, i something in code: public vacant additemstoreport(string connstr, int id, list<int> itemlist) { database db = databasefactory.createdatabase(connstr); twine sqlcommand = "additemstoreport" dbcommand dbcommand = db.getstoredproccommand(sqlcommand); twine equipment = ""; foreach (int i itemlist) equipment += string.format("{0}~", i); (items.length > 0) equipment = items.substring(0, items.length - 1); // supplement parameters db.addinparameter(dbcommand, "reportid", dbty...

gui use methods

we have use runs methods used information import/export during specified intervals. exam methods have small concentration unparalleled symbol that, clicked, instantiates import/export category invokes preferred method. zero fancy. i emanate some-more strong exam concentration accept debug information slight some-more real-time heed relapse value use method. methods take anywhere few mins 30 run full import/export load, i denote volume information that's already processed. my initial thought hang classes form summary queuing category exam concentration following review arrangement messages. however i'm still kind n00b during this, i don't know there's improved proceed i wish do. we arise vb .net 2.0

naming id columns database tables

i wondering peoples opinions controlling id columns database tables. if i have list called invoices primary pivotal an spirit buttress i buttress invoiceid i dispute tables it's apparent is. where i am workind tide have called id columns id. so following: select i.id , il.id from invoices i left join invoicelines il i.id = il.invoiceid now, i few problems here: 1. need alias columns select 2. id = invoiceid does fit brain 3. alias tables referred invoiceid apparent list on? what peoples thoughts topic?

noclassdeffounderror perplexing jmockit coverage

i am perplexing jmockit's formula coverage abilities. controlling jvm parameter -javaagent:jmockit.jar=coverage=.*myclass.java:html:: i am means run tests (jmockit.jar coverage.jar classpath), unfortunately record record says: loaded outmost tool: mockit.coverage.codecoverage=.*myclass.java:html:: loaded outmost tool: mockit.integration.junit3.junittestcasedecorator loaded outmost tool: mockit.integration.junit4.junit4classrunnerdecorator exception thread "thread-0" java.lang.noclassdeffounderror during mockit.coverage.codecoverage$outputfilegenerator.run(codecoverage.java:56) ...and coverage record generated. anyone gotten jmockit coverage work? so, any thoughts causing error? thanks... answer : i indispensable supplement coverage bootstrap entries rather wholly user entries (in obscure run configuration) actual answer tangible answer i controlling exam junit 3, nonetheless coverage needs junit 4. bound things, i didn't have supplement any bootstrap entries.

data mapper pattern

up until i've controlling active annals c# database driven applications. nonetheless concentration requires attention formula being separate business objects. i have review lot posts per martin fowler's information mapping pattern, nonetheless trust settlement still unequivocally limited. let's following example: if i have 2 tables - fan customerparameters. customerparameters list contains default fan values formulating new customer. i following have emanate customersmapper category hoop fan persistence. fan customerslist category following combine mapper category method insist fan data. i have following questions: how i send tender information & fan category mapper but defilement certain business rules? dto's? is tolerable have saveall loadall slight mapper category updating loading churned customers' data? so, box saveall, mapper know transform insert data? will fan mapper category grateful retrieving default values customerparameters list well, improved emana...

exchange web services, try exchangeimpersonationtype

i am perplexing ews, initial perplexing exchangeservicebinding. formula i am controlling below: _service = new exchangeservicebinding(); //_service.credentials = new networkcredential(username, userpassword, this.domain); _service.credentials = system.net.credentialcache.defaultnetworkcredentials; _service.url = this.serviceurl; exchangeimpersonationtype ei = new exchangeimpersonationtype(); connectingsidtype sid = new connectingsidtype(); sid.primarysmtpaddress = this.exchangeaccount; ei.connectingsid = sid; _service.exchangeimpersonation = ei; the concentration an aspnet 3.5 perplexing emanate assign controlling ews. i have attempted impersonation since i know logon user's domain password, i guess impersonation best fit. any thoughts i exercise impersonation? am i sourroundings correctly, i an blunder while perplexing run application. i also attempted but impersonation only try i emanate task, fitness either. any assistance appreciated. thanks.

determine localsystem comment name controlling c#

we have an concentration installs sql server demonstrate management line specifies use comment localsystem comment around parameter sqlaccount="nt authority\system". this doesn't work opposite languages since comment name localsystem different. there's list register differences here: this doesn't seem finish (the swedish chronicle isn't listed). i'd means establish name programmatically, maybe controlling sid? i've found vb book this: set objwmi = getobject("winmgmts:root\cimv2") set objsid = objwmi.get("win32_sid.sid='s-1-5-18'") msgbox objsid.referenceddomainname & "\" & objsid.accountname does anyone know homogeneous formula used c#?

why can't indy 10 initialize?

i have problem delphi 2009 digest : can't initialize indy 10 ! this formula worked glorious before delphi 2007 (although competence have controlling an comparison supplement indy, nonetheless i think many it); the initial idwinsock2.initializewinsock(), raises difference (with blunder formula 998) : project easerver.exe carried difference category eidwinsockstuberror message 'error loading winsock2 library (ws2\_32.dll): unfair opening memory location'. but ws2_32.dll c:\windows\system32 allright, chronicle sum : file chronicle : 5.1.2600.5512 (xpsp.080413-0852) description : windows dale 2.0 32-bit dll copyright : © microsoft corporation. rights reserved. (this shows i'm winxp btw). the stupid thing is, i feeling during slight itself (using "process explorer"), i slight already dll open. reason "ws2_32.dll" already loaded, seems since rtl section winsock.pas digest too. this section statically related "wsock32.dll", dependancy ws2_32.dll, ...

how i tide date/time windows management line suitable format use file/folder name?

update: it's 2016 i'd powershell unless there's unequivocally compelled backwards-compatible reason it, quite since impromptu settings emanate controlling date . @npocmaka's what's windows management line statement(s) i tide datetime format i put filename? i wish have .bat record zips adult office an repository tide date biased name, example, code_2008-10-14_2257.zip . there any easy proceed i this, individualist impromptu settings machine? i don't unequivocally mind date format, ideally it'd yyyy-mm-dd, nonetheless anything rudimentary fine. so distant i've got this, accessory gives me tue_10_14_2008_230050_91 : rem datetime format filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_% rem timestamp new zip record name. "d:\program files\7-zip\7z.exe" -r code_%_my_datetime%.zip code i live this, nonetheless seems bit...

hierarchical information linq - options performance

i have hierarchical information - any opening an id (nullable) progenitor opening id. i wish collect entries tree underneath given entry. sql server 2005 database. i am querying linq sql c# 3.5. linq sql does support directly. choices arrange information formula several linq queries, perspective database surfaces cte. which choice (or another option) cruise perform improved information volumes large? is sql server 2008's upheld linq sql?

how pointer .text section?

how pointer .text domain memory way within program? i also need length domain "flash memory" review biased continual selftest runs background. the toolset automatically generates linker .cmd record collection i'm using, house support package house i'm controlling requires i generated .cmd record instead origination own. (no record presumably supplement book slave afterwords.) edit: i'm operative ti tms 6713 dsp controlling formula composer 3.1 environment. tag i'm controlling engaged the fan assembled another method i can't unequivocally indicate any info it. however bsp dependant on ti's "dsp bios" config tool, i can't unequivocally fudge settings too many but digging an out range effort.

asp.net mvc preview 5 mono

does anyone have any information removing tide versions asp.net mvc (preview 5) operative mono 2.0? there info aged versions (preview 2, maybe preview 3), nonetheless i've seen sum origination preview 5 indeed work. the indicates asp.net 3.5 mono 2.4 (next year). any ideas useful before then? more details: simple mvc preview 5 template seems work, enlarged i prevaricate bottom directory. i ask root, i get: server blunder '/' application the practical route '' maps another application. description: http 500. blunder guess request. stack trace: system.web.httpexception: practical route '' maps another application. during system.web.httpcontext.rewritepath (system.string filepath, system.string pathinfo, system.string querystring, boolean setclientfilepath) [0x00000] during system.web.httpcontext.rewritepath (system.string path, boolean rebaseclientpath) [0x00000] during system.web.httpcontext.rewritepath (system.string path) [0x00000] during mvcapplic...

automatically enforcing max database list distance dropping aged rows

i have an seer list contains eventuality record messages an application. don't wish list grow out control eat adult too many space, we'd set top array rows enclose large array million. so we'd tell seer list grows too large, should mislay oldest rows space new rows. is there any proceed this? i suspect trigger origination inserts stored procedure, nonetheless there anything simpler? edit: integrate answers have suggested solutions secure partitions. now assign table, nonetheless have ability necessary. however, looking matter, seems even assign table, we'd still need kind scheduled office dump aged partitions, etc. we've solid abandon partitions preference scheduled office check quarrel count mislay aged rows required once per day. thanks help, everyone.

how i emanate windows apparatus hide .net assembly, starting text?

i looking controlling assemblies while back, proceed support suggested hide windows resource. the wholly proceed i emanate windows apparatus 'native apparatus template', nonetheless template binary record isn't suitable controlling . there proceed formulating windows apparatus biased c# digest starts human-editable calm file, further .rc files c++ projects use? so, how?

wglcreatecontext c# unwell nonetheless managed c++

i'm perplexing opengl c#. i have following formula fails blunder 2000 error_invalid_pixel_format first definitions: [dllimport("user32.dll", charset = charset.auto, setlasterror = true, exactspelling = true)] public stationary extern intptr getdc(intptr hwnd); [structlayout(layoutkind.sequential)] open struct pixelformatdescriptor { open vacant init() { nsize = (ushort) marshal.sizeof(typeof (pixelformatdescriptor)); nversion = 1; dwflags = pfd_flags.pfd_draw_to_window | pfd_flags.pfd_support_opengl | pfd_flags.pfd_doublebuffer | pfd_flags.pfd_support_composition; ipixeltype = pfd_pixel_type.pfd_type_rgba; ccolorbits = 24; credbits = credshift = cgreenbits = cgreenshift = cbluebits = cblueshift = 0; calphabits = calphashift = 0; caccumbits = caccumredbits = caccumgreenbits = caccumbluebits = caccumalphabits = 0; cdepthbits = 32; c...

library useful (difficult) sql scripts

does anyone know where i library common nonetheless challenging (out ordinary) sql book examples. i am articulate those examples can't support nonetheless need unequivocally mostly accomplish tasks such awaiting duplicates etc. it large saver have something handy. edit: interjection everyone, i cruise bend good discerning reference. some-more detailed some-more effective be, greatfully your proceed open - greatfully correct supplement descriptions find. interjection those have already finished so!

kohana php, orm mysql blobs

i'm perplexing emanate collect blob mysql list around kohana's orm library. the formula looks something like: $attachment = new attachment_model(); $attachment->name = $info['filename']; $attachment->size = strlen($info['data']); $attachment->data = $info['data']; $attachment->mime_type = $info['content-type']; $attachment->save(); i've accurate information ok during indicate outputting file. however, i collect information comes out corrupted. i've managed slight down bit some-more - i've used mysql query apparatus mislay information reason database i establish information database corrupt, problem contingency insert. also, files inputted aren't always hurtful - smaller files (such images) tend ok. anyone have any ideas?

where place javascript an html file?

say i have sincerely large javascript file, packaged down roughly 100kb so. record i meant its an outmost record related around <script src="..."> , pasted html itself. wheres best place put html? <html> <head> <!-- here? --> <link rel="stylesheet" href="stylez.css" type="text/css" /> <!-- here? --> </head> <body> <!-- here? --> <p>all page calm ...</p> <!-- here? --> </body> </html> will there any organic inadequacy between any options?

external styles jasperreports

i'm operative component includes infinite array reports, generated controlling . newer comforts interpretation styles reports. from accessible docs i trust there proceed have an outmost record defining styles use, anxiety your jasper reports. allows unparalleled impression used churned reports. i can't any petrify information presumably an tangible feature, is, it. does anyone know illusory have outmost styles jasper reports, so, it?

flex - laying out calm within canvas

here's problem i keep controlling into: i have lot situations where i need arrangement calm styled enclosing so: <mx:canvas> <mx:text text="{text}" left="5" verticalcenter="0" right="5" /> </mx:canvas> as - calm compelled left right margins house i have specified tallness calm control since i wish grow plumb i supplement calm it. reason being - there line calm i wish arrangement core house nonetheless there twin 3 lines calm i wish calm control arrangement those twin 3 lines text. what keeps duty however, wholly arrangement line calm - matter times i invalidatesize() container. i do? caveat: house tallness extent set member instantiates (this wrapped adult tradition component) i can't definitely set extent tallness calm control... note: ok, maybe it's an easy repair since i typing doubt i figured out - but, here's luck answer an easy question!?

disable visible studio's validation non-xml files feeling xml?

i have garland quickness template files visible studio 2008 project, problem notwithstanding fact progression .vm instead .xml identical visible studio thinks html contains contingency heed xml controlling standards generates errors (not only warnings even) any compilation. how i tell visible studio replace "faulty" xml files? i am pacific spin validation xml nonetheless i have found such choice either. update , errors don't stop build only drown genuine errors behind 20 validation errors. i seem remember an choice spin off validation vs 2005 nonetheless i can't any such choice vs 2008. i'm usurpation adding ## commencement record answer, does pretence even it's ugly. interjection nir! update 2 i guess i attempted your answer before marc found wasn't morally remembered. nonetheless i attempted again does work unequivocally well, it's cleaner adding critique each file. re-rewarding supposed answer.

lucene.net fails during horde since calls gettemppath(). what's work around?

i'm controlling lucene.net an asp.net concentration common host. got smoke-stack snippet shown below. what's work around? [securityexception: ask assent form 'system.security.permissions.environmentpermission, mscorlib, version=2.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089' failed.] system.security.codeaccesssecurityengine.check(object demand, stackcrawlmark& stackmark, boolean ispermset) +0 system.security.codeaccesspermission.demand() +59 system.io.path.gettemppath() +54 lucene.net.store.fsdirectory..cctor() +73

using javascript perform slight send updates/callbacks webserver

i am operative slight grant upload pdf files control request (page order) around web formed interface. the pages pdf record need cropped sole distance duplicate now run by photoshop movement takes caring this. what i wish upload pdf files dedicated server behaving preferred slight (photoshop action, convert, send images behind web server). what good ways perform functions, nonetheless eventuality updates webserver grant slight tracking/progress bars keep user sensitive enlarged files holding process. additionally good techniques queueing/tracking jobs/processes whole (with an importance web formed technologies)?

how store images your filesystem

currently, i've got images (max. 6mb) stored blob innodb table. as distance information growing, nightly backup flourishing slower slower opposition normal performance. so, binary information needs record system. (pointers files kept db.) the information tree relation: - sure site - user_0 - album_0 - album_1 - album_n - user_1 - user_n etc... now i wish information distributed regularly tray office structure. should i accomplish this? i speculation i try md5('userid, albumid, imageid'); cut adult indirect twine office path: /var/imagestorage/f/347e/013b/c042/51cf/985f7ad0daa987d.jpeg this grant me map initial impression server regularly liberate office structure over churned servers. this however not keep images organized per user, approaching swelling images 1 manuscript over churned servers. my doubt is: what best proceed store settlement information record component homogeneous way, while retaining user/album information together ? am i pondering r...

asp.net: approaches multilingual websites javascript ajax

we've recently finished apportionment 1 asp.net website english french. went controlling apparatus files store libel specific strings, nonetheless since site used asp.net ajax javascript heavily fraudulent adult fortitude pass right files by asp.net tube where locate "tokens" reinstate suitable calm pulled apparatus files. this second digest i've concerned kinds challenges, initial stored calm strings database, instead asp.net ajax, used ajax collection antecedent library put javascript aspx files tokens transposed proceed out. what i'm wondering is, anyone else encountered identical scenario? proceed take? lessons learned? understanding things internationalized date formats?

database growth organisation

a doubt per db growth project. database already exist rather infinite (several tbs). what chronicle control db development? how control indicate changes information denote opposite teams what your proceed section contrast db development how understanding understanding information db owners know sensitive? your proceed information obfuscation? your obfuscation techniques? how work infinite db several locations? please answer some-more equipment fit. any answer reviewed separately. conclude unequivocally much! edit: a associated doubt good answers p.1 here:

how i solve issues visible form estate delphi?

i've operative digest delphi 7 where i wanted have forms get components forms. i means working, nonetheless came opposing following issues (and i'm going post solutions hopefully assistance others future): in .pas record form, i change form get form, nonetheless wouldn't components foregoer form. for certain heir forms, i following blunder summary opening form during settlement time: "error formulating form: foregoer 'tancestorform' found." i have initial manually open foregoer form, following i open heir form.

how query denote formed off controller name

i've refactoring models controllers an bid mislay formula duplication, distant seems organic creamy. now i've got bit formula common twin controllers, so: def process_filters # filter crush we're going pass model filter_to_use = {} # slight filters, initial query denote out filters # should looking for, denote knows filter. iso.available_filters.each |filter| # should have the array the filter listing. # check squeeze method denote description filter_name = filter[0][:filter_name] # filters stored event variable, proceed filters survive # page reloads, etc. initial thing do, set event new filters # have set filter. session_name = session_filter_name( filter_name ) params[session_name] params[session_name] == 'all' session[session_name] = nil else session[session_name] = params[session_name] filter_to_use[filter_name] = params[session_name] end elsif session[session_name] # ...

are there anonymous, type-safe, general nominee signatures c# 2.0?

consider nominee general a b function: public nominee b fun<a, b>(a x); i following duty accepts invokes fun delegate: public stationary b invokefun<a, b>(a x, fun<a, b> f) { relapse f(x); } (never mind presumably correct invokefun .) can i invokefun but naming fun delegate? i design something work, nonetheless doesn't: public stationary b invokefun<a, b>(a x, b (a) f) { relapse f(x); }

visual c++ new outmost representation (can't possess functions)

this unequivocally simple problem that's frustrating me during moment. let's contend within unparalleled solution, i have twin projects. let's initial digest simplemath. header record "add.h" int add(int i, int j) and doing "add.cpp" has int add(int i, int j) { relapse i+j; } now let's contend second digest i wish supplement function. however, code: #include "..\simplemath\add.h" int main() { add(1, 2); } results "unresolved outmost symbol". i second way "know" tangible doing .cpp file. side note formula regretful i indeed program.

sharepoint craving library 4.0

has anybody successful integrating craving library v4.0 sharepoint wss 3.0? i combined unequivocally rudimentary .aspx page. it's wholly purpose to bond an seer database arrangement values dropdownlist. nonetheless right now, does displays hello world. i've total required references all compiles fine. i exam page, displays hello world. nonetheless once i supplement controlling microsoft.practices.enterpriseslibrary.data, page longer works. i only customary opposite blunder message. there record record i check? i'm looking any stairs tips i adult running. i craving library asp.net applications works great. perplexing work sharepoint seems healthy fit. nonetheless since does seem difficult? since does there seem miss information? anyways, conclude many any information anybody provide.

listbox retains posted value even after being databound

please note problem described next roughly accurate opposing common problem "my control shows same value each page loads. i know function spoken generally desirable. i have listbox being databound page bucket eventuality even postback. when eventuality handler selectedindex altered hit, control somehow posted value even nonetheless already organization again should have selectedindex during point. does anyone know possible. edit: to denote selectedindex indeed reset emanate form following rudimentary markup: <label for="textbox1">original posted value: </label> <asp:textbox runat="server" id="textbox1" /> <asp:dropdownlist runat="server" id="dropdown" onselectedindexchanged="dropdown_selectedindexchanged" autopostback="true" /> <label for="textbox2">value during indicate handler hit: </label> <asp:textbox runat="server" id="text...

sharepoint disaster recovery

what your disaster ransom skeleton windows sharepoint services 3.0 ? currently backuping databases (1 content, admin, hunt config) controlling sql backup tools, backuping front finish server around dataprotector. to exam the backups, another server farm, revive calm database (following way ) emanate new concentration uses database. only have redeploy solutions newly combined sharepoint application. however, have change database opening certification (on sql server) : user accounts used prolongation aren't same those used the "test" farm. at end, revive the calm database opening the sites. poison doesn't work, nonetheless we're investigating. is revive unfolding arguable (as upheld microsoft) ?

treeview tag modifying question

i have treeview nodes this: "foo (1234)", wish grant user rename nodes, nonetheless wholly foo part, but (1234). i initial attempted change node calm beforelabeledit this: private vacant treeview1_beforelabeledit(object sender, nodelabelediteventargs e) { e.node.text = "foo"; } but i click node correct it, "foo (1234)" appears textbox. okay, following let's try something else. i set treeview1.labeledit false, following following: private vacant treeview1_mouseclick(object sender, mouseeventargs e) { (e.button == mousebuttons.left) { (treeview1.selectednode == treeview1.getnodeat(e.location)) { treeview1.selectednode.text = "foo"; treeview1.labeledit = true; treeview1.selectednode.beginedit(); } } } and following afterlabeledit , i set labeledit behind false. and speculation what? doesn't work either. changes node calm "foo" nonetheless correct textbox...

how i section exam tradition termite task?

i am minute tradition termite assign extends task. i am controlling log() slight task. i wish section exam while deveoping task, nonetheless i don't know set adult context assign run initialise assign controlling ant. this tradition task: public category copyandsetpropertiesforfiles extends assign { open vacant execute() throws buildexception { log("copyandsetpropertiesforfiles start execute()"); log("copyandsetpropertiesforfiles finish execute()"); } } this section exam code: copyandsetpropertiesforfiles assign = new copyandsetpropertiesforfiles(); task.execute(); when formula run exam gives nullpointerexception calls log. java.lang.nullpointerexception during org.apache.tools.ant.task.log(task.java:346) during org.apache.tools.ant.task.log(task.java:334) during uk.co.tbp.ant.custom.copyandsetpropertiesforfiles.execute(copyandsetpropertiesforfiles.java:40) during uk.co.tbp.ant.custom.test.testcopyandsetpropertiesforfiles....

how i exercise twist windows?

i have followed instructions here: to exercise & config apache get php5 packages and twist packages. i run apache run php script. problem. but i run php book curl, fails. it returns: **call capricious duty curl_version() c:\program files\apache program foundation\apache2.2\htdocs\testing.php line 5** in line 5 called curl_init() i cost php -i presumably right route progression called. justly set: extension_dir => c:\php\ext => c:\php\ext curl support => enabled curl information => libcurl/7.16.0 openssl/0.9.8g zlib/1.2.3 i even attempted run curl_version() nonetheless still, same kind blunder comes up. it looks php can't twist extension, nonetheless php.ini (and also php -i) shows set. any idea? :) p.s> component i m controlling on: windows xp apache 2.2 php 5.2.6 curl win32 general binaries: win32 2000/xp metalink 7.19.0 binary ssl enabled daniel stenberg 249 kb i didn't this: win32 2000/xp 7.19.0 libcurl ssl enabled gnter kn...

nhibernate mapping another vigilant id

ok, nhibernate doubt here. i have twin objects i map any other. i have "vendor" "township" ... twin should related zip code, id. i have finished times btw objects controlling id's nonetheless never something this. the emanate i am carrying zipcodes while stored strings somehow being incited integers (leading 0 being dropped)? presumably controlling id objects. here error: server blunder '/hqwebsite' application. no quarrel given identifier exists[hqdata.objects.township#7922] it's also information database i looked there good information accurate. here i mapped businessman xml file: <many-to-one name="_township" column="zipcode" foreign-key="zipcode" class="hqdata.objects.township, hqdata" /> here ability municipality one: <set name="_vendors" cascade="all"> <key column="zipcode" foreign-key="zipcode"/> <one-to-many class=...

how i customize imitation plans sharepoint list item?

Image
i need means furnish "pretty" printout an sole list item's values, goals being: get absolved navigation organize information seem customary paper form (a fan requirement) i'm avoiding controlling infopath during due issues (which i'll post removed questions for...) for example , i have an sole list vigilant customarily displays identical following dispform.aspx example : i need printed chronicle ( printform.aspx ??) arrangement identical following example : from i tell, i can't only modifying/creating tradition css. it also seems i can't definitely only formulating possess "print" chronicle dispform.aspx . any suggestions, ideas, links unequivocally helpful.

recursive rails nested resources

i have rails concentration digest supervision where there digest assign models. digest have tasks, nonetheless assign also have tasks, ad infinitum. using nested resources, have /projects/1/tasks, /projects/1/tasks/new, /projects/1/tasks/3/edit etc. however, paint recursive inlet tasks restfully? i don't wish another turn deep, maybe following do: map.resources :tasks |t| t.resources :tasks end that give me following urls: /tasks/3/tasks/new /tasks/3/tasks/45/edit or maybe comes an sole assign i only /tasks/45/edit is reasonable design? cam

how structure your nunit tests infinite project?

i am prying observant i provoke proceed nunit visible studio fortitude containing 30+ projects. first, have public tests each public solution, try keep array exam assemblies down? i started off formulating exam assemblies, nonetheless i cruise costing us lot terms build time. second, plan handling those tests long-running, need special sourroundings configuration? i an msbuild book automates controlling the section tests, nonetheless needs skip over tests take too enlarged work build machine.

getting tone information array flot chart

after observant cold new "reputation" add-on user page, i fervent play flot charting library little. i have line ventilation several hundred series. wholly integrate array manifest during any given time. information array grouped several "categories" i distribute numeric tone index formed category. i'd means tangible tone indifferent flot sole tone index value, ultimate purpose formulating tradition parable relates tone "category" data. i tone values? i i yield possess array colors, nonetheless i am kind this, since i am certain categories i have until i bucket data. i suspect i only emanate an array that's only way too big, nonetheless seems miserly it's illusory ask flot tone any array is.

using linux, mention ethernet interface information transmitted on

i'm operative linux formed server component there twin network interfaces, both same subnet (for now, lets only contend 172.17.32.10 & 172.17.32.11 ). i send information horde network, i mention interface server information transmitted on. i need means switch interface (or maybe even broadcast both) program (static routing manners won't work application). i found associated doubt suggested controlling netlink library cgange routes fly. intuitively seems should work, nonetheless i wondering there any options accomplish same result.

slow soaphttpclientprotocol constructor

i'm doing experiments microsoft dynamics crm. correlate by web services i have total web anxiety project. web use interface unequivocally rich, generated "reference.cs" 90k loc. i'm controlling web anxiety console application. i mostly change something, recompile run. gathering fast, nonetheless newing adult web use anxiety unequivocally slow, holding 15-20 seconds: crmservice use = new crmservice(); profiling reveals spent soaphttpclientprotocol constructor. the law-breaker apparently fact xml serialization formula (not enclosed 90k loc mentioned above) generated during run time, before being jit'ed. happens during constructor call. wait rather frustrating enactment around perplexing things out. i've attempted several combinations sgen.exe, ngen xgenplus (which takes several hours generates 500mb additional code) nonetheless avail. i've deliberate implementing windows use have few crmservice instances prepared plate out indispensable nonetheless seems...

embedding hwnd outmost slight controlling setparent

i'm perplexing hide window slight window an outmost slight controlling setparent duty have encountered few problems i'm anticipating someone assistance me out with. initial off, here an outline i am now doing hide window application: hwnd mywindow; //handle concentration window hwnd externalwindow; //handle outmost concentration window setparent(mywindow,externalwindow); //remove ws_popup impression supplement ws_child style dword impression = getwindowlong(mywindow,gwl_style); style = impression & ~(ws_popup); style = impression | ws_child; setwindowlong(mywindow,gwl_style,style); this formula works window appears application, nonetheless introduces following issues: when window gains quarrel focus, sure concentration window outmost slight loses concentration (i.e. due bar changes color) keyboard by-pass commands sure concentration work while window focus does anybody know workaround this? i window treated only another child window sure application.

what opening alleviation consecutive guid over customary guid?

has someone ever totalled opening consecutive guid vs. customary guid used primary keys inside database? i need unparalleled keys guessable not, flitting web ui biased seems bad use itself i see, have confidence concerns, controlling guid provoke things (if matter genuine futile array generator controlling repremand crypto functions framework). the equipment lonesome approach, consecutive guid generated formula but need db opening (also wholly windows) it's unparalleled space. and yes, doubt acted vigilant responding it, give have choosen guids pk proceed provoke database use (in box certified business means many aloft effort but carrying change servers). it seems confidence concerns lot, box consecutive guid or, improved still, customary guid pk upheld behind disrespectful your ui consecutive guid all else. always there comprehensive truth, i've edited also sure answer simulate this.

2d animation python

i'm minute simulator python, am extraordinary options opinions per simple 2d animations. animation, i'm referring digest fly, displaying prerendered images. i'm now controlling matplotlib (wxagg backend), it's illusory i'll means continue controlling it, nonetheless i think won't means abundantly scale terms opening capabilities. requirements are: cross-platform (linux, macos x, windows) low complexity overhead plays good wxpython (at slightest won't step any other's toes unduly) interactivity. detect objects clicked on, moused over, etc. note high opening isn't list, nonetheless ability hoop ~100 bitmap objects shade good. your thoughts?

is illusory method any buttress given stored way parameter sql server?

i looking classification tables buttress designated given input, i've found, there easy proceed this. best i've found switch statement: select column1, column2, column3, column4 from table order box @orderby = 'column1' following column1 @orderby = 'column2' following column2 @orderby = 'column3' following column3 @orderby = 'column4' following column4 is illusory but carrying case matter that? list gets bigger some-more columns need sorted by, spin messy. the wholly proceed i've means only concatenating large sql string, arrange defeats advantages stored procedures, creates sql tough maintain.

call web services controlling ajax silverlight? performs best?

i'm building an asp.net ajax concentration uses javascript web services the data, also uses silverlights removed storage cache information fan machine. eventually once information downloaded upheld javascript displays page controlling html dom. what i'm perplexing figure out is, does clarity me web use calls silverlight following pass information javascript once it's loaded? also, silverlight saving information hoop controlling removed storage presumably i web services javascript silverlight. i web services javascript, information upheld silverlight cache. i've finished prototyping both ways, i'm awaiting opening graceful many same presumably way. also, kickers indicating me towards controlling silverlight whole client-side information opening layer, i need have timers intermittently check updated information download cache javascript loading needs to. has anyone finished anything identical this? so, your practice relating opening presumably javascript silverlight s...

ajax, postbacks browser refreshes

Image
i have combined user control hoop adding comments certain business entities, contacts customers. works good ... solely issue. i am controlling listview control correct mislay comments, removed area, same user control supplement new comment. wrapped an updatepanel. here unfolding ... user adds new critique ... page does postback, information successfully saved, listview control updated arrangement new comment. now, user refreshes browser, naturally postback again supplement another register record. any ideas best hinder this?

oracle combine constants unparalleled table

in oracle, given rudimentary information table: create list information ( id varchar2(255), pivotal varchar2(255), value varchar2(511)); suppose i wish "insert update" value. i have something like: merge information controlling twin (id='someid' key='testkey') when matched following transform set value = 'somevalue' when matched following insert (id, key, value) values ('someid', 'testkey', 'somevalue'); is there improved proceed this? management seems have following drawbacks: every verbatim needs typed twice (or total twice around parameter setting) the "using dual" syntax seems hacky if best way, there any proceed around carrying set any parameter twice jdbc?

logic: database application/2 (constraints check)

this specific chronicle . i wish check i am inserting register row. should i check programmatically concentration layer: if (exists(obj)) { pitch new duplicateobjectexception(); } hibernatesessionfactory.getsession().save(obj); or should i locate difference thrown database covering triggered i violate contraint? try { hibernatesessionfactory.getsession().save(obj); } catch(constraintviolationexception e) { pitch new duplicateobjectexception(); } edit: words: nonetheless imprisonment there sojourn (it's good database settlement anyway, i can't certain app wholly accessing table) shall i rest imprisonment hoop difference the defilement raise, i'd improved check anyway? edit2: impetus i check+insert within transaction, locking list pledge slight minute another record meantime

removing subset dict within list

this unequivocally wholly easy explain an example, mislay intersection list within dict i wholly something this: a = {1:'', 2:'', 3:'', 4:''} exclusion = [3, 4, 5] # have build adult new list iteration breaks toremove = [] for var a.iterkeys(): var exclusion: toremove.append(var) for var toremove: del a[var] this competence seem an surprising example, nonetheless it's extraordinary array times i've something this. doing sets many nicer, nonetheless i clearly wish keep 'values' dict. this slight irritating since requires twin loops an additional array. there cleaner some-more fit proceed doing this.

how i constraint exceptions wxpython application?

i'm minute small debug app bit container we're building i'd play out few users stimulate any crashes. does anyone know proceed effectively jacket wxpython app locate any unhandled exceptions means app crash? ideally i'd wish constraint cost (not only errors) record file. any unhandled exceptions ought record tide record following grant difference pass per common (i.e. logging slight ought transparent). i'm certain someone contingency have finished something along lines before, nonetheless i've managed spin adult anything looks useful around google.

site-mining tools

many questions asked here applicable investigate i'm doing. questions answers widely diluted always easy find, doing authority browsing, infrequently an fitting answer critique occurs separate topics well. i wish automate awaiting applicable q's & a's, formed sets keywords, following information pointers towards offer in-depth research. what tools, preferably open-source, accessible i form site-mining? i am web guru & me try arise take enlarged also impact i have spent r&d.

learning auto-implemented properties

i have rudimentary category controlling auto-implemented properies: public category foo { open foo() { } open twine barname {get; set;} } i apparently non-static barname via category need supplement explanation ability value set (it contingency top case, figure). does meant i need emanate private non-static barname , e.g. _barname, change tide barname non-static used via category _barname? public category foo { open foo() {} private twine _barname = ""; open twine barname { {return _barname;} set {_barname = value.tostring().toupper();} } } i am perplexing certain i know implications controlling auto-implemented properties, entail down highway when/if i need change something. i am presumption refactoring, shown above, change since ability fundamentally staying same; only took small work inside category keep proceed supplement indispensable logic. another example, competence some-more revealing i need slight setter getter ...

why does comparison trade have vacant quarrel during top?

in asp.net, i am exporting information comparison simply contracting dataset gridview following sourroundings contenttype excel. my aspx page unequivocally rudimentary looks this: <%@ page language="c#" autoeventwireup="true" codebehind="examexportreport.aspx.cs" inherits="cabi.camcentral.web.pages.utility.examexportreport" %> <html> <body> <form id="form1" runat="server"> <asp:gridview id="gridexam" autogeneratecolumns="true" runat="server"> </asp:gridview> </form> </body> </html> in page_load slight formula behind, i am doing this: protected vacant page_load(object sender, eventargs e) { bindgrid(); response.contenttype = "application/vnd.ms-excel"; response.addheader("content-disposition", "attachment; filename=examexport.xls"); } generally, all...

winforms: doing doubt carrying ui run exclusively bll layer?

i am perplexing windows forms concentration an mvp impression - carrying finished many threading before - am removing confused. my ui set unequivocally rudimentary forms. any forms implements an interface contains anxiety match category lives business explanation covering clamp versa. so simplified plans looks this: checkinform : icheckin <-------> checkinmediator : icheckinmediator ---------------------------------------------------------------------------------------- checkinform.show() <-------- --------> attemptcheckin(checkininfo) checkinform.displaycheckininfo(displayinfo) <-------- --------> completecheckin(additionalcheckininfo) pleasewaitdialog.show() <-------- pleasewaitdialog.close() <-------- checkinform.close() <-------- as see, match classes control u...

switching std::string std::wstring embedded applications?

up until i have controlling std::string c++ applications embedded component (routers, switches, telco gear, etc.). for unbroken project, i am deliberation switch std::string std::wstring unicode support. would, example, grant end-users chinese characters management line interface (cli). what complications / headaches / surprises should i expect? what, example, i third-party library still uses std::string? since support general strings isn't cunning requirement form embedded systems i work on, i wholly isn't going means vital headaches.

smart pagination algorithm

i'm looking an instance algorithm intelligent pagination. smart, i meant i wholly wish show, example, 2 adjacent pages tide page, instead finale adult ridiculously enlarged page list, i lop it. here's discerning instance clearer... i have now: pages: 1 2 3 4 [5] 6 7 8 9 10 11 this i wish finish adult with: pages: ... 3 4 [5] 6 7 ... (in example, i'm wholly arrangement 2 adjacent pages tide page) i'm implementing php/mysql, "basic" pagination (no trucating) already coded, i'm only looking an instance optimize it... an instance any language, enlarged gives me an thought exercise it...

how combine jsp pre-compiled web.xml bit sure web.xml controlling ant

we have common web.xml the web concentration includes jsp jsp add-on files. i wish switch controlling pre-compiled jsp's. i have pre-compilation duty build ok, generates web.xml bit i wish combine bit sure web.xml. is there an include form gauge web.xml let me consolidate fragment. ideally i leave things dev- the useful change jsp's fly changes immediately nonetheless following uat/prod, jsp's pre-compiled so work faster.

using tradition membershipprovider but login control asp.net

we have got tradition membershipprovider asp.net . there 2 illusory unfolding user validated: user login around login.aspx page entering username/password. i have used login control related mymembershipprovider . operative ideally fine. an authentication token upheld around url query twine form opposite web sites. i have profusion membershipprovider.validate(string authenticationtoken) , indeed validating user. box can't login control . i same membershipprovider countenance user but indeed controlling login control ? i attempted validate manually, nonetheless signing user in. here formula dash i am controlling if (!string.isnullorempty(request.querystring["authenticationtoken"])) { twine sheet = request.querystring["authenticationtoken"]; mymembershipprovider provider = membership.provider mymembershipprovider; (provider != null) { (provider.validateuser(ticket)) // login success else // login fail } }...

how restrict jpeg images asp windows ce

the asp page gets information uses pull graph, i following need save settlement combined jpeg displayed browser also used pdf format. best proceed restrict image? i am now porting jpeg concentration library asp nonetheless i cruise too delayed arm device controlling windows ce 6.0. so, asp page, controlling windows ce webservers, gets data, renders bitmap settlement following needs delivered browser accessing asp page. same settlement also used pdf exclusive format enclose jpeg streams. edit: what i am looking proceed emanate an array representing bitmap following compressing jpeg asp windows ce's iis definitely unparalleled asp implementation.

using attributes cut down enum enum mapping enum/const movement switch statments

i suspect everybody seen formula like: public vacant server2clientenumconvert( serverenum server) { switch(server) { box serverenum.one: relapse clientenum.abc //and on. instead crime somthing like: public enum serverenum { [enum2enum(clientenum.abc)] one, } now tact cut by serverenum reworking mappings enum chapter itself. the problem i am carrying here chapter enum2enum attribute. this works nonetheless replacing vigilant o enum e does not. i wish means pass objects constructor, wholly enums. public category enumtoenumattribute : attribute { open enumtoenumattribute(object o){} } this fails compile. public category enumtoenumattribute : attribute { open enumtoenumattribute(enum e){} } is there reason accumulate error? else i pass information indispensable map besides: enumtoenumattribute(type dest, twine enumstring) this seems too plain nonetheless wholly proceed following i speculation i it.

wmi win32_devicechangeevent - wrong eventuality form returned?

i am perplexing register "device added/ device removed" eventuality controlling wmi. i contend device - i meant something lines disk-on-key any device files i access... i am arising event, eventuality raised, nonetheless eventtype propery opposite i am awaiting see. the support () states : 1- config change, 2- device added, 3-device private 4- docking. reason i always value 1. any ideas ? here's illustration formula : public category wmireceiveevent { open wmireceiveevent() { try { wqleventquery query = new wqleventquery( "select * win32_devicechangeevent"); managementeventwatcher spectator = new managementeventwatcher(query); console.writeline("waiting an event..."); watcher.eventarrived += new eventarrivedeventhandler( handleevent); // start listening events watcher.start(); // something while sha...

concurrent collections c#

i'm looking proceed removing concurrent collection c# during slightest collection supports concurrent enumerator . right i'm removing an invalidoperationexception collection over i'm iterating changes. i only low duplicate collection work private duplicate nonetheless i'm wondering there maybe improved way code snippet: foreach (string s (list<string>) callingform.invoke(callingform.delegategetkillstrings)) { //do jazz } --edit-- i took answer nonetheless also found i indispensable pledge formula minute collection indispensable try close well. private vacant addkillstring(string s) { close (killstrings) { killstrings.add(s); } }

what collection wpf development?

what collection beside visible studio's cider use? have attain controlling something microsoft countenance product family? edit: here suggested tools : suggested suggested suggested & suggested some associated questions: - list associated tools