Posts

javascript - Using a post request to grab filtered data from python flask and update current webpage -

so have web page displays list of open jobs on market. there's advanced search feature on webpage filters results, use post request in java script these inputs python route. i'm confused how connect these arguments , grab filtered data. send inputs front end python route. i'm not sure how filtered data backend frontend. make ajax call same app.route ? can't call .render_template due project structure. this i'm using front-end $(document).ready(function () { $('#view_csr_search').click(function (event) { event.preventdefault(); var data = { role: $('#dropdown_option_1').val(), location: $('#location_drop_down').val(), mandatory_skills: $('#mandatory_field').val(), desired_skills: $('#desired_field').val() }; $.post('/jobs/search', json.stringify(data), ...

C# Entity Framework 6 two way binding with listbox -

how can bind entity listbox allows 2 way operation? i know can provide datasource, doesn't work (two ways mean). i able achieve wanted text box using listbox.databindings.add("text", entity, "textfield") . i've tried binding selectedvalue, selecteditem, selecteditems , items. none of work. in cases exception targetinvocationexception with inner exception text of object not match target type. the object date/time object, doesn't seem problem when bind using datasource . any appreciated. datasource source of items of listbox. when choose element listbox, selected element selecteditem. set datasource (usually target of foreign key) , bind selecteditem (the foreign key).

neoscms - Cropping does not work in Neos back-end, beta5 -

cropping in neos back-end throws exception (for neos beta5): uncaught exception #1297759968 in line 271 of /usr/local/www/apache24/data/_sprint2/data/temporary/development/cache/code/flow_object_classes/typo3_flow_mvc_controller_argument.php: exception while property mapping target type "typo3\typo3cr\domain\model\node", @ property path "": exception while property mapping target type "typo3\media\domain\model\imageinterface", @ property path "": not open stream resource af0c55f536c860b1d44ce0769f4a1ab52d15b6bd ("company_foldout_short.png") collection "persistent" while trying create temporary local copy. - see also: 20150708145304930495.txt previousexception => uncaught exception #1297759968 in line 260 of /usr/local/www/apache24/data/_sprint2/data/temporary/development/cache/code/flow_object_classes/typo3_typo3cr_typeconverter_nodeconverter.php: exception while property mapping target type "typo3\media\doma...

python - How open and read pdf (originally .html) file using Python3 -

i need open file in python3: http://www.arch.gob.ec/index.php/descargas/doc_download/478-historial-de-produccion-nacional-de-crudo-2011.html here have read it, , extract data tables. have searched several hours nothing seem work. new scraping/parsing , first time have looked in file handling of pdf. thanks kind of help! obtaining pdf internet called scraping. trying read pdf obtain data quite problem! there many utilities available try convert pdf text - not entirely successful. this article explains, pdf files nice use (look at), internals aren't elegant. reason visible text, not present directly inside document, , has reconstructed tables. in cases pdf doesn't contain text, image of text. the article contains several tools (try to) convert pdf text. have 'wrappers' in python access them. there few modules sound interesting, such pypdf (which not convert text), aren't. atxt looks interesting data mining - haven't tested yet. as me...

docker - Build multiple images from multiple dockerfile -

is there way build multiple images managing 2 different dockerfiles? in case want keep 2 dockerfile suppose dockerfile_app1 dockerfile_app2 within build context. docker build -t <image_name> . the above pick dockerfile named dockerfile docker build -t <image_name> dockerfile_app1 this not working case it's expecting file name dockerfile. i have tried docker-compose build also. din't work. app1: build: dockerfile_app1 ports: - "80:80" app2: build: dockerfile_app2 ports: - "80:80" just use -f argument docker build specify name of dockerfile use: $ docker build -t <image_name> -f dockerfile_app1 . ... or in compose can use dockerfile key version 1.3 onwards: app1: build: . dockerfile: dockerfile_app1 ports: - "80:80" app2: build: . dockerfile: dockerfile_app2 ports: - "80:80" note build key build context, not name of dockerfile (so looked directory called ...

ssl - Which keystore is used when null is passed to KeyManagerFactory.init() in Java? -

when execute following code: keymanagerfactory keymanagerfactory = keymanagerfactory .getinstance(keymanagerfactory.getdefaultalgorithm()); keymanagerfactory.init(null, null); and subsequent establishment of ssl connection, exception in thread "main" javax.net.ssl.sslhandshakeexception: received fatal alert: handshake_failure , not nullpointerexception or something. keystore used then? or npe hidden? when null used keystore argument of keymanagerfactory.init(..., ...) , no keystore used (it's in fact using an empty list internally). there's no "hidden" nullpointerexception such, , there's no reason why there should one. of course, using null value here , empty collection has consequences when trying use keymanager, not ssl/tls connections require keystore (e.g. client-side without client certificate or anonymous cipher suites). (note that, although there no default value keystore, there 1 truststore ...

PayPal IPN Simulator: Something went wrong while trying to connect to the URL. Please check the URL and try again -

i applying paypal payment on web application i'm building. trying test ipn messages ipn simulator on paypal sandbox account. the issue ipn simulator returning error ipn listener url "something went wrong while trying connect url. please check url , try again." . url in format http://123.123.123.123:1234/myapp.webapi/api/transactions/ppipnlistener . when run url in browser hitting method. address 123.123.123.123:1234 computer's address, visible "outside world" , myapp.webapi project hosted in computer's local iis. code is(c#): [routeprefix("api/transactions")] public class transactioncontroller : apicontroller { [allowanonymous] [route("ppipnlistener")] [httppost] public void ppipnlistener() { //some code } how make ipn simulator work? according this post domain name should used instead of ip address(e.g. http://www.example.com/myapp.webapi/api/transactions/ppipnlistener ) , should ...