Posts

How can I import a module into powershell without waiting for it to complete? -

i have psm1 file want load $profile, takes long load. prefer load "in background" doesn't prevent immediate action in powershell prompt. if run job, don't functions psm1 file. ideas how can this? doesn't there flags "load in background" import-module. powershell jobs run in own session. imagine importing module working fine, not in powershell session want. see about_job_details why module take long load? maybe can improve that?

What are all the jars in External Library section in intellij maven project -

so on left hand side of intellij,i have project collapsable element , beneath external libraries section. i'm not sure jars in section. for instance, of jars - first few of them highlighted (library home) in brackets written it. see different kind of directory (different icon) called < 1. 7 > path in brackets well. inside it, has many jars saying library home. i've different kind of icon directories structure maven: group-id:artifact-id:version. i'm confused why of these maven , others library home, , how got there in first place. googling libraries in intellij floods result related how add 3rd party library intellij project, not interested in. the ones called < 1.7 > core libraries java sdk (version 7 in case). the ones (library home) set via project structure - ctrl + alt + shift + s. in project structure can define jars or directories in project settings -> libraries or platform settings -> global libraries . these configure ...

How can we safely store powershell credentials for script usage -

i looking secure means store powershell credentials use in scheduled-task script keep running road blocks. windows server 2008 environment primarily. the biggest issue have found if throw password out securestring text file , read in later, credential object inherently flawed use scriptable object. provides method exposes clear text information. $credentialobject.getnetworkcredential().password this means if has access system , task scheduler, can extract password used in script little trouble. does know of way around this? if take credential object , save using export-clixml , user exported can decrypt it, , on same computer. so scheduled task has run user. but task has able decrypt credential use it. there no way around that. can modify task or modify code task runs can credential. as @ebgreen said, setting credentials on scheduled task only, , not using credential object @ all, work, depends on you're trying do, can't tell without code. you try u...

Yammer IOS SDK Doesn't Display Attachments -

with yammer ios sdk, getting image attachment message not display image. call works javascript sdk not ios sdk. -(void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath{ //navigate attachment screen if ([[[arrmessages objectatindex:indexpath.row] valueforkey:@"attachments"] count] > 0) { nslog(@"attachments : %@", [[arrmessages objectatindex:indexpath.row] valueforkey:@"attachments"]); nslog(@"content class : %@", [[[[arrmessages objectatindex:indexpath.row] valueforkey:@"attachments"] firstobject] valueforkey:@"content_class"]); nsstring *strcontentclass = [nsstring stringwithformat:@"%@", [[[[arrmessages objectatindex:indexpath.row] valueforkey:@"attachments"] firstobject] valueforkey:@"content_class"]]; if ([strcontentclass isequaltostring:@"image"] || [strcontentclass isequaltostring:@"video"]) { deta...

ios - How to have two NSManagedObject classes with the same superclass -

i have 2 classes, mammals , fish , both inherit general superclass, animals . i'd store mammals , fish using core data, i've made them both subclasses of nsmanagedobject. so, when want mammals , fish , execute couple fetch requests. my question animals superclass. it's properties , methods used 2 subclasses, should nsmanagedobject well? if so, mammals , fish need explicit nsmanagedobject subclass because subclass animals ? is approach flawed? sorry if super-basic question, if answer "yes; no." 1 of answers here warned against using inheritance in data model, hence apprehension. make own decision whether inheritance model tie in knots in future. in direct answer question inheritance tree like... nsmanagedobject -> animal -> mammals -> fish so @interface animal : nsmanagedobject and @interface fish : animal just wary core-data not take complex rearrangement if need upgrade model in fut...

jquery - How to disable Safari elastic scroll to stop a fixed div with a lower z-index being visible? -

i have div .drawer (cart drawer) has z-index lower main wrapper #pagecontainer of website. sits below. when button clicked main wrapper moves left reveal div underneath. everything fine except when viewing in safari due elastic scrolling if scroll past top of website can see div thats underneath. every other browser seems fine issue due elastic scroll. i need div fixed , display:block; don't want disappear when drawer closes. ideas how can disable elastic scroll site? or if there need apply css? any appreciated. here's demo site .drawer { position: fixed; display: block; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; top: 0; bottom: 0; padding: 0 ($gutter / 2) ($gutter / 2); max-width: 95%; z-index: 10; }

javascript - PHP doesn't process the form -

i'm having little problem here. have form jquery disables submit input when form submited. the problem is: use php process data when input submit clicked. apparently button being disabled first, php can not perform processing. need find way prevent this, take in code snippets: <form class='send' action='{$_server['php_self']}' method='post'> <!--form data--> <input type='submit' name='finish' value='send'/> </form> jquery function disable: $('.send').on('submit', function() { $(this).find('input[type="submit"]').prop("disabled", true); }); and php code process: if(isset($_post['finish'])) { //do things } as said, php don't process form because js disabled button prevent multiple submitions. how process php before disable button? thanks! since disabling submit button not send on to server in $_post variable...