Posts

Showing posts from April, 2011

stop mod_rewrite execution relating rewritecond

i am controlling giveaway chronicle helicon isapi rewrite iis have several sites controlling by same set rewrite rules. adult 'til glorious manners have receptive sites. i have recently total new site i don't wish run by rules. there any proceed requests site smack out order set after it's executed the possess rules. i've attempted following luck; requests mysite.com outcome 404. i speculation i'm looking order does zero noted final order govern [l]. ## new site order mysite.com only rewritecond host: (?:www\.)?mysite\.com rewriterule /content([\w/]*) /content.aspx?page=$1 [l] ## smack out guess requests mysite.com rewritecond host: (?:www\.)?mysite\.com rewriterule (.*) - [l] ## manners sites rewriterule ^/([^\.\?]+)/?(\?.*)?$ /$1.aspx$2 [l] ...

file send custom options?

i am looking good proceed send non-trivial (10g > x >10mb) amounts information accessory another, potentially over churned sessions. i have looked fast at *ftp (sftp, tftp, ftp) http torrents (out since i have seed network general) rsync (not certain i unequivocally adjust i need) are there any protocols out there competence fit check small better? many above unequivocally error pacifist themselves, nonetheless rather rest client/server apps collect adult slack. during theatre i caring many some-more custom itself, rather sole client/server doing works well. (and defeat i know i possess over udp, nonetheless i'd move almost anything else !!)

catching window.print() swt browser

i 'm exploring browser fortitude / api following features: must support now default web technologies must support fan side xslt must support executing erratic javascript pages loads must means locate events web page targeted browser os (i am personally prying window.print()) qtwebkit seemed proceed nonetheless still doesn't support xslt i feeling alternatives. swt browser coupling around internal browser member underlying component linux i 'm prying meant firefox engine supports attributes i 'm prying solely i haven't still found out locate window.print() yield possess doing instead default opening adult imitation dialog. any suggestions?

can i reliably emanate comparison papers php concentration linux server?

what state generating comparison papers php concentration linux server? i am engaging formulating business 97 (xls) comparison files. unparalleled investigate theme incited adult . appears beta station given 2006. can share your success failures generating comparison files php? there arguable mature apparatus available? update: concentration i need beget an comparison file, only csv file.

is there apparatus supports dissimilar mathematics?

deals topics such logic, set theory, information theory, partially systematic sets, proofs, relations, array topics. for branches mathematics, there collection support programming. statistics, there have useful statistics functions built in. numerical analysis, used libel integrated c++. i don't know any languages packages understanding personally dissimilar arithmetic (although only each libel used exercise algorithms used dissimilar mathematics, there should libraries environments out there designed personally applications).

how store uploaded files filesystem?

i'm perplexing figure out best proceed store user uploaded files record system. files operation personal files wiki files. course, db indicate those files somehow i have nonetheless figure out. basic requirements: fairy decent confidence can't speculation filenames (picture001.jpg, picture002.jpg, music001.mp3 large no) easily corroborated adult & mirrorable (i move proceed i don't have duplicate whole hdd each unparalleled i wish backup. i thought funding adult only newest equipment nonetheless i'm stretchable options here.) scalable millions files churned servers needed.

ruby daemons start

i am controlling flush daemons gem emanate tradition daemon rails project. wholly problem i try start daemons ruby lib/daemons/test_ctl start fails start. record record output. # logfile combined marry oct 22 16:14:23 +0000 2008 / *** next many new difference thrown, approaching (but certainly) difference finished concentration exit abnormally \*\*\* # missingsourcefile: such record bucket -- utf8proc_native *** next difference objects found memory, competence have thrown your application, others competence only memory since customary exceptions *** # nomemoryerror: unsuccessful distribute memory> # systemstackerror: smoke-stack turn too deep> # fatal: difference reentered> # loaderror: such record bucket -- daemons> # loaderror: such record bucket -- active_support> # missingsourcefile: such record bucket -- lib/string> # missingsourcefile: such record bucket -- utf8proc_native> it even happens i beget daemon (from rails plugin) try run it. does anyb...

should i feeling during chronicle control systems over subversion?

within final year i have spin dependant subversion. i am an wholly developer i also work few possess projects. svn the unequivocally easy control all - since hosted an online server nonetheless https i opening formula anywhere. also good deploying formula the production/development servers. my indicate does all i need never unsuccessful me. is there anything better? am i blank underline another product i controlling life easier? i am always controlling best program out there have problem migrating new technologies. i have listened git have finished research. i digest giving try nonetheless while i am messing that, there another source control systems deliberate "industry standard" things improved following svn?

how transform buttress value incrementally

i'm experimenting personal financial application, i'm pondering proceed take transform controlling balances entering transaction an account. currently proceed i'm controlling involves retrieving annals some-more new inserted/modified one, incrementing controlling balance. for example, given following transactions: t1 date = 2008-10-21, volume = 500, controlling change = 1000 t2 date = 2008-10-22, volume = 300, controlling change = 1300 t3 date = 2008-10-23, volume = 100, controlling change = 1400 ... now suspect i insert transaction between t1 t2, following t2 unbroken sell need controlling balances adjusted. hehe, i wrote question, i cruise i know answer... i'll leave here box helps someone else (or maybe there's even improved approach?) first, i controlling change before transaction, case, t1. following i transform following sell (which consolidate new one): update transactions set running_balance = running_balance + <amount> where date > <t1.date> ...

when clearing an observablecollection, there equipment e.olditems

i have something here unequivocally throwing me off guard. i have an observablecollection t filled items. i also have an eventuality handler trustworthy collectionchanged event. when clear collection causes an collectionchanged eventuality e.action set notifycollectionchangedaction.reset. ok, that's normal. nonetheless uncanny conjunction e.olditems e.newitems anything it. i design e.olditems filled equipment private collection. has anyone else seen this? so, have gotten around it? some background: i am controlling collectionchanged eventuality insert detach another eventuality so i don't any equipment e.olditems ... i won't means detach event. clarification: i know support doesn't outright state act way. nonetheless each action, notifying me done. so, audacity tell me ... box clear/reset well. below illustration formula wish imitate yourself. initial off xaml: <window x:class="observablecollection.window1" xmlns="http://schemas.microsoft.com...

javascript impression dot footnote collection keys unpythonic?

i've started constructs these: class dictobj(object): def __init__(self): self.d = {} def __getattr__(self, m): relapse self.d.get(m, none) def __setattr__(self, m, v): super.__setattr__(self, m, v) update: formed thread, i've revised dictobj doing to: class dotdict(dict): def __getattr__(self, attr): relapse self.get(attr, none) __setattr__= dict.__setitem__ __delattr__= dict.__delitem__ class autoenum(object): def __init__(self): self.counter = 0 self.d = {} def __getattr__(self, c): c self.d: self.d[c] = self.counter self.counter += 1 relapse self.d[c] where dictobj collection accessed around dot notation: d = dictobj() d.something = 'one' i some-more aesthetically appreciative d['something'] . note accessing an capricious pivotal advantage zero instead lifting an exception, also nice. update: smashery creates good point, mhawke expan...

double buffering problem subsequent owner-drawn tabcontrol?

i have subsequent tabcontrol demonstrate purpose enabling double buffering, solely zero operative expected. here tabcontrol code: class doublebufferedtabcontrol : tabcontrol { open doublebufferedtabcontrol() : base() { this.doublebuffered = true; this.setstyle ( controlstyles.userpaint | controlstyles.allpaintinginwmpaint | controlstyles.resizeredraw | controlstyles.optimizeddoublebuffer | controlstyles.supportstransparentbackcolor, false ); } } this tabcontrol following set it's pull mode 'ownerdrawnfixed' i altered colours. here tradition sketch method: private vacant navigation_pagecontent_drawitem(object sender, drawitemeventargs e) { //structure. graphics g = e.graphics; tabcontrol t = (tabcontrol)sender; tabpage currentpage = t.tabpages[e.index]; //get tide tab rectan...

most fit proceed check dbnull following distribute variable?

this doubt comes adult occasionally, nonetheless i haven't seen tolerable answer. a customary settlement (row datarow ): (row["value"] != dbnull.value) { someobject.member = row["value"]; } my initial doubt some-more fit (i've flipped condition): row["value"] == dbnull.value; // or row["value"] dbnull; // or row["value"].gettype() == typeof(dbnull) // or... any suggestions? indicates .gettype() should faster, nonetheless maybe compiler knows few tricks i don't? second question, value caching value row["value"] does compiler optimize indexer divided anyway? for example: vigilant valueholder; (dbnull.value == (valueholder = row["value"])) {} notes: row["value"] exists. i don't know buttress index buttress (hence buttress name lookup). i'm seeking personally checking dbnull following assignment (not beforehand optimization, etc.). i benchmarked few scenarios (time second...

.app osx package problems removable media

so small i know wrapping macs, i tangible way launches tangible underneath cfbundleexecutable pivotal info.plist. <key>cfbundleexecutable</key> <string>javaapplicationstub</string> now, app doesnt work /app/content/macos/javaapplicationstub chmodded +x (it only fails silently but doing anything, pain!). fair enough, the executable i guess. nonetheless the large problem duplicating app somewhere dosent support +x properties files; such windows, fat32 usb keys, cdroms, websites, zip files, etc... what i instances app means run? manually sourroundings govern bit an option. there's got run mac apps off cd, during unequivocally least!

"thread being aborted" difference while displaying dialog

in app i've got thread displays "please wait" dialog window, infrequently unequivocally little amout there glitch while sketch ui (i guess). i difference "thread being aborted" completly have thought absolved it. i meant locate difference way, proceed bury user. difference got zero rest app blunder any proceed doesn't impact it. appears incidentally tough reconstruct call. i attempted several ways locate difference side formula starts stops thread dialog window nonetheless seems blunder apparently side thread dispalys window newly combined thread. here formula sample, biased stationary category useful stuff, impetus i don't contend good proceed solve kind "busy" conditions nonetheless i wish solve problem. thread.sleep(500); try/catch improvments doesn't assistance me prevaricate thread exception. open stationary bool alreadybusy = false; open stationary busyindicator bi = new busyindicator(""); open stationary thread ...

what best denote holding user authentication off-line?

i am building authentication client-server application, feedback i've viewed i should leave crush calculation server (it primarily implemented have fan accept hash, calculate crush client's entered password, review them). seems sense, nonetheless i am left problem -- how i justify users off-line ? for example, i deployed mobile device but internet access, many secure proceed hoop authentication? the proceed i it, i have either grant fan accept crush + any salt information , use removed pin/password grant fan accept hash+salt that password. i preference latter since seems border dispute settlement -- mobile device compromised, following confidence whole component (e.g. network-authenticated pieces) stays intact. what best options considerations?

