Blog Archive

Tuesday, October 27, 2015

T540p - Webcam doesn't work - Lenovo Community

T540p - Webcam doesn't work - Lenovo Community: "T540p - Webcam doesn't work
Options
‎09-15-2014 08:21 AM

I have the T540p and the webcam doesn't work at all. When I try using it in Skype and Adobe Connect, I just get the camera icon with a slash through it. I've read in other forums that uninstalling the webcam driver and reinstalling it doens't work. I really need the webcam to work so this is pretty urgent for me. Any help would be appreciated. Also, if you have tips for installing or uninstalling drivers, please also provide directions on exactly how to do that it would that would be great"



Solution:



This is camera privacy.
You can turn the privacy mode on and off in Communications Utility by clicking on the "Show my video image" button

Control Panel -> Hardware and Sound -> Lenovo Web Conferencing


'via Blog this'

How To Add and Delete Users on Ubuntu 12.04 and CentOS 6 | DigitalOcean

How To Add and Delete Users on Ubuntu 12.04 and CentOS 6 | DigitalOcean: "sudo adduser"



https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-12-04-and-centos-6



How to Add a User on Ubuntu 12.04

To add a new user in Ubuntu, use the adduser command, replacing the “newuser” with your preferred username.
sudo adduser newuser
As soon as you type this command, Ubuntu will automatically start the process:
'via Blog this'

Monday, October 26, 2015

Instacart Delivers from Whole Foods, Costco, and More in Under an Hour

Instacart Delivers from Whole Foods, Costco, and More in Under an Hour:



'via Blog this'

人生中最有力量的10种好情绪

http://blog.tianya.cn/post-411487-13066876-1.shtml



        1.爱与温情   

  任何负面的情绪在与爱接触之后,就如同冰雪遇上阳光,很容易消融。福克斯说的好,只要你有足够的爱心,就可以成为全世界最有影响的人   

  2.感恩   

  感恩也是一种爱,如果我们时常心存感激,人生就会过得再快乐不过,请好好经营你那值得经营的人生,让它充满芬芳。

  3.好奇心   

  孩童是最懂得欣赏神奇了,因为那些神奇,能占据孩童的心灵。如果你不想生活过的那么乏味,那就生活中多带些好奇心。   

  4.振奋与热情   

  要如何有热情呢?你可以运用表情:讲话要有力、看事情要远、以无比的决心去追求期望的目标,可千万别浑浑噩噩过日子,那不仅生活过得乏味无比,人生也必然贫瘠。   

  5.毅力   

  毅力能够决定我们在面对困难、失败、诱惑时的态度,看看我们是倒下去了还是屹立不动。如果你想减轻体重、如果你想重振事业、如果你想把任何事做到底,单单靠着一时的热劲是不成的,你一定得具备毅力方能成事,那是你行动的动力源头,能把你推向任何想追求的目标。具备毅力的人,他的行动必然前后一致,不达目标绝不罢休。   

  6.弹性   

  在每个人的人生中,都必然会遇到诸多无法控制的事情,然而只要你的想法行动能保持弹性,那么人生就能永保成功。芦苇就是因为能弯下身,才能在狂风肆虐下生存。

  7.信心   

  如果有人问你是否有信心把鞋带系好?相信你会以十足的信心回答说没问题,为什么你敢说得那么肯定?只因为你做过这件事情已经成千上万次了。同样的道理,如果你能不断从各方面练习自己的信心,迟早有一天你会发现,不知何时信心已在那里。 

  要想使自己能做各样的事情,一定得去练习你的信心,千万不可害怕。很可惜很多人就因为害怕而不敢去做,甚至于根本没做就已经退缩了。如果你想一直都有信心,那么一定要打心里建立起有信心的信念。   

  8.快乐   

  要想脸上表现出快乐的样子,并不是说要你不去理会所面对的困难,而是要知道学会保持快乐的心情,那样就有可能改变你生活中的许多事情。只要你能脸上常带笑容,就不会有太多的行动讯号引起你痛苦。   

  9.服务   

  某天午夜时分,安东尼.罗宾驾车在高速公路上飞驰,心中想着:我得怎样做才能改变人生?突然有个意念闪过脑际,罗宾如大梦初醒,兴奋得难以自持,随即把车开下交通道并停在路边,在笔记上写下了这句话:生活的秘诀在与给予。  

  如果我们所说的话或所做的事,不仅能丰富自己的人生,同时还可以帮助别人,这种能够不断地独善其身并兼善天下的人,必然是明白人生意义的人。   

  10.活力   
  保持健康的身体,维持身体有足够的精力,这样才能保持充沛的活力。静坐并不能保存精力,这也是为什么坐着也会觉得疲倦的原因。要想有精力,我么必须才行,研究发现,我们运动时有大量的氧气进入身体,使所有的器官都活动起来,也才能产生精力。唯有身体健康才能产生活力,有活力才能让我们应付生活中各样的问题

Friday, October 9, 2015

Python DFT IDFT Studying Note

https://wiki.python.org/moin/NumericAndScientificRecipes

Note:

 cmath — Mathematical functions for complex numbers



