Saturday, September 28, 2013

Thursday, September 26, 2013

杂记-健身+减肥

不知道什么时候开始成胖胖的,老是被君君这么喊,自己都觉得听不好意思了。虽然自己本身不是特别瘦,但是想到自己每天都坐在办公室,和一帮比我大十几二十几岁的人坐在一起,自己也感觉懒散很多。

不知道何时起,所有人见到我都说:你最近胖了啊~我就只能笑笑说:是啊,生活好啊。确实是生活好呢,天天下班回家都是找来各种好吃的食谱做,这做饭的手艺和体重有时候确实成了正比,这点在男生身上尤为明显。

说到减肥,主要还是肚子上的赘肉,虽然一摸大把的情况在本人身上不曾发生,但是一小把一小把还是可以计数的。也许是自己的肚子麻痹大意,居然自己将这一小把一小把合并组建,于是减肚子就成了一个任务。

说到健身,自己住的小区不提供健身的场所,只有一个布满落叶的游泳池。曾几何时尝试过几次游泳,但是满嘴的落叶增加维他命也不是那么回事。于是乎,前思后想几百遍,终于下定决心,健身去!

说到健身会所,离家近是我选择的重要因素之唯一,一三五下班后,走路到健身馆5分钟时间,就可以开始锻炼,非常方便。现在带上君君一起,就更有动力了~健身会所有个牛气哄哄的条令,一个月去满12次就可以便宜许多。于是,这也成了我的另一个动力。但是坚持一个月下来发现,看似一周三次,其实不太好坚持。一次去签到两次,就成了我和君君的一种战略,但是,这种战略是杀手锏,不可常用。

林大哥一次视频告诉我觉得我瘦了,让我很意外,总结瘦了的原因:1. 高强度灯光从头顶照下来,2. 很长时间不理发。

其实,生活中可以减肥健身的地方很多,关键在于坚持,这对我虽然是一句明白的不能再明白的话,但是履行起来又如履薄冰。哎~~吃饱喝足,养君君,赚钱重要~

Monday, September 23, 2013

留美找工作推荐网站

许多在美留学生有着毕业后在美国工作一段时间的想法,然而由于美国的移民政策等等因素的制约,在美国找工作还是要费不少功夫和时间的。除了靠校友推荐,以及学校的Career Center帮忙以外,从大型的招聘类网站找工作不失为一个选择。

留学生在美国找工作的时候往往会因为信息量不足,而缺失很多机会,美国用来找工作的大型网站有很多,笔者也用过不少,下面介绍一些笔者认为最可靠的,希望给开始着手找工作的同学们提供多一些有用的信息:

首先,了解一下大多数工作招聘的流程,一般公司会有一个内部招聘网站(这也是内推的地方),当然也有很多例外,比如公司对外招聘。而这个招聘网站是只有在本公司的员工才能有权进入的。这个内部网站是职位opening的第一站,它的开设有两个目的:第一,内部员工想调整岗位,可以自行申请(比如转岗位,从Accounting去做HR),第二,内部员工有认识的亲戚,朋友适合这个岗位。美国人其实也有很多这种一家人在一个地方工作的情况,而且这种内部推荐的人往往会被认为从外围招聘来的人更可靠。所以,如果有朋友在XX公司高就的,没事聊聊天,麻烦他帮你看看有没有opening什么职位,帮忙递个简历什么的,面试率会远远高于这种从工作网站投递简历的。

如果公司在两周内招不到人, 就会对外发布广告,这些广告有些在公司的招聘网站上,有的直接会发布到大型招聘网站内,如果没有朋友帮你推荐,那么试试这些找工作的网站,也是一种可行的办法:


1. Monster
大名鼎鼎的招聘网站,据说是全美最大的,eBizMBA Rank排名同类网站第一,月访问量28,000,000。可以设置邮件提醒,工作类型,地区查询。设置一个邮件每天推送到你的邮箱,非常的方便。
网址:http://www.monster.com/


2. Indeed
Monster 的同类网站,比较类似于Monster,功能这些都比较像,这里就不累述。
网址:http://www.indeed.com/



