Skip to content

Chris' Laboratory

chrislee.kr – Personal blog as bookshelves

Menu
  • Home
  • Github
  • Contact Me
Menu

Category: Frameworks

Bootstrap Modal Remote Example

Posted on 26/03/201310/09/2016 by Chris Lee

Reference: http://twitter.github.com/bootstrap/javascript.html#modals Reference: http://jsfiddle.net/mmfansler/cp67J/   <a data-target=”#myModal” role=”button” class=”btn” data-toggle=”modal”>Launch demo modal</a> <div class=”modal fade hide” id=”myModal” tabindex=”-1″ role=”dialog” aria-labelledby=”myModalLabel” aria-hidden=”true” data-remote=”/mmfansler/aQ3Ge/show/”> <div class=”modal-header”> <button type=”button” class=”close” data-dismiss=”modal” aria-hidden=”true”>×</button> <h3 id=”myModalLabel”>Modal header</h3> </div> <div class=”modal-body”> <p>One fine body…</p> </div> <div class=”modal-footer”> <button class=”btn” data-dismiss=”modal” aria-hidden=”true”>Close</button> <button class=”btn btn-primary”>Save changes</button> </div> </div>

Continue reading

Draw Polygons in Google Maps and Determine whether an Address is in Polygons

Posted on 21/03/201321/03/2013 by Chris Lee

