现在位置: 首页 > alfalfa发表的所有文章
  • 10月
  • 20日
综合 ⁄ 共 979字 评论关闭
Property: Function: Mobile Splash Screen (Pro-only feature) Specifies texture which should be used for iOS Splash Screen. Standard Splash Screen size is 320x480.(This is shared between Android and iOS) iPhone 3.5"/Retina (Pro-only feature) Specifies texture which should be used for iOS 3.5" Retina Splash Screen. Splash Screen size is 640x960. iPhone 4"/Retina (Pro-only feature) Specifies texture which should be used for iOS 4" Retina Splash Screen. Splash Screen size is 640x113......
阅读全文
  • 06月
  • 05日
综合 ⁄ 共 2196字 评论关闭
select下拉框在Web开发领域用的非常多。 案例一:比如说修改用户的时候,我们要把当前用户所在的部门回显到用户修改界面。 如图,当前用户所在的部门为财务部,那么跳转到用户修改界面的时候,部门选择这一栏,显示的应该还是财务部。 用户界面: <body> <form action="selectAction_test.action" method="post"> 请选择您的部门: <select name="depart" id="department"> <option value="1">财务部</option> <option value="2">开发部</option> <option value="3">......
阅读全文
  • 05月
  • 13日
综合 ⁄ 共 1183字 评论关闭
3年前入职后做c++后端开发,那个时候产品是LAMP架构,我主要用c++开发cgi以及服务端模块的开发。由于没有专业的前端开发工程师,所以兼职做前端开发,那段经历只能用痛苦来形容。一个需求过来后台模块全开发完只需2-3天,但是画界面要一周,项目总结的时候还要挨批评背黑锅。原因大概是项目压力大,不能系统的学习前端开发的知识,画页面的时候基本拿别人的代码copy一份再一点一点的改元素;二个是整个前端代码一团乱码,不知道经历了多少人的手最后落到我手里,php里嵌套着html,html有嵌套php、javascript,javascript里面又嵌套......
阅读全文
  • 05月
  • 13日
综合 ⁄ 共 816字 评论关闭
Given a binary tree, return the inorder traversal of its nodes' values. 样例 Given binary tree {1,#,2,3}, 1 \ 2 / 3   return [1,3,2]. 挑战 Can you do it without recursion? /** * Definition of TreeNode: * public class TreeNode { * public int val; * public TreeNode left, right; * public TreeNode(int val) { * this.val = val; * this.left = this.right = null; * } * } */ public class Solution { /** * @param root......
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 39字 评论关闭
没别的意思,就是看看博文长的啥样子 以后也要留下自己的足迹,也要流下汗水。 开搞吧
阅读全文
  • 04月
  • 20日
综合 ⁄ 共 3464字 评论关闭
参考文章:http://blog.csdn.net/highram/article/details/6577465  http://blog.163.com/fanning_7213/blog/static/2496505201137101721665/ 第一位作者写的很好 现在复制如下 开发的过程中遇到一个问题:android的模拟器有个很诡异的特点,就是访问网络的时候只可以从模拟器主动往出去连。但是却无法主的从外面连接模拟器,这个特点和NAT几乎完全一样,具有单向连接的特性。实际开发中我们希望模拟器像一台独立的手机一样,能和处于同一局域网中的手机进行端对端的通信。这时就需要做端口重定向。   假定- A是PC机 - B是你的......
阅读全文
  • 04月
  • 12日
综合 ⁄ 共 2073字 评论关闭
1 GUSSIAN 分布 numpy.random.normal http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.normal.html numpy.random.normal(loc=0.0, scale=1.0, size=None) Draw random samples from a normal (Gaussian) distribution. The probability density function of the normal distribution, first derived by De Moivre and 200 years later by both Gauss and Laplace independently [R215], is often called the bell curve because of its characteristic shape (see the example below). The nor......
阅读全文
Quora What is Data Science? How do I become a Data Scientist? How does Data Science differ from traditional statistical analysis? Related Courses Concepts in Computing with Data, Berkeley Practical Machine Learning, Berkeley Artificial Intelligence, Berkeley Visualization, Berkeley Data Mining and Analytics in Intelligent Business Services, Berkeley Data Science and Analytics: Thought Leaders, Berkeley Machine Learning, Stanford Paradigms for Computing with Data, Stanford Mining Massi......
阅读全文
  • 11月
  • 29日
综合 ⁄ 共 22516字 评论关闭
本文详细介绍本人最近做的一个PHP留言板(PHP在线咨询留言系统) 主要功能:  留言,回复,注册,管理。 技术细节:  1.注册与登录页面无刷新(AJAX)验证;  2.一条留言下可显示多条回复(一个原创的算法);  3.留言分页显示;4.留言管理(删除);  5.页面布局(HTML+DIV+CSS);  6.PHP操作MySQL数据库。 要使用此留言板,必须先创建数据库,而且MySQL账号设置为root,密码为root(或者自行修改多个php文件中默认的账号和密码)。数据库弄好之后,把“留言板-zollty”文件夹放到网站目录下,访问http://localhost/mb-zollty/index......
阅读全文
  • 11月
  • 27日
综合 ⁄ 共 355字 评论关闭
问题描述 测试发现在某些机器上会弹出360杀毒危险警告对话框,导致网页无法打开。 解决方法 将嵌入的统计js脚本从</html>标签后移到里面去。 修改前 ... </body> </html> <script type="text/javascript">document.write(unescape("%3Cscript%20...%3C/script%3E"));</script> 修改后 ... <script type="text/javascript">document.write(unescape("%3Cscript%20...%3C/script%3E"));</script> </body> </html> 心得 以后再遇到这种情况,可以采取排......
阅读全文
  • 10月
  • 18日
综合 ⁄ 共 1070字 评论关闭
小记:题目要弄清,之后就简单了。 题意:每两点之间的距离就是两个字符串的不同字符的个数,每个位置与每个位置的比较的不同的个数。 然后就是普里姆算法,求出最小生成树即是Q 代码: #include <iostream> #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <map> #include <set> #include <vector> #include <stack> #include <queue> #include <algorithm> #include <string> using namespace std; #def......
阅读全文
  • 10月
  • 13日
综合 ⁄ 共 931字 评论关闭
题目链接:点击打开链接 还是很基础的最小生成树 #include<cstdio> #include<algorithm> #include<cmath> using namespace std; const int N=105; const int Max=5005; int n,top,father[N]; struct Point { double x,y; }point[N]; struct Line { double a,b; double lenth; }line[Max]; bool cmp(Line A,Line B) { if(A.lenth<B.lenth) return true; return false; } void Init() { for(int i=0;i<=n;i++) father[i]=i; top=0; } void input() { for(int i=1;i<......
阅读全文