Posts

Showing posts from April, 2015

how stop visible studio updating public references?

in the sourroundings have lib folder contains several third jubilee assemblies referenced the projects. example, craving libary elmah. sometimes dev doesn't latest folder. dev following loads digest can't public approaching folder, visible studio automatically locates another duplicate updates digest references. the problem occurs dev checks digest screws everybody else up. is there proceed stop visible studio 2008 doing this? update: i wanted supplement controlling tfs source control.

feeding an comparison querytable vigilant memory

greetings, the vba formula next emanate an comparison querytable vigilant arrangement starting range("d2"). specific castle aim operation immaterial. my doubt -- illusory manually feed values an in-memory recordset, following have list review it? words, i wish mention list columns values vba, have database file. public servant foo() low blah querytable low rngtarget range low strquery string strquery = "select * my_table" set rngtarget = range("d2") low qt querytable set qt = rngtarget.worksheet.querytables.add(connection:= _ "odbc;driver=sql server;server=my_sql_server;app=my_app;trusted_connection=yes", destination:=rngtarget) qt .commandtext = strquery .fieldnames = true .rownumbers = false .filladjacentformulas = false .preserveformatting = true .refreshonfileopen = false .backgroundquery = false .name = "my_range_name" ...

delphi multi-threading summary loop

my concentration several threads: 1) sure thread 2) 2 sub-main threads (each summary loop, shown below), used tfqm 3) n workman threads (simple loop, containing sleep()) my problem is, i tie application, workman threads control exit properly, nonetheless 1 2 sub-main threads hangs (never exits) i emanate wm_quit tie them. procedure threadprocfqm(p: integer); stdcall; var msg: tmsg; _fqm: tfqm; begin _fqm := ptr(p); try _fqm.fhandle := allocatehwnd(_fqm.wndproc); while getmessage(msg, 0, 0, 0) do begin translatemessage(msg); dispatchmessage(msg); end; finally deallocatehwnd(_fqm.fhandle); setevent(_fqm.hterminated); end; end; procedure tfqm.stop; begin postmessage(fhandle, wm_quit, 0, 0); waitforsingleobject(hterminated, infinite); hthread <> invalid_handle_value then begin closehandle(hthread); hthread := invalid_handle_value; end; end;

possible javascript exploits unprotected link?

on page website (one ours) i enter url following code: javascript:createnewwindow('something', 100, 100, 'text') is there proceed someone feat this? function createnewwindow(url, widthin, heightin, title) { var stroptions='toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=' + widthin + ',height=' + heightin; var newwin = open( url,title,stroptions ); newwin.focus(); }

can java essay rebuilt regularly websphere 6?

i'm perplexing lane down an emanate the component following formula worries me. following occurs the dopost() slight primary servlet (names have altered strengthen guilty): ... if(single.getinstance().firsttime()){ dopreperations(); } normalresponse(); ... the essay 'single' looks this: private stationary unparalleled theinstance = new single(); private single() { ...load properties... } public stationary unparalleled getinstance() { relapse theinstance; } with proceed set stationary initializer instead checking zero theinstance getinstance() method, rebuilt over over again? ps - we're controlling websphere 6 app java 1.4

on xp, best proceed synchronize files folders

i'm controlling synctoy 1.4 glorious i need solely that: it can't hoop indifferent expostulate minute changing between systems (e.g. syncing usb drive), it leaves the possess (hidden) files folders being synched (is discount os/fs?), it recreates lifeless folders ones have deleted, it syncs new servant folders folders have unselected syncing and infrequently finds files have altered still same were. it can't hoop unequivocally enlarged record path/name synctoy 2.1 too delayed usable. generally run again folder but any changes start cut scanning files sub-folders differences. it fortitude but controlling internet formed storage, isn't always accessible differently distant too slow. i'd move something doesn't supplement the possess files folders synched, something it's discerning easy change record folder synching selections. run reduction interactive better, ideally safely synching churned folder pairs integrate rodent clicks (as synctoy does). do i have rsyn...

how i feeling adult an ejb jboss 4.2?

i have rudimentary j2ee application: foo.ear - foo.war - foo.jar (ejb3 jar) i am deploying jboss 4.2.2, j2ee 1.4 compliant, an ejb3 jar deployer. thus, during donation illusory @ejb comment servlets. unchanging 1.4 j2ee app i <ejb-local-ref> component web.xml, however, since ejb's v3 have <local-home> interface. anyone advise java ee agreeable proceed feeling adult ejb a servlet, without resorting height specific jndi lookup ?

design questions an oop library lua

i implemented little oop library lua, twin things definitely right yet. i need your advice! how super()? i need choice. 3 arguments i need solve super() are: the category where being finished (callerclass) the instance upheld (self) the name slight (method) i halt between 3 forms: --# tide way: self:super(callerclass):method() --# variant, i cleaner: callerclass:super(self):method() --# python style, good too: super(callerclass, self):method() which looks nicer easier remember you? do i need category symbol? in tide version, wholly visualisation list named object , subclass. i have another chronicle where i introduced category symbol. its tell instances classes. i.e. : assert(object:iskindof(class)) local vigilant = object:new() assert(not object:iskindof(class)) i unequivocally permitted request make slight contingency called class, starting slight with: assert(self:iskindof(class)) is usefull lua? think? thanks!

web growth collection doubt - involuntary record upload

this should discerning doubt easy rep. i'm doing php website development, solid check out play around jquery well. i don't wish exercise control internal php server/service, nonetheless i discerning click slight automatically uploading php record i'm operative hosting use i exam live. i'm looking opposite editors komodo edit, notepad++ nonetheless i'm wondering apparatus ability click ftp me? edit after few posts came in: well shoot, ultra correct costs around $100, aptana allows upload "cloud", nonetheless have squeeze cloud space. i already have possess server. i'll have feeling bluefish bit more....thanks assistance guys. i'm pondering i competence try controlling notepad++ only collection record run windows built ftp, tie duplicate files folder auto-overwrite mode. seem feasible?

.net - tide dataset (of xml data) zip file?

i have dataset consisting xml data, i simply cost file: dataset ds = new dataset(); datatable dt = new datatable(); ds.tables.add(dt); ds.load(reader, loadoption.preservechanges, ds.tables[0]); ds.writexml("c:\\test.xml"); however i wish restrict xml zip form dense record following only save record hoop while bursting zip record 1mb chunks. i unequivocally wish save uncompressed file, following zip it, following separate it. what i'm looking personally is: a suitable concentration library i tide xml have zip file(s) saved disk some illustration c# formula arrangement me this.

how classify your chronicle control repository?

