OpenAIã®Whisperæåèµ·ãã25MBå¶éã解決ããPHP, Laravel, ffmpegã使ã£ããã¡ã¤ã«åå²ã®ä¾ OpenAIã®APIã使ã£ãé³å£°ã®æåèµ·ããã¯ãä»ãå¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã§å©ç¨ããã¦ãã¾ãããã®è¨äºã§ã¯ãç¹ã«Whisperæåèµ·ããã®25MBå¶éã«ç¦ç¹ãå½ã¦ãPHP, Laravel, ffmpegâ¦
By Spike Brehm You may remember our blog post back in January that first introduced Rendr, our library for running Backbone.js apps seamlessly on both the client and the server. We originally built Rendr to power our mobile web app, and in the post we explained our approach and showed some sample code. Weâve been blown away by the response from the community. With 80,000 hits to the original blog
Todoãªã¹ãã®æ©è½ 1.ããã¹ãããã¯ã¹ãããEnterã§è¿½å ã§ãã 2.ç»é²ããTodoã¯ããã«ã¯ãªãã¯ã§ç·¨éå¯è½ã«ãªããEnterã§ç·¨é確å®ã§ãã 3.ç»é²ããã¦ããTodoã®ç·ä»¶æ°ãããã¿ã¼ã«è¡¨ç¤ºããã 4.å®äºããTodoãããå ´åããããããªã¹ãããæ¶ããã¿ã³ã表示ããã 5.å ¨é¸æ/解é¤ãè¡ããã§ãã¯ããã¯ã¹ããã å人çãªçµè« 趣å³éçºã§ä½¿ããªãAngular.jsã»ä»äºã§ä½¿ããªãKnockout.jsããå§ããããã ã¾ãããã¬ã¼ã ã¯ã¼ã¯ãé¸æããéã¯ã以ä¸3ã¤ã®é¸æåºæºãæã¤ã¨ããã¨æãã 1.éçºã®è¦æ¨¡ 大è¦æ¨¡ãªãBackbone.jsã¯ãå§ãã§ããã æ¸ãæ¹ã決ã¾ã£ã¦ãã¦ããã¥ã¼ããªã¢ã«ã«ç®ãéãã°(é¢åãªã®ã¯ç½®ãã¦ããã¦)ä½ãä½ããªããã°ãªããªããã¯ç°¡åã«ç解ã§ãããããããã®äººæ°ã§é·ãæéã®éçºãè¡ããªããUIãã¼ã ã¯ã¢ããªã±ã¼ã·ã§ã³ã¨Viewããµã¼ãã¼ãµã¤ãã¯
ç»é¢é·ç§»ã®ããã¢ããªã±ã¼ã·ã§ã³ã§ãBackbone.jsã使ç¨ãã¦ããã¨ãã¹ã©ã¤ããã¥ã¼ã®èªåã¹ã©ã¤ãã§ãã¼ã¸ãé£ãã ããã¢ã³ã¼ãã£ãªã³ã®ãã¥ã¼ãåºãããéã¾ã£ãã¾ã¾ã«ãªããã¨ãããã¾ããUIã®ã¢ã¯ã·ã§ã³ãBackbone.ModelãCollectionã¨ã²ãã¥ãã¦ããå ´åã«çºçãã¾ããæåã«é·ç§»ããã¨ãã¯åé¡ãªãã®ã«ãåã³æ»ã£ã¦ããã¨çºçããç»é¢é·ç§»ãã度ã«çç¶ã¯ã²ã©ããªã£ã¦ãããæçµçã«ã¯ãã¹ã©ã¤ãã¯æåã¨æå¾ã®ã¹ã©ã¤ããã表示ãããªãã¨ãã«ãªã£ãããã¾ãã åæç°å¢ ç»é¢é·ç§»ã®åº¦ã«é·ç§»å ã®ãã¼ã¸ã«è©²å½ããBackbone.Viewãåçæ jQuery.Mobleã®changePageã§ç»é¢é·ç§» Backbone.Model/Collection/Eventsçã使ã£ã¦ããã¼ã¿å¤æ´ã¤ãã³ãããã¤ã³ããã¦ãã ãµã¼ããµã¤ãã«ããHTMLã®ã¬ã³ããªã³ã°ã¯ãããAjaxã§ãã¼ã¿åå¾ãã¦J
ä¹ ã ã®ããã°ã«ãªãã¾ãã 3å¹´ã»ã©JavaScriptãå©ç¨ããéçºããã¦ãã¾ããããæåã¯ãªãJavaScriptã§MVCãã¬ã¼ã ã¯ã¼ã¯ãå¿ è¦ãªã®ããã¾ãã¡ããããããããã試è¡é¯èª¤ãã¦ãã¾ããã ä»æ¥ã¯ã¿ã¤ãã«ã®éãAngularJSãç´ æµã ãªã¨ãããã¨ãæ¸ãããã®ã§ããããããããã¹ããã©ã¯ãã£ã¹ã¿ãããªãã®ã§ã¯ãªããèªèº«ãã©ã®ããã«æèåè·¯ãçµç±ãã¦ããã«è¡ãçããã®ãã¨ããçµé¨è«ãè¨ãã¦ããããã¨æãã¾ãã ã¡ãªã¿ã«ç§ã®JavaScriptåã¯é«ãããã¾ããã®ã§ãããããã»ã»ã»ã jQuery æã ãJavaScript MV(V)Cã¿ãããªãã®ããªãã£ãæ代ãJavaScriptã§ãªãããªãã®ãä½ããã¨ãªãã¨jQueryãDojoã®ãããªä½ã¬ã¤ã¤ã¼ã®ãã¬ã¼ã ã¯ã¼ã¯ã主ã«å©ç¨ããã¦ãã¾ããã ãã®å½æç°¡åãªã·ã³ã°ã«ãã¼ã¸ã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ãã¾ãããç§ã¯jQueryãæ¡ç¨ãã¾
ç¶ç·¨ã®ç´¹ä» ç¶ç·¨ ãã¯ã俺ã®MVCã¯ééãã¦ãã in Backbone.js ãæ¸ããããã£ã¡ã®ã»ããæçãªæ å ±ãä¹ã£ã¦ãã¨æããã©é¢ç½ããªããããããªã 以ä¸æ¬ç·¨ MVC ã®è©±ã¨å®æã®è©±ã¨æ¿æ²»ã®è©±ã¨éçã®è©±ã¯ãã¦ã¯ãããªãããã§ãããããªã®ç¥ãã俺ã¯ããã ã¯ã©ã¤ã¢ã³ããµã¤ã MVC ã®è©± ãããã MVC ã®åºèªã GUI ã¢ããªã±ã¼ã·ã§ã³ã®ããã«çã¾ãã¦ãããã®ãªã®ã§ãã¯ã©ã¤ã¢ã³ããµã¤ã MVCããªã©ã¨è¨ãè¨ãæ¹ãããªããã°ãªããªãç¶æ³ããã§ã«æãã®ã ããã©ãã¾ãããã¯ããã¦ããã ããã¡ã¯ Backbone.js ã使ã£ã¦ãããã MVC ã§ã¯ã©ã¤ã¢ã³ããµã¤ããä½ããã¦ãã¦ä¿å®æ§ãé«ãã§ããã¿ãããªãã¨ãè¨ã人éããã¾ã«ããããBackbone.js ãã¤ãã£ãããï¼ããã㯠Marionette.js ã使ã£ããããï¼ã¨ãã£ã¦èªåçã«ãåã®ã¢ããªã±ã¼ã·ã§ã³ã MVC ã«ãªããã
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ã¯ããã¦Qiitaã§è¨äºãæ¸ãã¦ãã¾ããå æ¥ãNode.js + Express.js + Backbone.jsãã§ãµã¼ãã¨ã¯ã©ã¤ã¢ã³ãã®ä¸¡æ¹ã®ã·ã¹ãã ãæ§ç¯ãã"Rendr"ã¨ããã¦ã§ããã¬ã¼ã ã¯ã¼ã¯ã試ãã¾ãããRendrã¯ãã¢ã¡ãªã«ã§äººæ°ã®ãµã¼ãã¹"AirBnb"ã®ãã¼ã ãéçºãããªã¼ãã³ã½ã¼ã¹ã¨ãã¦å ¬éãããã®ã§ããã¯ã©ã¤ã¢ã³ãå´ã§ã®æ¡ç¨äºä¾ã¯å¢ãã¦ããBackbone.jsã§ããããµã¼ãã§ã®å©ç¨ã¯çããã®ã§ã¯ç¡ãã§ãããããRendrèªä½ãã¾ã æ¥æ¬èªã§ã®ç´¹ä»ä¾ãç¡ãäºããããã·ã¹ãã ãç´¹ä»ãã¤ã¤ã使ç¨æãã¡ãªãããããã¦ãã¡
Backbone.js provides structure to JavaScript applications, but it leaves a lot of design patterns and decisions up to developers who end up running into common problems when they first begin developing in Backbone.js. In this article, Phillip Whisenhunt will explore different design patterns that you can use in your Backbone.js applications, and heâll look at many of the common gotchas that trip u
$(document).ready(function() { $('#collection-view').sortable({ // consider using update instead of stop stop: function(event, ui) { ui.item.trigger('drop', ui.item.index()); } }); }); The stop event is bound to a function that triggers drop on the DOM node for the item with the item's index (provided by jQuery UI) as data. Item view Application.View.Item = Backbone.View.extend({ tagName: 'li', cl
ææ¢ã«ãMVCãã¬ã¼ã ã¯ã¼ã¯ã®å³è§£ã試ã¿ãã®ã§ãã©ããï¼ MVCã®åæ© MVCã¨ããè¨èãåãã¦ç»å ´ãã¦ãã30年以ä¸ãã£ãä»ãææ©ãªãã ã£ãã®ãåãããªãã»ã©MVCã®å®ç¾©ã¯æ··è¿·ããããã¦ããããã ããã©ããMVCã§MVVMã§MVPã§ããã¨ããå®ç¾©ã«ã¤ãã¦ããããèå¯ããã®ã¯å人çã«ã¯å¥½ãã§ãªãã¦ããçµå±ä½ããããã®ããã¨ããåæ©ãã¶ãã¦ããªããã°ä½ã§ãè¯ãã¨æã£ã¦ããã ãããããã¯ä¸ä½ä½ãªã®ãã¨ãããã¨ãèªåãªãã«èãã¦ã¿ãã¨ããã次ã®ä¸è¨ã«è½ã¡çããã ãModelã¯Viewã«ä¾åããããªãã ä¸éçã«ã¯ï¼ï¼ï¼Modelã¨Viewãåã«ãåãããã¨èª¬æããããã¨ãå¤ãããç§ã¯ããã ãã§ã¯ç´å¾ãã¦ããªãã¦ãä¾åã®æ¹åãããéè¦ã ã¨æã£ã¦ããããã¨ãåããã¦ããããã«è¦ãã¦ãModelãViewãåç §ãã¦ããããæ å ±ã®åå¾å ã表ç¾æ¹æ³ã¯åºå®åããã¦ãã¾ãã Modelã¯Viewã®äºæ ãã
追è¨ï¼ï¼ä»¥ä¸ã®å 容ã¯ãæ´æ°ç³»ã§ãã¾ãåããªãå¯è½æ§ãããã®ã§ããäºæ¿ãã ãããä¿®æ£ã§ãããç´ãã¾ãã 追è¨ï¼ï¼hasOneå´ã¯ç»é²ã»æ´æ°ã¾ã§ã®åä½æ¤è¨¼ãã§ããã 追è¨ï¼ï¼hasManyå´ãåä½æ¤è¨¼ã§ãããã®ã§ããã¡ãããããã§çµããã ãããã¨ãbackbone.jsã«ãç±ãªããã§ããã Rails3ã«backbone.jsãå°å ¥ãã backbone.jsã§ajaxã®ãªã¯ã¨ã¹ãå ãå¥ã®Hostã«ããæ¹æ³ backbone.jsã§fetch()ã§ãsave()ã§ãã¨ã«ããã¨ã©ã¼ãã³ãã©ãçºç«ãã¦ãã¾ãã rails3 + backbone.jsã§ãã¼ã¿ã®ããåããããããã«ã ã¨ããçµç·¯ã辿ã£ã¦æ¥ã¾ãã¦ã次ã«ã¯ã©ã¤ã¢ã³ããµã¤ãï¼backbone.jså´)ã«ããªã¬ã¼ã·ã§ãã«ã®æ¦å¿µãå°å ¥ãããã¨ã ã§ãbackbone-relationalã¨ãããã©ã°ã¤ã³ãå°å ¥ãããã¨ã«ããã https:/
Backbone-relational Tutorial - Nested Models With Backbone.js Introduction Backbone.js Backbone.js allows to implement the whole MVC pattern on the client, leaving the server to do what he knows best: exposing a set of well-defined REST interfaces, which the client queries when he needs to fetch or update some information. No need to split the HTML rendering between the server templates and the cl
backbone.marionettegithub.com/marionettejs/backbone.marionette Backboneã§ä½¿ããç´°ããé¨åãã³ã³ãã¼ãã³ãåãã¦åå©ç¨å¯è½ã«ããã³ã³ã»ããã㪠ãªã©ã¤ãªã¼æ¬ã§ã説æãï¼ç« ãã£ãã®ã§å¾ã§è¦ã¦ã¿ã addyosmani.github.com/backbone-fundamentals/#backbone.marionette å ¸åçãªrenderã¨ãã¯æ¸ããªãã¦ãæ¸ãã¦ããã®ã§ã³ã¼ããæ¸ãéãæ¸ãããã¾ã³ãViewã¨ããããã¡ã¢ãªç®¡çã®åé¡ãRegionã¨ããæ¦å¿µã§ãã¾ãå¦çããLayoutã¨ããUIãå®ç¾©ããViewãçµã¿åããããã¨ã§å¯èªæ§ãé«ããªãCompositeViewã§é¨ååããã§ææããã¦ãã®ã¯å¤åãããªæã ä¼¼ããããªã³ã¼ããããããçç£ãããããªå ´åã¯çç£æ§ããããã®ãã ã°ãã°ãã§ããã©ã13åããããã
Mackbone.Modelã®æ´¾çã¯ã©ã¹ã¯ãããã©ã«ãã§Ajaxã«ãããµã¼ãã¨ã®é£æºãã§ããã åã®ã¨ã³ããªã§ãæ¸ããã®ã ãã©ãfetch(), save(), destory()ãã®3ã¤ã®ã¡ã½ããã使ãã ãã®ï¼ã¤ã®ã¡ã½ãããããBackbone.sync()ãå¼ã°ãã$.ajax()ç¨ã«ãªãã·ã§ã³å¦çãããããã®ä¸ã§ã¯ãµã¼ãã¼å´ã¢ããªã±ã¼ã·ã§ã³ã®è¦ä»¶ã«å¿ãã¦ãBackbone.emulateHTTPãBackbone.emulateJSON ã¨ãããã©ã°ãæ´»ç¨ããå¤ãå®è£ ã§ã®ã¢ããªã±ã¼ã·ã§ã³ã«ã対å¿ããããããæ§åã Modelã«å®è£ ãããããµã¼ãã¼é£æºç¨ã¡ã½ããã¯ï¼ã¤ã model.fetch() ãµã¼ãã¼ããèªããmodel.save() ãµã¼ãã¼ã«æ¸ãè¾¼ããmodel.destroy() ãµã¼ãã¼ããåé¤ããã ãã®ï¼ã¤ã¯ãModelã®æ´¾çã¯ã©ã¹ã«sync() ãå®è£ ããå ´åã¯ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}