首页 文章 精选 留言 我的

精选列表

搜索[启动程序],共10000篇文章
优秀的个人博客,低调大师

iOS 判断App是否第一次启动

#defineLAST_RUN_VERSION_KEY@"last_run_version_of_application" -(BOOL)isFirstLoad{ NSString*currentVersion=[[[NSBundlemainBundle]infoDictionary] objectForKey:@"CFBundleShortVersionString"]; NSUserDefaults*defaults=[NSUserDefaultsstandardUserDefaults]; NSString*lastRunVersion=[defaultsobjectForKey:LAST_RUN_VERSION_KEY]; if(!lastRunVersion){ [defaultssetObject:currentVersionforKey:LAST_RUN_VERSION_KEY]; returnYES; } elseif(![lastRunVersionisEqualToString:currentVersion]){ [defaultssetObject:currentVersionforKey:LAST_RUN_VERSION_KEY]; returnYES; } returnNO; } 本文转自 卓行天下 51CTO博客,原文链接:http://blog.51cto.com/9951038/1958145,如需转载请自行联系原作者

优秀的个人博客,低调大师

OpenStack —— 虚拟机的启动过程简述(八)

DashboardorCLIgets the user credential and does the REST call toKeystonefor authentication. Keystoneauthenticate the credentials and generate & send back auth-token which will be used for sending request to other Components through REST-call. DashboardorCLIconvert the new instance request specified in ‘launch instance’ or ‘nova-boot’ form to REST API request and send it tonova-api. nova-apireceive the request and sends the request for validation auth-token and access permission tokeystone. Keystonevalidates the token and sends updated auth headers with roles and permissions. nova-apiinteracts withnova-database. Creates initial db entry for new instance. nova-apisends therpc.callrequest tonova-schedulerexcepting to get updated instance entry with host ID specified. nova-schedulerpicks the request from thequeue. nova-schedulerinteracts withnova-databaseto find an appropriate host via filtering and weighing. Returns the updated instance entry with appropriate host ID after filtering and weighing. nova-schedulersends therpc.castrequest tonova-computefor ‘launching instance’ on appropriate host . nova-computepicks the request from thequeue. nova-computesend therpc.callrequest tonova-conductorto fetch the instance information such ashost ID and flavor( Ram , CPU ,Disk). nova-conductorpicks the request from thequeue. nova-conductorinteracts withnova-database. Return the instance information. nova-computepicks the instance information from thequeue. nova-computedoes the REST call by passing auth-token toglance-apito get the Image URI by Image ID from glance and upload image from image storage. glance-apivalidates the auth-token withkeystone. nova-computeget the image metadata. nova-computedoes the REST-call by passing auth-token toNetwork APIto allocate and configure the network such that instance gets the IP address. quantum-servervalidates theauth-token withkeystone. nova-computeget the network info. nova-computedoes the REST call by passingauth-token toVolume APIto attach volumes to instance. cinder-apivalidates the auth-token withkeystone. nova-computegets the block storage info. nova-computegenerates data for hypervisor driver and executes request on Hypervisor( vialibvirtorapi). 本文转自 wzlinux 51CTO博客,原文链接:http://blog.51cto.com/wzlinux/1964195,如需转载请自行联系原作者

优秀的个人博客,低调大师

IBM与博世公司启动工业物联网合作

