Posts

Ruby Mac OS X 10.9.2 -

i'm trying figure out error. i'm on mac os x 10.9.2 , ruby -v says ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13] the error is: chadd:homebrew-openmw-master chadd$ ruby test.rb /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- formula (loaderror) /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ex/kernel_require.rb:45:in `require' test.rb:1:in `<main>' the code i'm trying run looks this, left incomplete because don't need rest: require 'formula' class openmwboost < formula homepage 'http://www.boost.org' url 'http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download' why version of ruby not find 'formula', not native package should come ruby. you need install forumla gem , gem install formu...

jquery - Height to get this sub navigation to slide up on first click -

i have list items have sub navigation: <ul role="menu"> <li role="menuitem"> <a href="#" class="clearfix">top level</a> </li> <li class="slidedown open" role="menuitem"> <a href="#" class="clearfix">top level</a> <span class="slidedown-toggle">show sub menu</span> <!-- subnav --> <ul class="list-reset nav-sub" role="menu"> <li role="menuitem"> <a href="#">second level</a> </li> <li role="menuitem"> <a href="#">second level</a> </li> <li role="menuitem"> <a href="#">second level</a> </li> </ul> </li> </ul> i have script, ...

orchardcms - Orchard :how to hide fields in content part by using placement.info? -

i add 1 customer field called wrappersuppressed widget content part. can add , remove wrapper widget. boolean field management purpose, not content. i'm trying hide filed in front end. i put 1 line in placement.info, this, working.: <place fields_boolean-wrappersuppressed="-"/> i need add more condition, content part, field belong to, this <place fields_boolean-widgetpart-wrappersuppressed="-"/> this not work. anyone can me on issue? this not how works: can't make shape names that. first part of attribute name has shape name emitted driver of field ( fields_boolean in case), , second name of field. have more 1 field named wrappersuppressed on content type? if so, that's not such idea. there other conditions can put match tag surrounding place . can match on content type, display type, , path. recommend read http://docs.orchardproject.net/documentation/understanding-placement-info details.

c# - How to debug System.InvalidOperationException in System.Security.AccessControl.Privilege.Revert() -

i have application started crashing when shutting down following error in event log: application: app.exe framework version: v4.0.30319 description: process terminated due unhandled exception. exception info: system.invalidoperationexception stack: @ system.security.accesscontrol.privilege.revert() @ system.security.accesscontrol.privilege.finalize() i did digging in .net reference source method , appears exception thrown @ bottom. can't first invalidoperationexception because not contain message, 1 @ end of method throws blank 1 has match. the call adjusttokenprivileges (p/invoke) failing , checks not find expected error code: if ( error == win32native.error_not_enough_memory ) { throw new outofmemoryexception(); } else if ( error == win32native.error_access_denied ) { throw new unauthorizedaccessexception(); } else if ( error != 0 ) { contract.assert( false, string.format( cultureinfo.invariantculture, "adjusttokenprivileges() failed unrecogn...

javascript - How to avoid showing form data in http headers -

i submitting form using "post" method. but, submit form using "post" method, can see submitted form data in http headers. using live http headers plugin check headers. trying save secure info. if browser has "live http headers" plugin, 1 can trap data. so, if want hide submitted data in http headers also, need do? if not possible hide submitted form data in http headers, mechanism follow encrypt data @ client side(so if data visible in http headers, in encrypted format. so, no 1 can understand) , decrypt , process data @ server side. totally blocked here. please me out this. appreciate help. in advance. there appears bit of confusion regarding how http post works. i'm assuming viewing headers in either client browser's debugger or on server. in case, data being sent should readable. client side debugger displays headers before encrypted , sent across wire. on server, post data should available in unencrypted format. what sent o...

How to change color of all holidays in Outlook 2010? -

Image
i added national holidays outlook -> options -> calendar -> calendar options -> add holidays now want change color of holidays @ once. ideas? select holiday entry in calendar. open color categories dialog tab home-> categorize-> categories

c# - HelloWorld is successfully launched by Windows .NET but not by MONO -

i've installed mono on 64-bit windows 7 using: mono-3.2.3-gtksharp-2.12.11-win32-0.exe go-mono download page in directory (without spaces in path) changed according jim gomes' advice successfully run first 2 examples console hello world gtk# hello world from mono basics article. but 3d example "winforms hello world" compiled without errors , run windows (by double-clicking in windows explorer) running: mono hello.exe from "mono-3.2.3 command prompt" window produces errors listed below (note first 2 examples including window of second example launched command prompt invoking through mono ... ) what problem , how overcome it? update according mentioned article "mono basics" compiled 3d example "winforms hello world" gmcs hello.cs -pkg:dotnet . btw, dotnet package located? in directory same name? not have single dir such name dotnet under mono-3.2.3 dir the errors produced running mo...