suggestions greatfully home chronicle control system

i have home digest unequivocally needs source control. i attempted installing subversion, i have trust with, nonetheless couldn't working. i don't quite wish sourcesafe. i'm bit shaken git/mercury being rather cryptic, nonetheless wholly formed opinion rather experience. main charge are: must open source (well, needs giveaway nonetheless sounds bit cheap!) must run win32 would move gui interface available many interjection advance! edit: only let know, i hallowed visualsvn operative time. interjection good advice.

creating an mjpeg video tide c#

i have images being sent database remote video source during 5 frames per second jpeg images. i am perplexing figure out those images video format i tide live video feed silverlight. it seems clarity emanate mjpeg tide nonetheless i'm carrying few problems. firstly i perplexing tide around an http ask i didn't have understanding sockets nonetheless maybe defilement code. if i try roller tide qt i video error, media actor shows initial support settlement silverlight crashes :) here formula streams - given i calm form used proceed wholly sent once i know isn't ideal competence bottom cause. images opening around linq2sql object. i already try simply updating settlement source an settlement control silverlight nonetheless nictitate isn't acceptable. silverlight doesn't support mjpeg following indicate even stability nonetheless looks does. i have opening h.264 frames opening nonetheless seemed some-more difficult around mp4. response.clear(); response.contentty...

