自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

咻咻咻的专栏

299792458+1

  • 博客(4)
  • 资源 (1)
  • 收藏
  • 关注

翻译 linux快速熟悉

linux系统的文件系统图1.1如图1.1所示,基本上unix派系的文件系统目录都是这样。以下简要介绍各个文件夹功能。(1) “/”文件夹即根目录,Unix系统中文件夹的根节点。(2) dev(device)文件夹:硬件设备目录(硬盘、网卡),在linux系统中设备是以文件夹的显示。(3)boot文件夹:引导目录(系统启动相关的东西,内核vmlinuz文件位于此地)。(

2016-10-08 09:38:00 2271

原创 hive学习001 hive的使用

概念  hive是一个数据仓库(数据库与数据仓库概念我也不是很清楚),不过他可以建很多数据库,很多数据库下又会有很多的表。提供了一种HIVE QL的查询语言。结构  (图选自hive 用户指导1.0,版本不同会有差异http://wenku.baidu.com/link?url=Oe4fznW4mkt5yS418-oPSFwGFEJYrco9NkGH-2LBMsdSztQ_

2016-09-29 16:04:46 1033

原创 osgi项目错误合集

错误显示:ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 预判原因:电脑清理将mysql卸载。实际原因:mysql未启动解决方法:D:\mysql5.6\bin>net start  mysql    //在cmd中键入到安装路径的bin文件下输入net start  mysql后回车

2016-07-02 16:25:26 723

原创 OSGI入职训练之 org.springframework.beans.BeanInstantiationException

问题现状:[ims] 16-06-30 23:03:35:0181 ERROR CommonsLogger.error(38) | Exception occurred during processing request: Unable to instantiate Action,com.troy.ods.system.action.TestAction,  defined for '

2016-06-30 23:12:12 752

UGUI官方Demo

Unity4.6 Samples UI using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; [RequireComponent(typeof(Image))] public class DragMe : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler { public bool dragOnSurfaces = true; private GameObject m_DraggingIcon; private RectTransform m_DraggingPlane; public void OnBeginDrag(PointerEventData eventData) { var canvas = FindInParents<Canvas>(gameObject); if (canvas == null) return; // We have clicked something that can be dragged. // What we want to do is create an icon for this. m_DraggingIcon = new GameObject("icon"); m_DraggingIcon.transform.SetParent (canvas.transform, false); m_DraggingIcon.transform.SetAsLastSibling(); var image = m_DraggingIcon.AddComponent<Image>(); // The icon will be under the cursor. // We want it to be ignored by the event system. CanvasGroup group = m_DraggingIcon.AddComponent<CanvasGroup>(); group.blocksRaycasts = false; image.sprite = GetComponent<Image>().sprite; image.SetNativeSize(); if (dragOnSurfaces) m_DraggingPlane = transform as RectTransform; else m_DraggingPlane = canvas.transform as RectTransform; SetDraggedPosition(eventData); } public void OnDrag(PointerEventData data) { if (m_DraggingIcon != null) SetDraggedPosition(data); } private void SetDraggedPosition(PointerEventData data) { if (dragOnSurfaces && data.pointerEnter != null && data.pointerEnter.transform as RectTransform != null) m_DraggingPlane = data.pointerEnter.transform as RectTransform; var rt = m_DraggingIcon.GetComponent<RectTransform>(); Vector3 globalMousePos; if (RectTransformUtility.ScreenPointToWorldPointInRectangle(m_DraggingPlane, data.position, data.pressEventCamera, out globalMousePos)) { rt.position = globalMousePos; rt.rotation = m_DraggingPlane.rotation; } } public void OnEndDrag(PointerEventData eventData) { if (m_DraggingIcon != null) Destroy(m_DraggingIcon); } static public T FindInParents<T>(GameObject go) where T : Component { if (go == null) return null; var comp = go.GetComponent<T>(); if (comp != null) return comp; Transform t = go.transform.parent; while (t != null && comp == null) { comp = t.gameObject.GetComponent<T>(); t = t.parent; } return comp; } }

2016-02-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除