Posts

javascript - Close hover div in IE 11 -

when hover 1 div code executed,and bizdetails show, now want when mouse out in bizdetails div it's close my code is $("div.bizdetails").css("left", -$("div.images").width() / 2).fadein('slow', function () { $("body").mousemove(function (e) { if (!$(e.target).parent().hasclass("bizdetails") && !$(e.target).hasclass("bizdetails")) { $("div.bizdetails").fadeout(); } }) }) this code work fine in chrome , firefox but in ie work in first use,and in secound when hover div , bizdetails show , close, bizdetails html <div class="bizdetails" style="left: -71.5px; display: block;"> <img src="../static/css/images/img1.png"> <h2>graphic</h2> <p>decription</p> <span>texttexttexttexttexttextex</span> </div> please me

animation - Transition chaining and cancellation -

i have 2 functions perform animations on lines. first function, one executed @ beginning, in order perform operations on enter selection, , animates lines' horizontal movement ( x1 , x2 ). second function two animates lines' height (only y2 , y1 stays fixed). through user events, function one cannot interrupted function two , vice versa (also because animation in two considerably longer). means that, when transition two still running, user can trigger one . this gave me serious headaches, because one somehow take values of last state of running transition of two instead of correctly assigning data-driven value (i.e. .attr('y2', function(d){ ... }); ). http://jsfiddle.net/h39wn/6/ - please following: click on one . see horizontal movement animated data changes. see @ end of execution, lines should ordered lowest highest. click on two once , wait full 2 seconds until animation completed. click on one again. desired behavior. now click on two , wai...

apple push notifications - When one PushSharp message fails, they all fail -

i'm using push sharp library send push notifications apple apn server. code works great, can send 1000s of notifications. the problem is, if attempt send notification invalid device token receive failure message push sharp framework pushsharp.apple.notificationfailureexception , every message queued after point not sent. basically, pushsharp clears queue if single notification fails. for example, if queue 4 notifications (1,2,3,4) , notification 2 has invalid device token, notification 1 sent, 2 fail, , 3 , 4 not sent (and no event fired informing of this). i understand notification invalid device token not sent not acceptable drop other n queued notifications on floor. are there workarounds this? here's code: _applesettings = new applepushchannelsettings(!notification_service_use_development, notification_service_use_development ? ssl_certificate_name_dev : ssl_certificate_name_prod, ssl_certificate_password); _applesettings.connectiontimeout = notificatio...

svn - How to extract information from tortoisesvn -

i'm using tortoisesvn in delphi xe2 project. i extract messages typed in moment commit in files create version documents clients. how can ? tortoisesvn => show log then select range of revisions (click on first or last revision want included, hold down shift, , click on last revision). right-click on highlighted revisions , select "copy clipboard" that give log message + modifications, in nicely formatted plaintext manner, , can take , format see fit.

Python ctypes and mutable strings calling Fortran DLL: Access Violation Error -

i trying call subroutine in fortran dll requires 3 mutable strings passed it. subroutine of form: subroutine getinfo(string_1, string_2, string_3, index) char *60 string_1, string_2 char *30 string_3 string_1 = "string 1 return value" string_2 = "string 2 return value" string_3 = "string 3 return value" end subroutine im calling function in python follows: dll = ctypes.windll.loadlibrary('library.dll') funcprot = getattr(dll, 'getinfo') funcprot.argtypes = [ctypes.c_char_p, ctypes.c_long, ctypes.c_char_p, ctypes.c_long, ctypes.c_char_p, ctypes.c_long, ctypes.c_long] string_1 = ctypes.create_string_buffer(60) string_2 = ctypes.create_string_buffer(60) string_3 = ctypes.create_string_buffer(30) funcprot(string_1, 60, string_2, 60, string_3, 30, 701) i following error. windowserror: exception: access violation reading 0x000002bd i tried suggestions post , didn't help. what doing wrong? thank help.

c++ - QT console application with Crypto++ library -

this driving me nuts. using crypto++ ver 5.6.2. qt 5.2.1 on mac osx. projects built inside qt creator. im not using make command line i build crypto++ unpacking , building follow: qmake -project deleted gnumakefile open in qt , modified .pro file adding macx { defines += cryptopp_disable_asm } the target cryptopp: target = cryptopp set release, ran qmake , did rebuild all. dylibs generated: libcryptopp.1.0.0.dylib libcryptopp.1.0.dylib (alias) libcryptopp.1.dylib (alias) libcryptopp.dylib (alias) created bare console application , included crypto class. modified .pro file follow: macx { # config += release cryptopp libs += /users/adviner/qt5.2.1/5.2.1/clang_64/lib/libcryptopp.1.0.0.dylib qmake_post_link += install_name_tool -change libcryptopp.1.0.0.dylib $$[qt_install_libs]/libcryptopp.1.0.0.dylib $(target) } in console test app in debug mode. ran qmake , rebuild all. keep getting following error: :-1: error: symbol(s) not found...

java - Streaming video from server using VideoView, error (1, -2147483648) with larger files (Sorry, this video cannot be played) -

as title says, i'm trying stream video app using videoview. works fine smaller videos, larger ones, refuses play ("sorry, video cannot played" popup, , server receives clientabortexception). i assume way works downloads whole file memory or , attempts load @ once (which perhaps device handle?). i've implemented chunked streaming functionality on server (parsing range headers, etc) imagine need implement same functionality client side well. can done videoview? here's server code (it works fine ios video player, requests in chunks default): fileinputstream in = new fileinputstream(file); servletoutputstream out = response.getoutputstream(); long begin = 0; long length, end = file.length(); list<integer> range = parserange(request); if (range.size() > 0) { begin = range.get(0); } if (range.size() > 1) { end = range.get(1); } int datalength = (int)(end - begin) + 1; response.setheader("accept-ranges", "bytes...