Posts

zend framework2 - ZF2 Make ZendService\ReCaptcha autoloadable -

i have installed matthew weir o phinney's contact module zf2 skeleton application. dependent on zendservice\recaptcha installed composer. works on local machine, won't run on live server. ftp'd files server because don't have ssh access run composer. means uploaded config files local machine, recaptcha service still not autoloading error saying recaptcha service not available. can tell me missing make autoloadable?

.net - What is the best way to secure a WCF service? -

what best way secure wcf service? should add header service calls , have message inspector on client verifies header? i need make sure person provides correct user name , password use service , encrypted. on internet , using http binding. if limited http take performance hit more portable. think can encrypt , secure of http ws-security. transport , message security modes two main mechanisms used implement transfer security in wcf: transport security mode , message security mode. transport security mode uses transport-level protocol, such https, achieve transfer security. transport mode has advantage of being adopted, available on many platforms, , less computationally complex. however, has disadvantage of securing messages point-to-point. message security mode, on other hand, uses ws-security (and other specifications) implement transfer security. because message security applied directly soap messages , contained inside soap envelopes, application data, has ...

jasperserver - Export report to XHTML format with JasperReports Server -

i need export report in format xhtml of jasperreports server . i'm using url like: http://localhost:8080/jasperreports/report?_repname=test&_repformat=pdf&_datasource=default&_outfilename=mytest.pdf&_replocale=es_do&_repe ncoding=utf-8 . i can export many formats (pdf, html, xls, ...) can't how export xhtml format. changing value parameter _repformat=xhtml not working. it works in ireport preview, not via jr server's url. i can't useful in neither jasper documentation , web forums. have @ answer outlined here: http://community.jaspersoft.com/questions/531694/xhtml-render-or-export

sql server 2008 - How to run sql n times increasing variable and after joining results -

i've transact table (historical) createddate , transact related employee transact table. (inner join in transact_id) this being said, comes problem: need query these table , state month , because during year, createddate can change. e.g. employee update in july create new line, shouldn't affect march total. the solution looks forech , how can join lines @ end? result should like: january - $123 february - $234 march - $123 ... i last state of each employee this: select alltransact.id_employee, alltransact.id_department ( select id_employee, id_department, rank() on (partition id_employee order created_date desc) desc_rank transact_employee transemployee inner join transact on transemployee.id_transact = transact.id_transact , transact.status = 8 , transact.created_date < @currentmonth) alltransact desc_rank = 1 *i don't want copy , past code 12 times. :) you can partition on many colum...

Putty skips installation wizard -

i downloaded putty.exe installer windows x86 here- http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html running windows 7. when run executable goes straight putty configuration window without running setup process. don't see welcome dialog shown in first image here- https://www.openshift.com/page/install-and-setup-putty-ssh-client-for-windows can't save configuration , reuse. sounds want download "windows installer" , not .exe. .exe file standalone , not require install. either way has same functionality.

xml parsing - Extract attributes and values from XML file in perl -

this part of output xml file output stanford corenlp: <collapsed-ccprocessed-dependencies> <dep type="nn"> <governor idx="25">mullen</governor> <dependent idx="24">ms.</dependent> </dep> <dep type="nsubj"> <governor idx="26">said</governor> <dependent idx="25">mullen</dependent> </dep> </collapsed-ccprocessed-dependencies> </sentence> </sentences> <coreference> <coreference> <mention representative="true"> <sentence>1</sentence> <start>1</start> <end>2</end> <head>1</head> </mention> <mention> <sentence>1</sentence> <start>33</start> <end>34</end> <head>33</head> ...

java - Why does this throw a NullPointerException? -

null pointer means there programmers error within paramter somwhere, code looked @ ensure haven't missed obvious? it's simple % based poker bot, pretty sure here's "thinks" error is. public action act(set<action> actions) { random generator = new random(); int roll = generator.nextint(100) + 1; //gives number between 1 , 100 system.out.println("roll = " + roll); action myaction = null; if (roll <= 30) { // raise 30% if (actions.contains(action.raise)) { myaction = action.raise; } else if (actions.contains(action.bet)) { myaction = action.bet; } else if (actions.contains(action.call)) { myaction = action.call; } } else if (roll > 30 && roll <= 90) { // call/check 60% if (actions.contains(action.call)) { myaction = action.call; } else if (actions.contains(action.check)) { myaction = action.check...