python |
Pythonタグが付けられた新着投稿 - Qiita |
KerasのImageDataGeneratorにある画像変形をPreprocessing Layerとして実装する |
https://qiita.com/ppza53893/items/d0005f6b7da8aee7f7fe
|
各効果についてはこちらを参照Transformation効果PreprocessingLayerShift画像をランダムに縦横にシフトRandomTranslationShear指定した範囲内の角度で画像をランダムに引っ張る無しRandombrightness画像の明るさをランダムに変更無しtfimageには有りChannelShift各チャネルに指定したパラメータで加算、加算前の最小値、最大値でクリッピング無しZoomランダムに画像を拡大RandomZoomFlipランダムに画像を縦横に反転RandomFlipShearRandombrigntnessChannelShiftについてはないので、自前で実装します。 |
2022-01-30 00:38:29 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Ruby と Python で解く AtCoder ARC 134 A |
https://qiita.com/superrino130/items/187a63e2e672f0885eef
|
RubyとPythonで解くAtCoderARCAはじめにAtCoderProblemsのRecommendationを利用して、過去の問題を解いています。 |
2022-01-30 00:20:22 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【JavaScript】演算子一覧 |
https://qiita.com/P-man_Brown/items/273663e0b2f512ebf3ed
|
【JavaScript】演算子一覧はじめに本記事は、プログラミング初学者が、学習を進めていて疑問に思った点について調べた結果を備忘録も兼ねてまとめたものです。 |
2022-01-30 00:15:23 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
自作アプリを作成する ユーザー削除 |
https://qiita.com/masatom86650860/items/7fb002c7b71493103042
|
自作アプリを作成するユーザー削除dbmigratetimestampaddadmintousersrbdbmigratetimestampaddadmintousersrbclassAddAdminToUsersltActiveRecordMigrationdefchangeaddcolumnusersadminbooleandefaultfalseendendrailsdbmigratedbseedsrbdbseedsrbメインのサンプルユーザーを人作成するUsercreatenameExampleUseremailexamplerailstutorialorgpasswordfoobarpasswordconfirmationfoobaradmintrueadmin権限をつける追加のユーザーをまとめて生成するtimesdonnameFakerNamenameemailexamplenrailstutorialorgpasswordpasswordUsercreatenamenameemailemailpasswordpasswordpasswordconfirmationpasswordendrailsdbmigrateresetrailsdbseedappviewsusersuserhtmlerbappviewsusersuserhtmlerbltligtltgravatarforusersizegtltlinktousernameusergtltifcurrentuseradminampampcurrentuserusergtltlinktodeleteusermethoddeletedataconfirmYousuregtltendltligtappcontrollersuserscontrollerrbappcontrollersuserscontrollerrbclassUsersControllerltApplicationControllerbeforeactionloggedinuseronlyindexeditupdatedestroybeforeactioncorrectuseronlyeditupdatebeforeactionadminuseronlydestroydefindexusersUserpaginatepageparamspageenddefshowuserUserfindparamsidenddefnewuserUsernewenddefcreateuserUsernewuserparams実装は終わっていないことに注意ifusersaveloginuserflashsuccessようこそ自作アプリへ成功しましたredirecttouserelserendernewendenddefedituserUserfindparamsidenddefupdateuserUserfindparamsidifuserupdateuserparamsflashsuccessProfileupdatedredirecttouserelserendereditendenddefdestroyUserfindparamsiddestroyデータベースから探して削除するflashsuccessUserdeletedredirecttousersurlわからないendprivatedefuserparamsparamsrequireuserpermitnameemailpasswordpasswordconfirmationenddefloggedinuserunlessloggedinstorelocationflashdangerPleaseloginredirecttologinurlendend正しいユーザーかどうか確認defcorrectuseruserUserfindparamsidredirecttorooturlunlessusercurrentuserend管理者かどうか確認defadminuserredirecttorooturlunlesscurrentuseradmin管理者ではない時ホーム画面に移動するendendtestfixturesusersymltestfixturesusersymlmichaelテストデータnameMichaelExampleemailmichaelexamplecompassworddigestltUserdigestpasswordgtadmintrue管理者archernameSterlingArcheremailduchessexamplegovpassworddigestltUserdigestpasswordgtlananameLanaKaneemailhandsexamplegovpassworddigestltUserdigestpasswordgtmalorynameMaloryArcheremailbossexamplegovpassworddigestltUserdigestpasswordgtlttimesdongtuserltngtnameltUserngtemailltusernexamplecomgtpassworddigestltUserdigestpasswordgtltendgttestcontrollersuserscontrollertestrbtestcontrollersuserscontrollertestrbrequiretesthelperclassUsersControllerTestltActionDispatchIntegrationTestdefsetupuserusersmichaelendtestshouldgetnewdogetsignuppathusersnewでgetリクエストassertresponsesuccessリクエストを受けることができましたかendtestshouldredirecteditwhennotloggedindoログイン無しでは編集できないテストgetedituserpathuser編集ページへの移動を要求assertnotflashemptyflashに中身はあるかassertredirectedtologinurlログインページに自動的に移動させるendtestshouldredirectupdatewhennotloggedindoログイン無しでは上書きできないテストpatchuserpathuserparamsusernameusernameemailuseremail情報を上書きするassertnotflashemptyflashに中身はあるかassertredirectedtologinurl自動的にログインページに移動させるendtestshouldredirectdestroywhennotloggedindoassertnodifferenceUsercountdo削除されてデータベースを数えて減ってないかdeleteuserpathuserユーザーを削除するendassertredirectedtologinurlログインページに自動的に移動しているかendtestshouldredirectdestroywhenloggedinasanonadmindologinasotheruserログインさせるassertnodifferenceUsercountdoデータベースの数に違いはないよねdeleteuserpathuser削除するendassertredirectedtorooturlホーム画面に自動的に移動しているかendendtestintegrationusersindextestrbtestintegrationusersindextestrbclassUsersIndexTestltActionDispatchIntegrationTestdefsetupadminusersmichaelnonadminusersarcherendtestindexasadminincludingpaginationanddeletelinksdologinasadmin管理者でログインgetuserspathユーザーページ移動を要求asserttemplateusersindex全ユーザーを表示されているかassertselectdivpaginationhtmlにpaginateが入力されているかfirstpageofusersUserpaginatepage全ユーザーのページを代入firstpageofuserseachdouserページ内から一つずつ取り出すassertselectahrefuserpathusertextusername名前を表示されているかunlessuseradmin管理者でなければassertselectahrefuserpathusertextdeletedeleteを表示されるかendendassertdifferenceUsercountdo削除されているかを確認deleteuserpathnonadmin管理者以外を削除endendtestindexasnonadmindologinasnonadmin管理者以外がログインgetuserspathユーザーページへ移動assertselectatextdeletecountdeleteが表示されていないかを確認endendubuntuenvironmentmyappupdatingusersrailstRunningviaSpringpreloaderinprocessRunoptionsseedRunningEErrorUsersIndexTesttestindexasadminincludingpaginationanddeletelinksNoMethodErrorundefinedmethodemailfornilNilClasstesttesthelperrbinloginastestintegrationusersindextestrbinblockinltclassUsersIndexTestgtrailstesttestintegrationusersindextestrbFinishedinsrunssassertionssrunsassertionsfailureserrorsskipsNoMethodErrorundefinedmethodemailfornilNilClassadminがuserになっていたためだった。 |
2022-01-30 00:52:28 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Rubyのバージョンアップ |
https://qiita.com/aki-engineer/items/095e92308c4187bb3254
|
次に、アップグレードbrewupgraderbenvrubybuild省略省略Prunedsymboliclinksanddirectoriesfromusrlocal次は今アップグレードしたrbenvからインストールできるRubyのバージョンを確認今回は、上から番目のへバージョンアップします。 |
2022-01-30 00:44:09 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Ruby と Python で解く AtCoder ARC 134 A |
https://qiita.com/superrino130/items/187a63e2e672f0885eef
|
RubyとPythonで解くAtCoderARCAはじめにAtCoderProblemsのRecommendationを利用して、過去の問題を解いています。 |
2022-01-30 00:20:22 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Dockerで始めるフィッシングキットの収集・分析 |
https://qiita.com/masaomi346/items/1a216b0cde17ca4be1ce
|
攻撃者の追跡フィッシングキットの収集StalkPhishについてフィッシングキットを展開するときに、フィッシングキットのURLが含まれていることがある。 |
2022-01-30 00:52:32 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Dockerのコマンド |
https://qiita.com/katou02/items/a173db7dae56b25403c1
|
|
2022-01-30 00:39:12 |
golang |
Goタグが付けられた新着投稿 - Qiita |
goでbuffer writeする処理のメモ |
https://qiita.com/greenteabiscuit/items/2887e8d53a65bd12ec1d
|
bufferWriteStringbytesBufferexampleただ、WriteStringはbuffer専用のメソッドのため、他の構造体では使えません。 |
2022-01-30 00:44:29 |
golang |
Goタグが付けられた新着投稿 - Qiita |
Go言語における.envファイルの使い方(viper使用) |
https://qiita.com/toshikinagahama/items/d3b32d595a38b9d396d6
|
envファイルの環境変数の反映gobuildで実行ファイルbinmainを作成したあと、binashexportcatenvgrepvxargsbinmainとすることで、envのファイルを表示させて実行してくれる。 |
2022-01-30 00:32:37 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
自作アプリを作成する ユーザー削除 |
https://qiita.com/masatom86650860/items/7fb002c7b71493103042
|
自作アプリを作成するユーザー削除dbmigratetimestampaddadmintousersrbdbmigratetimestampaddadmintousersrbclassAddAdminToUsersltActiveRecordMigrationdefchangeaddcolumnusersadminbooleandefaultfalseendendrailsdbmigratedbseedsrbdbseedsrbメインのサンプルユーザーを人作成するUsercreatenameExampleUseremailexamplerailstutorialorgpasswordfoobarpasswordconfirmationfoobaradmintrueadmin権限をつける追加のユーザーをまとめて生成するtimesdonnameFakerNamenameemailexamplenrailstutorialorgpasswordpasswordUsercreatenamenameemailemailpasswordpasswordpasswordconfirmationpasswordendrailsdbmigrateresetrailsdbseedappviewsusersuserhtmlerbappviewsusersuserhtmlerbltligtltgravatarforusersizegtltlinktousernameusergtltifcurrentuseradminampampcurrentuserusergtltlinktodeleteusermethoddeletedataconfirmYousuregtltendltligtappcontrollersuserscontrollerrbappcontrollersuserscontrollerrbclassUsersControllerltApplicationControllerbeforeactionloggedinuseronlyindexeditupdatedestroybeforeactioncorrectuseronlyeditupdatebeforeactionadminuseronlydestroydefindexusersUserpaginatepageparamspageenddefshowuserUserfindparamsidenddefnewuserUsernewenddefcreateuserUsernewuserparams実装は終わっていないことに注意ifusersaveloginuserflashsuccessようこそ自作アプリへ成功しましたredirecttouserelserendernewendenddefedituserUserfindparamsidenddefupdateuserUserfindparamsidifuserupdateuserparamsflashsuccessProfileupdatedredirecttouserelserendereditendenddefdestroyUserfindparamsiddestroyデータベースから探して削除するflashsuccessUserdeletedredirecttousersurlわからないendprivatedefuserparamsparamsrequireuserpermitnameemailpasswordpasswordconfirmationenddefloggedinuserunlessloggedinstorelocationflashdangerPleaseloginredirecttologinurlendend正しいユーザーかどうか確認defcorrectuseruserUserfindparamsidredirecttorooturlunlessusercurrentuserend管理者かどうか確認defadminuserredirecttorooturlunlesscurrentuseradmin管理者ではない時ホーム画面に移動するendendtestfixturesusersymltestfixturesusersymlmichaelテストデータnameMichaelExampleemailmichaelexamplecompassworddigestltUserdigestpasswordgtadmintrue管理者archernameSterlingArcheremailduchessexamplegovpassworddigestltUserdigestpasswordgtlananameLanaKaneemailhandsexamplegovpassworddigestltUserdigestpasswordgtmalorynameMaloryArcheremailbossexamplegovpassworddigestltUserdigestpasswordgtlttimesdongtuserltngtnameltUserngtemailltusernexamplecomgtpassworddigestltUserdigestpasswordgtltendgttestcontrollersuserscontrollertestrbtestcontrollersuserscontrollertestrbrequiretesthelperclassUsersControllerTestltActionDispatchIntegrationTestdefsetupuserusersmichaelendtestshouldgetnewdogetsignuppathusersnewでgetリクエストassertresponsesuccessリクエストを受けることができましたかendtestshouldredirecteditwhennotloggedindoログイン無しでは編集できないテストgetedituserpathuser編集ページへの移動を要求assertnotflashemptyflashに中身はあるかassertredirectedtologinurlログインページに自動的に移動させるendtestshouldredirectupdatewhennotloggedindoログイン無しでは上書きできないテストpatchuserpathuserparamsusernameusernameemailuseremail情報を上書きするassertnotflashemptyflashに中身はあるかassertredirectedtologinurl自動的にログインページに移動させるendtestshouldredirectdestroywhennotloggedindoassertnodifferenceUsercountdo削除されてデータベースを数えて減ってないかdeleteuserpathuserユーザーを削除するendassertredirectedtologinurlログインページに自動的に移動しているかendtestshouldredirectdestroywhenloggedinasanonadmindologinasotheruserログインさせるassertnodifferenceUsercountdoデータベースの数に違いはないよねdeleteuserpathuser削除するendassertredirectedtorooturlホーム画面に自動的に移動しているかendendtestintegrationusersindextestrbtestintegrationusersindextestrbclassUsersIndexTestltActionDispatchIntegrationTestdefsetupadminusersmichaelnonadminusersarcherendtestindexasadminincludingpaginationanddeletelinksdologinasadmin管理者でログインgetuserspathユーザーページ移動を要求asserttemplateusersindex全ユーザーを表示されているかassertselectdivpaginationhtmlにpaginateが入力されているかfirstpageofusersUserpaginatepage全ユーザーのページを代入firstpageofuserseachdouserページ内から一つずつ取り出すassertselectahrefuserpathusertextusername名前を表示されているかunlessuseradmin管理者でなければassertselectahrefuserpathusertextdeletedeleteを表示されるかendendassertdifferenceUsercountdo削除されているかを確認deleteuserpathnonadmin管理者以外を削除endendtestindexasnonadmindologinasnonadmin管理者以外がログインgetuserspathユーザーページへ移動assertselectatextdeletecountdeleteが表示されていないかを確認endendubuntuenvironmentmyappupdatingusersrailstRunningviaSpringpreloaderinprocessRunoptionsseedRunningEErrorUsersIndexTesttestindexasadminincludingpaginationanddeletelinksNoMethodErrorundefinedmethodemailfornilNilClasstesttesthelperrbinloginastestintegrationusersindextestrbinblockinltclassUsersIndexTestgtrailstesttestintegrationusersindextestrbFinishedinsrunssassertionssrunsassertionsfailureserrorsskipsNoMethodErrorundefinedmethodemailfornilNilClassadminがuserになっていたためだった。 |
2022-01-30 00:52:28 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
アプリを作る ユーザーを表示する |
https://qiita.com/masatom86650860/items/fbf167c4b913df4c2d85
|
|
2022-01-30 00:51:54 |
海外TECH |
MakeUseOf |
How to Install Windows 11 on an Old PC |
https://www.makeuseof.com/windows-11-install-on-old-pc/
|
doesn |
2022-01-29 15:31:44 |
海外TECH |
MakeUseOf |
What Is the Windows Power Menu? |
https://www.makeuseof.com/windows-power-menu-guide/
|
important |
2022-01-29 15:15:12 |
海外TECH |
MakeUseOf |
The Pros and Cons of Buying a Gaming Laptop |
https://www.makeuseof.com/gaming-laptop-pros-cons/
|
buying |
2022-01-29 15:01:55 |
海外TECH |
DEV Community |
Learning Vim Regex |
https://dev.to/iggredible/learning-vim-regex-26ep
|
Learning Vim Regex Learning Vim RegexLearning regular expressions is like learning latin It is not pleasant but it is good for your soul They are incredibly useful but also hard to read People who master them are hailed as gods Many desired to learn them but a few actually did To a programmer regex regular expression is a tool It can be learned and mastered Learning it is a lifetime investment Here s why First regex is portable Sure there are different regex flavors but the basic principle is the same across all flavors Regex knowledge in one domain will transfer everywhere Second regex is powerful and knowing it can save you a lot of time Programming is all about creating and updating text Regex allows you to search and modify texts efficiently Many powerful programs like parsers are built on top of regexes Third it is fun once you get to a certain proficiency Regex knowledge boosts your Linux fu You ll unlock more powerful commands using programs like sed awk grep find vim and more In this article we will focus on learning and understanding regexes in Vim This article is by no means a complete regex tutorial In fact I ll be honest right now that this article probably contains less than a third of what Vim regex can do But they are the ones that I find very useful I call them the good parts Many of the regex information you will be learning here is also transferable Although the syntax may vary slightly in different environments the principle is the same If you understand everything in this article you should be well on your way to use regex in other environments Using Regex in VimMany of Vim s search features allow you to use regular expressions Some of them are The search commands and The global and substitute command line ex commands g and s The grep commands vimgrep and grep There are other places where you can use regex but based on my experience these three are the main places I would use regex in Finally this is not a guide about how to use the global command or grep or whatever This is more of a regex guide than a Vim guide Think of it as a regex guide that uses Vim It will show you how to use regex in Vim I am going to limit the command to only the search command Almost everything you see here is done using the search command I may release more guides in the future with different commands To Magic or NotIf you are acquainted with Vim regex you might be aware of Vim s special flavor of Regex You can read more in h magic Basically Vim allows you to pass an option where certain characters are treated as literal characters while others as special characters In this guide I won t use any magic option meaning no v m V or M you basically will see a lot of backslashes Enough with introductory stuff let s start The Good Parts of Vim Regex Basic Search The most basic search that you could do is to search for a literal word If you want to search for the string donut run donut Vim will look for a literal word donut It won t match dnut Donut or DONUT unless you have smartsearch option on but that s another topic In real life things are not that simple Maybe you need to look for variations of foo string including food fool and foos Maybe you need to match a phone number looking pattern like xxx xxx xxxx where x could be any integer So you want this pattern to match and but not Practically speaking we often need to search for a pattern not a literal word This is where knowing a little bit of regex goes a long way In fact just by knowing a handful of regex concepts in this article you should be able to handle of your searching needs Any Character The most simple versatile and almost universal regex pattern is the dot symbol It matches any single character For example if you need to search for a letter string that starts with an n and ends with a t and you don t care what goes in the middle you can use the pattern n t n t will match the strings not nut net nt and even n t space between n and t You can also use it multiple times so n b matches any character string that starts with n followed by any character followed by any character and ends with b So it will match noob nb nwt It will not match nob or nooob The Character ClassThe dot syntax is useful but sometimes you want to classify your search Recall that n t matches any three lettered word that starts with n ends with t and anything goes in the middle What if we only want alphabetic characters so it would match not nut and net but not nt n t and n t To match only between a set of characters a character class can help you Character Class A character class or a collection is a sequence set of characters that you can use to match any single character in the collection In this case to match lowercase and uppercase alphabetic characters a z and A Z we can use n a zA Z t This will match net nUt and not If you need to match only lowercase alphabets you can instead use n a z t It will now match net nut and not but it won t match nEt nUt and nOt To match only vowels use n aeiou t To match only numbers use n t To match only numbers to use n t To match only uppercase A F and numbers use n A F t You are not limited to alphabets and numbers if you want it to match either a space an exclamation mark and a question mark you can do something like n t Negated Char Class There is a special behavior that you need to know with the character class If you put a caret as the first character in it it will act as a negation character a means not a means any non number character aeiou means any non vowel character The command n ue t means any non u or non e character It will not match nut and net but it will match any not nUt and nt Special CharactersVim comes with a predefined special character set If you want to match a number instead of using you can also do d digit If you want to match a non number instead of using you can use D If you want to match a lowercase alphabet character instead of using a z you can use l If you want to match a non lowercase alphabet character instead of a z you can use L To match an uppercase use u For the non uppercase use U If you want to match a hex digit instead of A Fa f you can use x To match a non hex digit use X You should see a pattern of using the uppercase letter to indicate the negated version of that special character If you want to match a whitespace character tab and space use s To match a non whitespace character use S To match a word character lower and uppercase alphabets numbers and underscore use w To match a non word character use W If you know your predefined characters you can save a few keystrokes d is strokes vs strokes QuantifiersRepeating patterns are common when searching For example maybe you need to look for repeating digits in a phone number pattern Nobody wants to type to match and Instead typing the characters many times you can use quantifiers to simplify the search Min MaxThe pattern consists of a set of consecutive numbers followed by a dash then another set of consecutive numbers followed by another dash then another set of consecutive numbers You can use the n where n is an integer quantifiers to do the job The n quantifier expects the preceding character to repeat n times The syntax is a special character and needs to be escaped without the escape Vim will treat as a literal The search command will match the phone number pattern In the case of it expects the digit to be repeated times It will match or but not or The search command to find the phone number looks like That s a lot simpler than typing There are variations in the min max quantifier n n m n m Exact Match n You have already seen the first one n It means the preceding character is repeated exactly n times a will match aaaaa a z will match abc and zzz Min Max Match n m Let s explore the second one n m It expects the preceding character to be repeated a minimum of n times and a max of m times n and m are integers When we search using it searches for any numbers repeated between two and four times It will match and but not and although it will match the first digits The command fo searches for a string that starts with an f followed by the letter o repeated to times It matches foo foooo and fooooo but not fo and foooooo if will match up to fooooo The command fo d will match food and foooood but not fooooood It expects no more than o s between f and d whereas it finds o s Min Match n The next form n expects a minimum of n up to infinity The search fo looks for the letter f followed by or more o It matches fooo foooo and foooooooooooooooooooo It won t match fo or foo The search looks for or more digits It matches and Max Match m The next form m expects a minimum of zero up to m occurrence The search fo looks for the letter f followed by no o up to o s It matches f fo foo and fooooo It won t match foooooo it will only the first o s Zero or More Match The final variation of the min max quantifier is or personally this syntax makes more sense to me It means zero or more fo expects an f followed by zero o and up to unlimited o s It will match f fo fooooo fooooooooooooooo Zero or More The zero or more quantifier matches zero or more of the preceding character and is expressed with an asterisk It doesn t need to be escaped If you run fo Vim looks for the letter f followed by zero o up to infinite o s It will match f fo foo fooooooooooooooo If you think about it it is similar to fo but instead of typing all those brackets you just type an asterisk One or More The one or more quantifier matches one or more of the preceding character and is expressed with a plus It needs to be escaped otherwise Vim treats it as a literal plus sign If you run fo Vim looks for the letter f followed by one or more o s It will match fo fooooo and foooooooooooooo It won t match an f It is also equivalent to fo Zero or One The zero or one quantifier matches either zero or one of the preceding characters It is expressed with a question mark It needs to be escaped otherwise it would be treated as a literal If you run fo it will match both f and fo but not foo Its min max equivalent is fo Greedy Vs LazyThere are two different quantifiers greedy and lazy By the way in regex there s also a third quantifier type possessive but I won t cover that here GreedyYou actually have seen greedy quantifier in action is one example Suppose that you have the following sentence I say I use Vim You say I don t use Vim Uh oh In this case when you do a string that starts with a double quote then zero or more of any character then a double quote Vim finds one match I use Vim You say I don t use Vim This is because by using a greedy quantifier you will get the largest possible value But what if you want to match for the smallest pattern You need to use a lazy quantifier LazyIf you look at lazy quantifiers they look a lot like the min max quantifiers except that they have a n m n m n Let s go over the first one Recall that has the same effect as zero or more of the preceding character the largest possible match is the lazy version of It matches zero or more of the preceding character the smallest possible match Going back to our sentence earlier I say I use Vim You say I don t use Vim Uh oh Let s use the lazy search You will see two matches I use Vim and I don t use Vim Cool Let s go over the second variation n m If n m matches at least n and at most m of the preceding character the largest possible match then n m matches at least n and at most m of the preceding character the smallest possible match Suppose that you have the following fofoofooooofooooooooooIf you do fo On the first string it will find no match because it doesn t meet the string requirement of at least two o s On the second string it will match foo the minimum requirement On the third match instead of matching fooooo it only matches foo the least available match two o s On the fourth string it also only matches foo the smallest number of possible match I will leave the remaining lazy quantifiers n m and n to you They behave similar to the greedy quantifiers but instead of finding the largest number of matches they find the smallest number of matches AnchorsSometimes you need to find a match not based on its content but based on where it is To search by location we use anchors Beginning of line The caret matches the start of the line If you have donut is lifelife is donuta donut a dayIf you do donut it will match donut is life because the word donut is at the start of the line life is donut and a donut a day do not have a donut at the start of the line so they won t match End of Line The opposite of the start of the line anchor is the end of the line anchor If you do donut it will match the donut in life is donut because the word donut is at the end of the line Word Boundaries lt gt Another useful anchor is the word boundary anchors Given the following sentence Without further ado I do like donut very muchIf you do pun not intended P do Vim will match the do in ado do and donut What if you only want to match for the do in the word do not in ado and donut Word boundaries can help The syntax is lt gt lt means the start of a word and gt means the end of a word You need to escape them otherwise Vim will match for literal lt and gt lt do gt will match only the standalone do and not the do in ado and donut If you want to match the do in donut and the word do then you are looking for the start of the word do so you can use lt do Likewise to match the do in ado and the word do it is the same as looking for the end of the word do hence you can use lt do Or Sometimes you need to look for either A or B or C In Vim you can search for alternatives with the OR bar syntax You need to escape the bar syntax otherwise Vim will match a literal bar symbol If you need to search for either pancake or waffle part of a tasty breakfast D you can do pancake waffle If you need to search for a line that starts with either foo or bar you can do foo bar GroupsEarlier you learned about quantifiers They can help you search for repeating characters However more often than not you need to look for repeated groups not individual characters You can do that with capture groups Capture Group Sub Expression The capture group is represented by a set of parentheses In Vim they need to be escaped or they will match literal parentheses If I need to look for one or more donuts like donutdonutdonut I can use donut Recall that way earlier I said that quantifiers like search for one or more the preceding character I lied Technically it searches for the preceding character or group In Vim they are called atoms So fo looks for an f followed by one or more o s and matches fo foo and fooooo While fo looks for one or more fo s and will match fo and fofofofo Capture groups can be used with quantifiers foo looks for zero or more foos foo looks for or foo s greedy foo looks for at least foos lazy Let s combine what we ve learned together What kind of string do you think super duper yummy in my tummy matches Think about it before you scroll down Ok it will match these super yummysuperduper yummysupersuper yummydupersuper yummy in my tummyduper yummy in my tummyDo you understand why If you don t look back at the previous sections and make sure that you understand how they work Backreferences nThe capture group sure is very useful It allows us to construct a pattern group that can be treated as a unit It works great with quantifiers But that s not all Capture groups also work with backreferences Back what A backreference lets you match the same text previously matched by a capturing group You can spot a backreference when you see a backslash followed by a number For example when you use foo against foobarfoofoo bar fooThey would match the entire string How The first capture group foo captures the string foo Then we have zero or more of any character This matches any string between the first foo and the last foo Finally is a backreference to the first capture group foo foo is effectively the same as doing foo foo but using gives you far more flexibility as you ll see in a little bit You can use multiple backreferences like foo bar Here the first capture group is foo and is referenced with The second capture group is bar and is referenced with The search above is effectively similar to foobar barfoofoo Suppose that you want to match an opening and closing of an XML tag lt foo gt Hello lt foo gt lt bar gt Greetings lt bar gt lt baz gt Hello and greetings lt baz gt Since XML opening tags need to match closing tags we do not want it to match mismatched tags like lt foo gt Nope lt bar gt You can use lt gt gt lt gt Whoa that got messy and hard to read quickly Let s break it down Without escape characters we actually have lt gt gt lt gt A little simpler but still a lot of symbols Let s further break it apart into smaller sub components The pattern above is composed of three components lt gt gt and lt gt Let s investigate each starting from the first one In lt gt gt the outermost lt and gt are literal angle brackets to match lt and gt in lt foo gt and lt bar gt The pair of parentheses are the first capture group So what s that weird gt syntax inside Recall that is a character class and when you have a caret as the first character inside a it means negation So gt means a non gt character Finally you are looking for zero or more of this non gt character gt will match foo bar and baz Overall this pattern effectively matches lt foo gt lt bar gt lt baz gt etc The capture group captures the contents inside the lt gt It captures and temporarily stores the texts foo bar and baz The second pattern is a familiar one zero or more of any character This matches any text between the HTML tags The third pattern is lt gt The opening and closing angle brackets lt and gt match literal opening and closing HTML tags matches a literal forward slash Finally is a backreference to the first capture group which as you recall was the content of the HTML tags foo bar and baz Putting the capture group and backreference together this means that your opening XML tag needs to match the closing XML tag If the starting XML tag was lt foo gt then the closing HTML tag needs to be lt foo gt Whole Match There is one more special backreference in Vim It represents the whole regex match So if your search pattern is foo then is foo If your search pattern is foo and the string is foo then is foo This can come in handy in substitution Suppose that you have const one const two const ten If you want to enclose the numbers and in double quotes the fastest way to do it using the substitute command is s I won t go over how the substitute command works because it is not the scope of this article but I want to highlight the patterns matches one or more digits therefore it matches and The new substitute pattern efficiently encloses all the matches with double quotes In the first line is is the same as In the third line is then is the same as By the way can also be aliased with amp s d g is the same as s d amp g It is one less character to type if you prefer amp over Non Capture Group All capture groups come with the backreference feature If you don t want the backreference capability use pattern to use a non capture group instead of the regular capture group So foo still looks for one or more foo but you won t be able to backreference it with So why would anyone want to not backreference it Performance Backreferencing comes at performance cost If you don t store backreference you get some performance boosts However in my experience I never really noticed any difference But it wouldn t hurt to know about it AtomsEarlier I mentioned about atoms What on earth are atoms In Vim regex an atom is a unit match Technically almost everything in this article can be considered as atoms The a in a is an atom The in hello is an atom The in any single digit integer is an atom The what in what group match is an atom An atom can be an individual character match an anchor or a group match Zero Width Zero width is a regex term It is also mentioned in Vim help a few times and earned its place as an entry h zero width So what is zero width A zero width pattern is a pattern that doesn t actually match any character If I search for the letter a a it has a width of one If I search for the letter a followed by any number a it has a width of two The regex engine looks for a literal letter a Anchors are good examples of zero width patterns If I search for the letter a at the start of the line a although the pattern a looks for a literal match of the letter a the caret does not match any character This makes the caret anchor a zero width pattern It is there to specify location not to match a character lt and gt are examples of zero width patterns There are other zero width patterns that I haven t mentioned yet look arounds Look AroundsSo what are look arounds and why do we need them Look arounds are useful when you have to search for a pattern relative to another pattern If you need to search for foo only when it is before bar a look around can help you There are two types of look arounds look aheads and look behinds Look AheadsVim s lookahead syntax is ze Think of the e as ending To match a foo that is followed by a bar foobar you can search foo zebar The way I think about it is foo searches and matches for foo Then you tell Vim to end the match with ze But the pattern doesn t stop there The search continues There s a bar after that But you don t want bar to be part of the match You re really searching for foobar foobar So up to ze it will be searched and matched After ze it will still be searched but won t be matched Note that in this section I am making a subtle distinction between a match and a search A search is a pattern that the regex engine looks out for A match is what is being selected highlighted All searches are matches but not all matches are searches foo zebar matches foobar but not foobaz or foo The look ahead pattern has another form If you are familiar with the Perl regex this is similar to the pattern When used in Vim it matches the preceding atom The syntax works differently from ze but the idea is the same To search for foo in foobar but not in foobaz or foo run foo bar Note that you are using a capture group on bar bar If the syntax is confusing don t worry you re not alone It took me a while to grasp it when I started to learn about it The best way to understand it is whatever character or capture group that precedes won t be matched or highlighted but it will still be used as a part of the search pattern Think of it as a veil that covers it bar It takes a stretch of imagination but I see as a magician is the head looks like a duck magician and is his left hand bar is a veil containing the word bar He is covering it so it won t be highlighted So foo bar to me is like a giant text that spells foobar whereas a duck magician person comes and covers up the bar part so it won t be visible to the audience sort of kind of Well anyway let s go to the next look around look behinds Look BehindsLook behinds are principally similar to look aheads except they work backwards In Vim you can use zs Think of the s as start If you want to match bar but only if it is followed by foo foobar do foo zsbar Again the search pattern is technically foobar However the matching only start after zs hence only bar is highlighted while foo is not Both ze and zs are Vim inventions But they both have regex look ahead and look behind syntax counterparts Just like ze has a regex counterpart zs also has a regex counterpart and it is lt it s like except now it also has an arrow pointing back The way it works is that the atom that precedes it won t be matched highlighted although it will still be used as a part of the search pattern To search for bar in foobar use foo lt bar To search for baz in foobaz use foo lt baz If the whole look behind syntax pattern is confusing I find the duck magician imagery helps foo lt is our pattern lt looks like a duck magician that shoots a beam is his left hand foo is the veil that covers up the word foo Again whatever word pattern that the magician veils will be hidden not highlighted So I imagine foo lt bar like a giant foobar text and this duck magician guy veils up the word foo so it won t be visible to the audience Look Ahead and Look BehindYou can definitely use both look aheads and look behinds in a pattern If you need to match and highlight the bar only if it comes after foo and before baz foobarbaz not in bazbarfoo foobar or barbaz use foo zsbar zebaz Alternatively you can also use foo lt bar baz Negative Look AheadsNegative look aheads are the negative version of the look aheads The syntax is as opposed to Negative look aheads search for a match NOT followed by the given pattern To match foo not followed by baz run foo baz This will match foo and foobar not foobaz Negative Look BehindsThere are also negative look behinds The syntax is lt as opposed to lt It finds a match NOT preceded by the pattern To match bar not preceded by foo run foo lt bar This will match bazbar and bar not foobar More Vim regexThe following are patterns exclusive in Vim They are not available in most regex engines outside of Vim Optional Match You can search for optional sequential matches with the pattern It will match if the string contains sequentially any of the characters inside the square brackets do nut will match either do don donu and donut Multiple Lines xSometimes you need to search for patterns that may or may not be separated by newlines and or whitespaces If you need to match the chocolate donut string one separated by a whitespace and another separated by a newline chocolate donutchocolatedonutYou can search with chocolate sdonut Recall that s is a special character for a whitespace character By adding an underscore s now also includes a newline So if you want to match chocolate donutchocolatedonutchocolatedonutchocolatedonutYou can use zero or more quantifier chocolate s donut Start and End of File Sometimes you need to search for a pattern at the start of the file You can use the pattern If you need to search for foo that is at the start of the file use foo To search for a pattern at the end of the file use If you need to search for foo at the end of the file use foo Start Within Visual Area VVim has a Visual mode v V or Ctrl V that allows you to highlight a certain area of text I assume that you know what the visual mode is if not check out h visual mode When you are currently highlighting a visual area you can search for a pattern within that visual area with V If you have the text barfoobazfoobarfoobazfoobarfoobazfoofoobarfoobazfoobarfoobazfoobarfoobazWhile you are currently Visually highlighting the first line you can search for foo within the visual highlight if you do Vfoo Magic and Very Magic v mEarlier I mentioned about v V m and M Some regex syntaxes require them to be escaped for them to be treated as special characters For example to match one or more foo normally you would do foo Note that the group match and the one or more quantifier are escaped If you don t want to escape them you can use v The v stands for very magic Your search would look like this v foo Vim treats and as a special character instead of treating them as literal parentheses and plus signs So how do you know which characters no longer need to be escaped and which characters still need to be escaped The rule of thumb is all characters except for word characters digits lowercase alphabets a z uppercase alphabets A Z and underscore are treated as special characters As you ve seen earlier and are not word characters so under very magic they are treated as special characters Also special characters like d digits and l lowercase alphabets still need to be escaped Likewise in very magic mode since it automatically treats non word characters as special characters previously literal characters would need to be escaped if you want to match them literally So if you need to match a literal parentheses while under very magic mode like foo then you d have to escape it v foo Very magic has a sibling magic You actually have been acquainted with this magic mode How so Because Vim by default uses magic mode If you run set magic it will return magic Everything that you ve used so far is done under magic mode Vim also has two more modes no magic M and no very magic V I won t cover them here because I personally think their usage is limited in everyday editing I could be mistaken But if you re curious check out h V and h M ConclusionI think this is a good place to stop I hope that you gained valuable insight from this guide Regex is a lot of fun once you know how to use it It is an invaluable skill for any programmer You don t need to master it you just need to be good enough Most popular programming languages employ regex to a certain extent By learning regex in the Vim domain you will inevitably know how to use it anywhere else You will also be able to find and edit things much faster Finally it simply looks so darn cool Take the time reading this No rush Make it into your muscle memory Understanding beats superficial knowledge Test your knowledge Have fun with it Happy coding I am already planning to write more about regex in the future so stay tuned |
2022-01-29 15:47:56 |
海外TECH |
DEV Community |
Writing unified tool for scrum masters #0 - The good, the bad and the ugly |
https://dev.to/meatboy/writing-unified-tool-for-scrum-masters-1-the-good-the-bad-and-the-ugly-160l
|
Writing unified tool for scrum masters The good the bad and the uglyA few days ago with a friend we decided to create a unified all in one tool for scrum masters which will be able to connect the most important features for leading retrospective kudos giving and planning The idea came from my team experience with tool called Scrumlr It s a great tool but it s missing a lot of features such as voting lock avatars managment for people without account better to use grouping ungrouping cards Also we are using planning poker and recently decided to start giving kudos the way to say thank you Various processes and ceremonies with various tools All of the tools we have been using are generic as possible to match many common problems of corporates over the world but not matching our problems in details This series is intend to show process of work on the side project mentioned in the title I ll be explaining mechanics and more tricky or fancy code or design aspects So stay tuned |
2022-01-29 15:45:53 |
海外TECH |
DEV Community |
Gatsby and GraphQL |
https://dev.to/anuradha9712/gatsby-and-graphql-29f2
|
Gatsby and GraphQLGatsby is a modern take on static site generator which is built on React and uses GraphQL to extract information from data sources In the previous article we have learned the basics of Gatsby let s now learn about the relation of Gatsby and GraphQL What is GraphQL A query language used to query dataAlternative to using a REST APIsIt is one of the ways that you can import data into your Gatsby components In GraphQL queries we do not only specify what we want but we also specify how we want it structured in return If you want to learn more about GraphQL visit here Why does Gatsby use GraphQL One of the main features of Gatsby is we can use different data sources for our website e g WordPress Shopify Firebase file System and Gatsby provides the mechanism using which we can query it and access it the same way from our website using GraphQL queries Gatsby basically mesh together all the data sources into a unified GraphQL layer which is also known as Content Mesh GraphiQLThere is a tool provided by Gatsby that makes GraphQL much easier to understand and work with If you run gatsby develop you may have noticed that there are actually two URLs to the local server once the process is complete http localhost It goes to the live site http localhost graphql It goes to the GraphiQL an in browser IDE to explore your site s data and schema On this GraphiQL interface we can do the following You can explore your entire GraphQL setup on your local server We can craft custom requests and can directly see their results on the right hand side GraphQL will return JSON objects which later you can parse like any other object in Javascript Use Code Explorer to know how to use these queries inside your code Code Explorer provides an option to see how to use different types of queries in your code Types of GraphQL QueriesThere are two different types of GraphQL queries which are used in two different circumstances Page QueryStatic Query ️Page QueryA page query sits separately from the main export component Gatsby is going to find this query and it will return the data property inside our component as a prop We can use query variables which means we can make its query self dynamic through passing variables to it It only works for pages We cannot use page queries inside a component ️Static QueryIt sits inside the component itself It cannot receive a variable as the name static suggests useStaticQuery is a React hook available to use static query as a separate entity inside our components Now let s write some code to understand it better Write GraphQL QueryNow to see how graphQL queries work let s add some data ️Add Site MetadataIn the gatsby config js file we ll store our site Metadata module exports siteMetadata title Learn Gatsby description step by step guide to learn gatsby author Anuradha Aggarwal lang en We ll look at how to use this metadata via graphQL query in the later part From the previous post we have the Layout js file in the src components folder import React from react import Header from Header export default function Layout children return lt div className layout gt lt Header gt lt div className content gt lt h gt Welcome to our Gatsby Site lt h gt lt p gt Gatsby is known as static site generator lt p gt lt hr gt content for each page children lt div gt lt div gt And about js in the src pages folder import React from react import Layout from components Layout export default function About return lt Layout gt lt div gt lt h gt About page lt h gt lt p gt description here lt p gt lt div gt lt Layout gt Now it s time to write some queries ️Write Page QueryAs we know Page Query only works for pages let s write some inside our about js file Step Import GraphQLimport graphql from gatsby Step Query SiteMetadataexport const query graphql site siteMetadata description title Gatsby is going to find this query and it will return the data property inside our component as a prop Step Use this query data inside your componentexport default function About data const title description data site siteMetadata return lt Layout gt lt div gt lt p gt title lt p gt lt p gt description lt p gt lt div gt lt Layout gt Now at the end our about js file will look like this import React from react import Layout from components Layout import graphql from gatsby export default function About data const title description data site siteMetadata return lt Layout gt lt div gt lt p gt title lt p gt lt p gt description lt p gt lt div gt lt Layout gt export const query graphql site siteMetadata description title ️Write Static QueryNow let s see how to use Static Query In Layout js file Step Import GraphQL amp useStaticQuery hookimport graphql useStaticQuery from gatsby Step Query SiteMetadataconst data useStaticQuery graphql query SiteInfos site siteMetadata description title Step Use data in your componentIn the end the Layout js file will look like this import React from react import Header from Header export default function Layout children const data useStaticQuery graphql query SiteInfos site siteMetadata description title const title description data site siteMetadata return lt div className layout gt lt Header gt lt div className content gt lt h gt title lt h gt lt p gt description lt p gt lt hr gt content for each page children lt div gt lt div gt As you see GraphQL is almost the same in both cases it differs in how to use it inside or outside the components which varies on your use case Wrap Up That s all for this article Thank you for your time Let s connect to learn and grow together LinkedIn Twitter Instagram |
2022-01-29 15:37:59 |
海外TECH |
DEV Community |
Preparation for Job Applications & Tech Interviews |
https://dev.to/jebitokdev/preparation-for-job-applications-tech-interviews-2pc0
|
Preparation for Job Applications amp Tech InterviewsMost people are switching careers into tech and most often they ll concentrate on learning how to write code and build projects optimizing on making their GitHub profile and maybe networking It s important to take time to prioritize preparing for job interviews and job applications If you re looking for a job don t be afraid of the technical processes or worry about failing Just apply for roles if you re considered for interviews to give it your best whether you re accepted to the next steps or not consider this as a learning process and odds with a possibility of landing a good role with a company with a good culture that favors developers like youIn this template I m going to compile a number of resources and templates one can use to prepare all requirements needed in the job application process and job interviews Job ApplicationsMost companies hiring developers requires one to submit their resume cover letter LinkedIn profile portfolio and GitHub profile in the job application forms or if they are to be sent via email If you re a budding software developer looking to apply for jobs you take your time to prepare these profiles effectively as you continue learning or when you feel you re comfortable and want to start applying for jobs Resumesites you can use their templates to make your own resume Resume io offers resume templates amp has a free trial plus paid plan Flow CV resume builder that is free and one can download their resume after adding all needed sections Google Docs you can make a copy of the resume template and make needed changes to create yours on a google docs document At the end remember to provide access view to whoever will have access to the link Resume Genius sample for web developers and also a resume builder Indeed resume builderSome employees prefer having a link to your resume to avoid restrictions on space limits when it comes to the pdf form of resume Having options between downloadable amp live versions link of resumes is also an idea it helps you become flexible when it comes to job applications What makes a good Resume for a developer Resources Resumes should obviously show your name link to your GitHub personal portfolio LinkedIn and email address educationexperienceskills programming languages like JavaScript amp tools like GitHub projects about projects small description live version link or GitHub repository link and language tools used The resume should be limited to one page especially if you don t have a long experience and it s also believed that recruiters prefer short and detailed resumes Resume articlesHow to write a killer Software Engineering résumé source Freecodecamp articles on Resume Freecodecamp this collection gathers for those who looking for their first ever developer role and experienced ones even those with a non engineering background Resume samples and templates to inspire your next application Cover LetterSome job applications require you to write down a cover letter and attach it to your job application For some job applications the cover letter is optional Some experts believe that cover is a way you express yourself your understanding of the company mission relationship with the mentioned role mention that you re either front end back end or full stack developer in line with the ad if you re skilled on that line show your expertise by mention one project and how you used given programming language or your stack bring in aspects of datelines project time frame communication amp collaboration if it was part of it this will show your professional skills are in line with technical ones Google Docs is a way place you can write your cover letter you can also find cover letter templates and make a copy to suit your role and area of expertise Cover Letter articles articles on Cover Letters FreeCodeCampJob hunting article collection FreeCodeCamp covers cover letters resumes amp portfolios needed in most tech job hunting processHow To Write a Cover Letter Plus Tips and Examples indeed LinkedIn ProfileAmongst all social media platforms LinkedIn is known to be the professional social media platform that is associated with professional profiles job posts a place you can network with fellow people developers or find employees of the certain company you re applying or even for recruiters to check your profile and confirm if what is in your resume corresponds to your LinkedIn profile or if you re a good candidate for them As someone who is actively looking for a job or looking to have a long career in tech it is good to maintain your LinkedIn profile and let them speak on your behalf Some hiring managers reach out to potential employees through LinkedIn not necessarily through job applications All sections of your LinkedIn profile should be optimized from Headline specify keywords Full stack developer or Front end developer followed by languages amp maybe open source Add Section Profile Picture Featured Experiences Volunteering Education Licenses amp Certifications skills programming language technologies amp tools you re familiar with Recommendations let your close network in developer tech community write you a recommendation Publications add some technical articles and Projects add past projects amp their description preferably GitHub repo links or live version link attached LinkedIn profile curation resourcesDanny Thompson LinkedIn Series YouTube PlaylistHow to get your first developer job on LinkedIn FreeCodeCampAmazing LinkedIn Profile FreeCodeCamp Personal PortfolioPersonal Portfolio is a project that shows little about you most of the past projects that you ve built while learning how to write code skills amp technologies that you re familiar with copy of your resume contact information links to your GitHub LinkedIn Twitter Blog Medium Dev Hashnode or personal blog of choice The structure of a personal portfolio differs depending on the template of your choice but what s important is for your portfolio to show projects their live version links amp GitHub Repository link or GitLab Link A personal portfolio could be a web page made out of HTML amp CSS or CSS framework like Tailwind CSS Bootstrap or made out of JavaScript library framework or those of Python depending on what you re comfortable with Personal Portfolio ResourcesHow to build own developer portfolio using HTML CSS and JavaScript FreeCodeCamp Freelance Developer Portfolio to inspire you FreeCodeCamp developer portfolio to get inspiration from Medium web developer portfolio design examples Pinterest GitHub ProfileGitHub is the commonly use code hosting platform As a developer mostly while learning how to write you re advised to also use git amp GitHub or other code hosting platforms by committing your own code or contributing to open source projects If you re new to git amp GitHub you can check this playlist on YouTube by NetNinja and crash course by FreeCodeCamp to help you get better since most workplaces operate using GitHub for collaborations in teams and for CI CD Also helpful for contributing to open source projects A good GitHub is considered as one that has own readme file on the overview page which is created by default by creating a GitHub repository whose name is your GitHub username With this you can write more descriptions about yourself projects you re working on areas you need help on or where you re willing to help or collaborate on your interests apart from coding and maybe a chart that shows your languages or random avatar animation effects ReadMe files on each projecthas a lot of activity green squares Here are some good GitHub profile samples standout Github Profiles DEVFree Course to help you make your Github profile stand Eddie JaoudeCustomize your Github Profile using markdown Eddie Jaoude Job Application PlatformsPortfolio GitHub profile Resume Cover Letter and LinkedIn profile are top requirements for the job application process On top of this actively take time to apply for many jobs both on site and remote roles on LinkedInTwitter follows trends like techishiring and active tech twitter community and hiring managers CTOs who frequently hire for their teams Also the Twitter search feature is so efficient you can search frequently keyword like hiring junior developers hiring software developer s and saving so that you keep checking the latest tweetsIndeedGreenHouseGlassdoorAngellistStackoverflow jobsTabulioTamborinBambooHRZipRecruiter startupsvia email if company requests for those interested in a certain role to send their application to given emailcompany websiteReferrals networkingOnce you send a job application the process keeps continuing until you get an offer Keep sending up to applications weekly if it s possible Whenever you send an application you ll expect feedback from the company either an invitation to join the interview process which could be a phone screen or technical interviewtake home assignment which is common for start ups and mid level companiesa rejection email take it positively even reply back to them to thank them and ask areas where you can improve on or where you went wrong ghosted no email or feedback this happens and it s okay if it was the hiring manager who had reached out to you submit your profile and they don t reply back within a week you can write to them a follow up email just to be sure Interview Preparation ProcessThe tech interview process is formally about steps phone screen interview technical interview part amp on site interview with developer team with company owners management This differs depending on the size of the company and their interview culture What is important is for you to be prepared with your technical skills amp coding challenges and how to answer behavioral questions properly Phone Screen Interviews Behavioral Interview Questions This is mostly comprised of questions to help the interviewers know you better tell you more about the role and it mostly comprises of behavioral questions The efficient way to get good at answering behavioral interview questions checking through resourcescreating a google doc then write down the commonly asked questions on this interview like Tell about yourself tell about a time you had worked under pressure among others start answering each and every one of them using the S A R technique which tells the situation action and result ensure you relate the question amp answers to tech experience and if you don t have an experience relate it to projects you were doing while learning or collaborating with others practice the answers by yourself before a mirror or collaborate with a friend who is also preparing for job interviews let them ask you and you also ask them use pramp com to practice with peers who also believe that preparing for interviews is a profitable skill Behavioral questions aim to measure your communication adaptability time management motivation amp values overcoming challenges conflict resolution and teamwork How to answer and ask questions intelligently in tech interviews commonly asked behavioral questions on tech interviewsHow to prepare for a tech interviewwhat to expect in an interview and steps to prepare indeed Technical InterviewsThis differs from company to company but if you re interviewing for a front end back end or full stack role You should know your programming language or tech stack and probably that s the one linked to the job you re interviewing for For example React js role react and JavaScript questions will be asked together with some coding challenges data structure amp algorithm questions For backend or the full stack roles it could be node js or python questions questions about databases and some async amp await coding challenges for Javascript developers Read widely and go through the commonly asked question for the given role you re interviewing Check the tech interview questions for top companies as some companies use interview questions of companies like Google Microsoft among others Also do coding challenges on sites like Codewars Hackerrank LeetCode among others as some companies could send you links to questions from those sites These technical questions are mostly timed You could be told to do it from home then submit it at the end of the given time Answers could be linked to code given code editor Q amp A either written audio or video Just be ready for any set Technical Interview Resources most popular coding challenges websites FreeCodeCamp Common Technical Interview Questions With Tips and Example Answers popular full stack technical interview questions and answerscommon technical interview questions FreeCodeCampFront End Developer Interview Questions indeedinterview questions amp answers Indeedtechnical interview questions Glassdoor Onsite InterviewThis step of the interview comes after the technical questions interview part for most companies This might comprise of both behavioral and technical questions since you ll be meeting with the developer team and they would like to know you and you also get a chance to know them better or about the job environment It s a chance for them to know if they can work with you or also for you to determine if you can work with them or for the company You should prepare well and remember the whole first impression They might not worry much about dressing officially but just figure out what works well for you Prior to the interview they might go through your LinkedIn profile GitHub Profile and Resume which you most likely have made them look good by now While you re there just know they already have a hint of who you re and they have some questions to ask you also ran yourself with some questions for them like their tech stacks how long they have been in the company more about the company culture what they have gained so far since they joined the company and communication channels they use onsite interview resourcesHow to prepare for an onsite interview indeedonsite interview questions Glassdoorwhat I learned from doing technical interviews in days FreeCodeCampinterview questions you should be asking if you re asked do you have any questions for us Co Founders CTO interviewThis is almost the last step of the interview before getting an offer Here you might meet the co founders of the company if it s a start up or midsize company For some companies you might meet the CTOs of that company For preparation for this step of the interview read more about the company history mission vision amp objectives Check the company website and social media platform check more information about the co founders and remember your experience from the on site interview you might be asked to make note of your experience amp thoughts co founders interview resources technical questions startup co founders will ask youcofounders interviews GlassdoorTop chief technology officer CTO interview questions and answers for CTO Chief Technology Officer Interview Questions Getting Accepting an OfferAfter all steps of the interview process the company might decide to give you an offer which you ll be required to read through and advised to take sometime before accepting This will involve more about salaries work schedule and terms of the job either contract based or full time Having read through the offer you can decide to accept negotiate or reject It s all within your power and rights Accepting an offer ResourcesHow to accept an offer indeedquestions to ask before accepting an offer indeed rules to negotiating an offer freecodecamp Questions to Ask Yourself Before Accepting a Job Offer You Don t Love GlassdoorHow to Evaluate a Job Offer Sites to check Salary rangeAt times you ll be expected to state a figure of salary you re expecting to be paid Always give a range not a specific figure Also remember that you re being paid for the time you ve spent learning certain skills that you make you suitable for this role even if you don t have experience don t underestimate yourself Knowing salary range is important to determine what fits the role you re applying for and the company in order not to under or overestimate If it s a remote job you ll see the salary range for developers on the given role e g junior full stack software developer etc you re interviewing for in the company s country not your own country It s a job within your country also check the salary scale of developers within your country Salary CalculatorGlassdoorDice Salary calculatortech salary calculatorpayscale salary calculatorStackOverflow Calculate your salaryI m hoping this template will be of help to you during your job application and technical interviews You can get as many resources out there as this is just a hint of what you need Comments and feedback are welcomed We can connect more on Twitter or LinkedIn |
2022-01-29 15:16:00 |
海外TECH |
Engadget |
Epic gains support from Microsoft, 35 states in antitrust fight with Apple |
https://www.engadget.com/epic-35-states-support-appeal-apple-ruling-153007258.html?src=rss
|
Epic gains support from Microsoft states in antitrust fight with AppleEpic Games has some important allies in its bid to overturn a court ruling that cleared Apple of violating antitrust laws CNET and FOSS Patents report Microsoft the Electronic Frontier Foundation and the attorneys general of states have filed briefs supporting Epic s case with the US Court of Appeals for the Ninth Circuit The states argued the district court mistakenly claimed the first section of the Sherman Act a cornerstone of US antitrust law didn t apply to unilateral contracts like the terms Apple set for developers The court also didn t properly weigh the damage of Apple s claimed anti competitive behavior versus the benefits according to the brief Microsoft meanwhile noted that it still had reason to be concerned about Apple s quot extraordinary gatekeeper power quot despite its size citing its own interest in maintaining competition and innovation This included allegedly anti competitive behavior beyond the rules affecting Epic Apple s effective ban on cloud gaming services in the App Store is believed to hurt Xbox Game Pass Ultimate as an example Microsoft also disputed the district court s view that Apple s in app payment requirement wasn t an anti competitive effort to tie products together The EFF meanwhile echoed the states concerns about weighing harmful effects while offering parallels to Microsoft s interpretation of tying The foundation also said the district court made errors when it presumed customers were fully aware of Apple s policies when they joined the company s platform Apple remained confident in its chances In a statement to CNET the company said it was quot optimistic quot the district court s ruling would be upheld and maintained its view that it was providing a quot safe and trusted quot App Store offering a quot great opportunity quot for creators Epic has declined to comment Briefs like these won t guarantee success for Epic ーthe appeals court isn t obliged to consider them This is a strong showing of support however and it won t be surprising if Microsoft EFF and the states influence the decision If Epic wins its appeal and doesn t face further challenges Apple may have to further reform the App Store |
2022-01-29 15:30:07 |
海外TECH |
Engadget |
Recommended Reading: The soccer insider who dominates the internet |
https://www.engadget.com/recommended-reading-fabrizio-romano-soccer-transfers-150057382.html?src=rss
|
Recommended Reading The soccer insider who dominates the internetBehind the curtain with soccer s prophet of the dealRory Smith The New York TimesNBA fans have Adrian Wojnarowski Soccer fans have Fabrizio Romano When transfer season kicks into high gear Romano dominates the internet with his deluge of insider information In fact he s probably tweeting right now But at times he has gone from being a reporter on the hot player swaps to being a participant in the proceedings nbsp Shang Chi VFX team on animating dragons and why movies aren t as colorful anymoreJeremy Mathai SlashfilmMembers of the Shang Chi and the Legend of the Ten Rings visual effects team discuss how every Marvel movie is unique but also similar how VFX companies are cast like actors and how color in movies has changed Searching for Susy ThunderClaire L Evans The VergeSusan Thunder worked in the dial a whatever scene of the late s developing an intimate knowledge of the Bell network for phone scams quot Her specialty was social engineering quot Evans writes as she went searching for quot the great lost female hacker of the s quot who didn t want to be found nbsp |
2022-01-29 15:00:57 |
海外科学 |
NYT > Science |
Wary Parents Are Target of New Appeals to Vaccinate Children 5-11 |
https://www.nytimes.com/2022/01/29/health/covid-vaccine-children.html
|
Wary Parents Are Target of New Appeals to Vaccinate Children Getting more young school age children vaccinated is crucial for ending the pandemic public health officials say and many are focusing on that group |
2022-01-29 15:37:06 |
ニュース |
BBC News - Home |
Storm Malik: Woman killed by fallen tree in Aberdeen during high winds |
https://www.bbc.co.uk/news/uk-scotland-60181568?at_medium=RSS&at_campaign=KARANGA
|
power |
2022-01-29 15:54:59 |
ニュース |
BBC News - Home |
US East Coast blanketed by 'bombogenesis' snowstorm |
https://www.bbc.co.uk/news/world-us-canada-60177979?at_medium=RSS&at_campaign=KARANGA
|
blizzard |
2022-01-29 15:27:48 |
ニュース |
BBC News - Home |
Doncaster: Boy, 17, and man die in town centre stabbings |
https://www.bbc.co.uk/news/uk-england-south-yorkshire-60182333?at_medium=RSS&at_campaign=KARANGA
|
centre |
2022-01-29 15:22:32 |
北海道 |
北海道新聞 |
泉代表、維新抗議は「不思議」 菅直人氏ヒトラー投稿巡り |
https://www.hokkaido-np.co.jp/article/639413/
|
立憲民主党 |
2022-01-30 00:04:00 |
コメント
コメントを投稿