Draw Polygons in Google Maps and Determine whether an Address is in Polygons This sample source code uses Google Maps Javascript API V3 to draw polygons in Google Maps. (Refer https://google-developers.appspot.com/maps/documentation/javascript/examples/drawing-tools) The address auto-complete uses Google Places Javascript library. (Refer https://developers.google.com/maps/documentation/javascript/places#places_autocomplete) The server-side code will retrieve address’ latitude and longitude using Google Gecoding API. (Refer…

Continue reading

HTML5 Application Cache

Posted on 24/09/201224/09/2012 by Chris Lee

A BEGINNER’S GUIDE TO USING THE APPLICATION CACHE – Reference: http://www.html5rocks.com/en/tutorials/appcache/beginner/   ……………………………………………… Using the cache interface gives your application three advantages: Offline browsing – users can navigate your full site when they’re offline Speed – cached resources are local, and therefore load faster. Reduced server load – the browser will only download resources from…

Continue reading

MongoDB Library for Codeigniter

Posted on 15/08/201215/08/2012 by Chris Lee

Codeigniter MongoDB Library Reference & Download: https://github.com/alexbilbie/codeigniter-mongodb-library/tree/v2 Using with CodeIgniter: Add the file Mongo_db.php to your /application/libraries folder. Add the file mongodb.php to your /application/config folder. Update the config file.

Continue reading

Media Queries to handle all device’s screens

Posted on 13/02/201211/09/2016 by Chris Lee

To cover all screen resolution including portrait and landscape screens. Found from stuff & nonsense (http://www.stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/)   /* Smartphones (portrait and landscape) ———– */ @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { /* Styles */ } /* Smartphones (landscape) ———– */ @media only screen and (min-width : 321px) { /* Styles…

Continue reading

Image related websites

Posted on 14/12/2011 by Chris Lee

http://imagechip.com/   http://www.sxc.hu                

Continue reading

Sencha Touch – Ajax JSON with multiple roots

Posted on 09/11/201111/09/2016 by Chris Lee

I have JSON result that contains multiple roots. Most example JSONReader source codes are dealing with one root. According to cnelissen from Sencha Forum, using below code will make it working: var store1 = new Ext.data.Store({ url: ‘/path/to/json-data.php’, method: ‘POST’, autoLoad: true, reader: new Ext.data.JsonReader({ root: ‘root1’, fields: [‘field1’, ‘field2’, ‘field3’] }), listeners: { ‘load’:…

Continue reading

Sencha Touch Ext.Router.draw refresh issue

Posted on 09/11/201111/09/2016 by Chris Lee

Sencha Touch 1.1.1 In my ‘route.js’ for Ext.Router.draw, I have custom route “map.connect” like: Ext.Router.draw(function(map) { map.connect(‘s/:specialName’, { controller: ‘Special’, action: ‘index’ }); map.connect(‘:controller/:action’); });   The URL I used is like this “http://localhost/m/#s/am-i-right-3023”, which contains dash(-) in the URL. If I refresh the browser with the URL, application is not reloading the page properly….

Continue reading

Sencha Touch Related Links

Posted on 07/11/201111/11/2011 by Chris Lee

Loading Sencha Touch controllers and views dynamically http://www.onlinesolutionsdevelopment.com/blog/web-development/javascript/loading-sencha-touch-controllers-and-view-files-dynamically/   Dynamic Sencha Touch Forms – Part 1 – Enabling/Disabling Fields based on form selections http://www.swarmonline.com/2011/01/dynamic-sencha-touch-forms-part-1-enablingdisabling-fields-based-on-form-selections/   Mobile Chat with Sencha Touch + node.js + socket.io https://github.com/mrsunshine/Mobile-Chat-with-Sencha-Touch—node.js—socket.io-   One of sample code – worth to refer http://pastebin.com/uF50X67Y     DOWNLOAD:   sencha_sample   Sencha Touch 1.x: Examples and Showcases…

Continue reading

네이버에서 실시간 환율 정보 받기 (Get real-time currency information from Naver)

Posted on 06/10/201121/11/2020 by Chris Lee

업데이트 버젼 (Updated Version): https://chrislee.kr/wp/2020/11/21/%ec%8b%a4%ec%8b%9c%ea%b0%84-%ed%99%98%ec%9c%a8-%eb%b0%9b%ec%95%84%ec%98%a4%ea%b8%b0-get-real-time-currency-information/ 실시간 환율 정보를 받기 위해 자료를 찾아보는 중, 네이버 환율 API를 발견하였다. ( [출처] 네이버 환율정보 api 이용한 php 위젯 개발 하기 |작성자 usback]) http://www.naver.com/include/timesquare/widget/exchange.xml 여기서 의문점은 저 블로그에서 xml 주소를 열어보면, xml 정보가 보이지만 저 주소를 복사 한 뒤 볼려고 하면, 퍼미션 에러가 난다. 결론은 저 xml은 레퍼러 체크를…

Continue reading

Codeigniter 2.0 – CSRF Enabled

Posted on 07/09/201110/09/2016 by Chris Lee

References: jQuery axaj for Codeigniter 2: http://kevinphillips.co.nz/news/jquery-axaj-codeigniter-2 CSRF Protection in CodeIgniter 2.0: A closer look: http://www.beheist.com/index.php/en/blog/csrf-protection-in-codeigniter-2-0-a-closer-look AJAX with CSRF Protection in Codeigniter 2.0: http://aymsystems.com/ajax-csrf-protection-codeigniter-20

Continue reading

Developing a website based on Adobe Flex

Posted on 06/08/201107/08/2011 by Chris Lee

  Since I decided to learn how to develop a website based on Adobe flex, I will gather many useful resources as much as I can. 1. Live Flex 3 training videos created by Mike Lively of Northern Kentucky University Live Flex 3 Training Part 1 (Building a Website) – http://www.youtube.com/watch?v=xrjmImF0CKE Live Flex 3 Training Part…

Continue reading

Nothing can overcome ‘Permission Denied’ error to get location.href

Posted on 05/08/201105/08/2011 by Chris Lee

Except Adobe Air? Adobe Air Web Browser: http://www.lucentminds.com/archives/adobe-air-web-browser.html   All I need was an URL, man.

Continue reading

PHP Proxy Script

Posted on 04/08/2011 by Chris Lee

Quoted from http://phpproxies.com/ Proxy Scripts Glype Glype is new, released just in January 2009, but it has already been downloaded 15,000 times. PHP Web Proxy This script is used for many different proxy sites, download it through SourceForge. PHPProxy Freshmeat.net’s script can turn your web host’s server into a proxy server in no time. If…

Continue reading

unserialize() [function.unserialize]: Error at offset 00000 of 0000 bytes

Posted on 12/07/201111/09/2016 by Chris Lee

If serialize string contains ‘&amp;’, then the error occurs when unserialize the string. unserialize() [function.unserialize]: Error at offset 00000 of 0000 bytes   Simply change ‘&amp;’ to ‘&’, by replacing it. $string = str_replace(‘&amp;’, ‘&’, $string); $test_array = unserialize($string);    

Continue reading

CSS Custom Fonts for all browsers

Posted on 11/07/201111/09/2016 by Chris Lee

Use Font Squirrel to create compatible fontface: http://www.fontsquirrel.com/fontface/generator Confirmed working in IE, Chrome, Firefox 1. Upload font file and get zip file 2. Copy CSS code to your code 3. Done     Not compatible for IE: From Symphony of dot net: http://symphony-of-dot-net.blogspot.com/2010/03/making-css-custom-font-works-with-ie.html @font-face { font-family: my_font; src: url(‘my_font.eot’); src: local(my_font), url(‘my_font.ttf’) format(‘opentype’); } p…

Continue reading

Only show Paging Toolbar when appropriate

Posted on 26/06/201111/09/2016 by Chris Lee

One of Sencha User, Joel, pointed out one of problems in Sencha Touch ListPagingPlugin that display ‘Load more…’ message even if a result gave less rows than paging size. Below code he suggested will fix the problem: Ext.override(Ext.plugins.ListPagingPlugin, { onListUpdate : function() { if (this.list.store && this.list.store.data.length < (this.list.store.currentPage * this.list.store.pageSize)) { if (!this.rendered) {…

Continue reading

HTML Purifier

Posted on 23/06/201104/07/2011 by Chris Lee

HTML Purifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant, something only achievable with a comprehensive knowledge of W3C’s specifications. Tired of using…

Continue reading

Prototype Ajax.Request modifying header

Posted on 30/04/201111/09/2016 by Chris Lee

new Ajax.Request({ajax-url}, { method:’get’, requestHeaders: { “Accept”: ‘application/json’ , “User-Agent”: {custom-user-agent} }, onCreate: function(){}, onComplete: function(){}, onSuccess: function(data){}, onFailure: function(){} });   Point: “User-Agent”: {custom-user-agent} ex) Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (FM Scene 4.6.1)

Continue reading

Upgrade to Codeigniter 2.0

Posted on 27/04/201111/09/2016 by Chris Lee

$this->input->xss_clean(); In codeigniter 2.0, you will need to modify $this->input->xss_clean() to $this->secuirty->xss_clean(). Otherwise, it won’t work. Of course, don’t forget to load ‘security’ library before you use the function. extends Controller or extends Model You will need to change class Test extends Controller to class Test extends CI_Controller And class Test extends Model to class…

Continue reading

Briefly unavailable for scheduled maintenance. Check back in a minute.

Posted on 27/04/2011 by Chris Lee

Briefly unavailable for scheduled maintenance. Check back in a minute.   If your wordpress kept displaying this message, delete .maintanence file in wordpress folder. It will be disappeared.

Continue reading

Does wordpress run ‘crontab’ for scheduled cron jobs?

Posted on 12/04/201112/04/2011 by Chris Lee

Does wordpress run ‘crontab’ for scheduled cron jobs? Answer is no. According to Codex document, scheduled tasks are executed by visitors. It means that if visitors are not accessing your blog, it won’t be executed. However, it won’t be matter for public blogs or websites due to search engine robots, which are working hearty to…

Continue reading

[jQuery] defaultChecked VS checked

Posted on 11/04/201130/04/2011 by Chris Lee

jQuery defaultchecked VS checked Situation: I have checkbox elements on div(‘#dialog-a’) for a dialog. When an user clicks a button, then jQuery will bring the dialog with html code of div(‘#dialog-a’). Once, the user set checkbox and click “Close” button in the dialog, “Close” function supposes to set checkbox as “checked” in div(‘#dialog-a’). I use…

Continue reading

CSS floats: container does not stretch to fit floated contents

Posted on 04/02/201109/04/2011 by Chris Lee

Original Article: http://www.mikepadgett.com/technology/technical/alternative-to-the-pie-clearfix-hack/ Here’s a quick resolution to an almost ungooglable problem.” This article was formerly titled “Alternative to the PIE clearfix hack” but has since been rewritten. Getting this problem? Example: Left Left Left Left Right Right Right Right <div style=”background: red; padding: 2%; border: 1px solid #000;”> <div style=”border: 1px solid #000000; background: #e2e2e2;…

Continue reading

Google Analytics에서 jQuery AJAX 호출들을 추적가능하도록 만들기

Posted on 25/01/201109/04/2011 by Chris Lee

원본 글: http://www.alfajango.com/blog/track-jquery-ajax-requests-in-google-analytics/ The code This code will automatically log all jQuery AJAX requests in our application, including those using $.ajax(), $.get(), or $.post(). This will also work for any jQuery plugins using AJAX requests (e.g. lightbox plugins, etc.), as well as for all Rails 3 remote links and forms(provided we’re using the jQuery UJS driver). In the page layout…

Continue reading
  • Previous
  • 1
  • 2
  • 3
  • 4
  • Next

Categories

  • Databases (11)
    • MongoDB (4)
    • MS-SQL (1)
    • MySQL (6)
  • E-Commerce (8)
    • Magento (8)
  • Finance (2)
  • Frameworks (84)
    • Adobe Flex (1)
    • Angular (ngx) (3)
    • Codeigniter (6)
    • CSS (5)
    • Django (2)
    • Javascript (13)
    • Node.js (6)
    • PHP (17)
    • React Native (4)
    • React.js (1)
    • Sencha Touch (4)
    • Terraform (1)
    • Vue.js (1)
    • WordPress (4)
    • Yii2 (3)
  • General Documents (15)
  • Marketing (3)
  • Mobile Development (33)
    • Android (20)
    • iPhone (13)
  • Platforms (21)
    • Arduino (2)
    • Docker (5)
    • Google App Engine (5)
    • Raspberry Pi (5)
    • Samsung Smart TV (4)
  • Security (17)
  • Server (31)
    • Linux (13)
  • Tools (14)
    • SVN (7)
  • Uncategorized (3)

Search

Recent Posts

  • helm list error stream ID 3; INTERNAL_ERROR
  • Bootstrapping Kubernetes cluster with kubeadm
  • Taint all resources in the one module
  • Alpine – Plugin caching_sha2_password could not be loaded
  • npm link with peerDependencies

Recent Comments

  • Obayed on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Ari on How to install memcache.so/memcached.so for MAMP Pro (Mac)
  • Mida ali on Binance Auto Trading Bot – Buy low/Sell high with stop loss limit/Trade multiple coins
  • Chris Lee on How to install memcache.so/memcached.so for MAMP Pro (Mac)
  • Chris Lee on Setting Up A VPN Server On OSX 10.6

Tags

1 ajax amazon android android-addpart browser chrislee-kr codeigniter codeigniter-tcpdf com-apple-net-racoon CSS CSS history hack delpaigmail-com entity-addpart-double exception-printing-is-disabled-by-default-for-security-reasons ext-plugins-listpagingplugin ext-plugins-listpagingplugin-example f iphone javascript jquery-defaultchecked jquery-samsung-smart-tv listpagingplugin mac magento-exception-printing-is-disabled-by-default-for-security-reasons magento-sample-data-exception-printing-is-disabled-by-default-for-security-reasons nu-vot null-core-errors-confignotfound-config-mk9engine-ini php samsung-smart-tv-jquery samsung-smart-tv-sdk-ajax samsung-smart-tv-sdk-jquery samsung-tv-sdk samsung-tv-sdk-jquery samsung tv sencha-smart-tv sencha-touch-list-paging smart-tv-jquery sqlite subversion svn tcedook tcpdf-codeigniter uilinebreakmodecharacterwrap-is-deprecated unknown-column-link-area

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2023 Chris' Laboratory | Powered by Minimalist Blog WordPress Theme
Chris' Laboratory
Proudly powered by WordPress Theme: Dark Minimalistblogger.
 

Loading Comments...