python |
Pythonタグが付けられた新着投稿 - Qiita |
pandas dataframeの結合、分割をしてみた |
https://qiita.com/yutaka_m/items/3afe921d8908bc42b750
|
nstest |
2022-09-18 21:00:12 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
MiniSearch を読んでみる ① |
https://qiita.com/YmBIgo/items/e6a68852237ad56d7a25
|
minisearch |
2022-09-18 20:25:17 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
ソリューションアーキテクト対策_ElactiCache篇 |
https://qiita.com/sosat/items/109e302841891fd2ed7a
|
memch |
2022-09-18 20:16:09 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Windows環境でdevcontainerにほぼ引き篭れる構成を作った |
https://qiita.com/kitamin/items/1987c843b616500100bb
|
devcontainer |
2022-09-18 20:54:52 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
Cloud Runでインフラを構成したときのメモ |
https://qiita.com/BiwaYamada/items/d1b208b3ee7415f6d7da
|
cloudrun |
2022-09-18 20:36:53 |
技術ブログ |
Developers.IO |
東京ゲームショウ2022ビジネスデー(9/15-16)にクラスメソッドが出展しました!ブースのお手伝いと会場の様子まとめ #TGS2022 #東京ゲームショウ |
https://dev.classmethod.jp/articles/tgs2022_report/
|
fujita |
2022-09-18 11:52:53 |
技術ブログ |
Developers.IO |
Amazon Lex のインテントでカスタムコードなしの条件分岐機能がサポートされていました |
https://dev.classmethod.jp/articles/amazon-lex-condition-support/
|
amazon |
2022-09-18 11:13:11 |
海外TECH |
MakeUseOf |
10 Things You Probably Didn't Realize Siri Could Do |
https://www.makeuseof.com/tag/8-things-you-probably-didnt-realize-siri-could-do/
|
assistant |
2022-09-18 11:30:14 |
海外TECH |
DEV Community |
VS Code Shortcuts you Must Know |
https://dev.to/kshitij9896/vs-code-shortcuts-you-must-know-553g
|
VS Code Shortcuts you Must KnowSearch for a File Ctrl P Toggle Comment Block Shift Alt A Find A Word Phrase in current file Ctrl F Select Current Line Ctrl L Toggle Sidebar Ctrl B Delete Current Line Ctrl Shift K Follow kshitijFor More Amazing Stuff |
2022-09-18 11:48:26 |
海外TECH |
DEV Community |
Adobe Buys Figma: What Does this Mean for Web Standards? |
https://dev.to/umeshtharukaofficial/adobe-buys-figma-what-does-this-mean-for-web-standards-2k7g
|
Adobe Buys Figma What Does this Mean for Web Standards When news broke of Adobe acquiring the web based collaborative design tool Figma for about billion ーone of the most significant internet M amp A deals over the past twenty years ーyou could almost hear the anguished cries of web designers the world over Their collective response was best summarized in a brutal tweet by the creator of Three js an open source D JavaScript framework Ricardo Cabello aka mrdoob added in a follow up tweet that “I hope this is the last backstabbing designers need to really start caring about open source options Also in the wake of Figma s sale an open source equivalent called Penpot began trending on Twitter and rose to the top of Hacker News “It s great to see so many new faces the Penpot Twitter account unironically tweeted the following day Will this Impact Web Standards Regardless of what you think about Adobe which has a long history of buying up promising web design companies the Figma acquisition begs the question does this have any impact on the role of web standards in web design tooling After all Figma is one of the most impressive web standards compliant tools in recent memory At the end of last year I named Figma one of my top internet technologies of noting This kind of interactivity used to be only possible using a plug in tool like Flash But Figma is built using web standards and in particular WebGL Web Graphics Library to handle rendering The irony is Flash itself was acquired by Adobe via its then parent company Macromedia in But even in Flash was on a downward curve It was effectively killed off in when Steve Jobs announced that Apple s iPhone platform would no longer support it It was finally discontinued in late and by early web standards reigned supreme in multimedia Figma was the poster child of the post Flash era in internet design ーand now it too has been gobbled up by Adobe It s a bitter pill for Figma users especially since Figma was originally marketed as an open web alternative to Adobe s proprietary desktop tools When Figma was launched in December the TechCrunch angle was that Figma was created to “fight Adobe the permalink includes the phrase “figma vs goliath Then year old Figma co founder and CEO Dylan Field said that Adobe “doesn t understand collaboration and the Adobe Creative Cloud is “really cloud in name only Fighting words for sure…until you get paid billion to lay down your sword The Foundation Is Open SourceMuch of Figma s success was founded on web standards like WebGL and JavaScript and later WebAssembly WebGL Web Graphics Library was especially important in Figma ーand effectively made it into a Flash like experience for users It s a JavaScript API which according to Mozilla documentation enables “D and D rendering in an HTML canvas in browsers that support it without the use of plug ins WebGL is a web standard developed by the Khronos group and has the active support of all the major browser companies To give Figma its due credit the company built an incredible experience for designers on top of those web standards The tooling that Figma created is complex and proprietary ーand apparently now worth billion But importantly the underlying platform remains open For this reason we should thank Figma for helping to popularize the web platform over the past years There was a time when many of us feared that mobile internet and desktop applications from the likes of Apple and Adobe would vanquish the web as a developer platform But in taking on Adobe in the mid s with a fresh new browser based experience Figma showed that the web was far from dead A Web Platform Evens the Playing FieldUltimately we mostly have the big browser companies ーlike Google and Microsoft ーto thank for making the web platform so advanced today Although we mustn t forget the indies like Igalia and indeed Ricardo Cabello s Three js Figma s co founder Evan Wallace could also be counted among the indies now ーhe left Figma at the end of last year and is currently working on an open source JavaScript and CSS bundler called esbuild Can the open source Penpot rise to usurp Figma Who knows but we do know that Adobe skeptical designers will be able to easily port their work to an open source Figma alternative if they wish They might still prefer the user experience and performance of Figma but at least they aren t locked into a proprietary operating system ーand that s the beauty of web standards |
2022-09-18 11:23:42 |
海外TECH |
DEV Community |
Design Patterns in PHP 8: Factory method |
https://dev.to/zhukmax/design-patterns-in-php-8-factory-method-55dd
|
Design Patterns in PHP Factory methodHi In this article I ll show you how to use the Factory Method design pattern with an example Let s say we have a shopping cart class and that class contains methods for caching the cart and for persisting it for a long time It is proposed to cache in RedisDB and save in MySQL class CartModel public array data Better take this settings from special file or env variables but this article not about storing settings private array redisSettings user gt test user password gt password private array mysqlSettings hostname gt localhost login gt test user password gt secret database gt test db We need to implement a cache storage method the Redis DB is better suited for this public function cache void public function save void Here is such a blank class turned out now we need to implement these methods In fact the meaning of each of them is to connect to the desired database and store data about the basket in it Thanks to the Factory Method pattern we will move the common code saving for all classes working with databases into an abstract class And the functionality associated with the connection will be different for each database so we will take it out separately using the common interface abstract class AbstractDataBase A directly factory method that allows subclasses to return any concrete connectors of the desired interface since it is made abstract We will create the interface a little later abstract public function getDataBase DataBaseConnector And this method will be the same for all databases public function save array data void database this gt getDataBase database gt connect database gt save data database gt disconnect Let s implement a concrete class for RedisDB class Redis extends AbstractDataBase php allows you to add private login and password fields using the constructor public function construct private readonly string login private readonly string password Concrete Factory Method Implementation Returns an instance of the connector class that implements the DataBaseConnector interface public function getDataBase DataBaseConnector return new RedisConnector this gt login this gt password About the same way we create a class for the Mysql database class Mysql extends AbstractDataBase Unlike Redis we will need an array of data to connect public function construct private readonly array settings Concrete Factory Method Implementation public function getDataBase DataBaseConnector return new MysqlConnection this gt settings It is with these database classes that we have just created that our basket will work But the interface of connectors as well as they are not written yet Let s fix this omission We will need methods for connecting to the database disconnecting and of course saving data In the future it will be possible to extend the interface with various methods but for now this is enough interface DataBaseConnector public function connect public function disconnect public function save array data void I will not describe the implementations of the RedisDB and Mysql connectors everything can be implemented there quite standardly class RedisConnector implements DataBaseConnector public function construct private login private password throws Exception public function connect void connect method implementation public function disconnect disconnect method implementation public function save array data void save method implementation class MysqlConnection implements DataBaseConnector public function construct private settings public function connect connect method implementation public function disconnect disconnect method implementation public function save array data void save method implementation Everything is ready to be used in the cart methods class CartModel public function cache void try redis new Redis this gt redisSettings user this gt redisSettings password redis gt save this gt data catch Exception e public function save void try mysql new Mysql this gt mysqlSettings mysql gt save this gt data catch Exception e Thanks to the use of the Factory Method pattern we can access various databases inside models such as a shopping cart without worrying about the details of their work connection saving data format disconnect etc We avoid code duplication excessive load on methods and classes creation of divine classes Photo by Patrick Hendry on Unsplash |
2022-09-18 11:12:59 |
Apple |
AppleInsider - Frontpage News |
Crime blotter: Seven charged in $28 million iPhone theft ring |
https://appleinsider.com/articles/22/09/18/crime-blotter-seven-charged-in-28-million-iphone-theft-ring?utm_medium=rss
|
Crime blotter Seven charged in million iPhone theft ringIn the latest Apple Crime Blotter thieves steal from a surfer and head to Apple Store iPhones are taken from handbags in New York and Find My iPhone finds a car with a baby inside Apple Store in Topanga Calif The latest in an occasional AppleInsider series looking at the world of Apple related crime Read more |
2022-09-18 11:09:16 |
海外ニュース |
Japan Times latest articles |
Powerful Typhoon makes landfall in southern Japan as thousands take shelter |
https://www.japantimes.co.jp/news/2022/09/18/national/typhoon-nanmadol-evacuation/
|
Powerful Typhoon makes landfall in southern Japan as thousands take shelterThe weather agency issued rare special warnings for Kagoshima and Miyazaki prefectures ーalerts that are issued only when dangerous conditions seen once in several |
2022-09-18 20:11:39 |
ニュース |
BBC News - Home |
'You just get on with it', Queen told Jacinda Ardern about life as new mother |
https://www.bbc.co.uk/news/uk-62945316?at_medium=RSS&at_campaign=KARANGA
|
mother |
2022-09-18 11:35:31 |
ニュース |
BBC News - Home |
Paul Pogba: Juventus midfielder's brother Mathias detained over alleged extortion plot |
https://www.bbc.co.uk/sport/football/62945056?at_medium=RSS&at_campaign=KARANGA
|
Paul Pogba Juventus midfielder x s brother Mathias detained over alleged extortion plotThe brother of Juventus and France midfielder Paul Pogba is placed under formal investigation and detained over an alleged plot to extort money from the former Manchester United player |
2022-09-18 11:30:06 |
北海道 |
北海道新聞 |
バスケ東海大など2次ラウンドへ 全日本選手権 |
https://www.hokkaido-np.co.jp/article/733037/
|
全日本選手権 |
2022-09-18 20:26:00 |
北海道 |
北海道新聞 |
性の多様性認める社会に 札幌で性的少数者パレード |
https://www.hokkaido-np.co.jp/article/733036/
|
lgbtq |
2022-09-18 20:21:10 |
北海道 |
北海道新聞 |
国内で6万4044人が感染 死者77人、新型コロナ |
https://www.hokkaido-np.co.jp/article/733032/
|
新型コロナウイルス |
2022-09-18 20:07:00 |
北海道 |
北海道新聞 |
日本ハムのリーグ最下位が確定 9年ぶり、北海道移転後2度目 |
https://www.hokkaido-np.co.jp/article/733029/
|
日本ハム |
2022-09-18 20:05:00 |
北海道 |
北海道新聞 |
胆振管内180人感染 新型コロナ |
https://www.hokkaido-np.co.jp/article/733027/
|
新型コロナウイルス |
2022-09-18 20:03:00 |
IT |
週刊アスキー |
舞台は”幕張メッセの地下”?! 遊びながら展示が楽しめる「TOKYO GAME SHOW VR 2022」プレイレポート【TGS2022】 |
https://weekly.ascii.jp/elem/000/004/106/4106030/
|
tokyogameshowvr |
2022-09-18 20:30:00 |
コメント
コメントを投稿