要设置我的项目,我运行:
laravel new cms
composer require laravel/ui
php artisan ui:auth
php artisan migrate
Run Code Online (Sandbox Code Playgroud)
但是,当我访问http://cms.test/login时,会看到登录页面:
并因缺少资源而得到两个 404 错误:
http://cms.test/js/app.js net::ERR_ABORTED 404 (Not Found)
http://cms.test/css/app.css
Run Code Online (Sandbox Code Playgroud)
这些丢失文件的原因可能是什么?
我的公共目录除了.htaccess、favicon.ico、index.php 和robot.txt 文件外都是空的,这正常吗?
我正在建立一个我刚创建的框架,然后上传到Bitbucket上的私人仓库.
我已将以下内容添加到我的Cartfile中:
git" https://myUsername@bitbucket.org/myUsername/myFramework.git "
但是当我运行carthage update --platform iOS时,我收到以下错误:
一个shell任务(/ usr/bin/env git clone --bare --quiet https://myUsername@bitbucket.org/myUsername/myFramework.git /Users/jack/Library/Caches/org.carthage.CarthageKit/dependencies/退出代码128:myFramework)失败:致命:无法读取" https://myUsername@bitbucket.org "的密码:终端提示被禁用
你怎么建议我这个工作?
我的自定义键盘应用程序扩展在我的真实设备上表现不同,但在我的 iOS 模拟器上表现良好。
我在真实设备上收到以下错误
2017-02-17 16:30:01.369868 Custom Keyboard[8472:570942] [default] error registring notify port: (1000000)
2017-02-17 16:30:01.371652 Custom Keyboard[8472:570889] [Common] BKSAccelerometer unable to create notifyd token for device orientation
2017-02-17 16:30:01.702241 Custom Keyboard[8472:570940] [] __nwlog_err_simulate_crash_libsystem libsystem simulate crash failed "libsystem_network.dylib: networkd_settings_setup_notify_watch :: notify_register_dispatch(com.apple.system.networkd.settings) [status 1000000] failed"
2017-02-17 16:30:01.706023 Custom Keyboard[8472:570940] [] networkd_settings_setup_notify_watch notify_register_dispatch(com.apple.system.networkd.settings) [status 1000000] failed, dumping backtrace:
Run Code Online (Sandbox Code Playgroud)
我正在使用标准 Alamofire 代码:
Alamofire.request("https://httpbin.org/get").response { response in
print("Request: \(response.request)")
print("Response: \(response.response)")
print("Error: \(response.error)")
if let data = response.data, let utf8Text = String(data: data, …Run Code Online (Sandbox Code Playgroud) 我想迭代我拥有的 URL 对象数组中的所有对象
class Url(object):
pass
a = Url()
a.url = 'http://www.heroku.com'
a.result = 0
b = Url()
b.url = 'http://www.google.com'
b.result = 0
c = Url()
c.url = 'http://www.wordpress.com'
c.result = 0
urls = [a, b, c]
for i, u in urls:
print(i)
print(u)
Run Code Online (Sandbox Code Playgroud)
但是,当我运行此脚本时,它会返回以下错误:
TypeError: cannot unpack non-iterable Url object
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
我的一个使用 WooCommerce 订阅插件的 WooCommerce 网站有问题。
问题是一种产品仅在特定日期每 2 周发货一次。
下一个发货日期是 11 月 9 日。
我需要弄清楚如何将其添加为产品的默认开始日期。
我尝试使用 WooCommerce 订阅插件的 WC_Subscriptions_Synchroniser 类中描述的功能。
我启用了同步续订功能。
并且还将同步续订日期更改为每周的星期五,因为 11 月 9 日是星期五。
但是,这使得第一个续订日期是 11 月 2 日,也就是即将到来的星期五。
我想弄清楚如何将开始日期推迟到 11 月 9 日而不是现在显示的 11 月 2 日。
任何建议表示赞赏。
我使用https://getgrav.org/blog/macos-mojave-apache-upgrade-homebrew教程系列在我的 MacOS 计算机上设置 LAMP 。
\n\n它可以工作一两个月,然后突然(没有对配置进行任何更改)它将停止工作。
\n\nThis site can\xe2\x80\x99t be reached\nlocalhost refused to connect.\nERR_CONNECTION_REFUSED\nRun Code Online (Sandbox Code Playgroud)\n\n上次发生这种情况时,我放弃了并从头开始重新安装。我不想每次停止工作时都必须这样做。
\n\n这是我这次迄今为止尝试过的:
\n\njackrobson$ ps -aef | grep httpd\n 501 84635 459 0 5:03pm ttys000 0:00.00 grep httpd\njackrobson$ sudo apachectl -k restart\njackrobson$ tail -f /usr/local/var/log/httpd/error_log\n[Sun Sep 16 14:43:22.548017 2018] [mpm_prefork:notice] [pid 74] AH00173: SIGHUP received. Attempting to restart\n[Sun Sep 16 14:43:22.635379 2018] [mpm_prefork:notice] [pid 74] AH00163: Apache/2.4.34 (Unix) PHP/7.0.31 configured -- resuming normal operations\n[Sun Sep 16 14:43:22.635437 2018] [core:notice] [pid 74] …Run Code Online (Sandbox Code Playgroud) 所以我使用https://sachinchoolur.github.io/lightgallery.js/作为我的画廊,这很棒。
当用户单击并图像时,它会打开并且一切正常。
<div id="lightgallery">
<a href="img/img1.jpg">
<img src="img/thumb1.jpg" />
</a>
<a href="img/img2.jpg">
<img src="img/thumb2.jpg" />
</a>
...
</div>
<script type="text/javascript">
lightGallery(document.getElementById('lightgallery'));
</script>
Run Code Online (Sandbox Code Playgroud)
但是,我有一个边缘情况,我希望用户能够按下页面上的另一个图像来打开图库。
让我们假装这是一个标签
<a id="magic_start" href="">
Run Code Online (Sandbox Code Playgroud)
我以为我能够做到这一点:
$("#magic_start").click(function(e) {
e.preventDefault();
$("#lightgallery li:first-child a").trigger();
});
Run Code Online (Sandbox Code Playgroud)
我也试过 click() 和 trigger('click') 但它们不起作用。
我认为因为 lightgallery.js 是它自己的人,可以这么说。
但它什么也不做。没有错误,但什么也不做。
有什么建议?
编辑:
我目前的解决方法是...
window.location.href = window.location.href + "#lg=1&slide=0";
location.reload();
Run Code Online (Sandbox Code Playgroud)
但是由于必须重新加载页面,这需要从 UX 中获取方法。
我的任务是让两个创建两个数组:
Array_1 = 选项一的所有可能选项的列表
array_2 =选项One == array_1 [0]选项两个可能选项的列表[0]
鉴于这些行...
$rows = [
(object) ['option_one' => 'large mug', 'option_two' => 'one color print'],
(object) ['option_one' => 'large mug', 'option_two' => 'two color print' ],
(object) ['option_one' => 'large mug', 'option_two' => 'three color print' ],
(object) ['option_one' => 'small mug', 'option_two' => 'one color print' ],
(object) ['option_one' => 'small mug', 'option_two' => 'two color print' ],
];
Run Code Online (Sandbox Code Playgroud)
然后我的输出将是
Array_1 = ['大杯子','小杯子']
Array_2 = ['一色打印','二色打印','三色打印']
我尝试使用数组映射来完成此操作,如下所示...
$option_one_arr = array_unique ( …Run Code Online (Sandbox Code Playgroud) 我是第一次构建跟踪功能.
我误以为我首先尝试创建一个可以处理跟踪条件的PHP脚本,但我不明白是否可以将其显示在电子邮件中.[这就是我没有计划这个功能的原因]
我将继续现在为电子邮件添加一个像素,并使用服务器访问日志来提供跟踪统计信息.
它让我思考,无论如何欺骗网页表现得像一个像素?它会在电子邮件上工作吗?
听起来太过分了,但是我希望有人能够澄清为什么不是这样的情况.
谢谢.