why does jni formula successfully jthrowable's getmessage method?

i'm perplexing opening summary jthrowable while handing an difference generated i destroy class. however, i am amateurish opening summary id getmessage() jthrowable object, i don't know why. i've attempted changing signature getmessage "()ljava/lang/string" (without semicolon during end, nonetheless that's necessary, right?) joy. i'm confused harm this. i even attempted replacing getmessage tostring, that didn't work. apparently i'm doing something trivially wrong here. here's formula i'm using: jthrowable java_exception; jclass java_class; jmethodid method; java_exception = (*jenv)->exceptionoccurred(jenv); assert (java_exception != null); java_class = (*jenv)->getobjectclass (jenv, java_exception); assert (java_class != null); method = (*jenv)->getmethodid (jenv, java_class, "getmessage", "()ljava/lang/string;"); if (method == null) { printf ("seriously, i here?!\n"); (*jenv)->exceptiondescr...

if your rather uncanny css formula works browsers windows, work mac linux?

i am contrast weird-looking css formula i wrote (i'm controlling brew percentages pixel values extent divs, basically). while i'm positive it's right, works ideally shade sizes ie 5.5, ie 6.0 (!), ie 7.0, firefox 3.0 safari 3.12... windows xp. i need offer worry contrast formula mac linux, many approaching work twin but fail? edit: after few months operative problem, i've found safari firefox amazingly unchanging between mac pc.

application pool iis7

i'm perplexing distribute concentration pool web site iis7 controlling vb script: ' bond wmi webadministration namespace.' set owebadmin = getobject("winmgmts:root\webadministration") ' collect concentration arrangement the web site name path.' set oapp = owebadmin.get("application.sitename='default web site',path='/site'") ' mention new concentration pool name save it.' oapp.applicationpool = "newapppool" oapp.put_ the above book working! is there improved proceed distribute concentration pool web site underneath iis (using script)?

advantages antlr (versus say, lex/yacc/bison)

i've used lex yacc (more wholly bison) past several projects, wholly translators (such subset edif streamed an eda app). additionally, i've support formula formed lex/yacc grammars dating behind decades. i know proceed around tools, nonetheless i'm expert. i've seen certain comments antlr several fora past, i'm extraordinary i competence missing. you've used both, greatfully tell me what's improved some-more modernized antlr. tide constraints i work c++ shop, any product boat consolidate java, indirect parsers have follow rule.

is there proceed opening both bottom app_code folder an app_code folder servant office iis 7.0?

i adore means have common set classes bottom app_code folder, set adult right now. however, doesn't clarity put specific formula there concentration staying servant directory. root folder app_code subdirapp1 app_code subdirapp2 app_code we now have any prolongation concentration it's possess "root" folder it's possess concentration pool. following only reflection sure bottom app_code folder there.

multiple construction blunder including c++ header record inline formula churned sources

i have c++ header record containing class. i wish category several projects, bu i don't wish emanate removed library it, i'm putting both methods declarations definitions header file: // example.h #ifndef example_h_ #define example_h_ namespace test_ns{ class testclass{ public: vacant testmethod(); }; void testclass::testmethod(){ // formula here... } } // finish namespace test_ns #endif if inside same digest i consolidate header some-more cpp file, i an blunder observant " multiple construction test_ns::testclass::testmethod() ", while i put slight construction inside category physique does happen: // example.h #ifndef example_h_ #define example_h_ namespace test_ns{ class testclass{ public: vacant testmethod(){ // formula here... } }; } // finish namespace test_ns #endif since category tangible inside namespace, shouldn't twin forms equivalent? since slight deliberate tangible twice initial case?

problems globalization controlling seer collections gangling jdbc

to promulgate issue: retrieving strings java 1.5 (jdbc) works glorious db encoding western iso 8859-2 when switching an eastern european iso (e.g. iso 8859-5), normal jdbc twine conversions work, except ones involving seer collections , e.g. nested tables objects. instead repremand strings, even rudimentary ones such "1", i "???" (three doubt marks) instead. i attempted following 10.2.0.4 jdbc jar files, nonetheless avail: ojdbc14.jar orai18n.jar i also attempted both bake varchar2 both act same.

how i distribute tradition idol pushpin mappoint?

i'm minute mfc app uses ms mappoint ocx. i need arrangement locations vehicles map best doing appears pushpin objects. i have problem displaying batch pushpin idol calm nonetheless wish change idol tradition designed one. unparalleled volume mappoint programming info out there appears proceed emanate representation vigilant black vigilant following distribute pushpin .. csymbols symbols; csymbol symbol; symbol=symbols.add("c:/temp/myicon.ico"); pushpin.put_symbol(symbol.get_id()); but way crashes unhandled difference symbols.add instruction. can anyone tell me i am doing wrong here ? am i totally wrong lane ? thanks your time ian

mfc: arrangement / stealing splitter panes

in concentration i have array panes m_wndspliter classes. i wish during run arrangement bury panes. while following formula i arrangement bury perspective compared pane, i can't temporarily mislay mirror itself. cwnd * pcurview = m_wndsplitter2.getpane(2, 0); if( !pcurview == zero ) { if( fshow ) { pcurview->showwindow(sw_show); recalclayout(); } else { pcurview->showwindow(sw_hide); recalclayout(); } } any examples / ideas ?

"rename control" delphi 7?

following adult question, i'm operative infinite delphi 7 codebase combined unequivocally nicely. i'm looking during formula this, little example: fmode=mdcredit following begin panel8.caption:='credit'; speedbutton3.enabled:=false; speedbutton4.enabled:=false; speedbutton5.enabled:=false; speedbutton5.enabled:=false; speedbutton6.visible:=false; speedbutton10.visible:=false; end; followed another 6 unequivocally identical blocks. whole thing style. so i'm pondering many easier review controls named sensibly. i only tellurian hunt replace, nonetheless i'll run problems churned forms same names, also i'd have clever change (eg) speedbutton10 before speedbutton1. is there plugin ability perform "smart" rename me? edit: sorry, i should have mentioned before: i attempted both gexperts castalia's "rename component" feature, nonetheless both seem commanded adding member form initially. they don't search+...

why am i removing html mysql trade csv?

i know doubt asked before, nonetheless i ran problem. oddly enough, i govern function, includes html page couple name govern function. function exportcsv($table) { $result = mysql_query("show columns ".$table.""); $i = 0; (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_assoc($result)) { $csv_output .= $row['field']."; "; $i++; } } $csv_output .= "\n"; $values = mysql_query("select * ".$table.""); while ($rowr = mysql_fetch_row($values)) { ($j=0;$j<$i;$j++) { $csv_output .= $rowr[$j]."; "; } $csv_output .= "\n"; } $filename = $file."_".date("y-m-d_h-i",time()); header("content-type: application/vnd.ms-excel"); header("content-disposition: csv" . date("y-m-d") . ".csv"); header( "content-disposition:...

setlimittext() cedit perspective does work

this duty vista. i combined new dialog formed mfc digest exam this. i total cedit control dialog. i called setlimittext let cedit accept 100000 characters. i attempted both: this->m_cedit1.setlimittext(100000); updatedata(false); and static_cast<cedit*>(getdlgitem(idc_edit1))->limittext(100000); i placed calls initdialog. after i brew 5461 characters cedit, becomes lifeless unresponsive. any ideas causing workarounds means brew enlarged strings calm cedit any control? note: 5461 0x1555 1010101010101 binary, i definitely odd. if i brew 5460 characters i have problems.

how i c# query member recognize columns returned information surrogate list sql stored procedure

i've combined stored way identical next (i'm controlling cut down chronicle try figure the problem). create way bsp_teststoredproc as begin create list #tmpfiles ( authorname nvarchar(50), percentagehigh int ) -- insert information temp table select authorname, percentagehigh #tmpfiles order percentagehigh desc drop list #tmpfiles return 0 end from c# formula vs2008, i'm perplexing query member use existent stored procedure choice bond adult datatable / datagridview arrangement results. however, since i'm selecting surrogate table, query member properties visible studio does arrangement any columns being returned stored procedure. i assume problem last information forms being used given sp formed genuine schema. connecting opposite stored procedures name genuine tables arrangement columns correctly. does anyone know divided around this? there arrange idea i supplement somewhere definitely state arrange information returned? thanks advance.

find root nodes hierarchical tree

i have list database stores tree structure. here applicable fields: mytree (id, parentid, otherfields...) i wish root nodes (that is, any record whose id another record's parentid ) i've attempted this: select * mytree where `id` (select graphic `parentid` `mytree`) but returned an lifeless set. strangely, stealing "not" advantage set non-leaf nodes. can anyone where i'm going wrong? update: interjection answers folks, have repremand worked me. i've supposed daniel's given also explains since query didn't work (the zero thing).

using named duty callback $.getjson jquery infer facebook ask signing demands

i'm perplexing opening facebook api admin.getmetrics slight around jquery. i'm justly component ask url server side (in method keep app tip secret). i'm following eventuality url over browser ask controlling jquery.getjson() . facebook requires i send duplicate ask params hashed concentration tip along ask method establish authenticity. problem jquery wants beget name callback duty itself method review name gives opposite duty pass called information returns. therefore, name duty accessible until jquery.getjson() executes facebook considers ask inauthentic due incompatible signature (the signature i send along does consolidate repremand callback param since generated until jquery.getjson() ran). the wholly proceed i cruise out problem somehow mention name duty jquery.getjson() instead permitting sojourn anonymous. nonetheless i can't any choice doing jquery ap.

bookmarklet couple discount document

how i consolidate bookmarklet discount parsed document? there any "tag" discount fundamentally says "don't parse this"?? for instance have something like: <a href="javascript:function my_bookmarklet() {alert('hello world');} my_bookmarklet();">hello</a> but i try past javascript couple discount this: [hello world!](javascript:function my_bookmarklet(){alert('hello world');}my_bookmarklet();) you messed adult link, below. [hello world!](javascript:function my_bookmarklet(){alert('hello world');}my_bookmarklet();) is there anyway around this? and no, i'm perplexing put antagonistic bookmarklets anything, nonetheless i wish discount site post bookmarklets i wrote. edit: i guess i answer...but seems i don't definitely have it. this seems work good wmd showdown, nonetheless markdown.php editor, does not. anyone have trust markdown.php specifically?

can't enterprising controls datagrid postback

using .net 1.1, i have datagrid contains 3 columns any row. row tag text. row 3 always have twin radio buttons twin checkboxes those html side page. row twin have boldly generated controls (just textboxes now) there 1 some-more per row. used user input. there symbol page user clicks symbol i need transform datagrids source (my datatable) new values users input. the emanate datagrid seems losing boldly generated controls postback. i loop by any vigilant datagrid i opening radio buttons checkboxes, nonetheless textboxes arent there. any ideas?

asp .net blunder "attempted review stable memory. mostly an denote memory corrupt. "

i following blunder perplexing bucket an rss feed: attempted review stable memory. mostly an denote memory corrupt. my formula works glorious internal host, blunder wholly occurs i upload dedicated server! here code: protected servant page_load(byval sender object, byval e system.eventargs) handles me.load low signj twine = dropdownlist1.selectedvalue signj <> "" then try low xmldoc xmldocument = new xmldocument low xdsdata xmldatasource = new xmldatasource low xpath_path twine = string.empty low rss_feed twine = string.empty xpath_path = "rss/channel/item[title='" & signj & "']" rss_feed = "http://feedurl.." xmldoc.load(rss_feed) xdsdata.data = xmldoc.outerxml xdsdata.xpath = xpath_path rptdata.datasource = xdsdata rptdata.databind() locate ex exception res...

what catamorphism implemented c# 3.0?

i'm perplexing learn catamorphisms i've review initial integrate posts inside f# blog. i know it's generalization folds (i.e., mapping structure values value, including list values another list). i accumulate fold-list fold-tree certified example. can shown finished c#, controlling linq's aggregate user higher-order method?

shared library problems linux

i'm perplexing compile/link very aged square program linux component i can't reason couple common library that's hallowed system. i following blunder linker: /usr/bin/ld: can't -lxaw however, lib itself installed. i run ldconfig -v | grep libxaw i (among things) hit: libxaw.so.7 -> libxaw7.so.7.0.0 the library links /usr/lib btw. zero special. so library there ldconfig finds it. ld means ld awaiting library during link-time? competence have already guessed i'm definitely new common library stuff. any ideas?

switch requests calm specific requesting domain

lets contend i have several web sites web server, applications underneath domain. i register domains indicate same web server, route requests to, e.g. web site related requesting domain? i know i'll have have bottom site, i'm guessing i competence have have spell ask pipline bottom site, dispatch altered ask applicable sub-site. example, i acme.net ajax.net both indicate same castle root.net . browser requests acme.net , calm during acme.root.net root.net/acme , should served, nonetheless user contingency still acme.net castle bar

how emanate an .ini record store settings java?

i wish emanate an ini record store settings application. good thought where jar record located emanate an ini record there? yes, following i plcae jar file? but know improved fortitude something this, i hear them. edit : i'm controlling mac i wish run same concentration windows. i something system.getproperty("user.home") directory, nonetheless i wish keep component clean, user decides mislay app. there improved proceed store settings file, instance same office application?

how i share javascript vigilant between opposite pages adobe air?

i'd have tradition vigilant trustworthy concentration i safety state between opposite html pages adobe air. possible? i seeking fullblown fortitude store tradition js vigilant memory insist between pages hallowed concentration sandbox, nonetheless can't finished unless i iframes unequivocally pleasant, given i have supplement lot things bridge. anoter proceed competence biased digest page filled html review files, nonetheless exposes lot upsetting bugs + cant book tags dom dynamically. it's crippled platform.

simple wpf illustration causes rash memory growth

i have boiled down an emanate i'm observant applications an impossibly rudimentary mock-up sample. i need know there's something erroneous something i'm missing. anyway, next code. function formula runs usually grows memory until crashes an outofmemoryexception. takes while, nonetheless function objects being allocated being rubbish collected. i've taken memory dumps ran !gcroot things good used ants figure out problem is, nonetheless i've during while need new eyes. this mock-up illustration rudimentary console concentration creates house adds line it. does continually. formula does. sleeps each again pledge cpu taxed your component nonchalant (and pledge there's weirdness gc being means run). anyone have any thoughts? i've attempted .net 3.0 only, .net 3.5 also .net 3.5 sp1 same function occurred 3 environments. also note i've put formula wpf concentration digest good triggered formula symbol click occurs there too. using system; using system.collectio...

what relational database innovations have there final 10 years

the sql doing relational databases around tide form something 25 years (since component r ingres). even sure (loosely adhered to) customary ansi-92 (although there after updates) good 15 years old. what innovations cruise sql formed databases final 10 years so. i am personally proud olap, columnar non-relational (or during slightest non sql) innovations. i also wish bar 'application server' form comforts bundling (like observant tools) although simple proceed remained sincerely static, i cruise of: availability ability hoop incomparable sets data ease maintain configuration support some-more modernized information forms (blob, xml, unicode etc) any others cruise of?

initialized eventuality wpf usercontrol firing

i've got unequivocally rudimentary wpf usercontrol looks this: namespace myusercontrol { /// <summary> /// communication explanation usercontrol1.xaml /// </summary> open biased category usercontrol1 : usercontrol { open usercontrol1() { initializecomponent(); } stable overrule vacant onrender(drawingcontext drawingcontext) { rect rect = new rect(rendersize); drawingcontext.drawrectangle(brushes.aliceblue, new pen(brushes.red, 1), rect); base.onrender(drawingcontext); } } } i following xaml customary wpf window this: <window x:class="wpfapplication1.window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="clr-namespace:myusercontrol;assembly=myusercontrol" title="window1" height="351" width="496"> <grid> <mc:usercontrol1 m...

why does gcc-windows count cygwin?

i'm c++ developer, nonetheless i've always prying compilers, i'm prying tinkering gcc things (particularly llvm). on windows, gcc requires posix-emulation covering (cygwin mingw) run correctly. why that? i lots software, combined c++ cross-compiled opposite platforms (subversion, firefox, apache, mysql), zero need cygwin mingw. my bargain c++ best-practice programming graceful platform-neutral formula understanding differences during gathering process. so what's understanding gcc? since can't run natively windows? edit: okay, twin replies distant say, basically, "gcc uses posix covering since uses posix headers". but doesn't unequivocally answer question. let's contend i already have set headers favorite customary library. since i still need posix headers? does gcc need cygwin/mingw indeed run ? or does wholly need simulation covering headers libraries? so, since can't i only give "lib" office mandatory resources? edit again: okay, i...

sql date operation split

can greatfully let me know sql separate date ranges overlap? data (sample information date operation presumably columns): col1 fromdate todate 1. 1 1/1/2008 31/12/2010 2. 1 1/1/2009 31/12/2012 3. 1 1/1/2009 31/12/2014 output: col1 date todate 1. 1 1/1/2008 31/12/2008 (from quarrel 1 above) 2. 1 1/1/2009 31/12/2010 (from rows 1,2 3 above) 3. 1 1/1/2011 31/12/2012 (from rows 2 3 above) 4. 1 1/1/2013 31/12/2014 (from quarrel 3 above)

how i emanate an activerecord charge an activeresource object?

let's contend i'm minute library concentration book association already application. so library concentration i have class chairman < activeresource::base self.site = "http://api.people.mypublisher.com/" end and i wish store article s any person : class essay < activerecord::base belongs_to :person, :as => :author end i suspect i'd have following list database: articles id (pk) | due (string) | physique (text) | author_id (integer) author_id isn't accurately foreign-key, given i don't have table. leaves several questions: how i tell person activeresource vigilant has_many articles ? will articles.find(:first).author work? belongs_to even work given there's activerecord funding table?

is there any kind record dependency tracer asp.net apps?

i have an asp.net 2.0 (vb.net) app i'm perplexing trade control (ascx) another project. i need know files control needs method work. is there any proceed - controlling vs.net 2005 an outmost app - recursively snippet dependencies page control solution? for example, file: ~/controls/somecontrol.ascx , i'd following list files depends run: ~/controls/somecontrol.ascx ~/controls/somecontrol.ascx.vb ~/app_code/someclass.vb ~/app_code/anotherclass.vb ~/app_webreferences/com/example/somewebservice/somewebservice.disco ~/app_webreferences/com/example/somewebservice/somewebservice.discomap ~/app_webreferences/com/example/somewebservice/somewebservice.wsdl ~/app_code/anotherclass.vb

web app best add, mislay correct rows but lovely page

i am minute sheeting web concentration involves users entering tasks week. i have page modernise i am exploring ways add/delete/edit tasks controlling javascript fan browser. currently i am controlling asp.net-mvc, ajax, jquery livevalidation i am solid (if slow) progress. i am prying solved problem pros cons several approaches. for instance tide proceed adding new assign (category/activity/hours) involves simple validation controlling livevalidation web use check category/activity. fields countenance i emanate new list quarrel arrangement assign bury it. unbroken i web use again supplement assign db success i arrangement new quarrel assent deletion/editing

jquery div click, anchors

to click-able divs, i do: <div class="clickable" url="http://google.com"> blah blah </div> and following $("div.clickable").click( function() { window.location = $(this).attr("url"); }); i don't know best way, nonetheless works ideally me, solely issue: if div contains click-able element, such as <a href="...">, user clicks hyperlink, both hyperlink div's-clickable called this generally problem anchor add-on referring javascript ajax function, executes ajax duty and follows couple 'url' charge div. anyway around this?

how i out spring.net bottom context loaded?

i have web use running, uses spring.net it's iocness. classes needs things loads (i'm controlling afterpropertiesset ) "some stuff" involves contextregistry.getcontext() . problem formula contextregistry class: if (rootcontextcurrentlyincreation) { pitch new invalidoperationexception("root context now creation. contingency contextregistry.getcontext() e.g. constructors your essay objects"); } how i have vigilant register itself told once context entirely created?

