Posts

javascript - Why doesn't the toggle toggle? -

newb here attempting learn how work jquery way of investigating 'the toggle' i have simple html page , thought second link load collapsed/hidden , when clicked reveal it's contents, not. instead displays screen inner html exposed (hope i'm using terms correctly). believe happening jquery not loading, thats best guess of hobbyist, out there can me work. <html> <head> <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> <script> $.fn.slidefadetoggle = function(speed, easing, callback) { return this.animate({ opacity: 'toggle', height: 'toggle' }, speed, easing, callback); }; // collapse first menu: $("#accordionmenu li a").not(":first").find("+ ul").slideup(1); // expand or collapse: $("#accordionmenu li a").click(function() { ...

what's the formula of ONVIF #PasswordDigest -

i'm working on onvif of send "getdeviceinformation". that's required wsse:usernametoken. after searching data authority, there 2 faormula: (1) "onvif-core-specification-v241.pdf", "5.12.2.1 password derivation" pe_ua = base64(hmac_sha-1(ua+p_ua,nep+”onvif password”)) (2) soap of web protocol digest = b64encode( sha1( b64decode( nonce ) + date + password ) ) i confused!!which 1 correct? moreover, when test onvif test tool wireshark the xml got as: <wsse:usernametoken> <wsse:username>admin</wsse:username> <wsse:password type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#passworddigest">lu9ywjdwst8ow7m4tmjcb50/xrg=</wsse:password> <wsse:nonce>tgbyfhxsc3oo8ypzwnqn8a==</wsse:nonce> <wsu:created>2014-06-20t04:41:45z</wsu:created> </wsse:usernametoken> ok, i've try figure out formula data. a> username: "admin...

How to setup Postfix for Ruby On Rails to send email -

i want have postfix send email in ror project. safer , hax more functionality. but i'm quite lost. installed postfix , got ror working. next should do? (i need send email, not receive @ moment) should configure postfix , make able send email in comment line first, integrate ror? if so, how should set configure file in postfix , , how settings in rails ? or need every setting in rails ? if so, should detailed setting? i'm quite confused. lots of tutorials either not working or not suit situation. example action mailer configuration an example adding following appropriate config/environments/$rails_env.rb file: config.action_mailer.delivery_method = :sendmail # defaults to: # config.action_mailer.sendmail_settings = { # location: '/usr/sbin/sendmail', # arguments: '-i -t' # } config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true config.action_mailer.default_options = {from: 'no-repl...

How do I install a custom build of asp.net vnext KRuntime? -

i built kruntime using appveyor. artifacts artifacts\build\*.nupkg in nuget feed . how install kruntime build using version manager ? try downloading package local machine, then: kvm install kre-svr50-x64.1.0.0-t140627040749.nupkg your milage may vary. output: c:\users\chris\downloads>kvm install kre-svr50-x64.1.0.0-t140627040749.nupkg unpacking c:\users\chris\.kre\packages\temp installing c:\users\chris\.kre\packages\kre-svr50-x64.1.0.0-t140627040749 cannot find kre-svr50-x86.1.0.0-t140627040749, need run 'kvm install 1.0.0-t140627040749'?

html - Box-shadow only on right and left -

Image
i need make box-shadow on right , left of element. should fade , thinner top , bottom. shouldn't oveflow on top , bottom. the main issue can't prevent shadow overflow on top , bottom of element. this have : html : <div></div> css : div{ box-shadow: 0px 0px 20px 0px #000000; } you need use 2 box-shadows 1 left shadow , 1 right one. need specify both box-shadows in same box-shadow attribute , seperate them coma : box-shadow: -60px 0px 100px -90px #000000, 60px 0px 100px -90px #000000; both need have negative spread value shorter divs height , don't overflow on top , bottom. demo output : you need tweak values of shadow in order adapt size of element want use on. html : <div></div> css : div{ height:500px; width:300px; margin:0 auto; box-shadow: -60px 0px 100px -90px #000000, 60px 0px 100px -90px #000000; }

search - Searching a value in an aribitrary structure in C -

if have structure this. [code] cogmacframe.header.destaddr = dest; cogmacframe.header.cogparam = nextchan; cogmacframe.header.somethingidontknowbutiaminterested = 10; cogmacframe.header.somethingidontknow = xyz; [/code] here, if don't know fields of structure know 1 of unknown field take value lets 10. need search value of 10 , field value. can , how ? i working in warpboard uses c language .the structure macframe header. header received unknown node using own header format don't know fields know 1 of field take particular value , need search value , access field.

sql - Display the details of the employees who have been hired after the employee 'Jack' was hired -

below code display details of employees have been hired after employee 'jack' hired all of information in single table. my query: select e.employee_name, e.hiredate employees e e.employee_hiredate > jack.hiredate; to 'jack' table, need join: select e.employee_name, e.hiredate employees e join employees jack on jack.employee_name = 'jack' e.employee_hiredate > jack.hiredate; alternatively can use subquery: select e.employee_name, e.hiredate employees e e.employee_hiredate > (select hiredate employees employee_name = 'jack'); this article may give better explanation on how joins work, , this article explain bit subqueries.