如何在周末停止松弛通知

Slack's logo
Slack
松弛

Slack’s notifications can be overwhelming enough during the workday. If you have the weekend off, the last thing you need is notifications arriving on your phone at 9 a.m. on a Saturday morning. Slack finally lets you stop notifications on the weekend—here’s how.

在工作日期间,Slack的通知可能会令人不知所措。 如果您周末休假,那么您最后需要做的就是在星期六早上9点通过手机收到通知。 Slack最终使您可以在周末停止通知-方法如下。

This setting arrived in Slack in June 2020. Previously, Slack only let you specify certain hours of the day when Do Not Disturb mode enabled itself automatically. So, if you took the weekend off, you’d still see notifications during the day on Saturday and Sunday unless you manually enabled Do Not Disturb mode ever weekend.

此设置于2020年6月到达Slack。以前,Slack仅允许您指定“请勿打扰”模式自动启用自身的一天中的某些时间。 因此,如果您休假了一个周末,除非您在每个周末手动启用了“请勿打扰”模式,否则您仍会在周六和周日的白天看到通知。

To find this setting in Slack for desktop, click your Slack’s workspace name at the top-left corner of the screen. Select Pause Notifications > Set a Notification Schedule.

要在用于桌面的Slack中找到此设置,请单击屏幕左上角的Slack工作区名称。 选择“暂停通知”>“设置通知时间表”。

Accessing notification schedule options from Slack's menu.

Scroll down and, under Allow Notifications, set your custom schedule. For example, to only get notifications during the traditional workweek (Monday to Friday), select “Weekdays” instead of “Every day.” If you work different days, select “Custom” and you can configure the days when you don’t want Slack notifying you.

向下滚动,然后在“允许通知”下设置自定义时间表。 例如,要仅在传统的工作周(星期一至星期五)中收到通知,请选择“工作日”而不是“每天”。 如果您的工作日不同,请选择“自定义”,然后您可以配置不希望Slack通知您的日期。

Your changes will take effect immediately. Close the Preferences window when you’re done.

您所做的更改将立即生效。 完成后关闭“首选项”窗口。

Setting Slack not to show notifications on the weekend.

In the Slack app on iPhone or Android, tap the “You” icon at the bottom of the Slack interface. Tap “Notifications” on the You screen.

在iPhone或Android上的Slack应用中,点击Slack界面底部的“您”图标。 在“您”屏幕上点击“通知”。

Tap “Notification Schedule” on the Notifications screen and configure notifications just as you would on the Slack desktop app.

在“通知”屏幕上点击“通知时间表”,然后像在Slack桌面应用程序上一样配置通知。

Accessing Slack's notification options in the iPhone app.

This setting should go a long way to help prevent Slack’s notifications from intruding on your life when you’re not working. Just remember that you’ll have to manually enable Do Not Disturb mode when you’re taking a holiday or another day off that isn’t part of your usual schedule.

此设置应该可以帮助防止Slack的通知在您不工作时侵入您的生活。 请记住,当您休假或放假不属于通常的时间表时,必须手动启用“请勿打扰”模式。

翻译自: https://www.howtogeek.com/679560/how-to-stop-slack-notifications-on-the-weekend/

在cvxpy中,松弛条件可以通过添加辅助变量来实现。具体来说,如果我们要将一个约束条件转化为松弛形式,可以将其表示为: ``` A @ x <= b ``` 其中,`A`是一个矩阵,`x`是变量,`b`是一个向量。为了使其变为松弛形式,我们需要引入一个新的变量`z`,并将约束条件写为: ``` A @ x + z = b z >= 0 ``` 这里的`z`可以表示为原始约束条件与其对偶形式之间的差异。 在cvxpy中,我们可以使用`cvxpy.Variable()`函数来定义变量,使用`cvxpy.Problem()`函数来定义优化问题,并使用`cvxpy.constraints.NonNeg()`函数来表示非负约束条件。下面是一个简单的例子: ```python import cvxpy as cp # 定义变量 x = cp.Variable(2) z = cp.Variable() # 定义约束条件 A = np.array([[1, 2], [3, 4], [5, 6]]) b = np.array([1, 2, 3]) constraints = [A @ x + z == b, z >= 0] # 定义目标函数 obj = cp.Minimize(cp.sum(x)) # 定义优化问题 prob = cp.Problem(obj, constraints) # 求解问题 prob.solve() print("最优解为:", x.value) ``` 在这个例子中,我们定义了一个二元变量`x`和一个标量变量`z`。然后,我们定义了一个约束条件`A @ x + z == b`和一个非负约束条件`z >= 0`。最后,我们定义了一个目标函数,即最小化`x`的和。通过调用`prob.solve()`函数来求解这个问题,得到了最优解。 需要注意的是,松弛条件可能会导致问题的复杂度增加,因此在实际应用中需要谨慎使用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值