how change tote castle controlling php mail?

i am controlling php apache linux, sendmail. i php function. email sent, nonetheless tote apache_user@localhostname mail from (example nobody@conniptin.internal) remote mail servers reject since domain doesn't exist (obviously). controlling mail , i force change tote mail from ? edit: i supplement header fourth domain mail () function, changes from domain headers physique message, does change tote mail from . i force spawning sendmail sendmail -t -odb -oi -frealname@realhost piping email essence it. improved approach? is there better, simpler, some-more php suitable proceed doing this? edit: bottom line i should have rtm. interjection answers folks, fifth parameter works well.

adding floats gmp gives "correct" results, arrange

in formula next i mpf_add supplement twine illustration twin floating values. i don't know during indicate since 2.2 + 3.2 = 5.39999999999999999999999999999999999999 . i have guess gmp intelligent adequate give 5.4 . what am i keen gmp does floats? (btw, i initial wrote i wasn't certain insert decimal point, so plus/minus number things during end) bstr __stdcall fbigsum(bstr p1, bstr p2 ) { uses_conversion; f(n1); f(n2); f(res); lpstr snum1 = w2a( p1 ); lpstr snum2 = w2a( p2 ); mpf_set_str( n1, snum1, 10 ); mpf_set_str( n2, snum2, 10 ); mpf_add( res, n1, n2 ); bake * clean = (char *) _alloca( 1024 ); bake expbuffer[ 20 ]; mp_exp_t exp; mpf_get_str(buff, &exp, 10, 0, res); bake * temp = ltoa( (long) exp, expbuffer, 10 ); (exp >= 0) { strcat(buff, "+" ); } strcat(buff, expbuffer ); bstr bresult = _com_util::convertstringtobstr( clean ); relapse bresult; }

