小编ibo*_*336的帖子

有没有办法从MAC上的OpenSSH_5.6p1更新到OpenSSH 5.9?

在OpenSSH 5.9中显然存在某些安全漏洞.我尝试从openssh网站下载openssh-5.9.tar.gz文件,但我不知道如何使用源代码更新我的mac上的版本(10.7.3).这是可行的还是苹果在发布下一版狮子时需要更新的东西?

  ssh -v
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-e escape_char] [-F configfile]
           [-I pkcs11] [-i identity_file]
           [-L [bind_address:]port:host:hostport]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-R [bind_address:]port:host:hostport] [-S ctl_path]
           [-W host:port] [-w local_tun[:remote_tun]]
           [user@]hostname [command]
Run Code Online (Sandbox Code Playgroud)

macos openssh macports osx-lion

5
推荐指数
1
解决办法
3225
查看次数

angular-google-maps标记未显示

所以我使用http://angular-ui.github.io/angular-google-maps/#!/api中的angular-google-maps指令 ,我无法在地图实例上看到我的标记.我已经尝试过几乎所有的东西,我非常渴望得到建议.我已经尝试将$ scope.markers移动到我的$ scope.map对象,尝试将其移动到我的$ watch函数中,并将值直接添加到html中,没有运气.我认为这与我必须添加的$ scope.control.refresh()函数有关,以便地图在选项卡内完全加载(我使用的是angular-bootstrap选项卡).

谢谢你的帮助!

HTML

   <div ng-controller="LocationCtrl" ng-cloak>
  <div class="map-canvas" ng-if="locationActive">
    <ui-gmap-google-map draggable="true" center='map.center' zoom='map.zoom' control="control">
      <ui-gmap-marker coords="markers.coords" idKey="markers.idKey">
      </ui-gmap-marker>
    </ui-gmap-google-map>
  </div>
</div>
Run Code Online (Sandbox Code Playgroud)

JAVASCRIPT

(function() {
  'use strict';

  var locationCtrl = function($scope, uiGmapIsReady, $timeout) {
    $scope.map = {
      center: { latitude: 36.132411, longitude: -80.290481 },
      zoom: 15
    };

    $scope.control = {};

    $scope.active = $scope.$parent.active;
    $scope.locationActive = $scope.active().active;
    $scope.$watch($scope.active, function() {
      $timeout(function() {
        uiGmapIsReady.promise().then(function () {
          $scope.control.refresh();
          var map = $scope.control.getGMap();
          $scope.markers= {
            idKey: 1,
            coords: …
Run Code Online (Sandbox Code Playgroud)

google-maps angularjs angular-google-maps

3
推荐指数
1
解决办法
6217
查看次数