jekyll site
happypeter / haoduoshipin Goto Github PK
View Code? Open in Web Editor NEW好多视频
Home Page: http://haoduoshipin.com
好多视频
Home Page: http://haoduoshipin.com
jekyll site
people have very different look with their avatars, so when you show a list of them together, usually it's ugly. like
http://akaedu.org/page/team.php
have a nice white marge for each makes the page prettier:
http://www.codeschool.com/courses/rails-for-zombies-2
now deployment is a big pain, since I need to do the following manually
ssh
git pull
rake assets:precompile
apachectl graceful
Use some js to do validation of password things
Never did this before, any suggestion? plz help?
codeschool.com uses this, need to try
Something like
nice
so
```terminal
ctags
```<space>
```vim
h ctags
```
will be one code block in the output
why it's so fast to open ruby-china.org frontpage?
and images on happycasts/users take a year to load?
happycasts.net trys to get images from gravatar.com, while ruby-china local-cached for these avatars.
peter:~/cc$ rails generate mailer HappyMailer
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released.
try it
http://ruby-china.org/topics/5119
Do I need to do a switch from apache+passenger to nginx+unicorn because site is still slow issue #29 ?
the current fix is to *remove
attr_accessiable: password ....
but why?
wrong password salt, and a execption.
Update: it only happens for those who are using their github account to login on day 1. so they have NULL for passwd salt in db.
remove all helpers, db fileds
as lifulei suggested,
in the _form.html.erb I have sth stupid:
Episode.last.published_at + 7.days,
Now I have this in application.css:
@import "vendor/pygments";
@import "vendor/bootstrap_and_overrides";
@import "peter"
peter.css.scss is not working in my chrome, and it works in my firefox, puuuu, messy
resources :posts, only: [:index, :show]
cause you don't want people have access to 'post/edit' or 'delete'
NoMethodError in UsersController#login_with_github
undefined method `strip' for nil:NilClass
Rails.root: /home/peter/happycasts
Application Trace | Framework Trace | Full Trace
app/models/user.rb:57:in `strip_blanks'
app/models/user.rb:24:in `create_from_omniauth'
app/controllers/users_controller.rb:26:in `login_with_github'
Request
Parameters:
{"code"=>"e60696decd7040e7f375",
"state"=>"",
"provider"=>"github"}
move the test site top of http.conf
, then point firefox localhost
, then I can test sublimevideo locally
But I already have RSS feed, how can I check my rss subscibers?
chrome developer tool tells me:
railscasts add a position
db attr to handle this, the logic is quite complex, I am now prefer just treat it as a whole new episode, all I need is to add a link on the first version of the episode, nice enough, clean enough.
http://railscasts-china.com/episodes/live-show-with-daniel-lv-1
also nice info about sinatra and rspec
I now hate bootstrap, I will replace all the feathers I use in my code, and remove it finally
http://ruby-china.org/topics/5903
记得还有一个 atwho
maybe I need this in user.rb1
attr_accessible :email, :password, :name
otherwise there maybe a "mass-assign" error
not sure need to test
now I have twitter/bootstrap, this show be easy
and switch like github issue, really lovely
it's ajax issue, when you want to edit the comment you submitted just now, you won't get the buttons,
have to refresh.
http://www.erikzaadi.com/2012/03/19/auto-installing-vundle-from-your-vimrc/
the site has beautiful strange font, out of which I can maybe get a logo.
users#show users#index
people can login with google or github or local account
https://github.com/ruby-china/ruby-china
is a great example
sure I can add if current_user.nil?
, but any better way?
http://happycasts.net/episodes/32
some nice format like asciicast, and make it nice to display Chinese
sublime video is too slow in China, and also you can not test it locally, that's also stupid, so close issue #10
now going to check jplayer.
TODO:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.