serializing lists classes xml

i have collection classes i wish serialize out an xml file. looks something this: public category foo { open list<bar> barlist { get; set; } } where bar only coupling collection properties, this: public category bar { open twine property1 { get; set; } open twine property2 { get; set; } } i wish symbol adult outputs an xml record - used both persistence, also news settings around an xslt good human-readable form. i wish good xml illustration this: <?xml version="1.0" encoding="utf-8"?> <foo> <barlist> <bar> <property1>value</property1> <property2>value</property2> </bar> <bar> <property1>value</property1> <property2>value</property2> </bar> </barlist> </foo> where bars barlist combined out properties. i'm sincerely certain i'll need markup category construction work, nonetheless i can't seem rig...

setting adult internal server php

i'm perplexing setup an apache/php/postgresql server locally machine. i'm controlling windows perspective business 32bit. i attempted exercise all manually (one thing during time, apache, postgresql php (all latest quick releases)) after i all adult running. whenever i try run book machine, i "what wish *.php file?" dialog. dialog browser's open/save dialog i'm only perplexing cost phpinfo() certain all adult running... i already attempted disaster around bit apache conf file, nonetheless given i don't know many i'm doing, i reinstalled all again problem still there. i kinda feeling contingency have something php thingy isn't justly installed. when i try cost phpinfo in: <pre><?php phpinfo(); ?></pre> i browser's "open/save" dialog *.php file.