"""
def fft(x, sign=-1):
    from cmath import pi, exp
    N = len(x)
    W = [exp(sign * 2j * pi * i / N)
          for i in range(N)]          # exp(-j...) is default
    x = bitrev(x)
    m = 2
    while m <= N:
        for s in range(0, N, m):
            for i in range(m/2):
                n = i * N / m
                a, b = s + i, s + i + m/2
                x[a], x[b] = x[a] + W[n % N] * x[b], x[a] - W[n % N] * x[b]
        m *= 2
    return x
"""
Inverse FFT with normalization by N, so that x == ifft(fft(x)) within
round-off errors.
"""
def ifft(X):
    N, x = len(X), fft(X, sign=1)       # e^{j2\pi/N}
    for i in range(N):
        x[i] /= float(N)
    return x


"""
DFT using discrete summation
   X(n) = \sum_k W^{nk} x(k),  W = e^{-j2\pi/N}
where N need not be power of 2.  The choice of e^{-j2\pi/N} or
e^{j2\pi/N} is made by "sign=-1" or "sign=1" respectively.
"""
def dft(x, sign=-1):
    from cmath import pi, exp
    N = len(x)
    W = [exp(sign * 2j * pi * i / N)
          for i in range(N)]          # exp(-j...) is default
    X = [sum(W[n * k % N] * x[k] for k in range(N))
          for n in range(N)]
    return X
"""
Inverse DFT with normalization by N, so that x == idft(dft(x)) within
round-off errors.
"""
def idft(X):
    N, x = len(X), dft(X, sign=1)       # e^{j2\pi/N}
    for i in range(N):
        x[i] /= float(N)
    return x


"""

Tuesday, October 6, 2015

Wav file convert command on different corpoa(wv1,wv2,wav) - My Graduate Life



Wav file convert command on different corpoa(wv1,wv2,wav)


Aurora2 Aurora4
cat scripts/raw2wav.scp | awk '{system("sox -x -c 1 -s -2 -r 8000 -t raw " $1 " -t wav " $2)}'
or
cat scripts/raw2wav.scp | awk '{system("sox -x -c 1 -s -w -r 8000 -t raw " $1 " -t wav " $2)}'
-w or -2 sample data size in 2 bytes, 16 bits
-x swap bytes
-c number of channels
-r sample rates
--------------------------------------------------
WSJ0,WSJ1
sph2pipe -f raw <in> -f wav <out>
Source:
https://sites.google.com/site/gradlifeofshilin/techblog/wavfileconvertcommandondifferentcorpoawv1wv2wav

Saturday, October 3, 2015

When Baby Sleeps Near Mom, Guess Who Doesn't Sleep Well? : Shots - Health News : NPR

Mothers have been warned for years that sleeping with their newborn infant is a bad idea because it increases the risk the baby might die unexpectedly during the night. But now Israeli researchers are reporting that even sleeping in the same room can have negative consequences: not for the child, but for the mother.
Researchers at Ben-Gurion University of the Negev wanted to see whether sleeping in the same room as their newborn affected mothers' or babies' sleep. The short answer: It did, and the effect wasn't good for moms.
The researchers recruited 153 married couples expecting their first child to participate in the study. The new parents weren't told where or how to sleep. They were simply asked to record whether they slept in the same room as their newborn, the same bed and same room, or if the child slept in another room.
To measure sleep patterns, both mom and baby wore wristbands designed to measure movement during the night, a measurement that gives a pretty accurate indication of sleep patterns for both mother and child. The researchers measured sleep patterns before the babies were born, at 3 months and at 6 months.
Mothers who slept in the same room as their infants, whether in the same bed or just the same room, had poorer sleep than mothers whose babies slept elsewhere in the house: They woke up more frequently (approximately three times per night versus two), were awake approximately 20 minutes longer per night, and had shorter periods of uninterrupted sleep (approximately 136 minutes versus 166 minutes). These results held true even taking into account that many of the women in the study were breast-feeding their babies.
Infants, on the other hand, didn't appear to have worse sleep whether they slept in the same or different room from their mothers.
The researchers acknowledge that since the families they studied were all middle-class Israelis, it's possible the results would be different in different cultures. Lead author Liat Tikotzky told Shots in an email that the research team also didn't measure fathers' sleep, so it's possible that their sleep patterns could also be causing the sleep disruptions for moms.
Right now, to reduce the risk of sudden infant death syndrome, the American Academy of Pediatrics recommends that mothers not sleep in the same beds as their babies but sleep in the same room. The Israeli study suggests that doing so may be best for baby, but may take a toll on Mom.
The research appears in the journal Sleep Medicine.

Thursday, October 1, 2015

Create a buffer matrix for continuous measurements

matlab - Create a buffer matrix for continuous measurements - Stack Overflow: "buffSize = 10;
circBuff = nan(1,buffSize);
for newest = 1:1000;
circBuff = [newest circBuff(1:end-1)]
end"





http://stackoverflow.com/questions/821637/create-a-buffer-matrix-for-continuous-measurements





buffSize = 10;
circBuff = nan(1,buffSize);
for newest = 1:1000;
    circBuff = [newest circBuff(1:end-1)]
end


'via Blog this'