IT |
ビジネス+IT 最新ニュース |
数値化しにくい仕事の目標設定、『数値化の鬼』安藤広大氏が「識学 総務部」を例に解説 |
https://www.sbbit.jp/movie/12784?ref=rss
|
数値化しにくい仕事の目標設定、『数値化の鬼』安藤広大氏が「識学総務部」を例に解説『数値化の鬼』の著者・安藤広大氏は、仕事の目標や成果を「数値化」することが「仕事ができる人」になるための方法であると述べています。 |
2022-09-06 06:00:00 |
海外TECH |
DEV Community |
Colored logs in Flutter application with Talker |
https://dev.to/frezyx/colored-logs-in-flutter-application-with-talker-2d25
|
Colored logs in Flutter application with TalkerHello everyone This is a long awaited continuation of the series of articles about the Talker library In this post I will tell you how to customize colors and text of your logs using this beautiful library Let s do this Base logs Create application or open an existedYou can create dart console or flutter application Talker is based only on dart without flutter sdk dependency therefore you can use this package everywhere For example I create default dart console application Add talker dependency in pubspec yamldependencies talker Init talker in main file of application and make simple logs in main methodimport package talker talker dart final talker Talker void main talker error It looks like this button is not working talker info The food for lunch has already arrived talker warning Something bad has happened but the app is still working With this code the output will be as shown belowIt already looks good Talker can display types of logs by default But that may not be enough Good talker have solution for this cases too Custom logsFor example our application can work with server side backend code via http requests And we need to show http logs with different color to highlight them in the total list of messages For make custom http logs talker have TalkerLog class that you can extends with your realization class HttpLog extends TalkerLog HttpLog super message OK but how to highlight this log with a specific color You can override pen field of your TalkerLog heir class class HttpLog extends TalkerLog HttpLog super message override AnsiPen get pen gt AnsiPen cyan And in main function call talker logTyped methodvoid main talker logTyped HttpLog Http response class HttpLog extends TalkerLog HttpLog super message override AnsiPen get pen gt AnsiPen cyan This code will show message like example bellow More customization ️Like simple example we can override title field and generateTextMessage methodtitle Default message title That used for console output and messages filtering generateTextMessage this method creates log messages before you see it in output console With this method you can format your messages as you want Let s see in examplevoid main talker logTyped HttpLog User id is loaded data userId class HttpLog extends TalkerLog HttpLog String message this data super message final dynamic data override AnsiPen get pen gt AnsiPen cyan override String get title gt HTTP override String generateTextMessage var msg displayTitle message if data null final prettyData encoder convert data msg nDATA prettyData return msg This code will show message like example bellowWith talker you can customize a lot of other things The article format is not enough for the entire description If you are interested you can look at the detailed examples in the project repository ️Thank you for reading post Article example source code here And keep expecting posts about other talker chips Believe me there are a lot of them left |
2022-09-05 20:23:25 |
海外TECH |
DEV Community |
How to undo a git pull |
https://dev.to/smpnjn/how-to-undo-a-git-pull-b88
|
How to undo a git pullHave you ever been working on a project ran a git pull only to realise you ve majorly messed up Now all your code has been overwritten with whatever was in your remote repository and sometimes this isn t what you want In times like this it s easy to panic but fortunately there are a few ways to revert your code back to its old state and undo the git pull First things first make a copy of your project in case you cause things to get worse Also note that these commands will cause you to lose all uncomitted changes so a backup can help you save that stuff before you continue At least then you ll have the version you currently have After you ve done this backup you ll want to get a list of all your commit history You can do this by running git reflog git reflogThis will generate a list that looks like this e HEAD gt master origin master HEAD commit Design refreshbee HEAD commit Minor CSS tweaksaf HEAD commit Fixed extra curly bracebba HEAD commit fixed border radiusad HEAD commit fixed image border radiusabfa HEAD commit updated look and feelSelect the version you want to revert to For example if I wanted to revert to Minor CSS tweaks I d select the ID bee Next run the following command to revert your repository to that verson git reset hard beeThis is quite easy and gives you a lot of control over which version you recover However another easier way to do this is to give a time If you don t want to run git reflog you can run the following command to revert to the version of your repository as it was mins ago assuming your branch is master Note if you have been working on a specific branch for a long time this may revert you back quite far In that case you might be better using the previous method but you should be fine if you have a backup git reset hard master minutes ago |
2022-09-05 20:09:27 |
海外TECH |
DEV Community |
PHP+Nginx+Docker |
https://dev.to/walternascimentobarroso/phpnginxdocker-nih
|
PHP Nginx DockerAt one time or another I have to create a project from scratch but sometimes I end up wasting a lot of time just creating the environment so to make it easier I ll leave something ready with php and nginx using docker ReadmeStart by adding a README to the project and as the project progresses you will edit it until it looks really cooltouch README md MakefileNow let s organize docker in a folder for that we will use the Makefiletouch Makefile Docker composerAnd let s create a docker folder and inside it for now only the docker composer yml filemkdir docker amp amp touch docker composer ymlIn my docker compose yml we will only have nginx and php fpm for nowversion name defaultservices nginx default container name nginx default image nginx ports volumes default conf etc nginx conf d default conf var www links php default php default container name php default build php working dir var www volumes var wwwRemembering that I like to rename the container s name to have a certain organization in this one as the project is default I ll leave imagename defaultRemembering that if you put a env file with the project name avoid creating orfan containersCOMPOSE PROJECT NAME mvcIf you prefer I prefer add the name to your project and it becomes simpler and more organized NginxOne more configuration is the default conf that we will also put in the docker folderserver listen server name default localhost error log var log nginx error system default log access log var log nginx access system default log root var www public index index html index htm index php charset utf location try to get file directly try it as a directory or fall back to modx try files uri uri mod rewrite location mod rewrite including in second rewrite argument causes nginx to drop GET params so append them again rewrite index php route You may need this to prevent return recursion location html internal location php try files uri fastcgi split path info php fastcgi pass php default fastcgi read timeout fastcgi index index php include fastcgi params fastcgi param SCRIPT FILENAME document root fastcgi script name fastcgi param PATH INFO fastcgi path info Remembering that I m changing the names to default Xdebug and ComposerAs I like to debug with xdebug so I ll leave it ready together with composer so that the php dockerfile looks like this Image and versionFROM php fpm Call PHP images script docker php ext install and install language extensionsRUN docker php ext install pdo mysql copy the Composer PHAR from the Composer image into the PHP imageCOPY from composer usr bin composer usr bin composer Install xdebugRUN pecl install xdebug amp amp docker php ext enable xdebugCOPY xdebug ini usr local etc php conf d xdebug iniand the xdebug ini file that will be copied to the container xdebug xdebug mode debugxdebug start with request yesxdebug client host host docker internalBefore finishing let s adjust the make looking like this up docker compose up dstop docker compose stopdestroy docker compose downbuild docker compose up build dHere s a little secret as the docker project is in a separate folder so for the makefile to find we can simply create a env file and add our la file looking like this DockerCOMPOSE FILE docker docker compose yml Composer jsonand finally let s create a composer json file just to inform that I use psr so the autoload is ready autoload psr App app and let s create an index php just to see if everything is working fine remembering that as in the nginx configuration file I am looking for a folder called public so we have to create it in the public foldermkdir public amp amp touch index phpand in index php we will have lt phprequire DIR vendor autoload php phpinfo Conclusionnow we just have to domake buildmake composer Extras gitignorebefore submitting the project to git remember to add a gitignore file and inform the vendor foldertouch gitignoreand as I always use vscode I will also inform the folder that it automatically generatesvendor vscode EditconfigI also like to use the editorconfig but before using it I like to activate the format on save of vscode First go to vscode settingsCode gt Preferences gt Settings e ative a função “Format on Save And finally install the editorconfig extension For now we are going to use this configuration LICENSEfinally as this project is open I will leave the license as MIT ProjectIf you want to use this project as a template for your next projects go to Thanks for reading If you have any questions complaints or tips you can leave them here in the comments I will be happy to answer See you Support MeYoutube WalterNascimentoBarrosoGithub WalterNascimentoBarrosoCodepen WalterNascimentoBarroso |
2022-09-05 20:01:23 |
Apple |
AppleInsider - Frontpage News |
Prices slashed: save up to $500 on these 14-inch & 16-inch MacBook Pros |
https://appleinsider.com/articles/22/09/05/prices-slashed-save-up-to-500-on-these-14-inch-16-inch-macbook-pros?utm_medium=rss
|
Prices slashed save up to on these inch amp inch MacBook ProsAs iPhone season approaches with this week s Apple Event B amp H Photo is pulling out all the stops by slashing inch and inch MacBook Pros by up to Grab the cheapest prices on record on numerous M Pro and M Max models The cheapest prices on record deliver up to in savings on inch and inch MacBook Pro models Who says September is reserved for iPhones Apple Authorized Reseller B amp H Photo has emphatically declared it MacBook Pro season too thanks to exclusive markdowns on numerous M Pro and M Max configurations with savings of up to off when you shop through the pricing links below from a laptop or desktop computer Read more |
2022-09-05 20:17:46 |
Apple |
AppleInsider - Frontpage News |
What to expect from Apple's iPhone 14 event on September 7 |
https://appleinsider.com/articles/22/08/13/what-to-expect-from-apples-september-iphone-14-event?utm_medium=rss
|
What to expect from Apple x s iPhone event on September Apple s Far Out event is on September Beyond the new iPhone here s what to expect from September s Apple event ーand beyond Regular as clockwork Apple takes time in the fall to launch a swathe of new products intended for consumers to buy during the following holiday shopping period As a very lucrative time of year for the company Apple puts a lot of effort into its fall events showing off as many new items as possible While primarily centered on its iPhone product line Apple does take time to look at other complementary products and services Read more |
2022-09-05 20:05:06 |
海外TECH |
Engadget |
Thousands of Google's cafeteria workers 'quietly unionized during the pandemic,' report says |
https://www.engadget.com/thousands-of-google-cafeteria-workers-unionized-during-the-pandemic-200040902.html?src=rss
|
Thousands of Google x s cafeteria workers x quietly unionized during the pandemic x report saysSince the start of the COVID pandemic of people who work in Google s cafeterias have joined unions according to a new report in The Washington Post According to the report “about percent of total food services workers at Google are now unionized nbsp That number is particularly significant as the company s cafeterias like many of its peers are overwhelmingly staffed by contract workers who don t get the same benefits as full time employees Contractors across the company have pushed for higher wages and increased protections in recent months Cafeteria workers at Google s Atlanta office could soon be the latest to join the ranks of unionized workers Workers employed by a contracting firm called Sodexo reportedly told their manager they plan to unionize and Sodexo said they would not block the move if “a majority of workers supported it It s unclear when an official agreement may be reached but a spokesperson for Unite Here the union representing Google s cafeteria workers told The Post they were “hopeful that we can quickly reach an agreement on a union contract Other cafeteria workers at Google have already seen significant benefits since joining Unite Here According to The Post “the average unionized worker at a Google cafeteria makes an hour pays little to nothing for health insurance and has access to a pension plan By contrast the Sodexo workers in Atlanta make an hour and can spend “hundreds on health insurance |
2022-09-05 20:00:40 |
ニュース |
@日本経済新聞 電子版 |
個人、外貨定期預金が大幅増 ソニー銀行は金利10倍超に
https://t.co/UvMD5AHOVL |
https://twitter.com/nikkei/statuses/1566885050611773440
|
定期預金 |
2022-09-05 20:24:42 |
ニュース |
@日本経済新聞 電子版 |
ホンダ「ワイガヤ」の次探れ 工場との壁除き創造力再生
https://t.co/3hOKrTBPdc |
https://twitter.com/nikkei/statuses/1566880024216891392
|
工場 |
2022-09-05 20:04:43 |
ニュース |
BBC News - Home |
Liz Truss vows energy crisis action ahead of first day as PM |
https://www.bbc.co.uk/news/uk-politics-62795383?at_medium=RSS&at_campaign=KARANGA
|
action |
2022-09-05 20:33:39 |
ニュース |
BBC News - Home |
Saskatchewan stabbings: Suspects still at large, police say |
https://www.bbc.co.uk/news/world-us-canada-62802030?at_medium=RSS&at_campaign=KARANGA
|
degree |
2022-09-05 20:38:44 |
ニュース |
BBC News - Home |
Olivia Pratt-Korbel: Police in fresh vow to identify girl's killer |
https://www.bbc.co.uk/news/uk-england-merseyside-62722937?at_medium=RSS&at_campaign=KARANGA
|
killers |
2022-09-05 20:41:16 |
ニュース |
BBC News - Home |
Government closes in on energy rescue plan |
https://www.bbc.co.uk/news/business-62801913?at_medium=RSS&at_campaign=KARANGA
|
bills |
2022-09-05 20:15:36 |
ニュース |
BBC News - Home |
Priti Patel to step down as home secretary, ahead of new PM |
https://www.bbc.co.uk/news/uk-politics-62799583?at_medium=RSS&at_campaign=KARANGA
|
truss |
2022-09-05 20:06:35 |
ニュース |
BBC News - Home |
US Open: Iga Swiatek fights back to set up Jessica Pegula quarter-final |
https://www.bbc.co.uk/sport/tennis/62790763?at_medium=RSS&at_campaign=KARANGA
|
US Open Iga Swiatek fights back to set up Jessica Pegula quarter finalTop seed Iga Swiatek avoids a US Open upset by recovering to beat unseeded Jule Niemeier and reach the quarter finals in New York |
2022-09-05 20:39:56 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【スクープ】セブン&アイ、リコー…IRジャパンが経営陣と株主の紛争で荒稼ぎした「企業名と金額」 - インサイダー IRジャパンの凋落 |
https://diamond.jp/articles/-/309031
|
|
2022-09-06 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
英首相にトラス氏、リバタリアンに待ち受ける難題 - WSJ発 |
https://diamond.jp/articles/-/309269
|
首相 |
2022-09-06 05:23:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
三菱商事と鹿島建設が「巨額赤字」を押し付け合う洋上風力プロジェクトの舞台裏 - 沈むゼネコン 踊る不動産 |
https://diamond.jp/articles/-/309042
|
三菱商事 |
2022-09-06 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
銀行・商社で今、重用される「意外な職種」とは?凄腕ヘッドハンターに聞く! - 出世・給料・人事の「新ルール」 |
https://diamond.jp/articles/-/308637
|
新ルール |
2022-09-06 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
過去最大級の不動産入札「大手町プレイス」最有力の外資が一転!新・本命の国内2陣営とは? - 沈むゼネコン 踊る不動産 |
https://diamond.jp/articles/-/309041
|
過去最大級の不動産入札「大手町プレイス」最有力の外資が一転新・本命の国内陣営とは沈むゼネコン踊る不動産東京駅近くの超高層ビル「大手町プレイス」を巡る争奪戦が数日後にクライマックスを迎える。 |
2022-09-06 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
シダックスがオイシックスによるTOBに急転直下の反対表明、裏に「ある外食大手」の横槍 - Diamond Premium News |
https://diamond.jp/articles/-/309257
|
シダックスがオイシックスによるTOBに急転直下の反対表明、裏に「ある外食大手」の横槍DiamondPremiumNewsシダックスは日、食品宅配のオイシックス・ラ・大地による株式公開買い付けTOBに反対すると発表した。 |
2022-09-06 05:07:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「仕事を押しつけられた!」と部下に思われないよう、上司が絶対知るべき3つの注意点 - 編集長厳選!無敵のリーダーになるための5冊 |
https://diamond.jp/articles/-/307766
|
部下 |
2022-09-06 05:05:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
【参加者募集】Do! Solutions Webinar「ブランド課題解決のためのアニメ・キャラクターコンテンツ活用の今と未来」9月29日開催 |
https://dentsu-ho.com/articles/8321
|
dosolutions |
2022-09-06 06:00:00 |
ビジネス |
電通報 | 広告業界動向とマーケティングのコラム・ニュース |
ベイビーボイスを使って、赤ちゃんになって泣いてみた。 |
https://dentsu-ho.com/articles/8319
|
赤ちゃん |
2022-09-06 06:00:00 |
北海道 |
北海道新聞 |
留宗暴風、6日夕から7日高波に警戒を 台風で気象台説明 |
https://www.hokkaido-np.co.jp/article/726652/
|
非常に強い台風 |
2022-09-06 05:01:00 |
ビジネス |
東洋経済オンライン |
厚切りジェイソンを非難する投資家は危機的だ 他人の儲け話にすぐ乗りたがる人の深刻盲点 | 投資 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/614932?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
上岡正明 |
2022-09-06 05:30:00 |
コメント
コメントを投稿