users arrangement adult sharepoint audiences

we controlling moss 2007 profiles opening the active directory. underline "audiences" collected formed specific ad groups. have problems unequivocally few accounts where enclosed audience. have instance ad organisation "procurement" where 15 out 16 users enclosed public uses membership "procurement" organisation the criteria. it seems something specific account, nonetheless i can't anything comment graphic any other. ad accesss being finished an comment full rights review ad. any ideas cause? i'm certain where even feeling public compliation doesn't pitch any errors.

how i user organisation information perl windows?

perl several built-in functions accessing /etc/passwd unix systems (and elsewhere supported) user organisation information. instance, my $name = getpwuid($uid); will relapse user name given user id, undef there such user. if perl book needs unstable run unices windows, should opening user organisation information? activeperl seems support user::grent user::pwent modules, yield by-field opening /etc/passwd -- even windows. curiously support built-in functions getpw* getgr*. alternatives there?

design settlement converting form tree structure another?

i have arrange tree structure paint hierarchy layers map, divided forms layers categories. any node opposite category opposite forms layers (but nodes exercise common interface). i need modify category an asp.net treeview control. any node quarrel tree node cost tree, properties set dependant form node. i don't wish quarrel tree classes know ui classes, i can't "totreeviewnode()" slight them. there now 4 forms petrify node classes, 2 multiple (contain child-nodes) 2 leaves. competence change future. it feels there settlement pattern here tender used, assistance me is?

