我有reveal.js
大约300张幻灯片的演示文稿.本演示文稿的目的是在会议室后面的监视器上以"信息亭模式"循环幻灯片.
为了创建"自助服务终端模式",我得到了:
Reveal.initialize({
controls: false, // hide the control arrows
progress: false, // hide the progress bar
history: false, // don't add each slide to browser history
loop: true, // loop back to the beginning after last slide
transition: fade, // fade between slides
autoSlide: 5000, // advance automatically after 5000 ms
});
Run Code Online (Sandbox Code Playgroud)
这非常有效,但我想将幻灯片随机化.幻灯片目前只是<section>
索引文档中300个标签的列表- 它们不会从外部任何地方拉出.目前random: true
不是reveal.js中的配置选项.
片段的显示顺序可以用data-fragment-index
.是否可以通过部分做类似的事情?有没有办法欺骗reveal.js随机化我的幻灯片?
我的偏好是每次都将它们随机播放 - 也就是说,以随机顺序显示幻灯片1-300,然后将它们随机播放,并以不同的随机顺序再次显示1-300.不过,我也很乐意为每次转换跳转到随机幻灯片.
我已经开始使用Adobe Photoshop为我的Android应用程序制作图形了.但是我无法继续,因为Photoshop中的分辨率设置为每英寸像素,正如官方Google文档所说,Android将需要以dpi设置的图像.我在网上搜索了两者之间的转换,但从未以任何正确的公式结束.
我知道Android文档将关系描述为px = dp*dpi/160
.但我的问题是,如果我知道dpi在哪里可以获得在此计算中使用的dp的值?或者是否有关于dp值的假设?我很迷惑.
我的应用程序是一个聊天应用程序,它的 UI 是:
应用程序的标题
列表视图
聊天消息、输入框和发送按钮
但问题是当我单击编辑文本时,软键盘会出现并将所有内容向上推,但我需要标题留在屏幕上。我已经把它贴简化问题的图像和UI代码这里。(我不能在这篇文章中发布多个链接或图片,因为我是 Stack Overflow 的新手。)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical">
<TextView android:text="Header contents" android:layout_width="fill_parent"
android:textSize="20sp" android:gravity="center_horizontal"
android:layout_height="wrap_content" />
<ListView android:id="@android:id/list" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="1" />
<EditText android:text="" android:layout_gravity="bottom"
android:id="@+id/EditText01" android:layout_width="fill_parent"
android:layout_height="wrap_content"></EditText>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
Android 在默认消息应用程序中有此要求。
有没有人有任何想法?
我正在尝试编写一个简单的Silverlight媒体播放器,但我需要时间戳为hh:mm:ss:ff其中FF是帧数.
我使用计时器来获取刻度并计算我所在的帧,但它似乎非常不准确.如何可靠地计算我所在的框架?
有没有人知道会有这样的免费Silverlight播放器?
我想用不同的通知测试我的webhook功能.现在我能够测试它只是为了取消订阅(通过取消braintree后端的订阅).
$webhookNotification = Braintree_WebhookNotification::parse($sampleNotification["bt_signature"], $sampleNotification["bt_payload"]);
Run Code Online (Sandbox Code Playgroud)
我也试过https://www.braintreepayments.com/docs/php/webhooks/testing:
$sampleNotification = Braintree_WebhookTesting::sampleNotification(Braintree_WebhookNotification::SUBSCRIPTION_WENT_ACTIVE,'1234qwe');
$webhookNotification = Braintree_WebhookNotification::parse($sampleNotification["bt_signature"], $sampleNotification["bt_payload"]);
Run Code Online (Sandbox Code Playgroud)
但API返回的结果并不令人满意.无论订阅ID是否存在,它始终为所有通知类型返回相同的数组.
我想执行标量数据库查询并将结果返回到批处理文件中的变量中。
一个人会怎样做呢?我在我们的系统中看到的最接近的示例是,如果我根据标量查询结果返回退出代码。
Z:\SQL2005\90\Tools\Binn\sqlcmd -S servername -dCLASS -E -Q "EXIT(select case run_type when 'Q' then 200 else 100 end from cycle_date where cycle = '1')">NUL
if %errorlevel% == 200 call %SQLSERVER%
QRTLY.BAT
if %errorlevel% == 100 call %SQLSERVER%
MTHLY.BAT
Run Code Online (Sandbox Code Playgroud)
有人可以帮我解决语法问题吗?
这是一些 sqlcmd 帮助信息:
-v var = value[ var=value...]
Creates a sqlcmdscripting variable that can be used in a sqlcmd script. Enclose the value in quotation marks if the value contains spaces. You can specify multiple var="values" values. If there are errors …
Run Code Online (Sandbox Code Playgroud) 我有一个内置自定义购物车的自定义网站.我使用Paypal API标准付款方法将购物车信息发送到Paypal,然后返回到我的order_process.php页面的返回URL.一旦它返回我的网站,代码会更新我们数据库中的信息,以便为会员签署活动,为他们提供会员资格等.
一直工作正常,直到Paypal标记我们的帐户,因为在短时间内支付的高额增加.
我在Paypal与一位主管交谈,他们从我们的帐户中取出了旗帜.
我们最终没有改变任何东西,但现在网站不再正常工作了.它将信息发送到Paypal,成功付款并返回我们的网站.
一旦它到达代码行
$result = execute_payment($_SESSION["payment_id"], $_GET["PayerID"]);
Run Code Online (Sandbox Code Playgroud)
它崩溃了一个错误:"方法PayPal\Api\Sale :: getTransactionFee()不存在"
我已经多次与Paypal谈过了,他们一直说他们会回电话给我,没有回电话.我已广泛搜索此错误,但在此主题上找不到任何内容.我迷失了下一步的尝试,这导致了很多中断,因为我们正在处理大量的交易.我将网站切换到开发域并尝试使用沙盒模式,但仍然收到相同的错误消息.
任何帮助都将非常感谢.
Braintree的客户创建SDK系统在您点击提交后立即在表单中生成一个nonce输入字段.
<input name="payment_method_nonce" type="hidden" value="nonce-here">
Run Code Online (Sandbox Code Playgroud)
但是,使用Angular的ng模型输入识别系统,我无法检测到控制器中动态生成的输入.表单提交后,我正在我的控制器中执行一个函数.
<form id="checkout" id="checkout" ng-submit="processForm(formData)">
Run Code Online (Sandbox Code Playgroud)
如您所见,无法收集随机数的值并将其提交给脑树API命令,例如创建新用户的付款方式.
从控制器,数据将使用$ http提交给下面的braintree api命令.
gateway.customer.create({
creditCard: {
token: "creditCard123",
},
paymentMethodNonce: "nonce-from-the-client"
}, function (err, result) {
});
Run Code Online (Sandbox Code Playgroud)
我是以错误的方式来做这件事的吗?即使此应用程序是Angular/express,我是否应该使用纯节点进行解决方案?或者我应该使用jquery/angular在所述输入字段中植入ng模型?
我想从字符串中读取邮政编码.算法应该看到XXXXX数字,也连续看5个数字 - 如12345,68376,78902等.
我怎么能用PHP做到这一点?
我试图在收到的广播上增加我的进度条,但从myProgressDialog.incrementProgressBy(increment);
我的观点来看代码没有任何影响.我试过把命令放在不同的地方,但我仍然看不到任何效果.
这是我的代码的样子.
public static final int max = 180;
public final static int increment = (1/180);
@Override
public void onCreate(Bundle savedInstanceState) {
...
i = new Intent();
i.setAction(ITEM_CREATED);
registerReceiver(myBroadcastReceiver, new IntentFilter(ITEM_CREATED));
findFeeds = new Runnable(){
@Override
public void run()
{
getFeedObjects();
}
};
beginThread();
}
public static Context getAppContext() {
return context;
}
private void beginThread()
{
switch (checkConnectionState(OffsideLiteActivity.this))
{
case 0:
thread = new Thread(null, findItems, "DoingInBackground");
thread.start();
myProgressDialog = new ProgressDialog(this);
myProgressDialog.setCancelable(true);
myProgressDialog.setMessage("Loading...");
myProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
myProgressDialog.setProgress(0);
myProgressDialog.setMax(max); …
Run Code Online (Sandbox Code Playgroud) android ×3
braintree ×2
javascript ×2
php ×2
angularjs ×1
batch-file ×1
cakephp-2.3 ×1
dpi ×1
express ×1
layout ×1
node.js ×1
paypal ×1
reveal.js ×1
silverlight ×1
sql ×1
sql-server ×1
webhooks ×1