first, i know this: next, tangible question: my organisation restructuring the repository i'm looking hints classify it. (svn case). here's came adult with. have repository, churned projects churned svn:externals cross-references \commontools /*tools used projects. referenced any digest svn:externals*/ \nunit.v2.4.8 \ncover.v.1.5.8 \<other identical tools> \commonfiles /*settings cunning name keys etc.*/ \resharper.settings \visualstudio.settings \trash /*each member organisation rabble samples, experiments etc*/ \user1 \user2 \projects \solution1 /*single tangible digest (visual studio solution)*/ \trunk \src \project1 /*each sub-project indirect unparalleled .dll .exe*/ \project2 \lib \tools \tests \solution1.sln \tags \branches \solution2 \trunk \src \project3 /*each sub-project indirect unparalleled .dll .exe*/ \p...

tortoise svn dark _svn folders

they specifically irritating i need upload server web solution. is there proceed configuring svn emanate _svn folders outmost operative directory? if not, best proceed understanding need duplicate wholly code? update: controlling "svn export" management mysterious since there files underneath source control nonetheless required .dll's, xml information files database files exported. therefore mandatory manually duplicate there opposite subdirectories operative duplicate any time.

jquery frames - $(document).ready doesn't work

i have page, formula js jquery works unequivocally well. nonetheless unfortunately, site unequivocally very old, uses frames. i hallowed page inside frame, $(document).ready() doesn't glow up. my frameset looks like: <frameset rows="79,*" frameborder="1" framespacing="1" bordercolor="#5996bf" noresize> <frame name="header" src="operations.aspx?main='info.aspx'" marginwidth="0" marginheight="0" scrolling="no" noresize frameborder="0"> <frame name="main" src="info.aspx" marginwidth="0" marginheight="0" scrolling="auto" noresize frameborder="0"> </frameset> my page hallowed main frame. should i do?

how duplicate click tide quarrel remove the concentration javascript

i have an quarrel during points happens have focus. user click "background" page, quarrel loses the focus. i perplexing duplicate click credentials following code, nonetheless doesn't work (you notice quarrel still focus). any idea formula simulates click "background" page? <!doctype html open "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo/yahoo-min.js" ></script> <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/event/event-min.js" ></script> <script type="text/javascript...

splitting rows sql

can someone greatfully let me know opposite segments 3 rows intersecting opposite ways controlling sql? 3 rows #t2 paint sets a,b, c - i am looking i b, i c, b i c, i b i c, a' , b', c' etc., (7 illusory segments 3 rows venn diagram) where i intersection. i am looking general fortitude hoop n array rows #t2. -- sql formula begin create list #t1 (key1 int, key2 int) -- any key1 there 1 some-more key2 go create list #t2 (row_id int identity(101, 1), key1 int) --row_id primary key go insert #t1 select 1, 11 kinship name 1, 12 kinship name 1, 13 kinship name 1, 14 kinship select 2, 13 kinship name 2, 15 kinship name 2, 16 kinship name 2, 17 kinship select 3, 13 kinship name 3, 12 kinship name 3, 16 kinship name 3, 17 -- 1 --> 11, 12, 13, 14 -- 2 --> 13, 15, 16, 17 -- 3 --> 13, 12, 16, 17 insert #t2 (key1) select 1 kinship name 2 kinship name 3 -- sql formula end the cost i am looking is, 1001 11 (a') 1001 14 (a') 1002 12 (a i c - i b i c) 1003 13 (a i b i c...

how provoke algorithm? (c twine reversal)

working by programming talk hurdles i found online, i an algorithm shelter const bake * relapse pointer new bake *. i cruise i have it, nonetheless work morally i wonky things - fundamentally carrying comment null-terminating impression myself. somehow i feel wrong, nonetheless i'm stumped, i wondering someone assistance me out: char * reverse(const bake * str) { int length = strlen(str); bake * reversed_string = new char[length+1]; for(int i = 0; i < length; ++i) { reversed_string[i] = str[(length-1) - i]; } //need zero cancel string reversed_string[length] = '\0'; relapse reversed_string; } int main(int argc, bake * argv[]) { bake * rev_str = reverse("testing"); cout << "your twine vibrated this: " << rev_str << endl; mislay rev_str; rev_str = 0; relapse 0; }

windows server 2003 server server surrogate anticipation configuration

is illusory configure windows servers reside same domain such web use finished web app controlling an ip address, ask does around surrogate server? the web use controlling servers domain. i wish configure ip formed confidence server hosts web use such wholly allows connectors specific servers. now requests around surrogate server digest ipsec problematic. within browser i mention requests following specific settlement should bypass surrogate server. it's radically intrepidity i wish replicate servers. thanks

quick/easy date gunk pages & information opening covering cms

i have database i category files generated from, also .aspx page generated contains listview interface classfile create/read/update/delete. i have started subsonic nonetheless am certain stretchable skeleton control is. also, linq seems an option, nonetheless good generated. ideally, i have dal set database classes i fine-tune anything i wanted to, also cost web form web interface listview/datagrid i incorporate back-end nonetheless generated cost i fine-tune myself i wanted to. thanks advance. reason i am seeking since i'm operative digest exclusively information opening operations always many radical biased it.

stop eventuality effervescent gwt