installation problem sql server 2008

i should substantially take forum nonetheless figured someone here competence know answer. i'm perplexing exercise sql server 2008 home perspective accessory nonetheless keeps explanation 'restart mechanism failed' everytime does check certain pre-reqs met. i've restarted mechanism even uinstalled/installed .net 3.5 sp1. only thread i found was: the final post forum states there proceed 'forcefully' (using management prompt) there proceed bypass reboot check. does anyone know commands used bypass rebook check??

when since database joins expensive?

i'm doing investigate databases i'm looking during prerequisites relational dbs. i'm removing joins infinite tables unequivocally expensive, nonetheless i'm totally certain why. does dbms need govern join operation, where bottleneck? how denormalization assistance overcome expense? optimization techniques (indexing, example) help? personal practice welcome! you're going post links resources, greatfully prevaricate wikipedia. i know where already. in union this, i'm wondering denormalized approaches used cloud use databases bigtable simpledb. .

is there proceed hinder systemexit difference carried sys.exit() being caught?

the docs contend job sys.exit() raises systemexit difference reason outdoor levels. i have conditions i wish definitively undoubtedly exit inside exam case, however unittest way catches systemexit prevents exit. customarily great, nonetheless specific conditions i am perplexing hoop where the exam horizon detected configured indicate non-test database. box i wish exit hinder any offer tests being run. impetus given unittest traps systemexit continues happily it's way, thwarting me. the wholly choice i have guess distant controlling ctypes something identical exit(3) directly nonetheless seems graceful fugly penetrate something should unequivocally simple.

combined post-operators?

we're informed pre- post-increment operators, e.g. c++; // c = c + 1 ++c; // ditto and "combined operators" extend principle: c += 5; // c = c + 5 s .= ", world"; // s = s . ", world"; e.g. php i've mostly need 'post-combined operator', allow: s =. "hello "; // s = "hello " . s obviously, wholly unequivocally useful non-commutable operators definition altered pre-/post-increment, even nonetheless syntax borrowed. are wakeful any libel offers such an operator, since isn't some-more common?

integrating ajax php

i've minute php web applications time, have opposing unequivocally good javascript frameworks, such jquery, extjs, scriptaculous, etc. i can't contend same php side - i always coded biased client-server dialog scratch. i've used codeigniter () nice, nonetheless doesn't understanding ajax whole - rather providing quarrel checking, settlement manipulation, cost helpers. is there customary php library/class/framework out there deals/integrates javascript frameworks? something locate users' responses/requests, countenance spirit input, yield swell status, keep lane sessions, wakeful asynchronous events, etc.

how i an onclientclick post behind controlling jquery asp.net

i wish reconstruct the transform quarrel postback but controlling an transform quarrel postback. general slight doing this? for example, smoke-stack , opinion adult down doubt does postback transform database i gamble didn't an transform panel. what i have? i have list table data. i click td vigilant whole column, i wish an transform database also transform gridview page itself. gridview shows now clicked equipment list since updated around "our method". looking good general slight i lot async postbacks but transform panel.

how i an openfiledialog tradition control's ability grid?

i'm formulating .net tradition control should means bucket churned calm files. i have open ability named listfiles those properties set : [browsable(true), category("configuration"), description("list files load")] public twine listfiles { { relapse m_olist; } set { m_olist = value; } } depending on form object, (string, string[], list, ...), ability grid grant user enter data.. idea have filtered openfiledialog properties grid member assent user select churned files relapse an array twine (or something else...). sooo... here's doubt : how i an openfiledialog tradition control's ability grid? thanks lot!

unauthorized sharepoint wsdl coldfusion 8

how i solve error: unable review wsdl url: . error: 401 unauthorized. i successfully perspective wsdl browser controlling same user account. i'm certain authentication being used (basic integrated). how i out? the formula origination is: <cfinvoke username="username" password="password" webservice="https://workflowtest.liberty.edu/_vti_bin/lists.asmx?wsdl" method="getlist" listname="{cb02eb71-392e-4906-b512-8ec002f72436}" > the sense i coldfusion doesn't being finished justify wsdl. full smoke-stack trace: coldfusion.xml.rpc.xmlrpcserviceimpl$cantfindwsdlexception: amateurish review wsdl url: https://workflowtest.liberty.edu/_vti_bin/lists.asmx?wsdl. during coldfusion.xml.rpc.xmlrpcserviceimpl.retrievewsdl(xmlrpcserviceimpl.java:709) during coldfusion.xml.rpc.xmlrpcserviceimpl.access$000(xmlrpcserviceimpl.java:53) during coldfusion.xml.rpc.xmlrpcserviceimpl$1.run(xmlrpcserviceimpl.java:239) during jav...

table bucket around assign sell (oracle 10g)

i have few questions optimizing form load. one builds new list information hallowed partitioned list following builds indexes new table. should build index discriminate statistics choice cascade choice dbms_stats? should accumulate stats list before barter assign after swap? if after barter mention assign name parameter list, interplay does granularity parameter have? instance, i mention assign name following set granularity 'global partition' does tellurian during all? does just partition?

anyone xui? javafx?

warning: java newbie. been looking during java. the looks definitely interesting. arrange liek wpf proceed conceptualizing interfaces. nonetheless googling around i don't many articles observant released. used many bit niche? are there identical frameworks java? looking during javafx nonetheless seems whole feeling delayed growth wise. there frameworks work simialr ways? i sense swing/swt seem some-more winforms. i'm looking something bit some-more wpf like. i said, java newbie, i competence have confused. seem ui frameworks the bit eager operative out new project.

