- 博客(10)
- 收藏
- 关注
转载 virtualbox修改虚拟机mac地址后不能识别网卡问题
删除/etc/udev/rules.d/70-persistent-net.rules。该文件保存了原始虚拟机网卡的mac地址
2016-12-08 22:13:59 2441
原创 修改mac virtualbox host-only下的宿主机虚拟网卡ip
virtualbox-》偏好设置-》网络-》host-only-》编辑-》修改ip
2016-12-07 10:22:09 3101 1
转载 Ransom Note
383. Ransom Note QuestionEditorial Solution My SubmissionsTotal Accepted: 5902Total Submissions: 13061Difficulty: Easy Given an arbitrary ransom note string a
2016-08-16 23:25:48 413
原创 二叉树遍历
Binary Tree Postorder Traversal/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; }
2016-08-04 10:10:02 234
原创 Mackbook添加主机名和ip的映射
该文件在/etc/hosts输入 sudo nano /etc/hosts可以看到以下界面输入新增的映射关系,ctr+o保存设置,ctr+x退出。最后在终端中输入sudo killall-HUP killall mDNSResponder刷新DNS缓存。
2016-07-31 18:21:34 2881 2
转载 238. Product of Array Except Self
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].Solve it without division and in O
2016-03-22 17:49:02 182
原创 House Robber
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent house
2015-11-19 08:55:56 177
转载 hadoop学习笔记二
一次改变文件所属用户和所属组 hadoop fs -chown -R(递归修改) supergroup:root /wcouthadoop1.0命令 hadoop fs -ls -R/hadoop2.0后命令变为 hdfs dfs -ls -R/查看帮助: hadoop fs -help ls(查看ls命令帮助)NameNode整个文件
2015-09-30 21:33:02 282
转载 Hadoop学习笔记一
1.准备Linux环境虚拟机网络连接方式设为host-only模式,查看电脑ip,设置虚拟机IP为固定地址,该ip与电脑ip在同一个网段1.1修改主机名vim /etc/sysconfig/network 1.2修改IP两种方式:第一种:通过Linux图形界面进行修改第二种:修改配置文件方式vim /etc/sysconfig/network-scripts
2015-09-30 20:42:39 276
转载 使用getIdentifier()获取资源Id
使用getIdentifier()方法可以方便的获各应用包下的指定资源ID。主要有两种方法:(1)方式一Resources resources = context.getResources();int indentify = resources.getIdentifier(org.loveandroid.androidtest:drawable/icon",null,null);
2015-08-06 10:23:25 433
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人