Posts

Showing posts from May, 2010

tomcat - Can we inject a request parameter to a http request in apache -

tomcat - Can we inject a request parameter to a http request in apache - we have apache web server acts proxy tomcat server. our web applications hosted on tomcat server , external urls mapped internal urls in apache. the protocol used communication between apache , tomcat ajp13. we required send parameter webapplication when first request client reaches webapplication i.e. when login page requested for. the external url cannot modified since in utilize hence additional http parameters cannot specified. is possible inject request parameter in apache time request ends on tomcat have parameter? create servlet filter checks if particular cookie set. if not, set cookie , create httpservletrequestwrapper injected request parameter. pass wrapped request chain.dofilter(). apache tomcat httpwebrequest

C# non-evil fast array lookup? -

C# non-evil fast array lookup? - i want have big number of class instances homecoming same similar fields of data, in illustration implementation: foreach (someclass sc in someclasses) { system.console.writeline(sc.getdata("1st field")); system.console.writeline(sc.getdata("another field")); system.console.writeline(sc.getdata("and another")); } // ---- within someclass: dictionary<string, string> mydata; public string getdata(string field) { homecoming mydata[field]; } what don't string hashing, lookup , matching has happen on , on 1 time again in illustration (i assume thats how dictionary works). find improve approach. coming c world, thought of assigning fields unique integer key, such can alter array lookup: // ---- within someclass: string[] mydata; public string getdata(int field_key) { homecoming mydata[field_key]; } now field lookup efficient, doesn't sense right in these ...

ide - Delphi XE keyboard errors -

ide - Delphi XE keyboard errors - we have machine running delphi xe professional alter value of keys when typing in ide. alter letters , number keys digit. next key pressed come in next number in sequence 9 , start on @ 0. i haven't found similar posted anywhere else, not easy thing search on. here facts: windows 7 professional 64-bit sp 1 delphi xe , without update 1 (installing update 1 first thing tried prepare it) acer prestige laptop the digits cycle 9 , start on @ zero. typing except delphi ide editor results in right key value. holding shift , key gives corresponding symbol shifted number. example, if next number 5 , pressing shift , key gives % . holding alt , key appropriate function. alt-f open file menu. holding ctrl , key appropriate function. ctrl-z undo. most punctuation, such ,.<>/? , works normally. quitting delphi corrects while, not always. restarting windows same. the problem starts without apparent reason. immediately, oth...

What's the most idiomatic approach to multi-index collections in Haskell? -

What's the most idiomatic approach to multi-index collections in Haskell? - in c++ , other languages, add-on libraries implement multi-index container, e.g. boost.multiindex. is, collection stores 1 type of value maintains multiple different indices on values. these indices provide different access methods , sorting behaviors, e.g. map, multimap, set, multiset, array, etc. run-time complexity of multi-index container sum of individual indices' complexities. is there equivalent haskell or people compose own? specifically, idiomatic way implement collection of type t both set-type of index (t instance of ord ) map-type of index (assume key value of type k provided each t, either explicitly or via function t -> k )? in trivial case every element has unique key that's available, can utilize map , extract key element. in less trivial case each value simply has key available, simple solution map k (set t) . looking element straight involve first extracti...

perl - How do I follow a redirect with Test:WWW::Mechanize? -

perl - How do I follow a redirect with Test:WWW::Mechanize? - i have form, submit_form_ok form codes /process returns redirect / . how can follow redirect create sure it's doing right thing? www::mechanize follows redirects automatically you. so, unless want test sent /process before sent / , shouldn't have care. and, really, if wind in right place right page, care how got there? perl testing

Partial reading of file in Java -

Partial reading of file in Java - i creating java application in need read first few lines of huge text file , processing. possible instead of getting entire file, read first few lines , fetch data? , beingness done using java api. yes, can done. when utilize bufferedreader, example, read (buffer_size) file. can process before reading next fragment... for example, see this tutorial java file api io

ASP.NET MVC, different of Razor syntax and ASP.NET syntax? -

ASP.NET MVC, different of Razor syntax and ASP.NET syntax? - the advantage of razor syntax on asp.net syntax using on short tag "@" instead of "<%= %>"?? is other feature or info binding method razor can do, asp.net syntax not? razor pretty cool, can observe if writing html code in code blocks. declaring big block of c# code, using @. write foreach-loop in that, , write html should echoed out. in asp.net markup, you'd have end c# code block %> , reopen <%. razor, on other hand, can observe when writing html , you. observe set bracket closes loop, without having set within <% %>. handy, , timesaver. for more information: click click. asp.net asp.net-mvc-3

asp.net - Pass javascript array to asp array -

asp.net - Pass javascript array to asp array - i have javascript array values of checkbox selected. want pass javascript array asp array can update database. i using jquery checkbox value $('.checkboxes_to_delete:checked').each(function (key, value) { datatobedeleted.push($(this).val()); alert(datatobedeleted); }); the easiest way utilize javascript set values hidden textbox on page, , asp code can pull value downwards other form value. asp.net

visual studio 2010 - Replace variables inside txt file programatically from vb.net -

visual studio 2010 - Replace variables inside txt file programatically from vb.net - i have issues trying create thing, if 1 here can give me advice or help nice. i need read info txt file , set info textbox (this ready , done) but textfile have variables %username% need replace programatically in vb.net, 1 have thought how it? example of text file: hello %username% , automated study of uses of account. this txt file have in it, when read vb.net , set info textbox done right, question how replace %usernams% text in textbox , replaced when press button? textbox1.text = textbox1.text.replace("%username%", textbox2.text) vb.net visual-studio-2010 vb.net-2010

mysql - How do I efficiently delete all rows in a many-to-many relationship table that have a given destination exclusively on one side of the relationship? -

mysql - How do I efficiently delete all rows in a many-to-many relationship table that have a given destination exclusively on one side of the relationship? - i have mysql database relationship table can simplified to: create table `paths` ( `origin` char(32) not null, `destination` char(32) not null, `id` int(11) not null auto_increment, primary key (`id`), ) this many-to-many relationship. want delete paths paths origin lead place, e.g. neverland . this sql should work: delete paths origin in (select distinct origin paths destination = 'neverland') , origin not in (select distinct origin paths destination <> 'neverland'); but, there better, more efficient way? thanks! try: delete paths paths p not exists (select * paths origin = p.origin , destination <> 'neverland') mysql sql many-to-many query-optimization relationship

