TECH |
Engadget Japanese |
「わがまま」に至高の一杯を作りたい ~鹿児島豚骨ラーメン麺屋剛 東郷剛の夢~ |
https://japanese.engadget.com/ramen-menyago-105026461.html
|
」麺屋剛めんやごうを運営する株式会社剛一家の東郷剛氏は年、そう思い立ちました。 |
2022-01-17 10:50:26 |
TECH |
Engadget Japanese |
トム・ホランド主演『アンチャーテッド』2022年2月18日に日米同時公開決定 |
https://japanese.engadget.com/uncharted-movie-100743536.html
|
uncharted |
2022-01-17 10:07:43 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] PayPayほけん、加入者急増 「コロナ見舞金」好評 |
https://www.itmedia.co.jp/business/articles/2201/17/news163.html
|
itmedia |
2022-01-17 19:36:00 |
TECH |
Techable(テッカブル) |
表参道の屋外広告枠をNFTで販売! ドコモ・電通共同出資のLIVE BOARDら実証実験 |
https://techable.jp/archives/171281
|
bridges |
2022-01-17 10:20:53 |
AWS |
AWS Japan Blog |
週刊AWS – 2022/1/10週 |
https://aws.amazon.com/jp/blogs/news/aws-weekly-20220110/
|
この機能を利用すると、EMRStudioのデータカタログを参照しEMRクラスタに対してSQLクエリを実行することが容易になります。 |
2022-01-17 10:53:04 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
OpenCVでRGB画像と2値化画像を連結させて表示したい |
https://qiita.com/zebracrypto7/items/96e4b5357a961f775e00
|
imgbinarycvcvtColorimgbinarycvCOLORGRAYBGRすなわち、先ほどの「間違ったコード」を正しく修正したものは以下のようになります。 |
2022-01-17 19:53:47 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
MacのPythonで音声データを扱う:PyAudio環境構築メモ |
https://qiita.com/loveshioya/items/556380a66ba3eaf11204
|
わかったこと・Audioデータの録音と再生にはPyAudioモジュールが使える・PyAudioモジュールは、PortAudioというソフトのPython用インターフェース・要するに、PortAudioを入れて、その後PyAudioを入れると良さそう参考にしたページbrewinstallportaudio実行するとエラーでした。 |
2022-01-17 19:09:22 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
bottleでresponseを返すとき日本語を含めたい場合 |
https://qiita.com/mao110210/items/16c37d22297ff6bf9338
|
対応手法厳密には解決したわけではないので対応としているが、以下のようにURLエンコードをかけてパースすることで対応した。 |
2022-01-17 19:00:41 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【Chrome】ServiceWorkerを今度こそ決定的かつ完全に消去する |
https://qiita.com/rana_kualu/items/eb81e7ad03257f6784da
|
そもそも作者自身がアドオンのソースコードを確認する方法を提供していますからね。 |
2022-01-17 20:00:09 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
振り返り⑧(AWSセキュリティグループの設定をしよう!) |
https://qiita.com/dq_amiri_fukuwamori/items/0d9339217cb7ae1bc3dc
|
OMG…なので、他のインスタンスと紐付いているので、削除していいかK池さんに確認が必要になり、今日の作業はここまでとなりました。 |
2022-01-17 19:59:29 |
golang |
Goタグが付けられた新着投稿 - Qiita |
golangのinterface |
https://qiita.com/ryo-0213/items/01a55192eac81869307d
|
実装FooインターフェイスHogeまず初めに実装部分のFooにメソッドを定義するmaingofuncfFooFuncAfuncfFooFuncBHogeインターフェイスが持っているメソッドと同じ名前のメソッドを構造体Fooに実装する。 |
2022-01-17 19:23:04 |
海外TECH |
DEV Community |
What is .env ? How to Set up and test a .env file in Node? |
https://dev.to/nermineslimane/what-is-env-how-to-set-up-and-test-a-env-file-in-node-18bl
|
What is env How to Set up and test a env file in Node What are environment variables Environment variables offer information on the process s operating environment producton development build pipeline and so on Environment variables in Node are used to store sensitive data such as passwords API credentials and other information that should not be written directly in code Environment variables must be used to configure any variables or configuration details that may differ between environments Environment variables are already included in the Node js ecosystem which gives them a significant benefit over alternative configuration choices such as a config js or config json file Environment variables especially when used in conjunction with automation such as a build pipeline allow you to avoid doing unpleasant things like scripting configuration files Now let s dive in some coding and practice How to Set up and read a env file The dotenv package for handling environment variables is the most popular option in the Node js community You can create an env file in the application s root directory that contains key value pairs defining the project s required environment variables The dotenv library reads this env file and appends it to process env Please do not save your env file on your computer In five easy steps we ll update gitignore create a env file and read it Add env to gitignore Commit the changes to your repositorygit add gitignoregit commit m Adding env to gitignore Install npm package dotenvnpm i dotenvIt s time to use our env variablesAdd some variable to your env file for exemple we re going to add a status for our nodejs app and define two different ports one for development status and one for production Then in our entry point we re testing if the STATUSis production we re going to use the PROD PORT else we re using the DEV PORTRun the applicationChange the status variable in your env and see what happens It is excellent practice to document the env file with an example The env file should be particular to the environment and not checked into version control This env example file documents the application s necessary variables and can be committed to version control This serves as a helpful reference and speeds up the onboarding process for new team members by reducing the amount of time spent digging through the coding to figure out what needs to be set up This is an example of a env example Environment variables STATUS production Development portDEV PORT Production portPROD PORT DB CONFIGHOST db hostUSER rootPASSWORD db passwordDB db nameDIALECT mysqlThanks for reading and if you have any questions use the comment function |
2022-01-17 10:30:31 |
海外TECH |
DEV Community |
Copy any code snippet in a click as never before 😲 |
https://dev.to/basharath/never-seen-way-of-copying-text-or-code-snippets-2mb8
|
Copy any code snippet in a click as never before We often copy text or code snippets or any other kind of resource quite commonly while browsing the web Copying sometimes got to be tedious work in certain situations Using keyboard shortcuts quite often for various tasks is found to be a great time saver in the long run But certain people who are not much used to a keyboard like using the mouse for all their small to big activities in the browser Copying and pasting text with the shortcuts Ctrl C and Ctrl V are the world s highly used shortcuts and these shortcuts are known almost to all the people who use a computer Do you remember yourself copying text with Ctrl C C C C C C C typing C multiple times to make sure the text gets copied Sometimes we tend to put a bit more time even with copy shortcuts When you want to copy text just so frequently let s say you want to shift a formatted text from one place to the other and that can be copied only as paragraphs and not as a whole in such situations copying and pasting text with even shortcuts is going to be a very tedious job Not just this case but in any case that involves frequent copying and pasting text gets tedious even with shortcuts So keeping in mind various contexts involved in copying text a small and compact chrome extension is made to Copy Text Easily Using Copy Text Easily CTE extension effectively has the potential to save a lot of time in the long run for those who involve in copying text just so frequently e g Students copying reference details to their journals etc Let s see all the features which this Copy Text Easily extension provides Copy Text Easily extensionBefore getting started to use this Copy Text Extension you need to first install it from the chrome store You can install the extension from this link Copy Text Easily Extension CTE chrome extension has got three modes for copying textParagraph default SentenceCustom Paragraph mode In paragraph mode you can copy the blocks of text by hovering on any block of text you want A small preview of the text that you are going to copy will be displayed for convenience Just clicking on the block of text will get the text copied This mode is very useful for copying blocks of code or code snippets on StackOverflow GitHub etc Sentence mode This is a very unique way to copy sentences from a paragraph By hovering the mouse on and off the paragraph you can see different sentences getting selected to copy the text Whichever sentence you want can be seen in the preview box and just clicking once will get that particular sentence copied to your clipboard This mode is very useful while working with sentences related to writing works Custom mode This is the customized mode to copy any text you want just by selecting Yes just selecting a text will copy the text to the clipboard This is useful in situations when you can want to copy a very specific text when it is not possible with the above previous modes By default the extension will be active on the active browser tab and the mouse hovering will result in the preview of text hovered So to avoid that there s an option to activate this extension on demand by pressing any of Ctrl Alt Shift keys You can select the key at your convenience from the extension keypress options There s even an option to enable or disable the whole extension and the keypress mode Coming to privacy this extension fully runs on your browser locally and doesn t communicate with the outside world It is packed in under KB of pure JavaScript code without any libraries or frameworks If you face any problems with this extension you can try the below methods Reload the page whichever is having a problem Check if the extension is enabled Check if you have enabled the extension to work only on keypress Sometimes Shift and Alt keys might have problems so try to select the Ctrl key if you have problemsAnd that is all about this simple chrome extension to copy the text in a hassle free manner I ll be sharing interesting tips tricks and hacks about web development and technology on Twitter wahVinci and Instagram dev apt follow if you are interested P S This extension is made by me and soon I m going to make a tutorial to create one until then support me by following and sharing this article on Twitter |
2022-01-17 10:22:45 |
海外TECH |
DEV Community |
Imgur API Image Uploader using JavaScript (+ HTML) |
https://dev.to/sh20raj/imgur-api-image-uploader-using-javascript-html-4b1c
|
Imgur API Image Uploader using JavaScript HTML Source See Example Imgur is great for hosting images for free There are other platforms like FileStack Cloudinary and UploadCare but among all Imgur is the best for uploading images because it s free for non commercial usage And there is a simple way to set up the Imgur API to upload images directly from the local disk Here s how to do it Imgur API Image UploaderLet s break it into simple baby steps Step Get the Imgur APIFirst of all you will have to register your application with the Imgur API Go to the API page and register an application It should look like the below screenshot Fill in the following details in the respective fields Application name whatever you would like to name itAuthorization type OAuth authorization with a callback URLAuthorization callback URL Application website your website address it s optional Email your email addressDescription however you d like to describe your appAs soon as you submit you will be presented with the Client ID and Client Secret save both somewhere It should look much like the screenshot above Step Create the UploaderWell most of the work is done by now You just have to create an HTML file copy the below code and save And yes don t forget to replace the YOUR CLIENT ID with the real Client ID that you saved in the Step lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta name viewport content width device width initial scale gt lt title gt Imgur API Image Uploader lt title gt lt head gt lt body gt lt img src id img height px gt lt br gt lt input type file id file gt lt br gt lt strong gt lt p id url gt lt p gt lt strong gt lt script gt const file document getElementById file const img document getElementById img const url document getElementById url file addEventListener change ev gt const formdata new FormData formdata append image ev target files fetch method post headers Authorization Client ID YOUR CLIENT ID body formdata then data gt data json then data gt img src data data link url innerText data data link lt script gt lt body gt lt html gt Voila Your Imgur API Image Uploader is ready Try opening the HTML file in your browser and test it out by uploading any image it should return you the URL of the uploaded image That s it And yes either you can run the HTML file in the browser directly from the local disk or you can upload it on Netlify or Github Pages If you ve got any related query feel free to let me in the comments |
2022-01-17 10:20:18 |
海外TECH |
DEV Community |
How to work with configs in Mezon Framework |
https://dev.to/alexdodonov/how-to-work-with-configs-in-mezon-framework-1e74
|
How to work with configs in Mezon FrameworkMezon has it s own routine for working with configs It can be accesed with a set of functions wich are described below This is the way how to start using it in your project composer require mezon confOr get it directly from repo Getting access to the key in config can be done with Conf getValue route defaultValue false function It returns config value with route route and return defaultValue if this key was not found For example value Conf getValue res images favicon Setting values for the config key can be done by calling Conf setConfigValue route value or Conf addConfigValue route value function The main difference between these two functions is that the first one sets scalar key and the second one adds element to the array in config Here is small example Conf setConfigValue res value Value var dump Conf getValue res value displays Value stringConf addConfigValue res value Value Conf addConfigValue res value Value var dump Conf getValue res value displays array gt Value gt Value You also can use typed versions of these methods Conf getValueAsArray Conf getValueAsObject Conf getValueAsString Conf setConfigArrayValue Conf setConfigObjectValue Conf setConfigStringValue You can set multyple values to the config here settings is an associative arrayConf setConfigValues array settings Or you can read config from JSON Conf loadConfigFromJson string pathToConfig If you are not shure that the key exists then you can check it Conf setConfigValue res value Value var dump Conf configKeyExists res truevar dump Conf configKeyExists res falsevar dump Conf configKeyExists res value trueYou can also able to delete config keyConf setConfigValue res value Value Conf deleteConfigValue res value var dump Conf configKeyExists res value falsevar dump Conf configKeyExists res also falseOr clear the entire config Conf clear That s all you need to know about config read write Learn moreMore information can be found here TwitterMezon FrameworkIt will be great if you will contribute something to this project Documentation sharing the project in your social media bug fixing refactoring or even submitting issue with question or feature request Thanks anyway |
2022-01-17 10:17:02 |
海外TECH |
DEV Community |
Taking localization to i18next level |
https://dev.to/tolgee_i18n/taking-localization-to-i18next-level-146a
|
Taking localization to inext levelThe inext library is one of the most popular choices for formatting translations in React applications We decided that we want to improve the experience by offering an easy integration with Tolgee Localization is now uniquely accessible as your translations can be managed through opensource platform without wasting precious Dev time Why inext The inext is very versatile and extensible and supports basically all features that you need from in library I was attracted to inext mostly because it s React extension supports React elements interpolation through Trans component It s basically a way how to use custom elements in translations it s really helpful when you for example need to have a link in the middle of translation Normally you would need to have separate translations and use them like this lt p gt t key lt a href gt t key lt a gt t key lt p gt If we use Trans component we can do this with one translation lt Trans inKey key components Link lt a href gt gt while translation looking like Text lt Link gt Text lt Link gt Text We ll get correct result with link inside This way you can use any React elements and they will just get injected by the translation as child Additional tools for inextThere is also a quite rich family of additional plugins and tools which can be very useful One of them is ICU support for inext which comes in handy as that is go to format for Tolgee Another very useful utilities are static extraction tools which can scan your code and reliably find all keys that you are using in your project This can help you make sure that everything is translated or eliminate unused keys How to integrate with TolgeeWe provide package tolgee inext which provides a bridge for integration So we ll need to install it together with inext ICU parser and tolgee UI npm install inext inext icu tolgee inext tolgee uiimport inext from inext import ICU from inext icu import withTolgee from tolgee inext import UI from tolgee ui withTolgee in apiUrl apiKey ui UI use ICU init lng en supportedLngs en fr Now you can manage your tranlsations through Tolgee platform so anyone can do translate not just Devs You also have the power of in context translatins so when you add new key you can add initial translation directly through your app and quickly take screenshot so everyone knows where the translation is located How it works The withTolgee function is using inext plugin system of backends processors and also attaches event listeners and modifies default settings We use our invisible text technique for marking each translation through inext processor so in context functionality works as expected TLDR Tolgee acts as a translations source using inext for formatting and language management while keeping in context localization working I want to try this We have example applications for React and Vue and play around with them If you connect them with Tolgee platform you can see in context localization in action Read more in our documentation PS Check Tolgee io and give us github starsOriginal article was published on our blog |
2022-01-17 10:01:36 |
Apple |
AppleInsider - Frontpage News |
Apple once more honors Dr. Martin Luther King, Jr. with homepage redesign |
https://appleinsider.com/articles/22/01/17/apple-once-more-honors-dr-martin-luther-king-jr-with-homepage-redesign?utm_medium=rss
|
Apple once more honors Dr Martin Luther King Jr with homepage redesignAs it now traditionally does every year Apple has replaced its homepage to honor civil rights leader Dr Martin Luther King Jr Apple s homepage on January As it did last year in and for several years before Apple s homepage has been changed to a photo of Dr King and a quote Read more |
2022-01-17 10:49:50 |
海外TECH |
Engadget |
The UK Government is reportedly preparing a PR blitz against end-to-end encryption |
https://www.engadget.com/the-uk-government-is-reportedly-planning-ad-campaign-attacking-end-to-end-encryption-101610703.html?src=rss
|
The UK Government is reportedly preparing a PR blitz against end to end encryptionMeta recently said that it would implement end to end encryption in Facebook Messenger and Instagram by despite strong opposition from governments in the UK and elsewhere However the UK Home Office is reportedly planning an ad campaign to mobilize public opinion against end to end encryption using what critics called quot scaremongering quot tactics according to a report from Rolling Stone nbsp The UK government plans to team up with charities and law enforcement agencies on a public relations blitz created by M amp C Saatchi advertising agency the report states The aim of the campaign is to relay a message that end to end encryption could hamper child exploitation online nbsp quot We have engaged M amp C Saatchi to bring together the many organizations who share our concerns about the impact end to end encryption would have on our ability to keep children safe quot a Home Office spokesperson told Rolling Stone in a statement The government has allocated £ for the blitz according to a letter sent from the Home Office in response to a freedom of information request nbsp The campaign may include elements designed to make the public quot uneasy quot according to a slideshow designed to help it recruit non profit coalition partners That includes a proposed stunt with adult and child actors placed in a glass box as it fades to black It also involves a quot social media activation where we ask parents to write to Mark Zuckerberg via their Facebook status quot nbsp One slide noted that quot most of the public have never heard quot of end to end encryption meaning they can quot be easily swayed quot on the subject It also states that the government quot must not start a privacy vs safety debate quot nbsp Privacy advocates called the plans quot scaremongering quot and said that a lack of end to end encryption could have the opposite intended effect quot Without strong encryption children are more vulnerable online than ever Encryption protects personal safety and national security…what the government is proposing puts everyone at risk quot Internet Society s Robin Wilton told Rolling Stone nbsp |
2022-01-17 10:16:10 |
海外科学 |
BBC News - Science & Environment |
Why satellites are key to understanding Pacific volcano |
https://www.bbc.co.uk/news/science-environment-60019423?at_medium=RSS&at_campaign=KARANGA
|
eruption |
2022-01-17 10:05:56 |
ニュース |
BBC News - Home |
Texas synagogue siege: Teens held in UK as Briton named as hostage-taker |
https://www.bbc.co.uk/news/uk-60019251?at_medium=RSS&at_campaign=KARANGA
|
akram |
2022-01-17 10:20:40 |
ニュース |
BBC News - Home |
Pacific volcano: British woman reported missing after Tonga tsunami |
https://www.bbc.co.uk/news/uk-60019056?at_medium=RSS&at_campaign=KARANGA
|
angela |
2022-01-17 10:37:40 |
ニュース |
BBC News - Home |
Channel migrants: Royal Navy set to take over English Channel operations |
https://www.bbc.co.uk/news/uk-60021252?at_medium=RSS&at_campaign=KARANGA
|
government |
2022-01-17 10:33:04 |
ニュース |
BBC News - Home |
Boris Johnson not in danger over parties, says Nadhim Zahawi |
https://www.bbc.co.uk/news/uk-politics-60022022?at_medium=RSS&at_campaign=KARANGA
|
boris |
2022-01-17 10:20:41 |
ニュース |
BBC News - Home |
Credit Suisse boss Horta-Osorio resigns over Covid breaches |
https://www.bbc.co.uk/news/business-60019735?at_medium=RSS&at_campaign=KARANGA
|
quarantine |
2022-01-17 10:34:26 |
ニュース |
BBC News - Home |
Why satellites are key to understanding Pacific volcano |
https://www.bbc.co.uk/news/science-environment-60019423?at_medium=RSS&at_campaign=KARANGA
|
eruption |
2022-01-17 10:05:56 |
北海道 |
北海道新聞 |
北洋銀、北空知信金の店舗内にATM 旭川 |
https://www.hokkaido-np.co.jp/article/634422/
|
北洋銀行 |
2022-01-17 19:19:00 |
北海道 |
北海道新聞 |
売り上げDI、10ポイント上昇 道内10~12月期 2期ぶり改善 |
https://www.hokkaido-np.co.jp/article/634415/
|
北洋銀行 |
2022-01-17 19:13:00 |
北海道 |
北海道新聞 |
コンサドーレ、ガブリエルシャビエル獲得 元名古屋FW |
https://www.hokkaido-np.co.jp/article/634397/
|
北海道コンサドーレ札幌 |
2022-01-17 19:11:37 |
北海道 |
北海道新聞 |
御嶽海は全勝、照ノ富士勝ち越し 2敗は4人、正代5敗目 |
https://www.hokkaido-np.co.jp/article/634413/
|
両国国技館 |
2022-01-17 19:01:00 |
IT |
週刊アスキー |
スマホ向け最新作『BD ブリリアントライツ』初期実装キャラクター21人分のTwitterアイコンをプレゼント! |
https://weekly.ascii.jp/elem/000/004/080/4080519/
|
twitter |
2022-01-17 19:05:00 |
マーケティング |
AdverTimes |
生活に不可欠、決めるのは そごう・西武、企業広告で発信 |
https://www.advertimes.com/20220117/article374268/
|
誰か |
2022-01-17 10:37:12 |
海外TECH |
reddit |
まだ食べられる食品の売れ残りを集め、再販拠点を作るミラノの食品ロスの取り組み |
https://www.reddit.com/r/newsokunomoral/comments/s60wb4/まだ食べられる食品の売れ残りを集め再販拠点を作るミラノの食品ロスの取り組み/
|
ewsokunomorallinkcomments |
2022-01-17 10:24:17 |
コメント
コメントを投稿