- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
4 Way Technologies is one of the Leading Smart TV App Development Companies in the USA, UK & Australia which design & develops world-class applications for smart TV, Smart TV App Development, TV App Development etc. Our Smart TV Developer develops apps for Smart TV and also for other platforms including Android TV, Apple TV, LG TV, Roku TV etc applications for the leading clients. You can review some of our exciting work from here and you can also meet us in New Jersey state.
https://4waytechnologies.com/technology/smart-tv-app-development

Get Top Apple TV Development services from 4 Way Technologies which works in the designing and development of Apple TV apps and we have top Apple TV Developer provide cutting edge services in the development of Apple TV applications and also in other development platforms be it TVOS Development, TVOS App Development, Apple TV App Development etc. Connect with us to develop your applications and you can also find us in Maryland state and other countries including the USA, UK & Australia.
https://4waytechnologies.com/technology/smart-tv-app-development/apple

下図のような感じのディスプレイ作ろうとしてる人いないですかね。

撮像用途では光ファイバスキャナの研究を見かけたのですが。
ディスプレイでも行けそうですよね
Xの原因だと思っていたものが、実はXの結果であった、という事は結構ありますね。前後即因果の誤謬に近いかな。虚偽の原因の誤謬の一種ですね。
例えば、String <-> NSAttributedString
ruby>>
@objc(S2ASTransformer) class
S2ASTransformer : NSValueTransformer {
override static func
transformedValueClass() -> AnyClass {
return NSAttributedString.self
}
override static func
allowsReverseTransformation() -> Bool {
return true
}
override func
transformedValue( p: AnyObject? ) -> AnyObject {
if let w = p as? String { return NSAttributedString( string: w ) } else { return NSAttributedString() }
}
override func
reverseTransformedValue( p: AnyObject? ) -> AnyObject {
if let w = p as? NSAttributedString { return w.string } else { return "" }
}
}
<<--
こんなの作ってこうやって登録
ruby>>
func
applicationDidFinishLaunching( p: NSNotification ) {
NSValueTransformer.setValueTransformer( S2ASTransformer(), forName: "S2ASTransformer" )
}
<<--
Though currently I am prefer to use CofferScript than Swift, I have thought that the defer of Swift2 is pretty cool. So I wrote a snippet that accomplishes the feature by using yield as like the manner of co is doing.
ruby>>
defer = (g) ->
deferred = []
go = (i) ->
{value,done} = do i.next
unless done
deferred.push value
go i
exit = ->
do f for f in deferred
process.removeListener 'exit', exit
process.on 'exit', exit
try go do g
catch then do exit
foo = (type) -> defer ->
console.log "#{type} 1"
yield -> console.log "#{type} deferred 1!"
yield -> console.log "#{type} deferred 2!"
console.log "#{type} 2"
if type == "exit" then do process.exit
else throw "throw"
console.log "3"
foo "throw"
foo "exit"
RESULTS
throw 1
throw 2
throw deferred 1!
throw deferred 2!
exit 1
exit 2
exit deferred 1!
exit deferred 2!
<<--
ということで、適当なセカンダリで重複を探して予め削除する必要が。
aggregateで探す例)
ruby>>
aggregate([
{:$group => {_id: {user_id:"$user_id", date:"$date"},
uniqueIds: {:$addToSet => "$_id"}, count:{:$sum => 1}}},
{:$match => {count: {:$gt => 1}}}],
allowDiskUse: true)
<<--
WiredTigerが非常に素晴らしいのですが、設定ファイルが
/etc/mongod.conf
/var/lib/mongodb/WiredTiger.basecfg
/var/lib/mongodb/WiredTiger.config
のように沢山あって結構ややこしいです。
基本的には 1. はmongodbの初回起動時だけ有効で、3. が次回以降の再起動で反映されるものになります。
さらに、mongodbを動かしたままWiredTigerの設定だけ変更したい場合は、
mongoのコンソールから
js>>
db.adminCommand({setParameter:1, wiredTigerEngineRuntimeConfig:"c
ache_size=8G"})
<<--
のように修正できるようです。パラメータ名は 2. のファイルの中身が参考になります。
これによって内部的にはWT_CONNECTION::reconfigureが実行される模様。
修正したら、次回来起動した場合に備えて 3. も書き換えておくと良いでしょう。
たびたび見失ってGoogleで探すのに苦労するので道標的に。
二人前の分量です。
- スペルト小麦(farro)80g セミペルラート(半精麦)
- にんにく一片
- 鶏もも肉150g (皮、脂肪を除いた重さ)
- 白ワイン(辛口)100cc
- オリーブオイル 25g (エクストラバージン)
- ローリエの葉1枚
- 固形ブイヨン1/2
- 厚切りベーコン50g
- パルミジャーノチーズ 10g
- バター 10g
- タイム一振り
- エシャロット 1本
- 人参1/3ぐらい
- 塩コショウ 適量
手順
スペルト小麦を冷たい水に浸して30分放置し、ザルなどで水を切って流水で洗う。鍋に1リットルの水を入れ、スペルト小麦、にんにく、ローリエを入れて沸騰させ、とろ火にして45分ほど煮込む。
鶏もも肉の皮と脂肪を取り除き、人参とともに1cm角ほどのサイコロ状に切る。エシャロットはみじん切りにする。
煮込み終わったスペルト小麦をザルなどで水切りし、ボールに移してオリーブオイルを加えて混ぜ、冷ます。
ベーコンを棒状に切り、フライパンで油が出るまで過熱し、鶏肉、人参、エシャロットを加えて4分間ほど中火で過熱する(人参にしっかり火を通す)
白ワインを加えて沸騰させ、ブイヨン、塩、スペルト小麦を加えて手早くかき混ぜる。
フライパンに蓋をしてとろ火で5〜10分ほど煮詰める。
バター、パルミジャーノチーズを削り入れ、リゾット状になるように混ぜる
タイムを一振り、塩、胡椒で味を整える。
皿に盛りつけて完成