syntax - grails i18n label cross-referencing? -

syntax - grails i18n label cross-referencing? - is possible include i18n property values within other internationalized messages in grails? i have domain class containing 2 properties, "mindelay" , "maxdelay", , want write internationalized message referencing labels both. i wrote custom validator (maxdelay must bigger or equal mindelay): maxdelay(validator:{ value, reference -> if (value < reference.mindelay) { homecoming ['custom.error', it] } else { homecoming true; } }) when fails, i'm printing property stub.maxdelay.custom.error . in messages.properties there properties: stub.maxdelay.custom.error=property [{0}] must bigger value of mindelay stub.mindelay.label=min. delay (ms) stub.maxdelay.label=max. delay (ms) how can utilize value of stub.mindelay.label property instead of static text? error message should read like: "property [max. delay (ms)] must bigger value of [min. d...

c++11 - Multiple declarations of C++ functions with default parameters -

c++11 - Multiple declarations of C++ functions with default parameters - i utilize typedefs everything, including functions. on past few weeks, have been tarting our c++ code conform possible iso c++11 standard, using final draft document (n3242) guide. as know, there occasional multiple declarations creep our code through externs appearing in more 1 file, or typedefs repeated. according excerpt section 7.1.3, page 145 of above doco, should harmless: 3. in given non-class scope, typedef specifier can used redefine name of type declared in scope refer type refers. [ example: typedef struct s { /* ... */ } s; typedef int i; typedef int i; typedef i; — end illustration ] so, wrote programme test this. in simplest form: typedef int (fcntype)(int, int); extern fcntype fcn1; int fcn1(int x, int y) { homecoming x + y; } int main(int argc, char ** argv) { homecoming fcn1(2, 3); } compiling using gcc -wfatal-errors -wswitch-default ...

windows - How to check in C++ if an application is already running before launching a new instance? -

windows - How to check in C++ if an application is already running before launching a new instance? - i have found few references implementation 1 clear description in c++ (joseph newcomers article http://www.flounder.com/nomultiples.htm#createmutex), (c)1999 little reluctant utilize without first checking if there "newer/better" ways today. thanks any named object do, can file, mutex, event, mailslot, tcp port, etc. error_already_exists tells whether instance existed. for objects in win32 kernel namespace, there 1 alter since 1999 -- because of terminal services, can utilize prefix of global\ or local\ specify whether it's 1 instance on entire computer vs 1 per user logon session. if want more portable, binding tcp port, or creating file , exclusively locking it, tend work across variety of oses. c++ windows

c# - Strange behavior with WPF MediaElement -

c# - Strange behavior with WPF MediaElement - i current using mediaelement play variety of different files , seem have of working. one thing noticed sound files (in case mp3's specifically) reject play on first attempt. can hear millisecond (very unattractive) worth of sound. more blip , nothing. subsequent effort load music works fine, odd. videos play on first attempt, , streamed media. seems apply local sound files. the code starts both sound , video files pretty much identical. private void lvvideos_mousedoubleclick(object sender, mousebuttoneventargs e) { var depobj = e.originalsource dependencyobject; if (depobj != null) { var parent = depobj.findvisualancestor<listviewitem>(); if (parent != null && lvvideos.selecteditem != null) { state = playstate.closed; video video = lvvideos.selecteditem video; if (video == null) return; ...

json - Twitter: Rate limit exceeded, do tweet buttons count as a request? -

json - Twitter: Rate limit exceeded, do tweet buttons count as a request? - i've got twitter feed caches request twitter. @ gets feed every 10 minutes (so that's 6 times hr out of max limit of 150). i regularly issues when rate limit exceed. reason can think of causing because of tweet buttons used elsewhere on site. does using tweet button count request, , if so, what's best way cache results? i'm using json request: http://twitter.com/status/user_timeline/user_account.json?count=2 what want utilize request tweet buttons, don't think it's rate limited. http://urls.api.twitter.com/1/urls/count.json?url=http://somelink.com&callback=twttr.receivecount twitter link count twitter rest api json caching twitter twitter-feed

java - JSF 2 - Where does a @ViewScoped bean live between requests? -

java - JSF 2 - Where does a @ViewScoped bean live between requests? - i'm trying improve understand low-level workings of @viewscoped bean in jsf 2. server maintain view-scoped bean between requests? i've noticed view-scoped beans need implement serializable , must serialized location. can explain or provide link documentation explains it? i'm asking question because may have introduced scope-related defect webapp. understanding how @viewscoped works help me rule out of potential causes. @viewscoped beans stored in viewmap of uiviewroot: uiviewroot uicomponent represents root of uicomponent tree. component renders markup response ajax requests. serves root of component tree... in fact, can access viewmap yourself, , stuff values in there using: facescontext.getviewroot().getviewmap()... for more information, see jsf api doc: http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/component/uiviewroot.html java seriali...

asp.net - C# custom control to render other controls -

asp.net - C# custom control to render other controls - how can utilize custom command render other controls? obviously, @ render stage, late. test works not contain <asp:sometag>, test2 want able write out , render properly protected override void render(htmltextwriter writer) { const string test = @"<a href='http://www.something.com'></a>"; const string test2 = "<asp:hyperlink id='hyperlink1' runat='server' navigateurl='www.something.com'>some text</asp:hyperlink>"; writer.write(test2); } you can override createchildcontrols method as shown in example: protected override void createchildcontrols() { // add together literalcontrol current controlcollection. this.controls.add(new literalcontrol("<h3>value: ")); // create text box control, set default text property, // , add together controlcollect...

Displaying rows in SQL Server where COUNT = 0 -

Displaying rows in SQL Server where COUNT = 0 - the next query returns part names regions there have been orders. select r.regionname, count (distinct o.uid) orders o left bring together customers c on o.customerid = c.uid left bring together regions r on c.region = r.uid (r.regionname not 'null') , (r.regionname <> '') , (r.regionname not 'region 1') , (o.dateordered '7%2011%') grouping r.regionname order r.regionname how can modify part names show when "count" "0"? you need either alter join regions right join or create regions from table , join other tables there. i prefer sec method, since seems more intuitive me. care regions here , you're trying info regions, should in from (imo): select r.regionname, count(o.uid) regions r left outer bring together customers c on c.region = r.uid -- don't naming convention left outer ...

