推荐 综合 人气 评论 点赞
Mac OS X 安装ruby环境
1.查看版本$ ruby -vruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]2.查看源$ gem source -l*** CURRENT SOURCES ***https://rubygems.org/3.更换源$ gem source -r https://rubygems.org/https://rubygems.org/ removed from sour

0评论2023-02-09339

【Ruby】Mac gem的一些坑
前言自上一次升级MacOS系统后出现jekyll无法构建的问题,当时处理半天。谁知道最近又升级了MacOS,荒废博客多时,今天吝啬写了一篇准备发布,构建报错,问题重新。还是记录下,以防下次升级出问题。问题描述安装jekyll静态博客需要在Ruby环境下运行,于是参照

0评论2023-02-09384

Ruby on Rails,使用new和create创建ActiveRecord对象及他们之间的区别
在前文《Ruby on Rails,使用Rails Console进行ActiveRecord调试》中,我们能够在rails console中访问模型并进行对象创建和入库操作。现在我们来看一看创建和入库操作的一些细节。在rails中,new/save操作和create操作都可以创建ActiveRecord对象并持久化到数

0评论2023-02-09336

理解ruby on rails中的ActiveRecord::Relation
ActiveRecord::Relation是rails3中添加的。rails2中的finders, named_scope, with_scope 等用法,在rails3统一为一种Relation用法。以下是返回ActiveRecord::Relation的方法:bindcreate_withdistincteager_loadextendingfromgrouphavingincludesjoinslimitlo

0评论2023-02-09694

Mac OS10.11更新ruby,gem,安装cocoapods
1.装cocoapods,ruby版本忒低-》开始更新ruby-》开始更新gem,这是一条不归路啊同志们,各种permission denied,各种路径不存在,各种路径没有读写权限,各种不成功!2.舒服优雅的方式:(ref:https://segmentfault.com/a/1190000003784636)rvm是什么?为什

0评论2023-02-09407

How do you run an interactive process in Dart?
https://***.com/questions/12682269/how-do-you-run-an-interactive-process-in-dart The test below attempts to run the less pager command and return once the user quits. The problem is that it doesn't wait for user input, it just lists the en

0评论2023-02-09599

Flutter 导入 import 'package:english_words/english_words.dart'
import 'package:flutter/material.dart';import 'package:english_words/english_words.dart'; // 导入的包void main() = runApp(new MyApp());class MyApp extends StatelessWidget {@override...1,在项目根目录下打开 pubspec.yaml 文件,找到如下代码,

0评论2023-02-09713

mac安装dart报错curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.co
mac安装dart报错curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443 安装brew:控制台操作:1.安装brew/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"2.安装dart-l

0评论2023-02-09490

dart2native 使用Dart 在macOS,Windows或Linux上创建命令行工具
下载dart2.6以上dart2native --help编写源文件// bin\main.dartmain(ListString args) {print('hello world');}打包dart2native ./bin\main.dart -o ./helloλ ./hellohello world也可以打包为exe文件dart2native .\bin\main.dart -o ./hello.exeGenerated: d

0评论2023-02-09549

数据结构与算法之Stack(栈)的应用——用stack实现一个计算器——in dart
      本文用stack实现了一个计算器,支持括号、小数、负数。代码比较简单,没加什么注释。实际使用时,读取用户在stdin的输入,然后计算。若格式错误,会抛出异常。      在实际计算过程中,实际分为三步:消除输入的空格;表达式预处理和预计算,这一

0评论2023-02-09732

用Dart&Henson玩转Activity跳转 用dart开发的应用
用DartHenson玩转Activity跳转Extra是Android标准的组件之间(Activity/Fragment/Service等)传递数据的方式。本文介绍了开源项目Dart的使用,它优雅的处理了组件间跳转和数据传递内容提要传统的方式DartHenson小改进建议本文中所演示的例子sample代码位于Dar

0评论2023-02-09585

openstack swift install 1
http://swift.openstack.org/development_saio.html :  SWIFT ALL IN ONE.And Using a loopback device for storage.And cannot get code by launchpad,so i get code here :http://www.openstack.com commond: sudo ~/bin/recreateaccounts log(in terminal

0评论2023-02-09947

openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 一
openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 一openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 二openstack-r版(rocky)搭建基于centos7.4 的openstack swift对象存储服务 三openstack-r版(rocky)搭建基于ce

0评论2023-02-09713

« 上一页 6/52 下一页 »