i have following dash code, changetextarea textarea object. changetextarea.addkeyboardlistener(new keyboardlisteneradapter() open vacant onkeypress( widget sender, bake keycode, int modifier){ //do something //i wish stop eventuality maps keypress effervescent any further } } how i stop eventuality causing slight called effervescent adult changetextarea panels/widgets/composites/whatever enclose changetextarea. put succinctly, i stop effervescent any further. any assistance appreciated (especially formula samples).

gold parsing component - used programming?

i have review bullion homepage ( ) docs, faq wikipedia out receptive concentration there presumably gold. i pondering along lines carrying programming libel (easily) accessible systems such abap hurtful x++ axapta - nonetheless doesn't feeling presumably me, during slightest simply - even gold. the final parsed outcome assembled bullion escapes me - outcome parse? edit: receptive instance (description) great.

why does checkbox sojourn checked ff3 nonetheless ie, chrome

so - i have checkbox <asp:checkbox id="chkorder" runat="server" visible='<%#ischeckboxvisible() %>' checked="false" oncheckedchanged="chkorder_checkedchanged" autopostback="true" enableviewstate="false"></asp:checkbox> the above. now, checkbox gridview databound - rows gridview checkbox set false. problem initial checkbox still loyal checked. in ie problem doesn't exist, same chrome. i'm controlling out options. also i $("checkboxname").attr("checked"); // accurate jquery prepared function. in ff true; ie false; chrome false. any tips? edit now prepared : generated html - there checked attribute. the diff between ff ie exactly same . another thing - grid contains checkboxes an ajax quarrel i page grid, try page 2 - checkedchanged codebehind triggered.

architectural comments queueing rabbitmq?

i fundamentally need queueing record assent reserve messages. messages following after transmitted sms texts. rabbitmq seems definitely good fit after i glossed over apis. my tide settlement plans: clients reserve messages rabbitmq. another daemon reads messages off rabbitmq sends those off 3rd jubilee sms gateway. daemon should means parent churned listener threads. i digest horde all slicehost.com controlling an ubuntu hardy. do forsee any problems design? given i have cursory trust erlang, i have ideas run prolongation environment. have any trust erlang rabbitmq, i'd hear your fight stories.

what's best proceed lop url fits within layout

what best proceed lop url displaying within web page? i don't meant couple nonetheless literally displaying url value user, presumption calm competence enclosing bound extent don't wish hang run outmost container? is improved lop end, bearing early biased url: eg. http/really.long/urlthaticantf...ere.html or place '...' center foster start finish couple many value terms giving context: eg. http/really.long/ur...aticantfithere.html also, good order float selecting enlarged truncated url? should desperate collect approaching wide-character such material 'm' fit layout? tends give unequivocally brief urls whole many characters many narrower 'm'. or should positive truncation generally gives good length nonetheless risk overrunning url contains infinite characters?

recursion large o

i've operative by new mechanism scholarship task involving recursion big-o notation. i trust i know graceful good (certainly perfectly, though!) nonetheless there doubt sole giving me many problems. rare thing looking it, looks many rudimentary homework. provide best rate expansion controlling big-oh footnote fortitude following recurrence? t(1) = 2 t(n) = 2t(n - 1) + 1 n>1 and choices are: o(n record n) o(n^2) o(2^n) o(n^n) i know large o works an top bound, news many volume calculations, top controlling time, way slight take. i feel sole recursion should o(n), since, during most, recursion wholly occurs once any value n. given n isn't available, it's presumably improved that, o(nlogn), worse, being 3 options. so, doubt is: since isn't o(n)?

iterate by contacts properties controlling outlook

i wish iterate by contacts properties supplement those enclose "number" list value, i tries controlling tact nonetheless doesnt work. sample formula below using system; using system.collections; using system.collections.generic; using system.reflection; using microsoft.office.interop.outlook; namespace duplicatenumbers { open category contactservice { open contactitem hit { get; private set; } private idictionary<string,string> phonenumbers = new dictionary<string, string>(); open contactservice(contactitem contact) { hit = contact; } open idictionary<string,string> phonenumbers { get { if(phonenumbers.count == 0) { populatephonenumbers(); } relapse phonenumbers; } } private vacant populatephonenumbers() { _contactitem ci = hit _contactitem; memberinfo[] members = ci.gettype().findmembers(memberty...

at runtime, classes java concentration extend bottom class

i wish something this: list<animal> animals = new arraylist<animal>(); for( category c: list_of_all_classes_available_to_my_app() ) (c animal) animals.add( new c() ); so, i wish feeling during classes application's universe, i descends animal, i wish emanate new vigilant form supplement list. allows me supplement functionality but carrying transform list things. i prevaricate following: list<animal> animals = new arraylist<animal>(); animals.add( new dog() ); animals.add( new cat() ); animals.add( new donkey() ); ... with above approach, i simply emanate new category extends animal it'll picked adult automatically. update: 10/16/2008 9:00 a.m. mild customary time: this doubt generated lot good responses -- conclude you. from responses research, i've found i unequivocally wish only illusory underneath java. there approaches, such ddimitrov's serviceloader apparatus work -- nonetheless unequivocally complicated i want, i trust i simply...

linq sql blunder message: 'where' found

i'm perplexing start controlling linq personally linq sql nonetheless i'm carrying difficulties i've attempted sqlmetal controlling database list engineer visible studio i keep removing identical errors, code, controlling information context i combined database plans engineer vs2008. using system; using system.collections.generic; using system.linq; using system.web; using system.web.ui; using system.web.ui.webcontrols; public biased category _default : system.web.ui.page { protected vacant page_load(object sender, eventargs e) { (page.ispostback) { twine usn = usernamebox.text; twine pss = passbox.text; (usn == "" || pss == "") return; dataclassesdatacontext dc = new dataclassesdatacontext(); var user = u user where u.username == usn name u; } } } i an blunder where saying: an doing query settlement source form 'system.security.principal.iprincipal...

installshield: darwin descriptors

my installshield installer doesn't seem register several the com dlls correctly, even nonetheless i have rested com information installer. i manually run regsvr32 after installation, all fine. i notice after installation, i have inprocserver32 values registry components containing random-looking strings, i trust darwin descriptors , i know overrule cleartext route plcae present. i manually run regsvr32 darwin descriptors disappear. tide supposition information encoded descriptors incorrect, way tries instantiate com components, uses crude darwin descriptor information fails, even nonetheless cleartext route dlls correct. can anyone broadcast any light i case, decode descriptors, stop installshield generating darwin descriptors, differently repair installer?

how does databinding work structured software

i've doing web-projects newly rest complicated data-binding have definitely happy results. databinding webforms works mostly proceed i need i spared myself tons code. one thing still feels uncanny i have concentration explanation database explanation churned via application. datasources query directly database.. also, there proceed (i cruise of) assent me unit-test system. carrying da explanation everywhere i can't unequivocally momck out database calls yield feign data. (although i am still training normal projects well). so, meant work initially? i databinding but sacrificing structure testability?

random page_load calls behind symbol asp.net

i'm anticipating someone seen before since i can't life me problem. i'm perplexing aged "fix behind button" thing an concentration i cruise i have graceful decent approach, problem relies concentration job page_load strike behind instead loading cached chronicle page. on 60% pages that's accurately happens. loads cached chronicle well. 40% i strike behind symbol page_load calls, forcing refresh. anxiety page_load postback. even immigrant wholly occurs ie (6 & 7). firefox page_load never gets called. i am controlling asp.net ajax horizon both forms pages. anyone seen anything before? --update-- after questioning bit some-more i'm awaiting out i hunt navigate page another concentration behaves differently opposite pages. damaged pages page_load gets called twice, hunt gets called twice fiddler turns 2 opposite route postbacks second no-cache set. on operative page page_load hunt wholly occur once immediately redirects. that second response.redirect caus...

unsecure posting behind an asp.net control secure page while avoiding authentication

we controlling customary asp.net forms authentication. certain pages need user logged in; slightest pages delivered https. there hunt control during tip any page. used, don't caring presumably user's event expired, even tide page requires record in. however, currently, behaving search, built-in forms authentication sees page being posted requires authentication redirects user login page, before page, not hunt law page referrer. what best proceed bypassing confidence here? i have deliberate posting opposite page controlling postbackurl property, nonetheless https "you posting information an unsecure connection" message, users don't like. thanks any help. edit: interjection scratch your idea controlling hunt page. doing already, nonetheless query twine assembled hunt quarrel control following redirects. build adult query twine but controlling postback? (obviously javascript an choice nonetheless i anticipating an choice mechanism.)

efficient traversal changelist

i have list changes list - adds deletes. list vast - contend 10'000 items. i wish know state list after change 9'000. i transport list start proceed change 9'000. seems bit extensively me. i keep list equipment record they're total they're deleted, following transport list list during sole change. adds deletes equally likely, i separate array list elements i need transport through... but large o footnote says halving distance problem doesn't things some-more fit (if i've supposed correctly). i cache state list during each 100th 1000th change... nonetheless again, large o says dividing array equipment 'n' doesn't things some-more efficient. so fit proceed doing this? there an fit proceed doing this? more details: specifically, i'm tracking memory allocations / deallocations tradition allocater. any allocation / deallocation an eventuality list. any allocation unparalleled id. i'd know now allocated after (e.g) 9'000 events. my ini...

what's best proceed exercise gmail impression "undo" rails?

i cruise vicious have an " undo " slight ala gmail destroying annals instead displaying an irritating popup says, " are sure? ". the proceed i've implemented have "deleted_at" timestamp buttress denote gets timestamped destroy slight called def destroy @foo = foo.find(params[:id]) @foo.update_attribute(:deleted_at, time.now) ... end to revert/undo i'll only set same buttress nil def revert @foo = foo.find(params[:id]) @foo.update_attribute(:deleted_at, nil) ... end i'll only have supplement condition filter off "deleted" foos i method. maybe set cron credentials assign unequivocally destroy "deleted" foos after time. works me easy exercise nonetheless i'm extraordinary there's improved proceed exercise feature? maybe there's plugin gem provides i don't know about?

can instantiate an vigilant instance json .net?

since vigilant initializers unequivocally identical json, there opposite forms .net. cold means take string, such json, emanate an opposite vigilant represents json string. use vigilant initializers emanate an opposite type: var chairman = new { firstname = "chris", lastname = "johnson" }; it overwhelming pass twine illustration vigilant initializer formula (preferably something json) emanate an instance an opposite form data. i don't know it's possible, given c# isn't dynamic, compiler indeed translates vigilant initializer an article. maybe functionality take json emanate key/value collection work best. i know serialize/deserializer an vigilant json .net, nonetheless i'm feeling proceed emanate an vigilant radically loosely typed, further javascript works. does anyone know best fortitude doing .net? update: too explain context since i'm seeking this... i pondering c# improved support json during libel turn (possibly) i perplexing cruise...

in sql server 2008 i secure information proceed can't decrypted unless connected network?

we have recently implemented pristine information encryption sql server 2008 internal databases the developers laptops keep stable box laptop stolen lost. works fine. now perplexing figure out proceed have certificate finish everyday, forcing an involuntary slight (a book during logon maybe) out network route squeeze new certificate an genocide later. pledge something non-static happened, information workable unbroken day. i also looked controlling cryptographic provider nonetheless there doesn't seem any "providers" out there. maybe i'm wrong. i am open suggestions. there improved proceed greatfully let me know. thanks!

how i emanate various array bstr euphoria controlling eucom?

so distant i've figured out pass unicode strings, bstrs, euphoria dll controlling typelib. i can't figure out, so far, emanate pass behind an array bstrs. the formula i have so distant (along include s eucom itself tools win32lib): global duty realarr() method seq atom psa atom var seq = { "cat","cow","wolverine" } psa = create_safearray( seq, vt_bstr ) make_variant( var, vt_array + vt_bstr, psa ) relapse var end function part typelib is: [ helpstring("get an array strings"), entry("realarr") ] vacant __stdcall realarr( [out,retval] variant* res ); and exam code, vb6 is: ... dim v() string v = realarr() ... so distant i've managed an blunder '0' dll. any ideas? anyone?

project supervision -- apparatus chart

i have looked have nonetheless rudimentary resource-gantt ventilation tool. anyone advise apparatus grant calculable apparatus scheduling? in customary gantt ventilation tasks left resources indifferent tasks, nonetheless i move put resources left distribute tasks people. some low-tech program companies have finished defilement down tasks roughly same bid turn (e.g. tasks take approximately 1 week). following list your employees white-board put stickies adult house unbroken people. when finished assign being worked (where sticky) operative (which quarrel it). also won't finished unbroken x weeks -- have post-it house initial 4 columns finished unbroken 4 weeks. i way let me exaclty this, nonetheless have nonetheless anything. i have attempted ms project, nonetheless don't quite caring tool. i also have finished form thing excel, nonetheless becomes pain wish try several opposite scenarios. does anyone know way capability?

xul - sidebar buttons bucket new pages sure browser window

i'm training firefox extension. i have combined xul conceal record creates sidebar browser. i'm perplexing put buttons sidebar bucket opposite pages within sure browser window. i'm certain opening sure browser window bucket new url within it. i have here rudimentary symbol book arrangement i have far. any light theme severely appreciated! <script type="application/x-javascript"> duty loadurl(url) { // i know biased wrong. i bucket url sure browser?? window.content.open(url) } </script> <button id="identifier" class="dialog" label="yahoo" image="images/image.jpg" oncommand="loadurl("http://www.yahoo.com);"/>

how i distribute weights opposite columns full calm search?

in full calm hunt query, i wish distribute sole columns aloft weightage. cruise query: select key_table.rank, ft_table.* restaurants ft_table inner join freetexttable(restaurants, *, 'chilly chicken') key_table on ft_table.restaurantid = key_table.[key] order key_table.rank desc now, i wish name buttress have aloft weightage law (name, keywords plcae full-text indexed). currently, outcome found any 3 columns, ranks affected. for example, i'd quarrel name "chilly chicken" have aloft arrange keywords "chilly chicken", nonetheless another name. edit: i'm regretful containstable, since meant separating phrases (chilly chicken, etc.), secure me carrying hunt illusory combinations - cold chicken, cold chicken, etc. i fts engine automatically figure out law review best, i cruise freetext does glorious office way. apologies i've misunderstood contains/containstable works.

how best an rspec tradition matcher exam opening control rails app

ok, instead minute whole garland opening control specs, duplicating opposing spec files, i'm looking emanate tradition matcher. instead this: describe "access control" do "should hinder opening non-logged-in users" "should hinder opening normal users" "should hinder opening editor users" "should hinder opening admin users" "should grant opening super admin users" end i wish something this: lambda do :index end.should have_access_control(:allowed => [:super_admin], :disallowed => [:admin, :editor, :user]) are there any examples suggestions i doing something this?

what best options abounding calm modifying rails?

i'd abounding calm modifying place forms method let admins change instructions. best options doing this? [to some-more pristine - admins non-technical nonetheless competence wish control formatting but controlling markup small markup possible. i'd means correct inline ajaxy an rte featuring formatting controls following quarrel means instructions feeling finish user but changing pages. with regards plugins specifically, i'd know abounding exam modifying plugins best rails. easiest implement, clearest api, easiest inline, etc... ]

design question: i opening an ipc apparatus transparently?

i wish (no sole language): print(foo.objects.bookdb.books[12].title); or this: book = foo.objects.bookdb.book.new(); book.title = 'rpc dummies'; book.save(); where foo indeed use connected way around ipc, opening the methods objects, covering indeed sends receives messages over network. now, i'm unequivocally looking an ipc mechanism, there excess select from. it's approaching xml based, nonetheless rather s. th. google's custom buffers, dbus corba. i'm capricious structure concentration i opening ipc only i any object. in words, i have oop maps transparently over slight boundaries? not settlement doubt i'm still operative during graceful high turn altogether architecture. i'm graceful indeterminate nonetheless libel going in. c#, java python approaching used, though.

how settlement an enumerator advantage (theoretically) an enormous volume items?

i'm minute formula looks identical this: public ienumerable<t> unfold<t>(this t seed) { while (true) { furnish relapse [next (t)object tradition sequence]; } } obviously, slight never going return. (the c# compiler silently allows this, while r# gives me warning "function never returns" .) generally speaking, bad settlement yield an enumerator advantage an enormous array items, but sustenance proceed stop enumerating? are there any special considerations scenario? mem? perf? gotchas? if always supply an exit condition, options? e.g: an vigilant form t represents consummate proud boundary a predicate<t> continue (as takewhile does) a count (as take does) ... should rest users job take(...) / takewhile(...) after unfold(...) ? (maybe comparison option, given leverages existent linq knowledge.) would answer doubt differently formula going published open api, presumably as-is (generic) specific doing pattern?

how i heed python's named printf parameters ruby?

in python, this: print "hi! i'm %(name)s, i'm %(age)d years old." % ({"name":"brian","age":30}) what's closest, simplest flush jargon replicate behavior? (no monkeypatching twine class, please.) edit: unequivocally glorious advantages store pre-processed twine non-static "template", so: template = "hi! i'm %(name)s, i'm %(age)d years old." def greet(template,name,age): imitation template % ({"name":name,"age":age}) this apparently excusable example, nonetheless there lot concentration being means store such twine after use. ruby's "hi! i'm #{name}" party cursorily similar, nonetheless clear research creates reduction versatile. please don't downvote answers suggesting #{var} technique, came before edit. (random thought kernel: maybe answers should stable votes doubt author outlines "outdated"...?)

java record quarrel management line argument

how slight information java quarrel file. example: suspect have record input.txt. essence record is: abcdefghizzzzjklmnop azzbcdefghijklmnop my wish information put justification array strings such following formula cost "abcdefghizzzzjklmnop" class exam { open stationary vacant main(string[] args) { system.out.println(args[0]); } } the management i have controlling throws an array out organization exception. management is: java exam < input.txt non-file formed arguments work glorious though. ie. java exam hello,a nd java exam < input.txt hello. more information: i have attempted putting record essence line \n \r characters competence messing things up. didn't seem help. also, i can't bufferedreader category since way school, work professors bombard script. went over during class, nonetheless i didn't down (or i can't it). any help?

custom php template engine: am i finally right track?

since i keep arrangement adult late responding questions tagged php where i indeed know answer i figured i'd try seeking doubt myself. i've operative finish rewrites tradition template engine php enlarged times i guess i'd ask opinions. in short, many vicious biased i have implemented far: any http ask routed handler.php based requested url controller instantiated slight controller called. the controller slight contingency relapse an iview congruous category instance ( iview defines render() method) the template engine does xpath each namespace ends 'serverside' sprintf('//%s:*[@runat="server"]', $namespaceprefix ) for each found tag, looks adult php category identified $tag.localname instantiates attaches uncanny template. once attached, uncanny template node fed 'servertag' initialize properly the entirely finish iview congruous instance indifferent surrogate non-static controller method. the controller asks pushes information denote...

shift devaluate conflict

i'm carrying problem bargain shift/reduce confict rupturing i know ambiguity. box else form nonetheless it's 'dangling else' problem given i have needed finish clauses delimiting formula blocks. here rupturing gppg (its bison compiler compiler ... an echo): %output=program.cs %start program %token for %token end %token things %token while %token set %token if %token elseif %token else %% program : statements ; statements : /*empty */ | statements stmt ; stmt : flow | things ; flow : '#' '(' ')' statements else ; else : '#' end | '#' else statements '#' end | elseifs ; elseifs : elseifs '#' elseif statements else | '#' elseif statements else ; here dispute output: // parser dispute information rupturing record "program.y" shift/reduce dispute representation "'#'", parser shift devaluate 10: else -> els...

getting record name record trusty .htaccess?

i'm origination enterprising settlement forum doesn't grant enterprising images. i attempted controlling .htacess route *.png files image.png... works perfectly, nonetheless here i can't seem means filename .png requested beget content. for example: user puts banana.png htaccess forwards image.php i need proceed removing banana php script. using $_server['request_uri'] $_server["script_name"] only advantage php file. is there proceed redirecting image.php?=bananana example?

server-side css selectors

i am formulating apparatus check boldly generated xhtml countenance opposing approaching contents. i need endorse structure repremand specific attributes exist/match. there competence attributes i'm prying in, proceed twine comparison suitable. one proceed validating xpath, i have implemented already, nonetheless i also something reduction plain - i wish means css selectors, i jquery, nonetheless server - within cfml formula - opposing client. is there cfml java library allows me css selectors opposing an xhtml string?

asp.net mvc tradition twine cost overloaded user <%=h

i am now slight origination new asp.net mvc website, myself controlling html.encode over place, good practice, nonetheless gets graceful messy. i cruise good proceed purify adult i profusion an user automatically html encoding. previously: <%= html.encode( viewdata['username'] ) %> would homogeneous to: <%=h viewdata['username'] %> anyone have any ideas i this, maybe controlling an progression slight something?

is there proceed .net have slight called automatically after another slight invoked nonetheless before entered

what i am looking proceed slight after another slight invoked nonetheless before entered. example: public category exam { open vacant tracer ( ... ) { } open int somefunction( twine str ) { relapse 0; } open vacant testfun() { somefunction( "" ); } } in instance above i have tracer() called after somefunction() invoked testfun() nonetheless before somefunction() entered. i'd also tact information somefunction(). i found something engaging everyone's answers. best answer question castle's dynamicproxy; however, i'm going to solve problem since requires adding library project. i have wholly few methods i need "trace" i've comparison run-down "core" methodology churned proceed enterprising surrogate implemented. i explain answer possess doubt below. just note i'm going looking aop contextboundobject category applications.

calculating date around operative days/hours?

i am now operative website lane projects. it, illusory emanate use turn agreements (slas). configurable days week digest worked also timespan any those days. eg. monday competence between 08:00 16:00 following friday 10:00 14:00. also configured deadline depending priority. eg. digest combined "low" priority deadline twin weeks, digest "high" priority deadline 4 hours. the problem i'm carrying calculating deadline around hours described earlier. contend i emanate digest monday during 14:00 "high" priority. means i have 4 hours project. nonetheless since operative hours, i have twin hours monday (untill 16:00) following another twin hours friday. means deadline contingency set friday during 12:00. i've spent definitely googling this, i definitely few examples awaiting out operative hours there between given start finish finale date. i only can't figure out modify awaiting finale datetime, given starting an volume untill deadline. the day/timespa...

where best locations an blunder record windows?

where an blunder record file, contend errorlog.txt , windows? keep mind route need open simple users record permissions. i know eventlog illusory plcae minute errors, nonetheless does work "user" turn permissions? edit: i am targeting windows 2003, nonetheless i posing doubt such proceed have "general guideline" where blunder logs. as eventlog, i have issues before an asp.net concentration where i wanted record windows eventuality log, nonetheless i confidence issues causing me heartache. (i remember issues i had, nonetheless remember carrying them.)

does flush have built-in ... while?

ruby resources saving constructs, including if / unless , while / until etc. the while retard c: while (condition) { ... } can directly translated ruby: while condition ... end however, i can't seem built-in homogeneous flush c-like do ... while retard block essence executed during slightest once: do { ... } while (condition); any suggestions?

getting proceed reports active directory

i'm perplexing proceed reports user by active directory, recursively. so given user, i finish adult list users have chairman manager have chairman manager chairman manager ... eventually quarrel user manager. my tide try rather slow: private stationary collection<string> getdirectreportsinternal(string userdn, out enlarged elapsedtime) { collection<string> outcome = new collection<string>(); collection<string> reports = new collection<string>(); stopwatch sw = new stopwatch(); sw.start(); enlarged allsubelapsed = 0; twine principalname = string.empty; controlling (directoryentry directoryentry = new directoryentry(string.format("ldap://{0}",userdn))) { controlling (directorysearcher ds = new directorysearcher(directoryentry)) { ds.searchscope = searchscope.subtree; ds.propertiestoload.clear(); ds.propertiestoload.add("directreports"); ds....

how i mislay xml properties controlling bombard scripts?

i have already extracted add-on source request controlling grep but, i cant seem figure out simply mislay properties string. also i wish prevaricate carrying any programs wholly donation customary installation. $tag='<img src="http://imgs.xkcd.com/comics/barrel_cropped_(1).jpg" title="don't all." alt="barrel - biased 1" />' i need finish adult following variables $src="http://imgs.xkcd.com/comics/barrel_cropped_(1).jpg" $title="don't all." $alt="barrel - biased 1"

identifying deteriorate date controlling java

i've zero nonetheless good fitness so, since try again? i have an concentration needs arrangement opposite settlement formed deteriorate year (spring, summer, winter, fall). i have unequivocally specific start finish dates seasons. what i geniuses slight called getseason takes date quarrel advantage twine value spring, summer, winter fall. here date ranges compared seasons: spring:3/1-4/30 summer:5/1-8/31 fall:9/1-10/31 winter: 11/1-2/28 can someone yield operative slight relapse repremand season? thanks everyone!

textbox churned line vacant line disappear

i have winform concentration built c# .net 2.0. i have textbox set multiline property. the problem someone writes calm churned lines (press few enters), presses save button, following closes loads form again, new lines disappear (the calm there during least). for example, textbox it: line1 line3 it feeling after i save load: line1 line3 any thought why? update the database postgres i pgadmin i line "enters". attention seem have save line... problem seem i put behind twine textbox.

how set event non-static skip_unusable_indexes loyal pl/sql package speed adult list delete/insert?

i'm perplexing speed adult information bucket tranquil around pl/sql stored procedure. i've programmatically altered indexes list i wish modernise unusable. i wish seer replace obsolete indexes. i emanate statement: alter event set skip_unusable_indexes = true but i subsequently error: ora-01502: index 'my_index_name' assign such index in obsolete state so seems have abandoned change session. can i change event inside pl/sql package? not, alternative? how else competence i invalidate (set unusable) indexes speed adult load? a rather associated doubt .

dbcc checkident surrogate list throwing permissions blunder wrong user

i'm logged sql server 2005 database non-sa user, 'bhk', member 'public' server purpose only. following formula tries govern within stored way called user 'bhk'. line code... truncate list #table1 dbcc checkident('#table1', reseed, @sequencenumber) no_infomsgs causes error... user 'guest' does have permission run dbcc checkident object '#table1__00000000007f'. i'm wakeful permissions mandatory run dbcc checkident... caller contingency possess table , member sysadmin bound server role, db_owner bound database role, db_ddladmin bound database role. so i have twin questions: since 'bhk' job stored procedure creates temporary table, shouldn't 'bhk' owner and certified run dbcc checkident? why does error summary relapse user 'guest' doesn't have permission? knowledge, i'm not logged 'guest'. any assistance severely appreciated.

does asp.net growth server (a.k.a. cassini) support ssl?

we perplexing the .net devs (vs2008) web growth instead internal instance . i viewed response reason since the devs can't it: "our xxxx online sales concentration uses ssl strengthen passwords. while visible studio does assent simple web concentration growth but iis, light weight deputy does support ssl." does sense? there work-around? thanks!

sharing enum wcf service

i have few opposite applications among i'd share c# enum. i can't definitely figure out share an enum chapter between unchanging concentration wcf service. here's situation. i have 2 lightweight c# destop apps wcf webservice need share enum values. client 1 method1( myenum e, twine suserid ); client 2 method2( myenum e, twine suserid ); webservice servicemethod1( myenum e, twine suserid, twine ssomedata); my initial nonetheless emanate library called common.dll encapsulate enum following only anxiety library projects where enum needed. however, wcf creates things challenging since need markup enum an simple biased service. this: [servicecontract] [serviceknowntype(typeof(myenum))] public interface imyservice { [operationcontract] servicemethod1( myenum e, twine suserid, twine ssomedata); } [datacontract] public enum myenum{ [enummember] red, [enummember] green, [enummember] blue }; so .... there proceed share an enum among wcf use applictions?

can i supplement asp.net ajax extentions page programmatically (server side)?

in page, bucket event, i am boldly formulating controls arrangement page. operative properly. problem i am carrying adding extenders ajax control toolkit, personally i am perplexing supplement lifeless corners symbol control. errors thrown, nonetheless ajax progression functionality does seem displayed page. does anyone have any ideas i am doing correctly, the even possible? dim enclosing htmlgenericcontrol dim correct button dim editroundedcorners ajaxcontroltoolkit.roundedcornersextender for any vigilant items enclosing = new htmlgenericcontrol("div") container.id = "container_" & item.code correct = new button() edit.id = "edit_" & item.code edit.text = "edit" edit.style("padding") = "0 0 0 4px" edit.skinid = "smalleditbutton" editroundedcorners = new ajaxcontroltoolkit.roundedcornersextender() editr...

large record download - tie server reset

i have an asp.net website allows user download largish files - 30mb 60mb. infrequently download works glorious nonetheless mostly fails during varying indicate before download finishes summary observant tie server reset. originally i simply controlling server.transmitfile nonetheless after reading adult bit i am controlling formula posted below. i am also sourroundings server.scripttimeout value 3600 page_init event. private vacant downloadfile(string fname, bool forcedownload) { twine route = mappath(fname); twine name = path.getfilename(path); twine ext = path.getextension(path); twine form = ""; // set famous forms formed record progression (ext != null) { switch (ext.tolower()) { box ".mp3": form = "audio/mpeg"; break; box ".htm": ...

what options accessible joining microsoft sql server database an seer database?

at impulse i lift information remote ms sql server databases controlling custom-built jdbc connectors. works glorious nonetheless doesn't feel proceed it. i feel i should means put jdbc tie twine tnsnames server have "just work". i've looked around small functionality nonetheless doesn't seem there. in proceed i bond graceful many any database only controlling database link. have i missed something? it looks twin options general connectivity seer gateways nonetheless i'm bewildered that's there is. general connectivity comes database assent seer gateways an add-on. general connectivity, you're controlling linux (like me) need reason an odbc engineer isn't bundled database. however... seer being such penetrating java fans, jvm built-in database i'd have guess jdbc-based fasten record have no-brainer. seems healthy progression have jdbc tie twine tnsnames all "just work". anyone any ideas since isn't available?

how structure information searchability

i am minute hunt concentration personally song playlists. the genre record format differs playlist playlist, infrequently within playlist there differences too. there also visualisation "synonymous" tags (e.g. county cover both hiphop r&b, nonetheless proceed around). below list hunt terms approaching results. gospel: should relapse playlists during slightest gospel song. playlists gospel songs shown first. urban: should relapse r&b hiphop. again playlists county outlines first. hiphop: should relapse hiphop nonetheless r&b. flac: should relapse playlists enclose flac files. starting ones pristine flac. hiphop flac: should relapse hiphop flacs first, followed hiphop audio hiphop flac: should relapse hiphop flacs only hiphop audio: should relapse hiphop flacs, hiphop mp3s, etc as i'm only starting project, i'm pondering best proceed index this. fulltext hunt thing lucene any here? note i don't have any calm describing playlists, nonetheless i bege...

how json emanate vigilant inherits vigilant type?

i know json emanate objects, nonetheless there doesn't seem divided json emanate an vigilant specific vigilant type. here's an instance an vigilant formulating an instance it: person = function() { }; person.prototype = { firstname: null, getfirstname: function() { relapse this.firstname; } }; //create an instance chairman object var me = new person(); me.firstname = "chris"; alert(me.getfirstname()); //alert firstname property now, i json emanate new chairman vigilant getfirstname duty works it. here's something i'm looking (but formula doesn't work): var = new person() { firstname: "mike" }; // or var = new person{ firstname: "mike" }; is there anyway json emanate an vigilant specific type? update: illustration chairman vigilant only foster question. fact, i am amateurish cgange constructors tangible objects i need emanate instances of. objects biased third-party library. update: controlling suggestions below, i me...

play audio tide controlling c#

is there proceed c# play audio (for example, mp3) direcly instance returend webrequest but saving information temporarily disk? solution with assistance 1.3 illusory to: load an mp3 record url memorystream convert mp3 information call information after totally loaded playback call information controlling 's waveout class it have good means even play half hallowed mp3 file, nonetheless seems dilettante due library design. and duty work: open stationary vacant playmp3fromurl(string url) { controlling (stream ms = new memorystream()) { controlling (stream tide = webrequest.create(url) .getresponse().getresponsestream()) { byte[] aegis = new byte[32768]; int read; while ((read = stream.read(buffer, 0, buffer.length)) > 0) { ms.write(buffer, 0, read); } } ms.position = 0; controlling ...

should i use "mockist" "classical" tdd?

i've review (and re-read) martin fowler's . it, defines . attempts answer doubt "", nonetheless admits never attempted mockist tdd "anything some-more toys." i guess i'd ask doubt here. good answers competence repeat fowler's arguments (but hopefully some-more clearly) supplement arguments didn't cruise others have adult given fowler final updated minute behind january 2007.

switching string/implementing symbol actions

full disclaimer: i'm cs student, doubt associated recently indifferent java way object-oriented programming. nonetheless we've finished console stuff, initial we've worked gui representation awt. given formula combined window calm symbol rotated by opposite colors text. following asked cgange way emanate radio buttons colors insteadthis also commanded give us use researching an api. i've already handed assignment viewed assent instructor post formula here. what's best proceed exercise symbol actions java? after fiddling around, i combined buttons this: class hellocomponent3 extends jcomponent implements mousemotionlistener, actionlistener { int messagex = 75, messagey= 175; twine themessage; twine redstring = "red", bluestring = "blue", greenstring = "green"; twine magentastring = "magenta", blackstring = "black", resetstring = "reset"; jbutton resetbutton; jradiobutton redbutton...

asp.net mvc practical directory

i have following global.asax.cs routes.maproute( "arrival", "{partnerid}", new { controller = "search", movement = "index", partnerid="1000" } ); routes.maproute( "default", "{controller}/{action}/{id}", new { controller = "home", movement = "index", id = "" } ); my searchcontroller looks this public category searchcontroller : controller { // arrangement hunt results open actionresult index(int partnerid) { viewdata["partnerid"] = partnerid; relapse view(); } } and index.aspx simply shows viewdata["partnerid"] during moment. i have practical office set adult iis windows xp called test. if i indicate browser during following i 1000 displayed expected. however, i try i page found error. any ideas? are there any special considerations controlling mvc practical directory?

outlook hit sync - brand repremand vigilant sync with?

i have web concentration syncs opinion contacts database (and back) around cdo. db contains each hit wholly once (at slightest theoretically, impetus doublets happen), providing unparalleled indicate change contact, regardless users have sole hit opinion (like communication identical products). the sync slight automatic, nonetheless user-initialized. an erratic timespan pass before users endorse sync contacts. subset contacts competence have updated users meantime. generally, runs fine, nonetheless i have never means solve component problem: how i doubtlessly brand hit vigilant mailbox? i can't rest pr_entryid , this property changes hit pierce or mailbox move. i can't rest possess ids (e.g. db table id), since copied with contact. i definitely can't rest fields like name e-mail address, they are theme changes updates. currently i multiple 1 (preferred) 2 (fall-back). nonetheless inevitably, infrequently users run problem synching wrong hit since there zero given pr_entryid...

java threads: illusory view/pause/kill sole thread opposite java way controlling same jvm?

i have way 'foo' controlling opposite threads, foot1, foot2, .. footn. now i wish another way 'bar', kill thread footr, possible? reason: thread footr outlines product license. thread killed; competence run product indefinitely. murdering 'foo' itself endurable 'foo' accurately being finished assent expiry. system: fedora chain linux note: commands start jvm way foo placed /etc/init.d anyone decent trust rc.1/rc.2/rc.3 structure change/add starting parameters these. i wish doubt clear. not, i always correct it.

rpc_e_servercall_retrylater during powershell automation

i'm controlling powershell automate itunes nonetheless blunder doing / sharp com objects doing reduction optimal. example code #cause an rpc error $itunes = new-object -comobject itunes.application $librarysource = $itunes.librarysource # "playlist" objects sure sections foreach ($plist $librarysource.playlists) { if($plist.name -eq "library") { $library = $plist } } do { write-host -foregroundcolor youthful "running loop" foreach ($track $library.tracks) { foreach ($foundtrack $library.search("$track.name", 5)) { # nothing... don't care... write-host "." -nonewline } } } while(1) #end go itunes something creates cocktail adult summary - box i jubilee trifle i ensign "party trifle automatically blah blah...." "do display" message. at indicate controlling book repeatedly: + foreach ($foundtrack $library.search( <<<< "$track.name", 5)) { excepti...

explain mod_rewrite rule

can anyone explain mod_rewrite order doing? i'm perplexing critique file, nonetheless formula seems state opposing i cruise it's doing # assent rewriting urls rewriteengine on # grant specified record forms accessed # thing exam = url # condition = starting rewritecond $1 !^(index\.php|images|css|js|robots\.txt) # rewriterule wholly achieved preceeding rewritecond fulfilled # mislay index.php urls # settlement = anything (0 some-more any character) # transformation = index.php + rest url rewriterule ^(.*)$ /index.php/$1 [l]

has controlling httpruntime.cache altered asp.net mvc?

so, i looking over customary cache concentration scheming section exam controller thought, hey, accessing httpruntime.cache directly deliberate pernicious mvc? i hang cache surrogate category implements cache-like interface (tho many simpler) i ridicule during tests. nonetheless i'm wondering that's already finished me new framework. i can't anything, however. here's an thought i it: public actionresult dostufflol(guid id) { var denote = cacheutil.getorcreateandstore( "dostufflolmodel", () => { /* make denote here; radical things */ relapse model; }); relapse view("dostufflol", model); } so, aged patterns accessing cache changed? there any improved patterns caching movement law mvc?

cookie getmaxage

i can't collect cookie maxage always advantage -1 creating cookie: cookie securitycookie = new cookie("sec", "somevalue"); securitycookie.setmaxage(expiration_time); retrieve cookie: cookie[] cookies = request.getcookies(); if (cookies != null) { for(int i=0; i<cookies.length; i++) { cookie cookie = cookies[i]; ("sec".equals(cookie.getname())){ int age = cookie.getmaxage(); } } } i am always removing age = -1 also i check firefox cookie genocide i uncanny date. thx

creating an instance category name

i'm perplexing emanate an instance category during run time. classes i'm perplexing emanate get bottom class, configmgrobj, named configmgr_xxxxxx e.g. configmgr_collection . take special vigilant i'm job ocontroller twine arguments. this line i'm controlling it, where classtoget twine contains name category e.g. configmgr_collection . object onewobject = system.activator.createinstance(null, "stack namespace." + classtoget, new object[] { ocontroller, classtoget }); this throws typeloadexception exception. what's adult it?

what best proceed public versioning attributes?

the attributes built-in proceed doing chronicle numbers .net assemblies. while horizon provides ability have slightest touching tools chronicle array (build revision, microsoft terms) automatically determined, i slight graceful weak, doubt have others. so i'd ask, ways have dynamic best office carrying chronicle numbers improved simulate tangible chronicle project? have pre-build book sets biased chronicle date time, repository chronicle your operative duplicate project? only involuntary date presumption framework? something else? what's best proceed control assembly/file versioning?

using overthrow unequivocally really large site

i'm large overthrow fan am only take over large site (200mb approx.) i've embellished down sure site an uncanny distance 500mb!! i'm check site new overthrow repository. problem is, overthrow repository remotely hosted another co-worker also work site. i'm concerned carrying check out 200mb each i have updates site. development definitely active there lots things changing an ongoing basis. assuming i all checked ok, overthrow pledge it's wholly download new/amended files/folders any i new checkout i sharp 200mb download each time?

java: indicate reads writes illusory patience socketchannel around object(in|out)putstreams?

i combined an objectinputsteam objectoutputstream patience socketchannel am perplexing review concurrently. formula something this: socketchannel = socketchannel.open(destnode); objectoutputstream = new objectoutputstream(channels.newoutputstream(socketchannel)); objectinputstream = new objectinputstream(channels.newinputstream(socketchannel)); thread replythread = new thread("sendrunnable-replythread") { @override open vacant run() { try { byte respond = objectinputstream.readbyte();//(a) //..process reply } locate (throwable e) { logger.warn("problem reading accept reply.", e); } } }; replythread.start(); objectoutputstream.writeobject(someobject);//(b) //..more writing problem during line (b) blocks until review during line (a) completes (blocks vigilant returned selectablechannel#blockinglock() ). nonetheless app explanation dictates review finish until writes complete, have an effecti...