java - Sorting algorithm which does not allow counting of elements -

java - Sorting algorithm which does not allow counting of elements - i have seen acrosss in company interview test question, not clear question first. people clarify uncertainty ? question : write programme sort integer array contains 0's,1's , 2's. counting of elements not allowed, expected in o(n) time complexity. ex array : {2, 0, 1, 2, 1, 2, 1, 0, 2, 0} because there few values in array, count how many of each type there , utilize repopulate array. create utilize of fact values consecutive 0 - making match typical java int loop. the whole sorting algorithm requires 3 lines of code: public static void main(string[] args) { int[] array = { 2, 0, 1, 2, 1, 2, 1, 0, 2, 0 }; // line 1: define space hold totals int[] counts = new int[3]; // store (3) different totals // line 2: total of each type (int : array) counts[i]++; // line 3: write appropriate number of each type consecutively array: (int = 0, start = 0; ...

git svn - Git. svn dcommit analog for git repos -

git svn - Git. svn dcommit analog for git repos - i want utilize next typical workflow: create new branch feature, , checkout it do commits in feature branch checkout master merge feature branch. push changes it typical utilize case. however, there 1 thing anoying me - dont want show branch commits public. want force merge commit, without feature developing history. one can propose utilize git rebase commits squashing. in fact, such squashing workaround, not real solution. want have commits localy, merge graph, history purposes. i want simmilar git svn dcommit - merge commit pushed onto remote, see localy whole history of development, feature commits, two-parents merge node , appropriate merge graph. you try git merge --squash <feature branch> that want exception of branch's not beingness considered merged. git git-svn

oop - How come this python class prints out my kwargs? -

oop - How come this python class prints out my kwargs? - class meta(dict): def __init__(self, indexed, method, *args, **kwargs): super(meta, self).__init__(*args, **kwargs) print self how come prints kwargs? m = meta(indexed='hello', method='distance', a='3', b='4') when run this, prints out dictionary kwargs, when i'm expecting empty dictionary... that's because dict class initializes contents keyword arguments passed constructor: >>> dict(indexed='hello', method='distance', a='3', b='4') {'a': '3', 'indexed': 'hello', 'b': '4', 'method': 'distance'} since class calls dict 's constructor keyword arguments passed own constructor, dictionary indeed initialized , same behavior observed. python oop

windows - Get Logged on Users from a List of Computer Names -

windows - Get Logged on Users from a List of Computer Names - i wanted extract list of users logged on remote pc, ps names fed in using .csv file. i able command get-wmiobject win32_loggedonuser -computername $computer | select antecedent -unique to query user names, 1 help me more on how write code? assuming csv file contains computername header: import-csv computers.csv | foreach-object{ get-wmiobject win32_loggedonuser -computername $_.computername | select-object __server,antecedent -unique | foreach-object { $domain,$user = [regex]::matches($_.antecedent,'="([^"]+)"') | foreach-object {$_.groups[1].value} $_ | select-object __server,@{name='domain';expression={$domain}},@{name='user';expression={$user}} } } windows arrays powershell

php - Saving Ordering Of A Sortable List Using jQuery UI -

php - Saving Ordering Of A Sortable List Using jQuery UI - i working on wordpress function allows users add together links side bar of website (and automatically generates domain extension based on users input). trying implement jquery ui's sortable function allow users order links way like. sortable function working great, order not save 1 time page refreshed. have looked everywhere , seems should using ajax , type of update function within jquery. right have this: $(document).ready(function(){ $("tbody#existing").sortable({ helper: fixhelper}).disableselection(); }); yes, need communicate item order server , means ajax. 1 time server has info needs store someplace (the database), later needs retrieve it, , useful it. puts squarely in middle of "plugin development." there (at least) 1 plugin this, my link order. utilize that, or utilize learning tool develop own plugin. some other pages may useful you: writing plugin creating opt...

bitmap - Android: Difference between canvas.drawBitmap and BitmapDrawable.draw? -

bitmap - Android: Difference between canvas.drawBitmap and BitmapDrawable.draw? - when want draw bitmapdrawable canvas in android, there 2 possibilities same , don't know 1 prefer: using canvas.drawbitmap() , extract bitmap drawable using getbitmap() using drawable.draw(canvas), passing canvas argument drawable. i'm using first alternative now, seems arbitrary can't see difference. thanks answers never alternative number 1 way it. instead of creating bitmap out of drawable every time want draw it, create bitmap in first place. is, don't create drawable if going draw bitmap. create bitmap this: mbitmap = bitmapfactory.decoderesource(mcontext.getresources(), r.drawable.myimage); mbitmap = bitmap.createscaledbitmap(mbitmap, width, height, true); and once. after that, draw (canvas.drawbitmap()). as alternative number 2, doing correctly. now, there differences. alternative 1 faster draw , background images. there important alter fps depe...

ios - Fragment Shader GLSL for texture, color and texture/color -

ios - Fragment Shader GLSL for texture, color and texture/color - i want accomplish glsl shader, can texture , color vertex objects. in fact, works me in 2 3 cases: 1) if have texture assigned (but no specific color - color "white"), textured object - works 2) if have texture , color assigned, textured object modulated color - works 3) if have color assigned no texture, black object - doesn't work my shader looks this: varying lowp vec4 colorvarying; varying mediump vec2 texcoordvarying; uniform sampler2d texture; void main(){ gl_fragcolor = texture2d(texture, texcoordvarying) * colorvarying; } i guess that, texture2d(...,...) returns 0 if no texture assigned - seems problem. there way in glsl can check, if no texture assigned (in case, want gl_fragcolor = colorvarying;) "if" isn't alternative in glsl shader, if understanded correctly - ideas accomplish this? or necessary create 2 different shaders both cases? like i'd ...

iphone - Removing the gloss from app icon when app installed on the device -

iphone - Removing the gloss from app icon when app installed on the device - when pass application icon files within cfbundleiconfiles, rounded gloss on upper half of icon. how can rid of in icon "settings" app. set uiprerenderedicon yes in info.plist file. iphone ios xcode cocoa-touch uiapplication

c# - ELMAH error logging : the wrong error message is returned -

