Posts

Featured post

python - cx_oracle unable to find Oracle Client -

i have installd python 2.7.3 on linux 64 bit machine. have oracle 11g client(64bit) installed. , set oracle_home, path, ld_library_path, , installed cx_oracle 5.1.2 version python 2.7 & oracle 11g. ldd command on cx_oracle unable find libclntsh.so.11.1. i tried creating symlinks libclntsh.so.11.1 under /usr/lib64, updated oracle.conf file under /etc/ld.so.conf.d/. tried possible solutions have been discussed on issue on forums, no luck. please let me know missing. the issue me installed python, cx_oracle root oracle client installation done "oracle" user. got own oracle installation , fixed issue. later ran pyunicodeucs4_decodeutf16 issues python , had install python —enable-unicode=ucs4 option

security - When is it acceptable to run app with no password on mysql? -

it's not crucial question, i'm still wondering, when it's possible have mysql connection settings some-user@localhost no-password. it's potential risk in case of shared web-provider: other user can access database (if know some-user name). is risky in case of vps(vds)? if run own server ip, assume approach safe? wrong? mimic localhost ip outside?

java - Configure JDBC Authentication in Spring Boot -

goal: add jdbc authentication spring boot default security configurations. source can found here per spring boot docs configure global authenticationmanager autowiring authenticationmanagerbuilder method in 1 of @configuration classes and spring security docs example: @autowired private datasource datasource; @autowired public void configureglobal(authenticationmanagerbuilder auth) throws exception { auth .jdbcauthentication() .datasource(datasource) .withdefaultschema() .withuser("user").password("password").roles("user").and() .withuser("admin").password("password").roles("user", "admin"); } given above, added following ( found here ): @configuration @enableauthorizationserver @enableresourceserver public class authenticationmanagerconfig { @autowired private datasource datasource; @autowired public void configure

stringtemplate - StringTemplate4 if conditional with length -

i need generate following kinds of code stringtemplate4: methodfoo0(connection conn); methodfoo1(connection conn, int arg1); methodfoo2(connection conn, int arg1, int arg2); etc. the "connection conn" part present passing method name , rest of arguments st template. template looks follows: <methodname>(connection conn, <args; separator=", ">); this works produces comma when there no arguments @ (except conn): methodfoo0(connection conn,); to eliminate comma tried using if conditional , length st4 function couldn't work although tried various combos following: <methodname>(connection conn <if (length(fieldsinfind) \> 0)>,<else><endif><fieldsinfind; separator=", ">) ... , others failed parsing-related error ( mismatched input ). in end, gave , resorted passing comma parameter template either "," or empty string "" based on pre-rendering logic. you check p

c# - Exchange 2010/2013 TransportAgent Content Conversion for Internal Recipients -

i trying create transportagent reroutes internal email remote server further processing, email comes on in microsoft's internal tnef format (no content conversion being applied). in same format used if email going external recipient. i using routingagent reroute internal emails remote server. if can explain why happens in terms of categorizer's pipeline, helpful too, if can't avoid it. agent implemented both exchange 2010 , 2013, in case answer differs based on version of exchange.

regex - Ruby on Rails exclude group elements in route constraints -

i wondering, how define constraints regex route, match if excludes every single element of group. for instance, so: get "list/:action", :constraints => {:action => [none of following: (new, edit, delete, update)} i know if want match of elements of list, have defined so: get "list/:action", :constraints => {:action => /(new|edit|delete|update)/}, don't know, how make work described above. i have tried using ^ , ! signs before group, no luck far - there has notation one, think. how exclude these elements ? try following. it'll exclude actions route. class excludeactions def matches? ["new", "edit", "delete", "update"].exclude? params[:action] end end "list/:id", :constraints => excludeactions.new this exclude new , edit , delete , update actions routes list

shader - OpenGL Shadow Map -

i trying basic shadow map reason doesn't render properly. video of problem i render house using flat shader: int shadowmapwidth = window_size_x * (int)shadow_map_ratio; int shadowmapheight = window_size_y * (int)shadow_map_ratio; // rendering shadow texture. glactivetexture(gl_texture0); call_gl(glbindtexture(gl_texture_2d, shadowtexture)); // bind framebuffer. call_gl(glbindframebuffer(gl_framebuffer, shadowfbo)); //clear call_gl(glclear(gl_depth_buffer_bit)); call_gl(glviewport(0, 0, shadowmapwidth, shadowmapheight)); call_gl(glcolormask(gl_false, gl_false, gl_false, gl_false)); //render stuff flatshader.use(); flatshader["basecolor"] = glm::vec4(1.0f,1.0f,1.0f,1.0f); flatshader["pvm"] = projectionmatrix*pointlight.viewmatrix*cursor.modelmatrix; cursor.draw(); //binds vao , draws // revert scene. call_gl(glbindframebuffer(gl_framebuffer, 0)); call_gl(glcolormask(gl_true, gl_true, gl_true, gl_true)); call_gl(glviewport(0, 0, window_size_x, window_s