Skip to main content

Posts

Showing posts from September 24, 2017

标  题: Re: Vmware和VirtualBox哪个更好用?

发信人: Huangchong (净坛使者), 信区: Joke 标  题: Re: Vmware和VirtualBox哪个更好用? 发信站: BBS 未名空间站 (Sat Sep 30 22:18:26 2017, 美东) 这个guest addition是用来允许用全屏分辨率,usb3之类的。可以先不管这些。 装ubuntu的话,先下载ubuntu mate 16.04 lte的iso。然后用virtualbox的话,打开 virtualbox,选new,然后 1 根据提示取个name,比如ubuntumate,选linux,ubuntu, 2 给1024 或者2048 内存, 3 creat a virtual drive 4 给虚拟盘文件选vdi格式。 5 dynamically located 6 空间允许的话给30G基本可以保证够用。最少给10G。 这时候会出现一个新的虚拟机。下面装ubuntu: 1 选ubuntumate, 点start 2 提示插盘,找到你下载的ubuntu iso 3 后面就跟在硬盘上装ubuntu一样 4 装好以后就可以用了,可以先不管那个guest addition 【 在 ftmit (八戒) 的大作中提到: 】 : 刚找到一个2G内存,现在是6G了。麻烦全能神两个问题: : [1],就我这个机子,内存硬盘等等如何分配为好? : [2],“装好之后别忘了再往ubuntu里装virtualbox guest additions” 麻烦您说具体 : 点,我不太明白这个是怎么回事。俺现在是被逼上梁山了:(

标 题: 老印 manager 给我穿小鞋,已报告HR, 但是没什么用,求助

发信人: AmABB2015 (), 信区: JobHunting 标  题: 老印 manager 给我穿小鞋,已报告HR, 但是没什么用,求助 发信站: BBS 未名空间站 (Tue Sep 19 18:58:15 2017, 美东) update:简直欺人太甚,我要找律师了。HR 居然不管不顾地站在老印一边,给我发邮 件不许我work onsite,还给我规定不合理的任务,我以前就拒绝过Angular2,因为它 在我们支持的IE11上根本不work,连老印manager都承认过。欺人太甚! 我找到了7月份的Jira记录,我在下面明确写了IE11不work,HR的那封邮件是 Retaliation的直接证据, 以前我还可怜HR,不想让她受牵连,好心没好报,这次跟老印一锅端吧 ---------------------------------------------------------------------------- ----- Update: 周一我要去纽约的EEOC, 当面file charge,目前看来律师费是不用了,如果 我自己搞不定,再请律师也行。 感谢提供这方面信息的热心朋友。我自己在网上research,综合律师咨询的信息。搞懂 了这个流程。给需要的朋友做参考,以后有遇到这种破事的朋友,可以找我。 第一, EEOC 是 U S Equal Employments opportunities commission 的简称,他本身 并不是执法部门,但有调查和执行的权利。 file charge to EEOC ,是告歧视的第一步,但而且按照EEOC官网规定,除去年龄歧视 和性骚扰,其他歧视必须通过EEOC先介入调查,如果调查结果不能确定公司违法或者确 定违法却不能达成settlement,才会有lawsuit,而EEOC的所有投诉信息是private的, 只有投诉和被投诉方知道,如果以后公司泄漏了你投诉他们的信息给你的perspective employer,那公司要吃官司的。 调查过程在2015年是 平均10个月,我想这就是为什么律师说大概要9到18个月的原因。 律师从始至终没提EEOC, 可能是怕提了我就不用他了。他一直用state代替,EEOC 的确 是在所有州都有办公室,而且所有case都是由离得最近的office 处理的。 第二,如

标题: 劝你别老想着怎么用「努力工作」去感动老板了, 没用

发信人: bighant(K.S), 信区: Working 标题: 劝你别老想着怎么用「努力工作」去感动老板了, 没用 发信站: BBS未名空间站(Wed Sep 27 08:00:56 2017,GMT) 根据我的经验,不会,只会感动自己,该开除还是得开除。 员工和老板之间是一种雇佣关系,维系这一雇佣关系的纽带就是工资,努力工作的员工 注重的不是怎么感动老板,也不是用努力工作来感动自己,而是要从公司的利益出发, 想想自己能够为公司带来什么价值?自己的核心竞争力是什么?如果自己没有做到行业标 准之上的水平,那一定是很危险的。 其实现在有很多人都只能称为伪工作者,什么意思呢?就是这些人会每天把自己搞得很 忙,也一直在做老板交给他们的工作,但是这些工作并不会产生什么效果。 想要员工要做好自己的工作可以由两方面来进行改进。一方面是从管理者的角度,一方 面是从员工自身的角度。 从管理者的角度 1,管理者要让员工在如何让公司获得最大利益的前提下来开展工作,而不是仅仅应付 老板的分配的工作。 2,管理者要让员工明白,他们发挥自己的创造性,积极完成工作,最大的受益者还是 自己。 从员工的角度 1,拿人钱财,与人消灾,既然公司给我发工资,我就应该产生相应的价值来回报它。 2,员工应该有自我发展的意识,在工作中学习让自己得到成长,形成自己的核心竞争 力,让自己的价值得到体现。 总结一下 真正好的员工是不需要感动老板的,他们有能力让老板相信,公司失去了他们会是一个 很大的损失。 --

System Design for Big Data [tinyurl]

What is tinyurl? tinyurl   is a URL service that users enter a long URL and then the service return a shorter and   unique   url such as "http://tiny.me/ 5ie0V2 ". The highlight part can be any string with 6 letters containing [ 0-9, a-z, A-Z ]. That is,   62^6 ~= 56.8  billions unique strings. How it works? On Single Machine Suppose we have a database which contains three columns: id (auto increment), actual url, and shorten url. Intuitively, we can design a hash function that maps the actual url to shorten url. But string to string mapping is not easy to compute. Notice that in the database, each record has a unique id associated with it. What if we convert the id to a shorten url? Basically, we need a   Bijective function  f(x) = y such that Each x must be associated with one and only one y; Each y must be associated with one and only one x. In our case, the set of x's are integers while the set of y's are 6-letter-long strings. Actually, each 6-letter-lon

Tomcat log: what's the difference between %D and %F

%D includes %F plus any network time There is a bit more information in the API Doc   https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/AccessLogValve.html AccessLogValve.ElapsedTimeElement write time taken to process the request - %D, %T AccessLogValve.FirstByteTimeElement write time until first byte is written (commit time) in millis - %F In the Bugzilla entry for %F it says   https://bz.apache.org/bugzilla/show_bug.cgi?id=55102 Tomcat's AccessLogValve is able to report the time taken to send an entire request using %D. This is the total processing time and may be affected by network conditions. It is sometimes useful to be able to record the time taken by the server to prepare the response and send the first content to the client. Attached is a patch that records the time the response is committed and then allows that to be reported in the access log using a '%F' pattern (which is the same as used by the mod-log-firstbyte module for

Docker?!? But I'm a SYSADMIN!

QuickSelect

Note:  You are looking at a static copy of the former PineWiki site, used for class notes by  James Aspnes  from 2003 to 2012. Many mathematical formulas are broken, and there are likely to be other bugs as well. These will most likely not be fixed. You may be able to find more up-to-date versions of some of these notes at  http://www.cs.yale.edu/homes/aspnes/#classes . The QuickSelect algorithm quickly finds the k-th smallest element of an unsorted array of n elements. It is a  RandomizedAlgorithm , so we compute the worst-case  expected  running time. Here is the algorithm. QuickSelect(A, k) let r be chosen uniformly at random in the range 1 to length(A) let pivot = A[r] let A1, A2 be new arrays # split into a pile A1 of small elements and A2 of big elements for i = 1 to n if A[i] < pivot then append A[i] to A1 else if A[i] > pivot then append A[i] to A2 else # do nothing end for if k <= length(A1): # it's in the p

Amazon Architecture

This is a wonderfully informative Amazon update based on Joachim Rohde's discovery of an interview with Amazon's CTO. You'll learn about how Amazon organizes their teams around services, the CAP theorem of building scalable systems, how they deploy software, and a lot more. Many new additions from the ACM Queue article have also been included. Amazon grew from a tiny online bookstore to one of the largest stores on earth. They did it while pioneering new and interesting ways to rate, review, and recommend products. Greg Linden shared is version of Amazon's birth pangs in a series of blog articles Site: http://amazon.com Information Sources Early Amazon by Greg Linden How Linux saved Amazon millions Interview Werner Vogels - Amazon's CTO Asynchronous Architectures - a nice summary of Werner Vogels' talk by Chris Loosley Learning from the Amazon technology platform - A Conversation with Werner Vo

花花酱 LeetCode 297. Serialize and Deserialize Binary Tree - 刷题找工作 EP59

字符串匹配:KMP 算法

https://liam0205.me/2016/12/20/KMP-Algorithm/ 所谓字符串匹配,就是拿着一个字符串(也称为模式串),去到另一个字符串(母串)里去查找完全相同的子串的过程。显然,只要能定义相等关系,那么字符串匹配算法可以扩展到任意的序列匹配算法。因此,这会是一类用途很广的算法。 解决字符串匹配问题,最朴素的办法就是拿着模式串逐字符地沿着待匹配的串去比对,每次向前移动一个字符,直到完全匹配或者找不到匹配。显然,这个算法的复杂度是   O ( n ⋅ m ) O ( n ⋅ m ) ( n n   表示母串的长度, m m   表示模式串的长度),是比较高的。 这里介绍的 KMP 算法,能够在   O ( n ) O ( n )   时间内完成任务,它是由   Donald Knuth / James H. Morris / Vaughan Pratt   发明的。当然,你也可以称之为「看毛片算法」——你高兴就好。 从朴素算法开始 为了体现 KMP 算法的优势,也为了更容易地说明问题,我们先从最朴素的算法开始。 假设有 母串   S :   ababaababc 模式串   P :   ababc 现在我们的任务是在母串中找到与模式串完全相同的子串。朴素地算法是这样的: 将母串与模式串从头对齐; 从模式串的头部开始与母串对比 a. 若字符相同,则继续对比; b. 若字符相同,且当前字符是模式串的最后一个字符,则匹配成功; c. 若字符不同,则将模式串沿着母串向后移动一位,再从头开始匹配; d. 若字符不同,且当前字符是母串的最后一个字符,则匹配失败。 在我们的示例里,具体的操作流程是这样的。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 -> # 从头开始匹配 abab|aababc abab|c -> # 匹配失败,移动一位,继续尝试匹配 a|babaababc |ababc -> # 匹配失败,移动一位,继续尝试匹配 ababa|ababc aba|bc -> # 匹配失败,移动一位,继续尝试匹配 aba|baababc |ababc