c# - ELMAH error logging : the wrong error message is returned - i'm trying utilize elmah error logging in mvc application. reason, reporting wrong error. i set next code in controller class create sure error occurs: int = 0; int b = 10 / a; as code executed, errormail sent, , contains next message: system.invalidoperationexception: view 'error' or master not found or no view engine supports searched locations. next locations searched: ~/views/home/error.aspx ~/views/home/error.ascx ~/views/shared/error.aspx ~/views/shared/error.ascx ~/views/home/error.cshtml ~/views/home/error.vbhtml ~/views/shared/error.cshtml ~/views/shared/error.vbhtml but view correctly generated. don't see real exception, "fake" 1 above. i have next web.config file: <configsections> <sectiongroup name="elmah"> <section name="security" requirepermission="false" type="elmah.securitysect...

jquery - nyroModal Correct Use Of Options -

jquery - nyroModal Correct Use Of Options - i'm new jquery , started trying nyromodal tonight. trying create simple popups. i'm working popup on page load @ moment. code i'm trying: $.nmmanual('message.html', modal: true); but doesn't work @ all. if take out , modal: true works, can click rid of window. tried modal='true' no avail. the options nmmanual need within curly brackets {} . your code should like: $.nmmanual('message.html', {modal: true}); i've tested in jsfiddle modal: false , seems work fine. setting true doesn't work guess restriction of jsfiddle: http://jsfiddle.net/yxeyn/ jquery nyromodal

java - JPanel not refreshing upon selection with JComboBox -

java - JPanel not refreshing upon selection with JComboBox - i attempting write pretty short class "ties" jpanel jcombobox. think have logic down, nil happens when select new using jcombobox... here (more or less) code: private displaypanel currentdisplay; //a displaypanel extended jpanel id field, , overriden .equals() method private jcombobox selector; private list<displaypanel> displays; public selectionpanel(displaypanel panel){ displays = new arraylist<displaypanel>(); selector = new jcombobox(new string[]{panel.id}); currentdisplay = panel; selector.addactionlistener(this); this.add(selector); this.add(currentdisplay); this.displays.add(panel); } public void addnewselection(displaypanel panel){ displays.add(panel); selector.additem(panel.id); } @override public void actionperformed(actionevent e) { jcombobox source = (jcombobox) e.getsource(); string id = (string) source.getselecteditem(); for(di...

How do I start IIS Express? -

How do I start IIS Express? - i've used web pi install iis express. in tray, there not iis express icon. how start iis express without using command line? want iis runs permanently, without command line. see running iis express command line open command prompt. cd \program files\iis express , or cd \program files (x86)\iis express on 64-bit os iisexpress /? show usage for example, can start iis express named site issuing command iisexpress /site:website1 website1 site user profile configuration file (c:\program files (x86)\iis express\appserver\applicationhost.config) another mutual way start iis express issue command iisexpress /path:c:\myapp\ /port:80 command runs site 'c:\myapp' folder on port '80'. you utilize *.bat include in startup folder starts iis express (using c:\users\\appdata\roaming\microsoft\windows\start menu\programs\startup or users startup folder c:\programdata\microsoft\windows\start menu\programs\startup). iis-ex...

Non-recursive add function in a binary tree using c++ -

Non-recursive add function in a binary tree using c++ - i writing add together function add together nodes binary tree non recursively. have run problem of beingness able produce 1 level deep binary tree. debugged , know problem can't figure out how prepare it. maybe fresh pair of eyes see dont... problem temp node beingness reset root value every new function phone call , hence, adding nodes linearly. anyways, here function: void binarytreenonrec::add(int num){ treenode *temp, *parent; if (root==null) { root = new treenode; root->data=num; root->left=0; root->right=0; temp=root; printf("value root \n"); } else { temp=root; while (temp!=null) { if (num <= temp->data){ parent = temp; temp=temp->left; //root =temp; printf(...

oracle - SQL LOADER CONTROL FILE -

oracle - SQL LOADER CONTROL FILE - i have loader command file. load info replace table test when test_cd != 'a' , test_cd = 'b' , test_type_cd = 15 currently loading info when test_cd = 'b' , test_type_cd = 15 want modify when test_cd = 'b' test_type_cd = 15 too.. dont want load test_type_cd when 15.. want load when satisfies both condition.. keeping braces around going work.. plz 1 allow me know how can modify this.. i thinking confused need.. want first status satisfy 2nd , 3rd status 1 status not deed seperately.. illustration if test_cd not equal load info 2nd , 3rd status should deed 1 piece..when test_cd = b , test_type_cd 15 load data.. dont want test_type_cd apply other test_cd other b.. have 5 of test_cd b c d e.. want b apply test_type_cd = 15.. try load info replace table test when test_cd = 'b' , test_type_cd = 15 -- load b , 15 table test when test_cd != 'a' , test_cd != b -- load not ,...

Earth in Google Maps -

Earth in Google Maps - i came website: http://www.google.com/earth/explore/products/earthview.html "earth view in google maps" does mean, utilize usual google maps apis (v3) manage map while beingness able render in earth view? more explanation please? see question , accepted answer: how convert google maps application google earth application? per answer, can find additional detail here: http://code.google.com/apis/maps/documentation/javascript/v2/services.html#earth google-maps google-earth google-earth-plugin

xaml - In WPF, is it possible to bind values to controls in a loop? -

xaml - In WPF, is it possible to bind values to controls in a loop? - i have series of textblock controls, this: <textbox name="tb1"/> <textbox name="tb2"/> <textbox name="tb3"/> <textbox name="tb4"/> and have list of values i'd bind text boxes, in list: list<string> texts = new list<string>(); texts.add("test1"); texts.add("test2"); texts.add("test3"); texts.add("test4"); currently, have manually set values of textboxes, this: tb1.text = texts[0]; tb2.text = texts[1]; tb3.text = texts[2]; tb4.text = texts[3]; is possible in loop somehow? perhaps alter xaml take in list or programatically textboxes? lot in advance. <itemscontrol items="{binding myvalues}"> <itemscontrol.itemtemplate> <datatemplate> <textbox text="{binding}"></textbox> </datatemplate>...

php - How to set a class attribute to a Symfony2 form input -

php - How to set a class attribute to a Symfony2 form input - how can set html class attribute form <input> using formbuilder in symfony2 ? something this: ->add('birthdate', 'date',array( 'input' => 'datetime', 'widget' => 'single_text', 'attr' => array( 'class' => 'calendar' ) )) {{ form_widget(form.birthdate) }} i want input field attribute class set calendar you can twig template: {{ form_widget(form.birthdate, { 'attr': {'class': 'calendar'} }) }} from http://symfony.com/doc/current/book/forms.html#rendering-each-field-by-hand php forms symfony2 input formbuilder

