是否有任何图书馆或课程在那里展示360度全景iPhone?
我在这里找到了这个:http://code.google.com/p/panoramagl/ 但它不是最新的,只适用于旧版本的ios.
我很感谢任何帮助我在ios上创建360度全景视图的链接.
我有一台西门子1200 PLC.使用node-opcua客户端和Kepserver我能够读取变量并更改值.现在我想在KepServer中从node-opcua在PLC中创建一个新变量.

我曾尝试使用node-opcua服务器,因为在示例中我已经看到了如何创建变量,但是我收到错误,因为我正在尝试连接到KepServer所执行的相同端口.
var server = new opcua.OPCUAServer({
port: 49320, // the port of the listening socket of the server
resourcePath: "", // this path will be added to the endpoint resource name
buildInfo : {
productName: "MySampleServer1",
buildNumber: "7658",
buildDate: new Date(2014,5,2)
}
});
Run Code Online (Sandbox Code Playgroud)
我怎么处理创建一个新变量?并从node-opcua创建一个组标签?
是否可以在Kepserver中安装opcua服务器并创建直接连接到该服务器的变量?我的Kepserver位于:opc.tcp:// localhost:49320要连接到此Kepserver,我使用nodeopcua客户端:
var opcua = require("node-opcua");
var client = new opcua.OPCUAClient();
var endpointUrl = "opc.tcp://127.0.0.1:49320";
var the_session = null;
async.series([
// step 1 : connect to
function(callback) {
client.connect(endpointUrl,function (err) {
if(err) …Run Code Online (Sandbox Code Playgroud) 我有一个计算的算法percentile(85)与Apache Commons一系列值(12个值)与阈值,为以后的评估作出决定.结果类似于Excel给出的结果,但不相等,有时这对我的应用程序至关重要,因为使用excel时结果不会超过阈值,并且使用Apache Commons Math Java,所以我获得了不同的输出.
这是一个例子:互联网流量(Mbps)每2小时
32,7076813360000000 41,2580429776000000 45,4453940200000000 48,8044409456000000 46,7462847936000000 49,8028100056000000 54,3719451144000000 41,9708134600000000 29,4371963240000000 22,4667255616000000 20,0388452248000000 28,7807757104000000
除以1000 Mb(电缆的容量)后,我计算职业的百分位数(85):
Excel:0,049153870117
Apache Commons Math:0.05003126676104001
我发现有可能改变百分位的实现(它不存在官方的)setPercentileImpl(),但我找不到任何如何做到的例子,或Excel算法(我是那个告诉实现).
对此有任何帮助都会受到欢迎.
谢谢.
我正在尝试使用图像和菜单链接进行引导菜单,当它滚动时,菜单会粘在窗口的顶部.
我找到了有趣的bootstrap词缀,并使用了这个帖子中的内容: bootstrap-affix:Div下面的词缀"跳转"到顶部.如何让它顺利滚动?
问题是当我按下菜单按钮时,选项位于页面的内容文本下.
我写了一个小提琴,让你看到我的问题并尝试解决方案:http: //jsfiddle.net/mram888/WnPqF/
我试图为菜单div的类添加不同的z-index,但只有在页面滚动并且菜单贴在顶部时才能正常工作.
#nav.affix {
position: fixed;
top: 0;
width: 100%;
z-index:2;
}
#nav > .navbar-inner {
border-left: 0;
border-right: 0;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-o-border-radius: 0;
}
.nav-wrapper {
z-index: 2;
}
Run Code Online (Sandbox Code Playgroud)

早上好.
我在linux上,使用cocos2d-x Android.
我创建了一个计算圆值的函数.
// Circle point updateCircle()
// x = number of iteration · SamplingPeriod |-|-|-|
// y = A · sine ( 2 · PI · number of iteration · SamplingPeriod / Period )
int iterations = this->getNumberOfIterations();
CCPoint centerPoint = this->getCenter();
float x = centerPoint.x + this->getAmplitude() * cos( 2 * M_PI * iterations * this->getSamplingPeriod() * this->getFrequency() );
float y = centerPoint.y + this->getAmplitude() * sin( 2 * M_PI … 我实际上在Linux上工作,但我也使用Mac.
我正在尝试为我的游戏添加多语言支持,并且我将使用不同的XML和标签.
当我使用ccLanguageType _myLanguage = CCApplication::getCurrentLanguage()get null时,信号11异常.
我也用过getCurrentLanguageJNI() 但是没用.
这是怎么回事?
我正在尝试将复杂数据附加到我的数据库产品中Magento.1.7.0.2,有些是简单的,其他可配置的.导出的Magento CSV不满足导入需求.我有这个文件例如用于导入数据:
sku,_store,_attribute_set,_type,_category,_root_category,_product_websites,price,special_price,special_from_date,special_to_date,image,media_gallery,news_from_date,news_to_date,url_key,url_path,minimal_price,visibility,custom_design,custom_layout_update,page_layout,options_container,required_options,has_options,image_label,small_image_label,thumbnail_label,created_at,updated_at,enable_googlecheckout,gift_message_available,is_imported,country_of_manufacture,msrp_enabled,msrp_display_actual_price_type,msrp,qty,min_qty,use_config_min_qty,is_qty_decimal,backorders,use_config_backorders,min_sale_qty,use_config_min_sale_qty,max_sale_qty,use_config_max_sale_qty,is_in_stock,notify_stock_qty,use_config_notify_stock_qty,manage_stock,use_config_manage_stock,stock_status_changed_auto,use_config_qty_increments,qty_increments,use_config_enable_qty_inc,enable_qty_increments,is_decimal_divided,_links_related_sku,_links_related_position,_links_crosssell_sku,_links_crosssell_position,_links_upsell_sku,_links_upsell_position,_associated_sku,_associated_default_qty,_associated_position,_tier_price_website,_tier_price_customer_group,_tier_price_qty,_tier_price_price,_group_price_website,_group_price_customer_group,_group_price_price,_media_attribute_id,_media_image,_media_lable,_media_position,_media_is_disabled,_super_products_sku,_super_attribute_code,_super_attribute_option,_super_attribute_price_corr
"1202012000009S_freesoul,,PartesDeArriba_Hombre,simple,Hombre/Camisetas,""Default Category"",base,45.0000,,,,/t/n/tn_1202012000009-1_1.jpg,,,,camiseta-freesoul,camiseta-freesoul.html,,1,,,,""Bloque después de la columna de Información"",0,0,""Camiseta Freesoul"",""Camiseta Freesoul"",""Camiseta Freesoul"",""2012-10-05 08:41:01"",""2012-10-05 12:07:06"",1,,No,,""Usar configuración"",""Usar configuración"",,5.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,0,1,0.0000,1,0,0,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-1_1.jpg,""Camiseta Freesoul"",1,0,,,,"
",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-2_1.jpg,""Camiseta para hombre Freesoul"",2,0,,,,"
"1202012000009M_freesoul,,PartesDeArriba_Hombre,simple,Hombre/Camisetas,""Default Category"",base,45.0000,,,,no_selection,,,,camiseta-freesoul,camiseta-freesoul-58.html,,1,,,,""Bloque después de la columna de Información"",0,0,/,/,/,""2012-10-05 08:41:51"",""2012-10-05 12:07:39"",1,,No,,""Usar configuración"",""Usar configuración"",,5.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,0,1,0.0000,1,0,0,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-1_1_1.jpg,""Camiseta Freesoul"",1,0,,,,"
",espanol,,,,,,,,,,,,,,,camiseta-freesoul.html,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-2_1_1.jpg,""Camiseta para hombre Freesoul"",2,0,,,,"
"1202012000009L_freesoul,,PartesDeArriba_Hombre,simple,Hombre/Camisetas,""Default Category"",base,45.0000,,,,no_selection,,,,camiseta-freesoul,camiseta-freesoul-59.html,,1,,,,""Bloque después de la columna de Información"",0,0,/,/,/,""2012-10-05 08:43:19"",""2012-10-05 12:08:03"",1,,No,,""Usar configuración"",""Usar configuración"",,5.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,0,1,0.0000,1,0,0,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-1_1_1_1.jpg,""Camiseta Freesoul"",1,0,,,,"
",espanol,,,,,,,,,,,,,,,camiseta-freesoul.html,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-2_1_1_1.jpg,""Camiseta para hombre Freesoul"",2,0,,,,"
"1202012000009XL_freesoul,,PartesDeArriba_Hombre,simple,Hombre/Camisetas,""Default Category"",base,45.0000,,,,no_selection,,,,camiseta-freesoul,camiseta-freesoul-60.html,,1,,,,""Bloque después de la columna de Información"",0,0,/,/,/,""2012-10-05 08:44:34"",""2012-10-05 12:08:29"",1,,No,,""Usar configuración"",""Usar configuración"",,5.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,1,,1,0,1,0,1,0.0000,1,0,0,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-1_1_1_1_1.jpg,""Camiseta Freesoul"",1,0,,,,"
",espanol,,,,,,,,,,,,,,,camiseta-freesoul.html,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,73,/t/n/tn_1202012000009-2_1_1_1_1.jpg,""Camiseta para hombre Freesoul"",2,0,,,,"
"1202012000009XXL_freesoul,,PartesDeArriba_Hombre,simple,Hombre/Camisetas,""Default Category"",base,45.0000,,,,no_selection,,,,camiseta-freesoul,camiseta-freesoul-61.html,,1,,,,""Bloque después …Run Code Online (Sandbox Code Playgroud) 按照本指南自定义数据库表的自定义模块,我是magento的新手
我已经将我已经存在的模块实现到后端adminhtml.我正在从数据库中获取内容并在adminhtml页面上播放.一切正常,除了我在adminhtml上获得两次网格.我两次得到同一个网格.我已经看了2个小时的代码无法搞清楚.如果有人知道如何解决这个问题,我会非常愚蠢.干杯
这就是我的grid.php中的代码
<?php
class Ecom_Pricenotify_Block_Adminhtml_Pricenotify_Grid extends Mage_Adminhtml_Block_Widget_Grid{
public function __construct()
{
parent::__construct();
$this->setId('pricenotifyGrid');
// This is the primary key of the database
$this->setDefaultSort('pricenotify_id');
$this->setDefaultDir('ASC');
$this->setSaveParametersInSession(true);
}
protected function _prepareCollection()
{
$collection = Mage::getModel('pricenotify/pricenotify')->getCollection();
$this->setCollection($collection);
return parent::_prepareCollection();
}
protected function _prepareColumns()
{
$this->addColumn('pricenotify_id', array(
'header' => Mage::helper('pricenotify')->__('Notification ID'),
'align' =>'left',
'width' => '50px',
'index' => 'pricenotify_id',
));
$this->addColumn('prod_id', array(
'header' => Mage::helper('pricenotify')->__('Product ID'),
'align' =>'left',
'width' => '50px',
'index' => 'prod_id',
));
$this->addColumn('prod_price', array(
'header' => Mage::helper('pricenotify')->__('Product Price'), …Run Code Online (Sandbox Code Playgroud) 我正在使用PhoneBap的StatusBarNotification插件(Android)来发送通知.现在我想在特定的时间到这个,从我读过的,我必须使用Android的AlarmManager.我已经尝试了一些方法,但似乎无法让它工作.
有关如何做到这一点的任何建议?
编辑:我可以得到通知,以显示我是否将代码放在onReceive()中showNotification().问题似乎是接收器没有收到Alarm-thingy.可能是因为我在IntentFilter中没有正确的操作.
这是我的代码.我从Phonegap的StatusBarNotification插件构建它,在这里找到
public class StatusBarNotification extends Plugin {
// Action to execute
public static final String ACTION="notify";
private Context context;
BroadcastReceiver receiver;
public StatusBarNotification() {
this.receiver = null;
}
public void setContext(PhonegapActivity ctx) {
super.setContext(ctx);
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction(); //Dunno what to put here
if(receiver == null) {
this.receiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
Log.d("Notification", "inside onReceive");
/*int icon = R.drawable.notification;
long when = System.currentTimeMillis();
NotificationManager manager …Run Code Online (Sandbox Code Playgroud) 好的,我本以为这是一个简单的问题,但是显然这让我感到困惑。
当我尝试设置RibbonComboBox的高度时,它并没有移动它的实际大小,只是围绕它的盒子移动。

这是我的XAML:
<ribbon:RibbonComboBox
DisplayMemberPath="CompanyCode"
Height="22"
Margin="0,0,0,-30"
VerticalAlignment="Bottom"
Width="102">
<ribbon:RibbonGallery SelectedValue="{Binding Path=Companies.SelectedItem,
ValidatesOnDataErrors=true,
NotifyOnValidationError=true }">
<ribbon:RibbonGalleryCategory ItemsSource="{Binding Path=Companies.Items,
NotifyOnValidationError=true,
ValidatesOnDataErrors=true}" />
</ribbon:RibbonGallery>
</ribbon:RibbonComboBox>
Run Code Online (Sandbox Code Playgroud)
我可以将高度更改为200或1,但是高度永远不会改变。
我究竟做错了什么?
谢谢,埃罗克
android ×2
cocos2d-x ×2
magento ×2
alarmmanager ×1
ccsprite ×1
cocoa-touch ×1
cordova ×1
excel ×1
ios4 ×1
iphone ×1
java ×1
jquery ×1
kepserverex ×1
magento-1.4 ×1
magento-1.5 ×1
magento-1.7 ×1
magmi ×1
node-opcua ×1
node.js ×1
objective-c ×1
panoramas ×1
percentile ×1
ribbon ×1
statistics ×1
wpf ×1
xaml ×1