搞反代当然是主机流量不花钱的
先换个头像吧
mina 还活着吗?
我自己用都是,云主机 Nginx 反代到 OSS,缓存时间搞大,这样算内网流量了,白嫖
好公司把程序员当作资产,而不是成本
👍
等你老板让你拖拽出一个淘宝?
:(
_STORAGE_WRITE_ERROR_:./Application/Runtime/Cache/Home/2a94b8bda04ff446dcedd42276fc99ee.php
错误位置
FILE: /home/wwwroot/elixir/ThinkPHP/Library/Think/Storage/Driver/File.class.php LINE: 48
TRACE
#0 /home/wwwroot/elixir/ThinkPHP/Library/Think/Storage/Driver/File.class.php(48): E('_STORAGE_WRITE_...')
#1 [internal function]: Think\Storage\Driver\File->put('./Application/R...', ' #2 /home/wwwroot/elixir/ThinkPHP/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array)
#3 /home/wwwroot/elixir/ThinkPHP/Library/Think/Template.class.php(114): Think\Storage::__callstatic('put', Array)
#4 /home/wwwroot/elixir/ThinkPHP/Library/Think/Template.class.php(76): Think\Template->loadTemplate('./Application/H...', '')
#5 /home/wwwroot/elixir/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php(32): Think\Template->fetch('./Application/H...', Array, '')
#6 /home/wwwroot/elixir/ThinkPHP/Library/Think/Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array)
#7 /home/wwwroot/elixir/ThinkPHP/Library/Think/Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'run', Array)
#8 /home/wwwroot/elixir/ThinkPHP/Library/Think/View.class.php(126): Think\Hook::listen('view_parse', Array)
#9 /home/wwwroot/elixir/ThinkPHP/Library/Think/View.class.php(72): Think\View->fetch('./Application/H...', '', '')
#10 /home/wwwroot/elixir/ThinkPHP/Library/Think/Controller.class.php(56): Think\View->display('', '', '', '', '')
#11 /home/wwwroot/elixir/Application/Home/Controller/IndexController.class.php(7): Think\Controller->display()
#12 [internal function]: Home\Controller\IndexController->index()
#13 /home/wwwroot/elixir/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#14 /home/wwwroot/elixir/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\IndexController), 'index')
#15 /home/wwwroot/elixir/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#16 /home/wwwroot/elixir/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#17 /home/wwwroot/elixir/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#18 /home/wwwroot/elixir/index.php(23): require('/home/wwwroot/e...')
#19 {main}
ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]
有一篇课文叫《包身工》
这个东西由意思
还是看爽文比较好:https://shanggu.net/
拍簧片一直拍一直爽
ben,我现在常用的是全世界最好的语言 PHP
论美感,.net core 都可以甩 golang 几条街
rails 3 😄
朋友曾经在我跟前抱怨过说,大厂两三年的的螺丝工出来很喜欢说“我们以前 xxxx”,我们以前都是用 xxxxx”结果实操起来,那些 xxxxx 都是别人弄的
12 年的 md 101 换 ssd 加到 10G 内存,可以忍受
可以写在一起,分开部署啊
不错,谢谢!
多谢反馈
使用 Oauth2 的 password 模式
接口是 https://ruby-china.org/oauth/token
final String _authEndpoint = Config.OauthBasetURL + "/oauth/authorize";
final String _tokenEndpoint = Config.OauthBasetURL + "/oauth/token";
final String _clientId = Config.OauthClientId;
Future<ResultData<Oauth2Credentials>> login(
{String username, String password}) async {
if (username == null || (username != null && username.isEmpty))
return Future.error('用户名不能为空.');
if (password == null || (password != null && password.isEmpty))
return Future.error('密码不能为空.');
var data = FormData.fromMap({
"client_id": _clientId,
"grant_type": "password",
"username": username,
"password": password,
});
var response =
await HttpManager.instance.request(_tokenEndpoint, "post", data: data);
if (response.ok) {
var credentials = Oauth2Credentials.fromJson(response.data);
return ResultData<Oauth2Credentials>(true, response.code,
data: credentials, meta: response.data["meta"], raw: response.raw);
} else {
var error = {
'error': '登陆错误',
'message': ['用户名或密码错误'],
};
return ResultData<Oauth2Credentials>(
false,
response.code,
data: null,
error: Error.fromJson(error),
raw: response.raw,
);
}
}
也可以参考 https://github.com/ruby-china/ruby-china-ios/blob/master/ruby-china-ios/Libraries/OAuth2.swift#L66
不是 windows 不堪,是没人直接在 windows 上玩啊,另外,win 10 wsl 已经很好用了啊
下载不来?
https://ruby-china.org/wiki/ruby-mirror
建议:不要一上来就扎进 rails 里,15 分钟搞个 blog 找信心吗?万一是找了闹心了呢?
把 lrthw 里的东西都走一遍,有过编程经验会很快的,https://learnrubythehardway.org/book/
再回过头玩 rails , 下面这三个对照着玩
https://ruby-china.github.io/rails-guides/
我觉得 win 10 wsl 挺好的
今天好热闹~O(∩_∩)O 哈哈~
gorm 最终不是转换成 sql 执行的吗?只要你创建表时 column 设定加上 CITEXT 就可以了啊
如果你是说 gorm 定义 struct 时指定 citext 这个就不清楚了,官方问比较好。
俺们 rails 内,就很简单了,我们的口号是”能不刀耕火种,就不刀耕火种"
ActiveRecord::Schema.define(version: 2020_05_04_062010) do
enable_extension "citext"
create_table "users", force: :cascade do |t|
t.citext "login", null: false
t.citext "name"
t.citext "email", null: false
end
end
没有人用 deepin 吗?
说的是美元还是英镑?