Monday, August 26, 2013

Java8 Features

Good link

http://www.techempower.com/blog/2013/03/26/everything-about-java-8/

Linux Redmine-Thin Systemd(Systemctl) Service Daemon Registration - Not working



1. Create service script

Create file /etc/systemd/system/redmine.service with the content:

/etc/systemd/system/redmine.service
[Unit]
Description=Redmine server
After=syslog.target
After=network.target

[Service]
Type=forking
User=redmine
Group=redmine

ExecStart=/usr/bin/ruby /usr/share/webapps/redmine/script/rails server thin -e production -p 6000

# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300

[Install]
WantedBy=multi-user.target

2. Reload daemon

systemctl daemon-reload

3. Enable & Start Service

systemctl enable redmine

systemctl start redmine


If you have trouble with start service, Check permission - user/group in service script


https://wiki.archlinux.org/index.php/Systemd/Services#redmine

Sunday, August 25, 2013

Cocos2d-html5 has some difference with JSB


There still some differences between JSB and Html5. For example, there are not cc.Color4B cc.RectMake in JSB, instead, you could use cc.cc4b and cc.rect for both JSB and Html5.


From : http://www.cocos2d-x.org/boards/20/topics/32390

Friday, August 23, 2013

iOS Dev Weekly Memo - Issue 108 - 23rd August 2013



Issue 108 - 23rd August 2013











--> If your apps use the MAC address to identify an iOS device, the system will return the same static value for all devices running iOS 7. Please update your apps to use the identifierForVendor property of UIDevice. If you need an identifier for advertising purposes, use the advertisingIdentifier property of ASIdentifierManager.



Boost up gem install

Without doc!

http://stackoverflow.com/a/17201281

install: --no-document
update: --no-document
or
gem: --no-document

Git over HTTP Memo


Good link : http://www.parallelsymmetry.com/howto/git.jsp

1. HTTPD (Nginx, Apache .. ) setup

2. git init --bare foo.git

3. mv hooks/post-update.sample hook/post-update

4. git update-server-info(not necessary?)

5. git config http.receivepack true
--> If you want global -> git config --global http.receivepack true : Not work

6. Permission(chmod -R)

* If you upload big size push

--> git config http.postBuffer 524288000
--> Size up http server buffer :
   In case of nginx ->
   client_body_buffer_size 32K;
   client_max_body_size 100M;

http://stackoverflow.com/questions/7489813/github-push-error-rpc-failed-result-22-http-code-413