- 博客(52)
- 资源 (2)
- 收藏
- 关注
原创 鸿蒙PC开发笔记三:HarmonyOS PC 命令行开发和Helloworld
HDC(HarmonyOS Device Connector)是OpenHarmony提供的命令行工具,用于连接和调试设备(如真机或模拟器)。文章最后附上其基本使用方法和常见命令。第一篇安装好了sdk,但是没有对系统进行配置,所以执行sdk相关命令找不到路径,这篇做个配置,再用命令行写个简单的Helloworld程序。首先,配置sdk,编辑~/.bash_profile加入到shell PATH,source ~/.bash_profile后应该命令生效,下面做几个简单测试。
2025-12-10 01:28:25
305
原创 鸿蒙PC开发笔记二:HarmonyOS PC 开发基本概念
前面根据同学的经验克服了一系列问题总算对鸿蒙PC开发流程有了一个整体认识,接下来我们对基础和框架来个简单认识鸿蒙PC系统是指华为公司开发的一款操作系统,旨在为个人电脑提供全新的操作体验和功能。鸿蒙PC系统基于鸿蒙操作系统,是华为全场景智慧生态的一部分。鸿蒙PC系统的设计理念是构建一个统一的、灵活的操作系统,能够在不同设备之间实现无缝连接和协同工作。它采用分布式架构、统一开发、多终端适配、安全可靠等特点,提供更加智能、高效和便捷的用户体验。
2025-12-05 22:10:26
354
原创 鸿蒙PC开发笔记一:HarmonyOS PC 命令行适配指南(Mac 版)
第一步:安装python3,因为鄙人用的10.15老系统,系统默认的python2.7依然在发光,之前brew安装的3.8版本有点低,没有科学上网brew upgrade多次不成功,所以索性从python官网下载了3.9.13安装包,下面配置有点麻烦,因为无法通过shell alias覆盖系统的python2,所以爱了一下,好容易发现可以通过在用户目录下建立bin目录,软连接安装的python3,然后加入PATH路径(这个方案确实柳暗花明以前没想到……步骤四:运行build.sh编译。
2025-12-04 00:11:39
745
原创 分享Udacity纳米课程优惠码(价值300元)
我分享了300元学费红包给你,快来学Google、亚马逊、Facebook官方的机器学习、数据分析、前端开发课程。在这领取: http://cn.udacity.com/referral-invitation/?referral_recipient_amount_off=300&referral_recipient_coupon_code=5D5DBBED...
2018-07-26 16:42:20
1116
原创 Solidity创建以太坊智能合约(一)
$ ./build/bin/geth --datadir=~/Library/Ethereum/privatechain/chaindata/ init ~/Library/Ethereum/privatechain/genesis.jsonINFO [03-11|18:45:18] Maximum peer count ETH=25 LES=0 t...
2018-07-11 16:19:01
444
原创 About bash_profile and bashrc on macOS and higher Serbia
About bash_profile and bashrc on macOSNote: bash_profile is completely different from configuration profiles. Learn more about Configuration Profiles in my book: ‘Property Lists, Preferences a
2018-01-22 22:22:04
533
原创 Setting Up Cron Job Using crontab
Setting Up Cron Job Usingcrontab:Step 1: Open a Terminal Window (Command Line) in Linux.Step 2:The following is a list of cron directories:•/etc/cron.hourly• /etc/cron.daily• /etc/cron.w
2018-01-21 21:09:53
465
原创 Bootcamp partitioning error in macOS 10.13
通过下面的命令删除本地Time Machine快照即可$ tmutil thinlocalsnapshots / 9999999999999999
2017-12-15 00:01:31
1188
原创 Ubuntu编译运行bitcoin运行全节点之Error处理
g++: internal compiler error: Killed (program cc1plus)Please submit a full bug report,错误内容g++: internal compiler error: Killed (program cc1plus)Please submit a full bug report,with preproce
2017-10-26 17:55:31
1371
2
转载 Ubuntu编译运行bitcoin运行全节点
比特币源码linux下环境配置编译运行bitcoin时间:2017-03-04来源:linux网站 作者:Mosen_Huang由于近期学习区块链,需要学习下比特币源码,所以尝试着在windows和Linux环境下编译运行,但是windows下的环境配置很繁琐总是在装qt的时候报错,下面贴一下在linux环境下的配置和运行步骤(ubuntu)gith
2017-10-26 17:02:50
3636
原创 C# 64位win7下DllImport LoadLibrary函数失败
C# 64位win7下DllImport LoadLibrary函数失败[DllImport["kernel32.dll"]]static extern IntPtr LoadLibrary(string lpFileName);public void Fun(){ IntPtr p = LoadLibrary("abc.dll");}
2017-09-08 22:41:30
4746
转载 How to keep CoreBluetooth connection alive between views
How to keep CoreBluetooth connection alive between viewsasked by Simon Bøgh on Jan 11 2016 23:05 I have implemented CoreBluetooth for an app based on Apples Cor
2017-08-07 19:34:26
507
翻译 Change serif, sans-serif and monospace generic font families mapping on Linux operating system
Change serif, sans-serif and monospace generic font families mapping on Linux operating system3 RepliesTweetDifferent Linux distributions map different fonts to generic f
2017-07-10 21:08:35
802
翻译 How to convert docx/odt to pdf/html with Java?
How to convert docx/odt to pdf/html with Java?décembre 6, 2012angelozerrLaisser un commentaireGo to comments 31 VotesHow to convert d
2017-07-10 21:06:39
2547
转载 How to Get Code into a Docker Container
How to Get Code into a Docker Container18 MAY 2016When transitioning to a container-based deployment, the question of how to get code into containers often comes up. This article will look at th
2017-06-17 01:20:04
871
原创 Ethereum Docker开发环境搭建(Mac版)
本文提供一个简单搭建以太坊Docker开发环境的方法。步骤如下:$ git clone https://github.com/Capgemini-AIE/ethereum-docker.git $ cd ./ethereum-docker#启动以太坊Docker cluster!$ docker-compose up -d$ docker exec
2017-05-15 22:55:48
1364
原创 Postgres psql: FATAL: Peer authentication failed for user "xxx"
编辑pg_hba.conf# vim /var/lib/pgsql/9.6/data/pg_hba.conf# PostgreSQL Client Authentication Configuration File# ===================================================## Refer to th
2017-05-04 18:00:22
4164
原创 CentOS 6.5 Install node.js
第一步:下载# wget https://nodejs.org/dist/v6.10.2/node-v6.10.2-linux-x64.tar.xz --no-check-certificate记住加上选项 --no-check-certificate第二步:下载完成后解压# tar xvf node-v6.10.2-linux-x64.tar.xz
2017-04-26 23:40:08
594
转载 最大化 Xcode Debug Console 窗口
转自:http://fann.im/blog/2012/03/23/maximize-xcode-debug-console-window/很酷的小技巧:参考 How to get back the Console window in XCode4 做了一点点改动,Run 的时候自动切换到 Console Tab 并且是最大化展示,效果还不错。打开 Tab 支持,View
2017-04-16 21:19:04
1827
原创 OpenClinica爬坑启示一
3.7版本用的spring3.0.5,但是Github上的依赖用的jackson 1.5.3版本,所以经过无数折腾一直报500错,java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.jackson.map.ObjectMapper经过莫兄帮助和Google不懈搜索,终于找到线索,3.
2017-03-30 00:18:41
1349
原创 Maven skip Test
方式1:用命令带上参数mvn install -Dmaven.test.skip=true 方式2:在pom.xml里面配置properties>config.id>defaultconfig.id>truespring.version>3.0.5.RELEASEspring.version>
2017-03-20 21:42:45
942
原创 Maven “peer not authenticated”
用 Maven(3.0.5) 编译工程的时候,#mvn clean install -Dmaven.test.skip=true出现下面错误:peer not authenticated:而且pom中的好多依赖无法下载到本地仓库。 寻找良久,终于找到解决方式:#mvn clean install -Dmaven.test.skip=tru
2017-03-17 16:24:30
5089
转载 Win7 PC无法识别android手机 / adb interface有黄色感叹号
今天公司停电,因此把安卓项目带回宿舍做。宿舍的笔记本,装的是Win7 x64,手机连上电脑后,windows可以识别,但Eclipse的DDMS中却无法识别,什么都没有:然后打开设备管理器查看,发现windows能正常识别设备(HUAWEI C8817E),而ADB Interface(有的机器可能显示Android ADB什么的)却显示有黄色感叹号,是驱动程序没有正常安装:
2017-03-17 15:12:56
6662
2
原创 华为云使用初体验
第一次使用华为云,根据习惯安装的CentOS 6.5,支持一下国货准备,可有一点要吐槽一下,不能随便更新Linux内核,然后是各种折腾,想用yum安装postgresql,添加源后yum update执行,yes一点,等安装完配置好其他的软件,发现数据库远程怎么也连接不上,SSH倒是正常,FTP也正常,重启后发现系统命令都不好使了,su cat。。找到客服,建议重装系统,浪费了大半天功夫,
2017-01-11 01:01:07
2918
原创 CentOS 6.5 Install Oracle Java 8
Downloading Latest Java ArchiveDownload latest Java SE Development Kit 8 release from its official download page or use following commands to download from shell.For 64Bit# cd /opt/# wget -
2017-01-11 00:52:08
377
原创 CentOS Install postgresql 9.6
Install PostgreSQLGo to the PostgreSQL repository download page , and add the PostgreSQL 9.4 repository depending upon your server architecture. For CentOS 6.x 32bit:rpm -Uvh http://yum.
2017-01-06 00:37:29
846
转载 CentOS增加swap分区
CentOS增加swap分区 2012-09-13 16:51:23分类: LINUX今天学习安装oracle数据库安装,发现我的SWAP分区太小,不符合要求,所以要扩大交换空间,百度加上自己的实践,操作如下: 使用dd命令创建一个swap分区 [root@localhost Desktop]#dd if=/dev/zero
2016-10-05 02:34:29
354
转载 用wget下载oracle database 11g
用wget下载oracle database 11gDaniel2014年9月23日Leave a comment项目需要新部署一个 oracle 服务器,机房带宽比自己下载快得多,所有要想办法在 linux 服务器上直接下载安装文件。解决办法比较简单,首先去 oracle 官网的下载页面上找到具体文件的下载地址,比如 oracle 11gR2,先用浏览
2016-10-04 22:50:00
5561
1
转载 A good setup for Perl on OSX
A good setup for Perl on OSX:OSX Editors and TerminalsInstall "Command Line Tools for Xcode", either directly or through Xcode, both available from Apple Developer downloads (free registration require
2016-09-17 01:40:49
324
转载 如何开启apache虚拟目录反向代理
如何开启apache虚拟目录反向代理浏览:597|更新:2014-03-19 17:22现有2个项目,A:php项目,B:java项目。由于域名解析只能使用80端口,因此需要apache来反向代理。apache使用80端口,tomcat使用8080.apache下httpd.conf中开启以下模块:# Virtual ho
2015-07-26 01:14:46
1019
转载 Centos中二级域名绑定二级目录的方法
Centos中二级域名绑定二级目录的方法发布时间:2014-12-04 更新时间:2014-12-05 来源:网络 作者:lulu0704 关键词: 二级域名 对于一些目录,我们往往需要对其指定二级域名,那么具体如何操作呢?下面,我将用亲身实践来说明一下。 由于第一次接触centos,我不得不借助于网络资源。然后得知要开启mod_rewrite这个模
2015-07-26 01:12:36
2864
原创 IBM MobileFirst Platform的前世今生(一):前世Worklight
Worklight公司于2006年被Shahar Kaminitz创立。Shahar Kaminitz之前还创立过Amdocs上的eBusiness Applications Division。这家公司总部位于纽约,其研发中心位于以色列。它的第一个产品发布于2007年,是一个协助远程计算机或移动设备登陆企业信息系统获取数据的解决方案。2009年,Worklight发布了一个完整的企业移动App开发
2015-06-30 10:11:22
1481
转载 自动构建和部署 MobileFirst Platform 工件,以此作为持续交付过程的一部分
自动构建和部署 MobileFirst Platform 工件,以此作为持续交付过程的一部分将 IBM MobileFirst Platform (MFP) 应用服务器集成到一个持续交付管道中的一个主要要求是:自动升级 MobileFirst Application Server 的服务器端组件,包括项目 WAR 文件、应用程序和适配器。本文将向您展示如何为多个环境自动化 MF
2015-06-30 09:51:36
1608
转载 How to Add a User and Grant Root Privileges on CentOS 6.5
How to Add a User and Grant Root Privileges on CentOS 6.5Category: Technical SupportPre-Flight CheckThese instructions are intended specifically for adding a user on CentOS 6.5.I’ll
2015-06-17 01:06:15
672
转载 MBaaS – IBM Mobile Cloud Services, Bluemix & MobileFirst
MBaaS – IBM Mobile Cloud Services, Bluemix & MobileFirst01.13.2015 | 4181 VIEWS | TWEETINSHARETweet0inShareThe Cloud Zone is brought to you in
2015-06-17 00:18:27
1392
转载 Zencart 1.5.X – login does not work – session / cookie problem – explained
Zencart 1.5.X – login does not work – session / cookie problem – explainedShare on facebookShare on twitterShare on emailShare on pinterest_shareMore Sharing Services1This
2015-06-17 00:15:08
710
原创 Bluemix云平台实战日志:VitualMachine root
如果申请到了Bluemix虚拟机试用权限,经过各种折腾SSH登录上了,发现没有root权限,是不是很懊恼呢~ 其实很容易就获得root权限,“sudo -s”
2015-06-11 00:16:07
718
原创 Bluemix云平台实战日志:第三方服务ClearDB Mysql数据库
Bluemix自家的数据库都是围绕DB2来的,Oracle据说后面也会支持,建立Java Liberty应用时候会附带创建一个mysql服务,但是在内网,不能远程访问到,Bluemix也不提供shell访问内网的mysql服务,所以有太多不便之处。这里重点讲一下第三方的Mysql服务Clear DB,Clear DB是假设在AWS上的,如果你的机器能访问AWS,那么可以在自己的机器通过Sequel
2015-06-08 11:50:22
916
原创 Bluemix云平台实战日志:Java开发Watson应用
Bluemix中也提供了IBM Watson™服务,本次实战教程中,我们选择text_to_speech服务。这里我们讲采用CLI命令行进行开发,如果没有安装clound foundry CLI,需要提前安装一下,可参考http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/getting_started/gs-f
2015-05-20 17:34:37
1487
转载 Linode的配置和部署,搭建Java环境
SSD Cloud Hosting - Linode的配置和部署,搭建Java环境 - yejq时间 2014-09-12 22:43:00 博客园-Java原文 http://www.cnblogs.com/yejq/p/3969270.html0、发牢骚前一个月在淘宝购买了个Jsp空间,挺便宜的,才38元/年。部署了程序,然后ALIMAMA验证网站,一直提示
2015-05-09 08:47:05
1070
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