It’s pretty easy to read the contents of a Linux text file line by line in a shell script—as long as you deal with some subtle gotchas. Here’s how to do it the safe way. Files, Text, and Idioms Each programming language has a set of idioms. These are the standard, no-frills ways to accomplish a set of common tasks. They’re the elementary or default way to use one of the features of the language the programmer is working with. They become part of a programmer’s toolkit of mental blueprints. Actions like reading data from files, working with loops, and swapping the values of two variables are good examples. The programmer will know at least one way to achieve their ends in a generic or vanilla fashion. Perhaps that will suffice for the requirement at hand. Or maybe they’ll embellish the code to make it more efficient or applicable to the specific solution they are developing. But having the building-block idiom at their fingertips is a great starting point. Knowing and … [Read more...] about How to Process a File Line by Line in a Linux Bash Script
Doubting thomas 8 letters
Finding the sum of squares in Microsoft Excel can be a repetitive task. The most obvious formula requires a lot of data entry, though there’s a lesser-known option that gets you to the same place. Finding the Sum of Squares for Multiple Cells Start a new column anywhere in an Excel spreadsheet and label it. It’s here that we’ll output the solution of our squares. The squares don’t have to be next to each other, nor does the output section; it can be anywhere on the page. Type the following formula into the first cell in the new column: =SUMSQ( From here you can add the letter and number combination of the column and row manually, or just click it with the mouse. We’ll use the mouse, which autofills this section of the formula with cell A2. Add a comma and then we’ll add the next number, from B2 this time. Just type in B2 to the formula, or click the appropriate cell to autofill it. Close the parenthesis and press “Enter” on the keyboard to display the sum of … [Read more...] about How to Calculate the Sum of Squares in Excel
There’s one font that is almost universally reviled. Just the sight of it causes people to cringe in disgust. You know exactly what font I’m talking about (even if you ignore the title.) Why does everyone hate Comic Sans? Comic Sans is one of those fonts that seem to have been around forever. It’s as iconic as Times New Roman and Arial in the font world. Who created Comic Sans? Was it always as hated as it is today? Let’s learn about the ugly duckling of fonts. Who Created Comic Sans? The origin of Comic Sans is intertwined with another much-maligned Microsoft product: Microsoft Bob . While Microsoft Bob failed so quickly that many people don’t even remember it, Comic Sans has lived on. Microsoft Bob was a wildly re-imagined desktop interface made for Windows 95 . People could create their own virtual “rooms” that acted as desktops, and guiding them through everything were cartoon companions. RELATED: Why I Loved Microsoft Bob, Microsoft's Strangest Creation … [Read more...] about The Origin of Comic Sans: Why Do So Many People Hate It?
Whether you’re a sports enthusiast or a casual viewer, you’ve likely heard the term “GOAT” before. Here’s what being the “GOAT” of a sport (or anything else) means. “Greatest of All Time” GOAT stands for “greatest of all time.” If you’ve participated in online sports talk, you may recognize that the term is used to refer to the greatest athlete in the history of a professional sport. Alternatively, some use it to refer to the best currently active athlete in the field. Because of its prominence, it has also become a general term for an all-time great at topics outside of sports. The acronym is frequently found in every part of the internet where sports are talked about. This includes message boards, social networking sites, and video sharing sites like YouTube. It is also used between smaller groups of sports fans, whether in chats or real life. Many sports media outlets have also adopted the term, frequently writing articles about who they think the GOAT of a particular … [Read more...] about What Does “GOAT” Mean, and How Do You Use It?
LibreOffice Writer bundles in a free auto-complete system, similar to the one you’re probably familiar with on your smartphone’s keyboard. But LibreOffice’s is a lot more powerful, and a lot more customizable—you can more or less tell it exactly which words you want to auto-complete, and which ones you don’t. How to Enable and Disable the AutoComplete Feature By default, the AutoComplete feature is already enabled. You can see it by typing any medium-to-long word more than once. A small word will appear above your cursor as you’re typing: whenever you see a word in this manner, you can press the Enter key and finish the rest of the word instantly. To turn this off, click the Tools menu, then hover your cursor over AutoComplete, then click “AutoComplete Options.” In this window, click the “Word Completion” tab on the far right. The first option here is “Enable word completion.” If it’s on and you want it off, remove the check mark. If it’s off and you want it on, click … [Read more...] about How to Use, Customize, or Disable AutoComplete in LibreOffice Writer