Tuesday, November 11, 2014

HP ENVY Touchsmart 15 power off suddenly!!!

    My HP Envy Touchsmart somehow power off suddenly.
    First, I think maybe the CPU too hot ( I googled it), then I install lm-sesnors and watch it , but it work fine. It under 80 degree and no power off issue.
    Second, I though I add 8G extra RAM, maybe that RAM is defeat, I pull out the extra RAM, but it still power off when I try to move the laptop.
    Third, basically yesterday I already know when I move the laptop screen or power connector  it will power off. But my though is this laptop has something broken inside. And I may need send back to HP Support ( that's I don't think it is easy task, because most of time it work fine, how can I explain what's wrong to support people) .  Suddenly I got an idea when my hands still hold the screwdriver. Why not check the screw around the screen and laptop's body, it did feel loose , after I tighten it. There is no abruptly power off issue now.
    Lesson learn: Hard question ( no idea how it happened ) may have easy answer.

Thursday, April 24, 2014

error: src refspec staging does not match any.

I have two repository, one is development the other is staging. After finish the development, I will push to staging remote repo. I try to push to it and got:
 
git push interview staging  
error: src refspec staging does not match  
error: failed to push some refs to 'git@github.com:chienyuan/interview.git' any.  
It turn out I delete local staging branch. After I add the staging branch back the problem solved.
I still don't know what is the issue here. Let me study a little bits of git reference.
After an hour study, I kind of understand a little big about this refspec things. Here is good linkGit-Internals-The-Refspec.
So now I could just add push rule to .git/config
 [remote "interview"]  
   url = git@github.com:/chienyuan/interview.git  
   fetch = +refs/heads/*:refs/remotes/interview/*  
   push = refs/heads/master:refs/heads/staging  
Then I could just issue.
git push interview
Lesson Learn: Understand the internal is better way for learning git.

Thursday, April 3, 2014

Session error

Got this error when I change git branch from rails2 to rails3. When I am doing some upgrading task.
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn't available.Remember to require the classes for all objects kept in the session.(Original exception: uninitialized constant ActionController::Flash::FlashHash [NameError])
Just delete the browser's cookie, fixed this issue. I guess this two version have different way to handle the session or cookie. Then I google again. Got this Link , Look like someone already figure it out.

Tuesday, April 1, 2014

Why my website not verify by Authority in Android browser.

  My boss told me my shopping cart checkout page isn't secure. There is a popup window said that something like "this website not verified, danger , danger .....".
   How it could be, we already buy SSL Certificate from godaddy.com and put it in the ngnix configuration file. And my desktop browser didn't complain anything. Something is not right I know.
   After google, it got this page - http://nginx.org/en/docs/http/configuring_https_servers.html#chains
The key point is this line "This occurs because the issuing authority has signed the server certificate using an intermediate certificate that is not present in the certificate base of well-known trusted certificate authorities which is distributed with a particular browser". My English isn't so well to understand this kind of compound sentence . I just guess and translate it as,  The android browser didn't play well with godaddy. 
   Ok, then we need the cure, follow the step, I copy gb_bundle.crt from godaddy. then put after the original crt file. Then reload. Hola, the warning is gone. 
   By the way, there is website could test your SSL certificate setting - https://www.ssllabs.com/ssltest/index.html
  Lesson learn: System administration take lots of time.