小编Hoa*_*ang的帖子

Emacs 找不到要安装的包

我在尝试自动安装 Emacs 软件包时遇到此错误。

Warning (initialization): An error occurred while loading `/Users/username/.emacs.d/init.el':

File error: http://melpa.org/packages/projectile-20150619.800.el, Not found

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.
Run Code Online (Sandbox Code Playgroud)

emacs projectile melpa

4
推荐指数
2
解决办法
6107
查看次数

在 Django Rest Framework 中将数据作为数组发布

我正在使用 Django Rest 框架实现 API。我想知道 Python 可以像 Ruby 一样将 POST 参数作为数组发送吗?

例如:

POST /api/end_point/
params = { 'user_id': [1,2,3] }

# In controller, we get an array of user_id:
user_ids = params[:user_id] # [1,2,3]
Run Code Online (Sandbox Code Playgroud)

django django-rest-framework

2
推荐指数
1
解决办法
4960
查看次数

在Ruby中生成带有徽标或背景颜色的QR码

我正在使用rQrCode在Ruby中生成QR码.但我想更改背景颜色或在生成的QR代码中间添加图像.我做了一些研究,却一无所获.

有没有人用Ruby实现它?或者您对它有任何想法吗?

非常感谢.

ruby qr-code ruby-on-rails

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