3. Glassdoor
面经是其重点和特色,如果接到面试一定要过来看看,可以对接下来的面试有很大的启发。当然,这里也有工作的信息发布,不过发布量当然比不过上面两位。
网址:http://www.glassdoor.com/index.htm


4. Dice
IT为主的招聘网站,其特色是以IT招聘为主,算是对市场的一个细分,而大多数提供H1B的雇主都是IT公司,所以Dice也是一个不错的选择。
网址:http://www.dice.com/



5. LinkedIn
相信不少同学去CRC都有过推荐申请LinkedIn的经历,这是类似于Facebook的社交型网站,不同于Facebook的娱乐复杂的信息,其主要特点为商务级别的professional,可以通过这个网站找到之前的校友,求内推。这个网站也有不少工作的发布,而且是可以看到发布者的,也是一个比较透明的找工作的平台

Friday, September 20, 2013

[LeetCode] Anagrams Rotate List

Given a list, rotate the list to the right by k places, where k is non-negative.

For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.

Idea:

  • link the tail to head to construct a circle
  • start from head until stop by total - (k%total)
  • set tail.next to null to break the circle




Thursday, September 19, 2013

[LeetCode] Anagrams

Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.

Idea: 

  • Put the array of String(convert to char) into a queue
  • Merge sort all of the item in the queue
  • Use a Hashtable, put sorted string as key, Stack as value (which has a stack of original string)
  • Iterate the Hashtable, Iterate stack which size is greater than, put the String into ArrayList from that stack

Wednesday, September 18, 2013

可爱的猫猫们





[LeetCode]Two Sum

Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are not zero-based.
You may assume that each input would have exactly one solution.
Input: numbers={2, 7, 11, 15}, target=9
Output: index1=1, index2=2

Idea: use hashtable to effectively search item, search complexity is o(1) and use linkedlist to avoid collision



杂记--身体抱恙


清晨,迷迷糊糊地从梦中起来,感觉身体已无大碍,昨夜发烧的额头已没有了滚烫的感觉,身体感觉有些乏力,但是已然没有了昨晚全身酸痛发烧的感觉。多亏臭臭的细心照顾,又熬姜汤又搓胳膊的,才能这样快的康复。想想生病的原因,也许是前段时间事业受阻,亦或是工作的地方空调开得过于凶猛,也就稀里糊涂的病了。

九月末佛州的早上,空气中夹杂着一股凉意,不冷不热的,让我想起家里的感觉。那时候,这么早起来还属于学生的时代,每天要坐一段公交车。而从家里走到车站的五分钟里,就能感受到这股凉意,沁人心脾。

这段时间有些迷惘,有些失落,不知今后回头看自己的现在,是何种滋味。。

还好有臭臭陪着,加油,我们一起~


Tuesday, September 17, 2013

Embed Code with Blogger Tutorial


SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript.

You can find more detail about SyntaxHighlighter at http://alexgorbatchev.com/SyntaxHighlighter/

SyntaxHighlighter provides a broad syntax library for users to highlight their code.


Here is a screen shot on how many language does current version support:




The idea is pretty straightforward, you just need to link the .js file in your blog, and then simply tell the blog about which part you want to show as Code. Want to know how to do it? I will walk you through on how to create a blog template, create embedded code page and apply for different theme.


Now, let's start:


First, We need to select the Edit HTML.



Under Edit HTML,  find the tag </head>, you need to put SyntaxHighlighter brush library here.

Copy and pasta following code:


    
    


After Saving the the template, you have done the first step!


Then, you can create your new post as usual.  


Next, switch your view from compose to HTML view



Put the code you want, for simplicity, I will do the following code:



/**
     * SyntaxHighlighter
     */
    function foo()
    {
        if (counter <= 10)
            return;
        // it works!
    }

It will show like


/**
     * SyntaxHighlighter
     */
    function foo()
    {
        if (counter <= 10)
            return;
        // it works!
    }

Now you have done pretty much of all of them!

Finally, you may not like the theme of your code. You can find all the theme here.
All you need to do is go back to the first step, edit HTML, Find one line of code like:

Change to the theme you would like to use, for example:


Now you can create the embedded code HTML yourself, enjoy!

I hope this blog will be helpful!