javascript - jquery, cannot have an ajax call in a callback function -

javascript - jquery, cannot have an ajax call in a callback function - <head> <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#submit").click(function(){ $.get("invite_friends_session.php", function(){ }); }); }); </script> </head> <body> <form > <input type="submit" name="submit" id="submit" style="margin-top:100px; margin-left:100px;" /> </form> </body> the $.get("invite_friends_session.php") part not work. works if maintain outside callback function. but need phone call invite_friends_session.php whenever there click on #submit. how that? since submit button within form , clicking submit button bubbles , submits form. nee...

entity attribute value - Magento EAV: What is the 'source' setting used for? -

entity attribute value - Magento EAV: What is the 'source' setting used for? - i'm curious used for? defined next source model custom attribute added entity script, yet have no thought how create utilize of source attribute. maybe can utilize form widget? attribute added exportstatus client eav. <?php class company_customer_model_customer_attribute_source_exportstatus extends mage_eav_model_entity_attribute_source_abstract { public function getalloptions() { if (!$this->_options) { $this->_options = array( array( 'value' => '0', 'label' => 'pending export', ), array( 'value' => '1', 'label' => 'exported mainframe', ), array( 'value' => '2', ...

PHP Mktime error -

PHP Mktime error - i'm of sudden getting next error on site i've done, has been working fine far: a php error encountered severity: warning message: mktime() [function.mktime]: not safe rely on system's timezone settings. *required* utilize date.timezone setting or date_default_timezone_set() function. in case used of methods , still getting warning, misspelled timezone identifier. selected 'antarctica/macquarie' 'est/10.0/no dst' instead this code in question: $stamp=mktime(0,0,0,$month,$day,$year); what's issue here? how can create these errors go away? i'm using mktime in format in lot of places , throwing error in each place. as error says, either need specify timezone using date_default_timezone_set('antarctica/macquarie'); or ini_set('date.timezone', 'antarctica/macquarie'); in code or define date.timezone in php.ini . php mktime

asp.net - Application_Error takes precedence over Page_Error -

