WordPress

Wordpress https://ja.wordpress.org/ Note php/wordpress Wordpressのプラグイン作成(作成手順編) URL Route Rewrite API WordPress routing explained WP Router Test WP-CLI A command line interface for WordPress PHPUnit Plugin Unit Tests Unit Tests for WordPress Plugins – Setting Up Our Testing Suite Debug Debugging in WordPress 10 WordPress Debugging Tools to Find Errors and Warnings Simple Debugging with WordPress Authentication Wordpress-Social-Login Gianism

2015年7月30日 · 1 分

ドキュメントインデックス

PHP anyenv+phpenv composer PsySh

2015年7月25日 · 1 分

phpenv.apxs2.md

----------------- | BUILD ERROR | ----------------- Here are the last 10 lines from the log: ----------------------------------------- /tmp/php-build/source/5.6.10/ext/opcache/ZendAccelerator.c: In function ‘accel_use_shm_interned_strings’: /tmp/php-build/source/5.6.10/ext/opcache/ZendAccelerator.c:397:28: warning: assignment discards ‘const’ qualifier from pointer target type CG(interned_empty_string) = accel_new_interned_string("", sizeof(""), 0 TSRMLS_CC); ^ PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. /usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules install: cannot create regular file '/usr/lib/apache2/modules/libphp5.so': Permission denied apxs:Error: Command failed with rc=65536 . make: *** [install-sapi] Error 1 ----------------------------------------- The full Log is available at '/tmp/php-build.5.6.10.20150707020507.log'. [Warn]: Aborting build.

2015年7月6日 · 1 分

readme.md

input type=“file” なやつを独自にデザインする方法 [CSS]フォームの input type=file のボタンデザインを変更する方法

2015年6月23日 · 1 分

Django: ファイルフィールドのコピー

>>> from campaign.models import * >>> Application.objects.all() [<Application: Application object>] >>> a = _[0] >>> a.receipt_photo.path u'/home/vagrant/projects/our-site/web/protected/campaign_application/receipt_photo/01.jpg' $ tree protected/ protected/ └── campaign_application └── receipt_photo └── 01.jpg 2 directories, 1 file >>> n = Application() >>> n.receipt_photo.save('copy.jpg', a.receipt_photo.file) >>> n.save() >>> Application.objects.all() [<Application: Application object>, <Application: Application object>] >>> Application.objects.all()[1].receipt_photo.path u'/home/vagrant/projects/our-site/web/protected/campaign_application/receipt_photo/copy.jpg' $ tree protected/ protected/ └── campaign_application └── receipt_photo ├── 01.jpg └── copy.jpg 2 directories, 2 files $ sha1sum protected/campaign_application/receipt_photo/* a97c2b07232242e96506914cadfbc08ea7efb712 protected/campaign_application/receipt_photo/01.jpg a97c2b07232242e96506914cadfbc08ea7efb712 protected/campaign_application/receipt_photo/copy.jpg

2015年6月16日 · 1 分

Photon Note

Service shutting down: with Exception (1). Errorcode: 6 the maximum timeout that we can set? photon server shutdown after X second OnDisconnect is not called sometimes ?

2015年4月6日 · 1 分

Python VCS

https://pythonhosted.org/vcs/api/index.html https://pypi.python.org/pypi/RhodeCode https://code.rhodecode.com/ RhodeCode Requirements Waitress WSGI server [WebOb provides wrappers around the WSGI request environment, and an object to help create WSGI responses.](WebOb provides wrappers around the WSGI request environment, and an object to help create WSGI responses.) FormEncode validates and converts nested structures.

2015年3月5日 · 1 分

Django Jade

Use Jade Templates In Django How to combine Django with Jade

2015年3月3日 · 1 分

jQueryUI

Autocomplete Widget AutoCompleteウィジェットの検索/表示方法をカスタマイズするには? jQuery UI - オートコンプリート source source#1. 配列 文字列配列 [ "Choice1", "Choice2" ] オブジェクト配列( obj.label, obj.value ) value = value or label [ { label: "Choice1", value: "value1" }, ... ] source#2. URI GET source_uri?term=入力文字列 source#3. 関数 source : function(request, response){ var iput = response.term; response([ var1, var2, ...] ); } Sample with a Django Model 1 2 3 4 5 6 7 8 9 10 11 12 13 14 var entities = {% to_json entities %}; // serializers.serialize('json', entities) $( "input.entity-title" ).autocomplete({ delay: 0, source: $.map(entities, function(val, index){ return { label: val['fields']['name'], value: val['fields']['id'], model: val}; }), select: function(e, ui) { alert(ui.item.model['fields']['created_at']); } });

2015年2月26日 · 1 分

CakePHP

View CakePHPでコントローラーやアクションごとにCSS&jsを切り替える方法 CSS 1 2 3 4 5 6 7 8 9 10 11 12 <?php echo $html->css('forms'); ?> // 出力 <link rel="stylesheet" type="text/css" href="/ja/test/css/forms.css" /> // 第1引数に配列も有効です <?php echo $html->css(array('forms','tables','menu')); ?> // 出力 <link rel="stylesheet" type="text/css" href="/ja/test/css/forms.css" /> <link rel="stylesheet" type="text/css" href="/ja/test/css/tables.css" /> <link rel="stylesheet" type="text/css" href="/ja/test/css/menu.css" />

2015年2月25日 · 1 分