慕尼黑/斯图加特 2017年2月16日,IBM (NYSE:IBM) 宣布与博世公司(Bosch)开启工业物联网领域的合作,在基于开放标准的IBM Bluemix和IBM Watson IoT平台上提供Bosch IoT 套件服务,供客户安全高效地更新数百万台物联网设备。 资料显示,到2020年,预计将有208亿件物体被连接到物联网[1],消费者将希望其使用的物联网设备始终具备最新的功能和优化的性能。在此背景下,博世借助IBMBluemix平台交付“Bosch IoT Rollouts”服务,将其与IBM Watson IoT平台相集成,用于高级设备的管理和基于云计算的软件更新。基于这一合作,两家公司的客户都将能够通过IBM云计算访问“Bosch IoT Rollouts”服务。IBM云计算具有庞大的规模、灵活性、隐私性和安全性,对工业物联网领域更新互联设备、推动持续创新起到至关重要的作用。 “物联网技术正在潜移默化地改变商业世界和日常生活的面貌。在物联网的世界中,只有那些能够在生态系统中开展协作的公司才可能取得成功,因为其能够为开放平台和互操作性提供战略性的基础。我们希望通过携手合作,使我们的客户在开发IoT解决方案时更加轻松、快捷,” 博世软件创新部首席执行官Rainer Kallenbach博士表示。 博世将在IBM Bluemix和Watson IoT平台上扩展其强大的博世IoT套件服务,用于实现自定义应用开发和运行。同时,IoT解决方案开发人员还将得益于这一服务与IBM Watson IoT功能的无缝集成。 “在未来几年,物联网将成为地球上最大的数据来源,数十亿台互联设备将不停地传输有关其状态、位置和运行状况的信息,”IBM Watson IoT、认知交互和教育总经理Harriet Green说道。“我们很高兴与博世公司携手为客户提供创新性的功能,从而为每台互联设备带来个性化的服务和体验。” 举例而言,当下的汽车制造商可以完全地掌控对于数百万台车辆的软件更新,通过调度和安排确保车辆的功能能够得到安全、有效的更新和改进,而不再需要车辆进入车间进行维护。白色家电制造商可以远程向成千上万台洗衣机和烘干机发送如自动补充订购洗涤剂的更新,以确保消费者能够获得最新的更新、服务和产品。 IBM和博世共同认为:物联网将通过开放标准和开源走向成功。因而,两家公司将继续积极投身于Eclipse基金会和IIC,以促进物联网技术在关键领域的普及。 原文发布时间为:2017年2月17日 本文来自云栖社区合作伙伴至顶网,了解相关信息可以关注至顶网。

优秀的个人博客,低调大师

iOS解决App启动时闪屏问题(swift)

创建一个工具类MTAppHelper import UIKit fileprivate let isIphone4 = Int(kScreenH) == 480 fileprivate let isIphone5 = Int(kScreenH) == 568 fileprivate let isIphone6 = Int(kScreenH) == 667 fileprivate let isIphonePlus = Int(kScreenH) == 736 /// 工具类 class MTAppHelper { /// 根据机型获取指定机型的图片 /// /// - returns: 指定手机类型的图片 static func fetchLaunchImage() -> UIImage? { var imageName: String! if isIphonePlus { imageName = "Default-736h" } else if isIphone6 { imageName = "Default-667h" } else if isIphone5 { imageName = "Default-568h@2x~iphone" } else { imageName = "Default@2x~iphone" } return UIImage(named: imageName) } } 加载UI时调用方法 showSplashScreenImage(); /// 闪屏图片视图 lazy var splashImageView: UIImageView = UIImageView(frame: kScreenBounds) /// 展示闪屏图片 private func showSplashScreenImage() { //使用工具类方法 splashImageView.image = ZSAppHelper.fetchLaunchImage() UIApplication.shared.keyWindow?.addSubview(splashImageView) }

优秀的个人博客,低调大师

阿里启动“NASA”计划 物联网主题有望“沾光”

阿里巴巴集团日前在杭州召开首届技术大会,动员全球两万多名科学家和工程师投身“新技术战略”。这项代号为“NASA”的计划将专注于机器学习、操作系统、生物识别等具体领域。阿里云将发挥主导作用,菜鸟网络等参与。分析人士指出,这有望进一步催热相关产业。 分析人士指出,由于“NASA”计划更专注底层基础及通用核心技术,那么应用端的机会或将留给与阿里有合作的A股小伙伴。 值得一提的是,2014年至2016年间,阿里与A股上市公司之间基于“万物互联”(IoT)领域的合作明显增多,涉及者深康佳、美的、大华股份、海康威视、上汽集团、中兴通讯等均为相关行业龙头。此外,阿里云也与东软集团、中国软件、易华录、浪潮信息、浪潮软件、东华软件、银江股份、超图软件等十余家公司达成战略合作。 无独有偶。除阿里外,转型期的互联网巨头均已开始纷纷抢占高科技“航道”。京东集团CEO刘强东近日在公司内部年会上对外公布集团未来12年战略时强调,京东集团将坚定地朝着技术转型,用技术打造一个包括智能商业、智能金融、智能保险业务在内的全球领先的智能商业体。而百度、小米、腾讯等在人工智能领域均成立了各自的实验室和研发力量。 本文转自d1net(转载)

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

WebStorm

WebStorm

WebStorm 是jetbrains公司旗下一款JavaScript 开发工具。目前已经被广大中国JS开发者誉为“Web前端开发神器”、“最强大的HTML5编辑器”、“最智能的JavaScript IDE”等。与IntelliJ IDEA同源,继承了IntelliJ IDEA强大的JS部分的功能。

用户登录
用户注册