python |
Pythonタグが付けられた新着投稿 - Qiita |
日付範囲の差演算 を作ってみた |
https://qiita.com/yo16/items/db5362e29e9fad3c1a91
|
作ってみた |
2023-03-19 21:50:36 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Ruby times文を使ってプログラムを作成する |
https://qiita.com/ta--i/items/d86485097731feef3b0b
|
rubytimes |
2023-03-19 21:24:49 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
記事に「いいね」機能② |
https://qiita.com/RikutoMatsumoto/items/3382f3f79062e32d7c42
|
rbresourcelikeonlycreate |
2023-03-19 21:04:08 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Ruby times文を使ってプログラムを作成する |
https://qiita.com/ta--i/items/d86485097731feef3b0b
|
rubytimes |
2023-03-19 21:24:49 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
記事に「いいね」機能② |
https://qiita.com/RikutoMatsumoto/items/3382f3f79062e32d7c42
|
rbresourcelikeonlycreate |
2023-03-19 21:04:08 |
海外TECH |
MakeUseOf |
4 Underrated Uses of Excel’s SUBSTITUTE Function |
https://www.makeuseof.com/underrated-uses-excel-substitute-function/
|
functionit |
2023-03-19 12:01:17 |
海外TECH |
DEV Community |
How to resolve local wildcard domains in MacOS |
https://dev.to/timtsoitt/how-to-resolve-local-wildcard-domains-in-macos-h5e
|
How to resolve local wildcard domains in MacOS IntroductionRecently I was looking around for tutorials to setup local wildcard domains in MacOS for development purpose Most tutorials were similar and I just could not resolve the local domains If you are having the same issue your should take a look of your DNS server settings Preparation Install dnsmasqDnsmasq is a DNS server which allows you to create DNS records locally Besides it also forwards domain queries to upstream servers such that we can resolve public domains as well By default dnsmasq looks for upstream servers in etc resolv conf brew install dnsmasq Verify your homebrew prefixDnsmasq service is installed in a different location based on your Mac s chip Intel Apple Silicon You can check it by running command brew prefix Since I am using M Macbook the installation path is opt homebrew If you are using intel Macbook be careful of the path settings and make changes accordingly Modify the dnsmasq conf filevi brew prefix etc dnsmasq confGo to the end of the file uncomment the line conf dir opt homebrew etc dnsmasq d conf Now dnsmasq will look for local DNS records in opt homebrew etc dnsmasq d Create a DNS recordI will use test as my local domain name And I want dnsmasq to resolve any test domain queries to IP Dnsmasq will also try to resolve subdomain records as well such as a test b c test which is very convenient bash c echo address test gt brew prefix etc dnsmasq d test conf The name of the conf file does not matter it is just good for management having one file for each domain Setup DNS serversTo let your Macbook knows sending query to dnsmasq Left click your wifi icon in the menu bar gt Wi Fi settings gt Details gt go to DNS section Take a record of your existing DNS servers and remove all of them Then add as your topmost entry such that DNS query will be sent to dnsmasq first It is very important because if your query is send to other DNS servers first it may respond with record is not found which explains why you are unable to query local domains Lastly you can add back all your existing DNS servers Now if you take a look of the etc resolv conf file you can see that it is actually generated from the settings of the DNS section Re start dnsmasqTo reflect your dnsmasq changes you need to restart it brew services start dnsmasqbrew services restart dnsmasq ConclusionIt is a short article Thanks for reading |
2023-03-19 12:25:45 |
海外TECH |
DEV Community |
100 Vital VS Code Shortcuts Every Developer Should Know. |
https://dev.to/devland/100-vital-vs-code-shortcuts-every-developer-should-know-3le0
|
Vital VS Code Shortcuts Every Developer Should Know In the world of software development time is a precious commodity With deadlines looming and projects piling up anything that can save time and improve productivity is crucial That s where Visual Studio Code VS Code comes in As one of the most popular code editors available today VS Code offers a plethora of powerful features and tools that can significantly streamline the coding process One of the most valuable features of VS Code is its extensive set of keyboard shortcuts that allow developers to perform common tasks quickly and efficiently In this article we will be highlighting the most important VS Code shortcuts that every developer should know to become more efficient and productive in their work Shortcuts for searching and navigating through source codeWhen working on a project with a large number of classes or multiple projects within the same solution locating members of a class can be a daunting and time consuming task However with the right tools this process can be significantly streamlined In Visual Studio there are several keyboard shortcuts that allow for quick and easy navigation and search operations Let s take a look at these shortcuts that can help us perform quick searches and navigation Ctrl Q Displays Visual Studio SearchCtrl T Displays the Go To All toolCtrl Navigates backward between opened documents in the current sessionCtrl Shift Navigates forward between opened documents in the current sessionF Navigates to a class definitionAlt F Allows you to view and edit the code of a class in a pop up window from the code file you are writing Ctrl F Navigates to the implementation of a member in a classCtrl Shift F Moves to the next error line when the error list window is open and more than one error is listedF Navigates forward in the list of results of the current windowShift F Navigates backward in the list of results of the current window Shortcuts for editing and refactoringIn this part we will focus on the commands that enable direct changes to the source code These commands are essential for carrying out common operations such as renaming members commenting on lines of code and moving lines up and down By using the right keyboard shortcuts these tasks can be accomplished with ease improving productivity and efficiency Without further ado let s explore the list of shortcuts that will make writing code even more manageable Alt Enter Displays quick actionsCtrl K Ctrl I Obtains information about a member of a classCtrl K Ctrl C Comments multiple selected lines in the source codeCtrl K Ctrl U Uncomments multiple selected lines in the source code Ctrl Shift L Deletes selected linesCtrl Shift V Displays and allows pasting the contents from the buffer ring it refers to the history of elements that have been previously copied Ctrl F Finds a specific text in the codeCtrl A Selects all the lines in the current fileCtrl S Saves the pending changes in the current fileCtrl Shift S Saves the pending changes in all the opened files Ctrl Shift Zooms into the current fileCtrl Shift Zooms out from the current fileCtrl Up Moves selected lines up in a code fileCtrl Down Moves selected lines down in a code fileCtrl K Ctrl D Applies the style rules to the entire document Ctrl K Ctrl F Applies the style rules only in the selected lines in the documentCtrl K Ctrl S Used to encapsulate the code between common clauses such as cycles while for and so on control statements if switch and so on or code regions region Ctrl R Renames a memberCtrl R Ctrl E Creates a property for a field of a class Ctrl R Ctrl G Removes unused using statements in a class and sorts them alphabeticallyCtrl R Ctrl M Creates a method from the selected codeCtrl X Cut line empty selection Ctrl Toggle line commentCtrl Home Go to beginning of file Shortcuts for debugging and testingWhen working with Visual Studio debugging and code execution are tasks that we perform constantly As such it is crucial to familiarize ourselves with the keyboard shortcuts that can facilitate these operations and enable us to carry them out quickly and efficiently Knowing these shortcuts can save valuable time and boost productivity So let s take a look at the essential keyboard shortcuts that will help us execute code and debug with ease F Starts the application in debug modeCtrl F Starts the application without debug modeShift F Stops the application when it s runningCtrl Shift F Stops the application execution rebuilds the project and creates a new debugging sessionF Places or removes a breakpointF Skips the execution of code when debuggingF Debugs source code line by lineShift F Steps out of the execution of the methodCtrl R Ctrl A Starts unit test execution in debug modeCtrl R A Starts unit test execution without debug mode The most common shortcuts for use in the IDEWhen working in VS Code it s not uncommon to accidentally close essential windows such as the Solution Explorer or Properties window and struggle to locate the option to reopen them Therefore being familiar with the keyboard shortcuts for frequently used windows and panels can save significant time and effort Let s explore the essential keyboard shortcuts that will help us move around the Visual Studio IDE with ease Ctrl S If we have a file open this shortcut allows us to quickly select it in the Solution Explorer window Ctrl Alt L Opens the Solution Explorer windowCtrl Alt O Opens the Output window Ctrl E Opens the Error List windowCtrl Ctrl M Opens the Team Explorer window Ctrl Alt B Opens the Breakpoints window F Opens the Properties window Alt F Allows you to scroll back between windows on the panels that are open Shift Alt F Allows you to scroll forward between windows on the panels that are open Shift Esc Allows you to close the current tool windowCtrl Alt Pg Up Allows scrolling up between open documents even when it is not the same session Ctrl Alt Pg Dn Allows scrolling down between open documents even when it is not the same session Ctrl Tab Displays a special window with the open documents and selects the most recent one Ctrl Shift Tab Displays a special window with the open documents and selects the least recent one Shift Alt Enter Allows you to place the Visual Studio environment at full screen allowing you to concentrate on the current document Use the same shortcut to get out of full screen modeCtrl K K Creates a bookmark in the line where we are positioned If there is already a bookmark on that line it will be deleted Ctrl K N Allows you to scroll forward through the different bookmarks that are part of a project Ctrl K P Allows you to scroll backward through the different bookmarks that are part of a project Ctrl Shift P F Show Command PaletteCtrl P Quick Open Go to File…Ctrl Shift N New window instanceCtrl Shift W Close window instanceCtrl User SettingsCtrl Show integrated terminalCtrl Shift Create a new terminal Shortcuts for file managementOne of the key features of VS Code is its file management capabilities which allow developers to efficiently create open edit save and organize files and folders VS Code provides a range of keyboard shortcuts that enable developers to manage their files and folders quickly and easily These shortcuts include creating new files and folders opening and closing files switching between open files and accessing the Explorer panel to view the file and folder structure of the project By using these shortcuts you can save time avoid errors and stay organized while working on their projects Here is a list of some of the most commonly used VS Code shortcuts for file management Ctrl N Create a new fileCtrl O Open a fileCtrl S Save a fileCtrl Shift S Save all open filesCtrl P Open the Quick Open dialog to quickly search and open a fileCtrl Tab Switch between open filesCtrl W Close the current fileCtrl Shift T Reopen the last closed fileCtrl Shift N Create a new folderCtrl Shift E Show hide the Explorer panel which displays the file and folder structure of your projectCtrl K Enter Keep preview mode editor open SummaryVisual Studio Code is a powerful code editor that provides a wide range of features and tools to help developers streamline their workflow However mastering keyboard shortcuts is crucial to unlocking the full potential of VS Code and becoming more efficient in development tasks This article has provided a comprehensive list of essential shortcuts that every developer should know These shortcuts cover various areas such as file management editing code navigating the editor and accessing VS Code features By incorporating these shortcuts into your daily routine you can save time and effort reduce errors and become more productive With continued practice and familiarity with these shortcuts you can elevate your coding skills to new heights and take full advantage of what VS Code has to offer THANK YOU FOR READING I hope you found this little article helpful Please share it with your friends and colleagues Sharing is caring Connect with me on Twitter or LinkedIn to read more about JavaScript React Node js and more… Want to work together Contact me on Upwork |
2023-03-19 12:21:34 |
Apple |
AppleInsider - Frontpage News |
Daily deals March 19: $200 off M2 16-inch MacBook Pro, 43% off Samsung Odyssey Ark 55-inch curved monitor, $99 AirPods, more |
https://appleinsider.com/articles/23/03/19/daily-deals-march-19-200-off-m2-16-inch-macbook-pro-43-off-samsung-odyssey-ark-55-inch-curved-monitor-99-airpods-more?utm_medium=rss
|
Daily deals March off M inch MacBook Pro off Samsung Odyssey Ark inch curved monitor AirPods moreToday s top deals include off an Apple Magic Keyboard with Touch ID off Samsung T Shield TB portable SSDs off the Gen Apple Pencil and more You can get off the inch MacBook Pro with M The AppleInsider editorial team scours online retailers for great deals on popular tech items including discounts on Apple products TVs accessories and other gadgets We compile our best finds into our Daily Deals list which you can use to save money on the hardware you want Read more |
2023-03-19 12:11:48 |
海外TECH |
CodeProject Latest Articles |
Running a Standalone PHP App in Windows |
https://www.codeproject.com/Articles/5353969/Running-a-Standalone-PHP-App-in-Windows
|
windows |
2023-03-19 12:17:00 |
ニュース |
BBC News - Home |
Georgia Harrison: I was living in fear of more sex footage |
https://www.bbc.co.uk/news/uk-64998904?at_medium=RSS&at_campaign=KARANGA
|
consent |
2023-03-19 12:42:00 |
ニュース |
BBC News - Home |
Gary Lineker will not present FA Cup coverage after losing his voice |
https://www.bbc.co.uk/news/uk-65005620?at_medium=RSS&at_campaign=KARANGA
|
impartiality |
2023-03-19 12:30:51 |
ニュース |
BBC News - Home |
SNP leadership: SNP in 'tremendous mess', interim CEO says |
https://www.bbc.co.uk/news/uk-scotland-scotland-politics-65001543?at_medium=RSS&at_campaign=KARANGA
|
party |
2023-03-19 12:30:16 |
ニュース |
BBC News - Home |
Credit Suisse bank: UBS is in talks to take over its troubled rival |
https://www.bbc.co.uk/news/business-65004605?at_medium=RSS&at_campaign=KARANGA
|
credit |
2023-03-19 12:54:46 |
ニュース |
BBC News - Home |
Girl, 15, dies after being hit by bus in Birmingham |
https://www.bbc.co.uk/news/uk-england-birmingham-65006354?at_medium=RSS&at_campaign=KARANGA
|
family |
2023-03-19 12:22:37 |
コメント
コメントを投稿