asp.net - Application_Error takes precedence over Page_Error - i have both page_error method in page raises error, , application_error in global.asax. when page throws exception, executed routine application_error. 1 particular page have different handling in page_error. there way accomplish it? thanks, pawel p.s. perhaps because exception beingness thrown caused big file beingness uploaded (i tested file upload page how handles files bigger web.config setting) , page_error not yet wired? from same function of page_error can check page , if 1 have diferent behavior. if( httpcontext.current.request.path.endswith("yourfilename.axd", stringcomparison.invariantcultureignorecase)) { // diferent way } else { } the next way within page diferent behavior. public override void processrequest(httpcontext context) { seek { base.processrequest(context); } grab (exception x) { // here different, since grab here not ...

asp.net - Unable to start debug on web server Webserver is not configured properly -

asp.net - Unable to start debug on web server Webserver is not configured properly - i getting error specifed , when check out properties web sites in iis showing per below right think miising here can 1 tell how resolve this the settings you've shown rather wrong. suggest using asp.net iis registration tool: http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=vs.80%29.aspx asp.net

vala - Blurred borders in Cairo -

vala - Blurred borders in Cairo - what proper way draw blurred rectangular border using cairo api? writing patch shotwell add together blurred shadow thumbnails in thumbnail view. for experimenting manual blurring. i ended drawing border linear , radial gradients. here little visualization. lines symbolize linear grandients , 0 radial gradients. 0 | | 0------0 cairo vala

orm - Fluent NHibernate referencing entity with natural key -

orm - Fluent NHibernate referencing entity with natural key - i'm using fluent nhibernate automapping functionality. i've managed database mappings pretty close using conventions, there few things need iautomappingoverride. in legacy system, have entity class, 'campus', has natural key, 'code'. oracle database type of key varchar2(3 byte). i'm using override this, conventions otherwise assume autogenerated surrogate key. have other entity classes (e.g. building) reference campus entity (with natural key) shown below <class name="campus" table="campus" ... > <id name="id" type="string"> <column name="camp_code" sql-type="varchar2(3 byte)" /> <generator class="assigned" /> </id> <set name="buildings" ...> <key foreign-key="buil_camp_fk"> <column name="camp_code" /> </key> <one-to-ma...

Is there a language/format that allows to define an API in XML? -

Is there a language/format that allows to define an API in XML? - i think have seen format/language write in xml , defines api programme against. want people can benefit since having pdf/online api may not plenty (think ides). is there mutual language in can write api? edit: i'll seek more clear. have api. have online api documentation it. however, want ides , programs able understand improve since regex'ing online documentation isn't going work them. edit: here's illustration of i'd produce: view-source:http://api.jquery.com/api/ if create web services api, can generate wsdl file xml description of service. many languages/frameworks have tools generate proxy classes wsdl. more info on wsdl: http://www.w3.org/tr/wsdl api

asp.net - C# Multiple SelectionChanged Events -

asp.net - C# Multiple SelectionChanged Events - i want have 2 selectionchanged events, this protected override void xpathlist_selectionchanged(object sender, selectionchangedeventargs e) { //my code } private void xpathlist_selectionchanged(object sender, selectionchangedeventsargs e) { //my code } it gives next error: type 'testapp.mainpage' defines fellow member called 'xpathlist_selectionchanged' same parameter type . how can solve this? you can't create identical method same signature. if want handle 1 event 1 command 2 different methods, must utilize such code: page_init() { //initialization code xpathlist.onselectionchanged += xpathlist_selectionchanged1; xpathlist.onselectionchanged += xpathlist_selectionchanged2; } protected void xpathlist_selectionchanged(object sender, selectionchangedeventargs e) { //my code } protected void xpathlist_selectionchanged2(object sender, selectionchangedeventsargs e) { //my code } an...

html - Div tag borders -

html - Div tag borders - me , mate working on html app similar similar ipad twitter app. http://www.iampersandi.com/wp-content/uploads/2010/04/photo3.png i wondering how created feint lines seperate dark gray user boxes. i have resizeable div, each user having it's own div within (eg chris purillo , jeff pulver in separate divs within big resizeable div). is feint line separating them clever truck using background colors css3 or there improve way create this? you seek doing: border-top:1px solid #46464f; border-bottom:1px solid #282832; html css background-color

ios4 - Merging a previosly rotated by gesture UIImageView with another one. WYS is not WYG -

ios4 - Merging a previosly rotated by gesture UIImageView with another one. WYS is not WYG - i'm getting crazy while trying merge 2 uiimageview. the situation: a background uiimageview (userphotoimageview) an overlayed uiimageview (productphotoimageview) can streched, pinched , rotated i phone call function on uiimages can take coords , new stretched size uiimageview containing them (they synthesized in class) - (uiimage *)mergeimage:(uiimage *)bottomimg withimage:(uiimage *)topimg; maybe simplest way rendering layer of top uiimageview in new cgcontextref this: [bottomimg drawinrect:cgrectmake(0, 0, bottomimg.size.width, bottomimg.size.height)]; [productphotoimageview.layer renderincontext:ctx]; but in way loose rotation effect previosly applied gestures. a sec way trying apply affinetransformation uiimage reproduce gestureeffects , draw in context this: uiimage * scaledtopimg = [topimg imagebyscalingproportionallytosize:productphotov...

ios - UIPickerView selected item's frame -

ios - UIPickerView selected item's frame - is there way frame of selected uipickerview's item? i tried next (as suggested below) nil back: -(void) pickerview:(uipickerview *)pickerview didselectrow:(nsinteger)row incomponent:(nsinteger)component{ uiview *selected = [pickerview viewforrow:row forcomponent:component]; } uiview *view=[picker viewforrow:[picker selectedrowincomponent:1] forcomponent:1]; cgrect viewframe=[view frame]; ios uipickerview

eclipselink - Glassfish: Unable to map datasource JNDI name to portable name using glassfish-web.xml -

eclipselink - Glassfish: Unable to map datasource JNDI name to portable name using glassfish-web.xml - i'm going insane trying create java ee 6 webapp portable between glassfish 3.x , jboss 6 (and 7 when released). because each server maps jndi names datasources differently, need specify application-private internal name datasource in persistence.xml utilize glassfish-web.xml or jboss-web.xml (as appropriate) map real datasource name in server. the theory simple (well, ee): use internal name in persistence.xml, eg "my-datasource" add resource-ref entry web.xml declaring app needs resource called "my-datasource" add mapping in glassfish-web.xml , jboss-web.xml appropriate server's syntax, declaring "my-datasource" should mapped app server provided info source named "real-ds-created-by-admin" unfortunately, theory far goes, because life of me cannot create work in glassfish 3.1, 3.1.1, 3.2 beta, jboss 6, or jboss 7 beta. ...

html - height 100% inside a is not working in IE -

html - <table> height 100% inside a <td> is not working in IE - <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <style> html,body, #outer, .innerpages {height:100%; padding:0px; width:100%; } </style> </head> <body> <table id="outer"> <tr height="100px"><td>header</td></tr> <tr> <td> <table class="innerpages"> <tr> <td>left</td> <td>right</td> </tr> </table> </td> </tr> <tr height="30px"><td>footer</td></tr> </table> </body> </html> if add together height of 100% td should work in ie. see fiddl...

php - Replace the last comma in a string using Regular Expression -

php - Replace the last comma in a string using Regular Expression - i have string like: "item 1, item 2, item 3" . need transform to: "item 1, item 2 , item 3" . in fact, replace lastly comma " and". can help me this? use greediness accomplish this: $text = preg_replace('/(.*),/','$1 and',$text) this matches lastly comma , replaces through w/o comma. php regex preg-replace

Symfony2: access same route in production as development -

Symfony2: access same route in production as development - i'm developing little application using symfony2. can access routes no problems in dev environment: http://symfony/app_dev.php/cp ("symfony" in hosts file resolve localhost) however, seek , access in production environment, 404 error page: http://symfony/app.php/cp oops! error occurred server returned "404 not found". broken. please e-mail @ [email] , allow know doing when error occurred. prepare possible. sorry inconvenience caused. is there need change/do before can view application in production? i've not messed of core files (kernel/bootstrap/app files, etc). i'm using release candidate 3. as crozin mentioned in comment, have rebuild cache able see changes. need rebuild production cache every time alter in config, routing or templates. safest way using php app/console cache:clear --env=prod --no-debug (as cli runs in dev mode debugging enabled default). ...

ruby on rails 3 - additional attributes in both JSON and XML -

ruby on rails 3 - additional attributes in both JSON and XML - i trying incorporate attributes in api of rails app. utilize case simple. have user model: class user < activerecord::base attr_accessible :email end i have model, linking users event: class userevent < activerecord::base belongs_to :user belongs_to :event end i want able list users related event using userevent model through api accessible json or xml, , email of userevent appear in both xml , json dump. this question suggests can override serialiable_hash, appears work json, looks serializable_hash not used to_xml another approach have investigated override attributes method in class: class userevent < activerecord::base def attributes @attributes = @attributes.merge "email" => self.email @attributes end end this works json, throws error when trying xml version: undefined method `xmlschema' "2011-07-12 07:20:50.834587":string this str...

php - How to give the option to download page as a complete HTML file (AFTER being reformatted and styled using JS/CSS) -

php - How to give the option to download page as a complete HTML file (AFTER being reformatted and styled using JS/CSS) - i have webpage generated using php pull fields database , set them in html. once page loads, utilize combination of javascript (which asked before) , css reformat , style page more legible. what need provide way user download rendered page (after javascript/css manipulates page) whole html file. and i'm coming short. can 1 help? problems i'm encountering include: using "save" or "save as" dialogs in browser save original html pulled php. end having "inspect element" , re-create rendered html developer view. the css , js i'm adding done on client-side, , php takes little while load (out of hands). solution question need able done on either client-side, or on separate site/server. help? you can utilize server side proxy on own server (eg. php web proxy) grabs unformatted html page in question sourc...

How can i style mobile-jquery's back button? -

How can i style mobile-jquery's back button? - normally specify data-theme = "a" or b or c, etc @ div. "back" button auto generated jquery mobile, how specify theme? thanks, -wan the button style can changed using following: $.mobile.page.prototype.options.backbtntheme = "b"; jquery mobile themes

sql server - SQL Query get a lot of timeouts -

sql server - SQL Query get a lot of timeouts - i have big database table (sql server 2008) have forum messages beingness stored (the table have more 4.5 1000000 entries). this table schema: create table [dbo].[forummessage]( [messageid] [int] identity(1,1) not replication not null, [forumid] [int] not null, [memberid] [int] not null, [type] [tinyint] not null, [status] [tinyint] not null, [subject] [nvarchar](500) not null, [body] [text] not null, [posted] [datetime] not null, [confirmed] [datetime] null, [replytomessage] [int] not null, [totalanswers] [int] not null, [avgrateing] [decimal](18, 2) not null, [totalrated] [int] not null, [readcounter] [int] not null, constraint [pk_groupmessage] primary key clustered ( [messageid] asc )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on, allow_page_locks = on) on [primary] ) on [primary] textimage_on [primary] one ...

Including a runtime (vcredist_x86.exe) as part of an installer -

Including a runtime (vcredist_x86.exe) as part of an installer - i need include runtime part of project installer. i having problem including it, error saying "an installation in progress" appearing, due fact trying run msi within msi. i managed on including in "onafterinstall" event, appears not beingness installed on upgrades, on fresh installs. can offer advice? thanks you don't specify version of visual c++ runtime, may work: visual studio installer projects provide prerequisites setting pre-populated list of mutual components. these .mst files, can merged installer. reach prerequisites screen, right-click installer project -> properties -> prerequisites. check appropriate box in list , alter alternative @ bottom include prerequisite in setup program. installer

command line - newbie in snort -

command line - newbie in snort - i want download snortrules command line when set format: i'm win xp in opensuse have apache,php , curl extension in xp have nothing. don't have access net in opensuse have access via winxp http://www.snort.org/sub-rules/<filename>/<oinkcode here> it tells me: 'http:' not recognized internal or external command, operable programme or batch file. what problem? i entered one: http://www.snort.org/sub-rules/snortrules-snapshot-2900.tar.gz/59882...(myoinkcode here) it appears curl binary hasn't been installed. can re-create winxp here. 1 time have installed (say in c:\programs\curl executable @ c:\programs\curl\curl.exe ), can run: c:> c:\programs\curl\curl.exe "http://www.snort.org/sub-rules/..." and grab info url given , print screen. run curl.exe --help farther instructions or help @ curl website. best of luck! edit: if you're utilize suse, instal...

Java webservice and .net client Date datatype interpolability issue -

Java webservice and .net client Date datatype interpolability issue - there .net client calls java web services api - addschedule(date startdate, date enddate). enddate optional - i.e client can pass enddate= null , fine. issue is- .net client cannot assign null date variable type. one more thing checked, if java web service response passes null date value .net client, received date.min_value .net. thought if .net passes enddate=date.min_value,so java enddate=null. java getting date.min_value valid date. so stuck. please suggest workaround. try using nullable datetime ( nullable<datetime> or datetime? ), since can hold null value. normal value type (like datetime) can't hold null, , have default value (in case of datetime datetime.minvalue , int 0) java .net web-services date types

javascript - How to use sql tables on local machines when i have MAMP installed? -

javascript - How to use sql tables on local machines when i have MAMP installed? - i installed mamp on mac run sql , apache server on local machine host website working on. using phpmyadmin command , create database tables. running couple of issues inserting values tables. have 2 pages namely, test.html , test.php. test.html has form username , password , calls javascript post values test.php.following code snippet of how posting value on test.html. $.post("test1.php", { username: username, password: password }, function( datafromserver ){ alert(datafromserver); } ); i unable insert 2 values in table. when click submit, receive next error in firefox: post http://localhost:8888//test1.php 500 internal server error following code snippet of how insert values on test.php: include('config.php'); $tbl_name="table1"; $username=$_post['username']; $password=$_post['password']; $sql="insert $tbl_name(co...

PHP Regular expressions class/id -

PHP Regular expressions class/id - i'm using regular expressions in new project of mine. but can't seem figure out how format stuff correctly. i have base of operations code: if(preg_match_all("here", $printable, $matches, preg_set_order)); { foreach($matches $match) { echo("$match[1]<br />"); } } at moment i'm trying grab table rows: <td class="sourcenamecell"> <img style="width:16px; height:16px;" src="imageluink.png"/> <a href="index.pho">link title</a> </td> if know of tutorials on using div/tables/general html appreciate it. any help great, thanks! use querypath library, parsing tool http://querypath.org/ it has ability utilize css selectors jquery, on php side php

java - Please initialize the log4j system properly. While running web service -

java - Please initialize the log4j system properly. While running web service - maybe looks silly inquire confused. referred configuring log4j property doesn't seem help. i have written simple web service helloworld. , while running getting error : log4j:warn no appenders found logger (org.apache.axis.transport.http.axisservlet). log4j:warn please initialize log4j scheme properly. i not sure why happening. i generating web-service using eclipse , deployed in tomcat 6.0. check on axis developer's guide , according them log4j.configuration=log4j.properties utilize scheme property specify name of log4j configuration file. if not specified, default configuration file log4j.properties. log4j.properties file provided in axis.jar. i didn't find log4j.properties in axis.jar . any help on this? those messages tricky, plenty people created create clearer: https://issues.apache.org/bugzilla/show_bug.cgi?id=25747 what's tricky them warn...

Sending emails in bulk through php and codeigniter -

Sending emails in bulk through php and codeigniter - i building script takes user registration , upon registration sends email user email validation. upon validating email when user logs in there various activities user performs when automatic email sent other user whom user interacts on site. for illustration when user sends private message follower on site automated email sent followers email address informs him of user activity performed. now consider there around one thousand users on site perform around 2000 5000 activities of sending auto emails daily. i using codeigniter build website , know best approach through can design scheme email delivered without fail. seems case event/message queue. web generated events - registration, direct messages followers, etc - add together message/task/item work/message queue. cron process consumes queue, performing send. note "message" here object or db record containing info sufficient perform assigned task:...

floating point - Save a float value into a char(15) variable in sql server -

floating point - Save a float value into a char(15) variable in sql server - how can save value of float variable numfiscalactual char(15) column impfisfac on sql server... update factura set impfisfac= cast(@numfiscalactual varchar) i know i've utilize char variable='char value' , cast function... dunno =/ thx in advance warning: float upto 15 important figures. little , big number, varchar(15) lose data. 0.0000123456789012345 >15 length 1.23456789012345e-05 >15 length you seek this update factura set impfisfac= cast(@numfiscalactual varchar(15)) where... (you need clause otherwise every row value) however, there issues converting floats: may find decimal places lost (i can't remember exact rules). so, can utilize str, illustration update factura set impfisfac= rtrim(ltrim(str(@numfiscalactual,38,16))) where... but you'll lose info above. why? or utilize decimal fixed point types.... sql-server fl...

asp.net mvc 3 - MvcMailer: trying to send email to one static recipient and Email (in model and view as a text input) -

asp.net mvc 3 - MvcMailer: trying to send email to one static recipient and Email (in model and view as a text input) - sorry sqotd: using mvcmailer. created quote system, wherein users inputs determines pricing. based on user inputs, email generated quote. want send e-mail "email" address user input myself. in mailer.cs have mailmessage.to.add("some-email@example.com"); i want static e-mail can send myself quote. but how can send e-mail "email" user input in form? my model has: public string email { get; set; } my form (view) has: @html.textboxfor(m => m.email) thanks help. you utilize bcc field (recipient not see other email): mailmessage.to.add("some-email@example.com"); mailmessage.bcc.add(model.email); or cc (recipient see other email). asp.net-mvc-3

android - MapView isn't showing up with this? -

android - MapView isn't showing up with this? - i have layout in xml. , when run activity @ bottom nil shows except buttons. <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="fill_parent"> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:orientation="horizontal" android:layout_height="fill_parent"> <button android:id="@+id/sat" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="satellite" android:onclick="myclickhandler" android:padding="8px"/> <button android:id="@+id/street" android:layout_width="wrap_content" android:layout_heigh...

silverlight - Using Lightswitch with my own Domain object : missing reference -

silverlight - Using Lightswitch with my own Domain object : missing reference - i'm working on asp.net application. have domain assembly (containing command , queries code), domain.contract assembly ( containing domain objets), repository (called domain) , web site. for specific backoffice needs, want create lightswitch application. want utilize current domain datasource. added wcf ria service class library, , in riaservice.web project, added class based on domainservice, 1 query method. nil more (no entities, since in domain.contract assembly) using help here (thanks michael w), able add together datasource, , domain object recognized entity in lite switch. but, have compile error : 'the type or namespace name 'mydomain' not found in global namespace (are missing assembly reference?)' in project servergenerated. the specific error on line : global::domain.contract.myobject result = new global::domain.contract.myobject(); on of domain objects (crea...

C# : how can i switch between my two network interface -

C# : how can i switch between my two network interface - can switch between 2 network cards,i need utilize on card send mails need switch command it.si there way c# code? help appreciated when sending email, create outgoing connection port 25 on smtp server. when create connection, need bind local end of connection specific ip address (corresponding specific interface) before connecting in order forcefulness os utilize specific interface. see socket.bind method way this. c#

Are there any easy to use distributed relational databases? -

Are there any easy to use distributed relational databases? - i've been talking 1 of friends distributed relational databases, using defintion: supports relational database (sql, acid) distributed (multiple servers) automatic (or automatic-ish) -- install programme on multiple servers, give them whatever info need communicate (ip addresses), , figure out how distribute things automatically (3) part doesn't seem done anywhere. can sharding, need code in application figure out server talk to. i'm looking memcached, relational database (memcached key-value), , acid-compliant (memcached in-memory only, , doesn't have transactions). obviously incredibly complicated well, surprises me can't see find examples of beingness done. teradata provides sold appliance. have automatically sharded acid , sql compliant rdbms have purchase nodes them. database relational-database distributed

javascript - how to disable buttons based on a condition in jsp? -

javascript - how to disable buttons based on a condition in jsp? - how can disable button checking status in jsp? if true,then button enabled,if false,then button disabled. status checking value of variable. know how disable button using javascript, utilize along status in jsp i'm not able figure out. @ possible? try using jstl construction this: <input type="button" <c:if test="${variable == false}"><c:out value="disabled='disabled'"/></c:if>"> for more examples see http://www.ibm.com/developerworks/java/library/j-jstl0211/index.html javascript jsp button

asp.net - php mysql share data to msql -

asp.net - php mysql share data to msql - i have set of mysql info want share friend using asp.net. my question best way me share tables. can read datas. thanks in advance. you can give access mysql db php asp.net mysql sql-server

silverlight - Creating 'fun' storyboard animations? -

silverlight - Creating 'fun' storyboard animations? - i'm using storyboarding this: doubleanimation doubleanimation = new doubleanimation( ); doubleanimation.from = _scrollbar.value; doubleanimation.to = _shift; doubleanimation.duration = new duration( new timespan( 0, 0, 0, 0, 200 ) ); storyboard.settarget( doubleanimation, _scrollbar ); storyboard.settargetproperty( doubleanimation, new propertypath( rangebase.valueproperty ) ); storyboard.children.add( doubleanimation ); storyboard.begin( ); which linearly scrolls scrollbar. wondering if there's quick'n'easy ways create animation fun (i.e. none linear). maybe wobble effect? you need @ easingfunctions part of animations. these allow specify effect (there bunch of pre-canned ones take from), , apply formula linear value change, 'wobbling' bit. references: add easing effects on animations wpf 4 easing functions easing animation wpf , silverlight easing functions in ...

eclipse - JRules setup problem -

eclipse - JRules setup problem - been getting grips jrules doing tutorials. during part 5 of 2nd tutorial ask's run rules via reteplus using cmds on run menu, click run. in run dialog, select rule project launch configuration ruleediting-start-configuration. click run. however everytime seek run pop box telling me internal error occurred during: "launching" no other real output. i have imported completed tutorial , gives same error suggesting configuration problem. have changed runtime jre. has encoutered in either in jrules or eclipse edit i did manage exception stack trace: stack trace java.lang.abstractmethoderror @ com.sun.org.apache.xalan.internal.xsltc.trax.dom2to.setdocumentinfo(dom2to.java:373) @ com.sun.org.apache.xalan.internal.xsltc.trax.dom2to.parse(dom2to.java:127) @ com.sun.org.apache.xalan.internal.xsltc.trax.dom2to.parse(dom2to.java:94) @ com.sun.org.apache.xalan.internal.xsltc.trax.transformerimpl.transformidentity(transformerimpl....