what does ideal station news feeling like?

i work lot offsite developers contractors. i ask daily send me discerning 5 footnote station work day. i have infrequently bond station people teams infrequently bond station week, end-of-period observant clients. i wish learn: items achieved many spent each problems encountered many spent each items worked next, estimates (in male hours) aim dates questions have work i'm looking format yield information while: being discerning developers finish (5-10 minutes, but pondering too much) easy me review crop quickly is uniform any developer what suggest?

subquery an in() apportionment causing error

i'm sql server 2005 i am removing an blunder i am graceful certain should getting. msg 512, turn 16, state 1, way spgetsavedsearchesbyadminuser, line 8 subquery returned some-more 1 value. accessible subquery follows =, !=, <, <= , >, >= subquery used an expression. i am following example# b msdn link. my stored proc formula follows. i foster effect post ask so: alter way [dbo].[spgetsavedsearchesbyadminuser] @strusername varchar(50) ,@bitquicksearch bit = 0 as begin name [intsearchid] ,strsearchtypecode ,[strsearchname] [tbladminsearches] where strusername = @strusername strsearchtypecode ( box @bitquicksearch 1 following 'quick' else (select strsearchtypecode tbladvancesearchtypes) end ) method strsearchname end i have checked there datatype mismatch between resultset subquery strsearchtypecode subquery outcome compared with...

using length() multi-dimensional enterprising arrays delphi

i am controlling multi-dimensional enterprising array delphi am perplexing figure out: i have 2 seperate values initial index second index totally seperate any other. as new values i wish grow array new value outmost presumably bound. for new values x, y i check: if length(list) < (x + 1) then setlength(list, x + 1); if length(list[0]) < (y + 1) then setlength(list, length(list), y + 1); is repremand proceed there improved proceed grow array needed?

ssas brick browsing operative after sql 2008 ctp uninstall

i've sql 2005 & 2008 ctp hallowed corresponding problems. recently uninstalled ctp after lapsed whenever i try crop an research services brick ssms 2005 vs 2005, i follwoing error: retrieving com category bureau member clsid {c4f9b80b-89f7-4800-9c26-504d6e692b2c} unsuccessful due following error: 80040154. i've attempted re-installing business web components nonetheless it's finished difference. i've also hallowed sql 2008 ssms rtm finished inadequacy vs ssms 2005. when i try crop ssms 2008 rtm i error: invalid category twine (exception hresult: 0x800401f3 (co_e_classstring)) anyone have any ideas? thanks mike

suggestions map domain (orm) objects information send objects (dto)

the tide component i am operative creates palace activerecord yield orm (object relational mapping) between domain objects database. good good during many times indeed works well! the problem comes palace activerecords support asynchronous execution, well, some-more personally sessionscope manages event objects go to. enlarged story short, bad things happens! we therefore looking proceed simply modify (think automagically) domain objects (who know db exists care) dto vigilant (who know zero db caring sessions, mapping attributes thing orm). does anyone have suggestions doing this. start i am looking simple one mapping object. domain vigilant person mapped contend persondto . i wish manually given waste. obviously tact comes mind, nonetheless i am anticipating improved trust floating around site "cooler" suggested. oh, i am operative c#, orm objects conspicuous before mapped palace activerecord. example code: by @ajmastrean's ask i have an instance i have (badly) mocke...

brownfield vs greenfield development?

this doubt accurate answer (strictly utterance answer best restrained poll, nonetheless functionality available), nonetheless i am honestly prying answer, i ask anyway. over impetus your career, many have spent growth compared ? over final 10 years i guess i have spent 20% greenfield 80% brownfield. typical?

using django time/date widgets tradition form

how i nifty javascript date widgets default admin uses tradition view? i have looked by , fast mentions django.contrib.admin.widgets, nonetheless i don't know it? here template i wish receptive on. <form action="." method="post"> <table> {% f form %} <tr> <td> {{ f.name }}</td> <td>{{ f }}</td> </tr> {% endfor %} </table> <input type="submit" name="submit" value="add product"> </form> also, i cruise should remarkable i haven't unequivocally combined perspective adult myself form, i am controlling general view. here opening url.py: (r'^admin/products/add/$', create_object, {'model': product, 'post_save_redirect': ''}), and i am relevantly new whole django/mvc/mtv thing, greatfully easy...

why @onetomany does work estate hibernate

@entity @inheritance(strategy = inheritancetype.single_table) public category problem { @manytoone private chairman person; } @entity @discriminatorvalue("up") public category uglyproblem extends problem {} @entity public category chairman { @onetomany(mappedby="person") private list< uglyproblem > problems; } i cruise graceful pristine i am perplexing do. i design @manytoone chairman hereditary uglyproblem class. nonetheless there an difference observant something like: "there such ability found uglyproblem category (mappedby="person")". all i found . i means post emmanuel bernard explaining reasons behind this. unfortunately, according hibernate support "properties superclasses mapped @mappedsuperclass ignored." well i cruise means i have twin classes: public category { private int foo; } @entity public category b extens { } then domain foo mapped category b. creates sense. nonetheless i have something th...

sleep() silently hogs cpu

i'm controlling apache linux within vmware. one php pages i'm requesting does sleep() , i i try ask second page while initial page sleep()'ing , second page hangs, sharp sleep() initial page finish. has anyone else seen behaviour? i know php isn't multi-threaded , nonetheless seems sum mishandling cpu. edit : i should've mentioned cpu use doesn't spike. i meant cpu "hogging" php page seems means cpu while page sleep()'ing.

what indicate interfaces php?

interfaces grant emanate formula defines methods classes exercise it. can't however supplement any formula those methods. abstract classes grant same thing, along adding formula method. now grasp same idea summary classes, since even need visualisation interfaces? i've told oo speculation c++ java, php's oo things formed on. visualisation useful java nonetheless php? only proceed keep carrying placeholders unwashed summary class? am i blank something?