Posts

java - Docx to html conversion using docx4j v3 -

hi trying convert docx html using docx4j v3.below code. file initialfile = new file("input/table_1.docx"); inputstream = new fileinputstream(initialfile); wordprocessingmlpackage wordmlpackage = docx4j.load(is); htmlsettings htmlsettings = docx4j.createhtmlsettings(); htmlsettings.setwmlpackage(wordmlpackage); outputstream out = new fileoutputstream("input/table_1.html"); docx4j.tohtml(htmlsettings, out, docx4j.flag_export_prefer_xsl); string result = ((bytearrayoutputstream)out).tostring(); system.out.println(result); this error getting. have used mvn resolve jar dependency.can on error: exception in thread "main" org.docx4j.openpackaging.exceptions.docx4jexception: couldn't load xml stream @ org.docx4j.openpackaging.packages.opcpackage.load(opcpackage.java:504) @ org.docx4j.openpackaging.packages.opcpackage.load(opcpackage.java:302) @ org.docx4j.openpackaging.packages.wordprocessing...

Wordpress Login and Register pages no body class or id -

i need insert background image on these 2 pages: http://digesale.com/wp-login.php http://digesale.com/wp-login.php?action=register you can see background there, inserted wrapping div div. on smaller or larger screen resolutions background doesn't cover entire page or has slider, depending on if it's bigger or smaller resolution. what need somehow style "body" of these 2 pages css. body tag has no class , no id on these pages, , have no idea how style it. for example page http://digesale.com/privacy-policy/ has this: body class="page page-id-154 page-template-default and see how it's nicely styled , everything. can help? following should work you:- add_action( 'login_enqueue_scripts', 'wdm_style', 10 ); add_action( 'wp_enqueue_scripts', 'wdm_style' ); function wdm_style(){ $actual_link = "http://$_server[http_host]$_server[request_uri]"; //its check if register pag...

c# - CRM Dynamics 2015, Trigger Plugin on mobile phone fields click -

i have plugin in crm 2015, tested on create of record, need way trigger plugin clicking button next phone number field, plugin initiates phone call, how can accomplish this?. how trigger plugin on mobile fileds click, or perhaps button next mobile phone filed trigger plugin, best approach , possible.? i suggest create action , develop plugin handles it. following articles you: http://a33ik.blogspot.com/2013/10/custom-actions-walkthrough-for-net-and.html http://a33ik.blogspot.com/2013/10/custom-actions-deployment-through-crm.html

django compressor - Can I use a filter on all compress blocks except for one? -

in settings compressor i'm using slimit of javascript: compress_js_filters = ['compressor.filters.jsmin.slimitfilter', ] some of js files shouldn't go through slimit though because file minified, or javascript throws error when minified other files. template block ends looking this: {# code minify #} {% block compressed_libs %} {% compress js %} <script src="/static/js/compress_this.js"></script> <script src="/static/js/also_compress_this.js"></script> ... {% endcompress %} {% endblock %} {# code shouldn't minify #} {% block non-compressible_libs %} <script src="/static/js/already.min.js"></script> <script src="/static/js/breaks-everything.js"></script> {% endblock %} can set different compress filter rules different blocks/files "non-compressible" files can still concatenated compressor while skipping slimit? ...

c++ - Is `x = std::move(x)` undefined? -

let x variable of type has been initialized. following line: x = std::move(x) undefined? in standard , it? no, not undefined behavior, going implementation defined behavior, depend on how move assignment implemented. relevant lwg issue 2468: self-move-assignment of library types , note active issue , not have official proposal should considered indicative rather definitive, point out sections involved standard library , points out conflict. says: suppose write vector<string> v{"a", "b", "c", "d"}; v = move(v); what should state of v be? standard doesn't specific self-move-assignment. there's relevant text in several parts of standard, , it's not clear how reconcile them. [...] it's not clear text how put these pieces together, because it's not clear 1 takes precedence. maybe 17.6.4.9 [res.on.arguments] wins (it imposes implicit precondition isn't mentioned in moveassig...

parallel processing - bootstrap a dataset in R -

i need perform bootstrapping dataset in r. data in form of list contains 2 matrices , has following properties: both matrices n m , contain positive integers (including 0). data <- list(a=matrix(,n,m), b=matrix(,n,m)) a number of marbles, 10000 distributed each matrix, i.e., 10000 divided in n*m parts. in other words, sum of entries each matrix fixed. > sum(data$a) [1] 10000 > sum(data$b) [1] 10000 the marbles distributed according affinity of ij -th elements marbles, i.e. how many marbles end ij -th entry of matrix depends on probability associated every cell of matrix. the probabilities associated elements different 2 matrices. my goal estimate parameters lead underlying probabilities. model assumes 2n parameters, n number of rows , 1 set each matrix. parameters combine in complex manner , 2 matrices must analyzed together. parameters <- data.frame(a=numeric(n), b=numeric(n)) right now, approach using: i define function sgen takes input mat...

ios - XCUITest - How to simulate locking of the device -

i writing xcuitests app in swift, , wondering if it's possible simulate locking , unlocking of device. i've looked @ xcuiapplication methods there don't seem allow me lock device. this not possible @ moment.