const days = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];  for (const day of days) {   console.log(day); }     I need to print the days with the first letters capitalized...
Is there a simple way to convert a string to Title Case? E.g. john smith becomes John Smith. I'm not looking for something complicated like , just (hopefully) some kind of one- or two-liner.
Firefox browser opens but URL is not launched Relativity and Galaxy Rotation Speed If time travels slower nearer gravity wells, why can't the galaxy rotation speeds being faster on the outer edges than the inner areas be explained by relativity? What necessitates dark matter? Can we move "Start a bounty" to a more intuitive location? How to add chips from Material Components library to input field in android? Why does ltablex skip a number in captions? The below example presents two tables with an tabularx environment (taken from package ltablex) and a caption. After each tabularx-table, the table counter skips one, as if both the caption and the tabularx environment increase it, while the latter shouldn't.  \documentclass{report} \usepackage{ltablex} \begin{document}  \begin{table} \caption{Caption 1.} % "Table 1" \begin{tabularx}{\linewidth}{|c|} empty table \end{tabularx} \end{table}  \begin{table} \caption{Caption 2.} % "Table 3" \begin{tabularx}{\linewidth}{|c|} empty table \end{tabularx} \end{table}  \end{document}   My reputation doesn't allow me to upload a picture, but the captions are Table 1 and Table 3 respectively. Can I get Shadowmere if I've abolished The Dark Brotherhood? I know that  is a quest reward from the Dark Brotherhood questline. However, since I took the other route, killed Astrid when she visited me and got the quest to destroy the Brotherhood, which I later did (she can't tell me what to do!), I was wondering if it's still possible to get her horse some other way and not through the quest. This is a comic book I read no later than 1993 (so is pre-1993).  And probably after 1988 though I can't be certain.  The protagonist is a huge barbarian with an axe, who seems like an old man, who is defending a series of gigantic walls against an invading army, apparently single-handedly. They keep having to fall back to inner walls. He has to get a massage at one point (not that kind of comic btw).  It's not a super-hero or funny comic, it's more of a serious graphic novel.  That's about it, sorry it's so vague. I am trying to remove all files and subdirectories in a directory. I used rm -r to remove all files, but I want to remove all files and subdirectories, excluding the top directory itself.  For example, I have a top directory like images. It contains the files header.png, footer.png and a subdirectory.  Now I want to delete header.png, footer.png and the subdirectory, but not images.  How can I do this in linux? The  is minimal and clean on a fresh installation of Windows. Install a bunch of applications and soon the context menu is loaded with all kinds of opening options from various applications.  How do I remove items from the right click (context) menu?  I find that there are different types of right click menu items:   Global items that appear in all context menus. Items that appear only on folders. Items that appear only on files. Items that appear only on special folders (Ex: Right clicking a folder of MP3s shows up a context menu with items like Play with Windows Media Player.) Items that appear only on certain file types (Ex: Right clicking a MP3 file shows up a context menu with items from Windows Media Player/Foobar2000/VLC/your-favorite-media-player begging to open this file.)   I want to be able to delete all these kinds items from the right click (context) menu. Why is the gravitational force always attractive? float to int unexpected behaviour How can I test whether my camera is working after it was dropped? Issue : How can I evaluate my cameras performance synthetically?  Scenario : Bought a Nikon D3100 an year back. Photos looked good enough. The camera fell, zoom lens effected.  But works. Cleaned lens using soap, water etc.  Carefully. Now photos look much worse.  How do I know if Photos are really bad?  Is there a tool?    Sample Photo  Now (Bad)   Original (Good)   Please help me realize whether my camera has gone bad.  Can you tell your personal opinion also? I am executing my ./shell.sh which contains   eval "$(pyenv init -)" pyenv shell 3.8.2   But nothing happens. If i run this code in bash manually it works fine and shell version of python switches from 2.7.10 to 3.8.2.  I am in the right directory and I gave the .sh file execution permissions. Python: reload component Y imported with 'from X import Y'? Can I do it with reflection or something like that? "Has been" vs "was" Would you please explain the difference between these two sentences?     Spain ceded (or gave) Puerto Rico to the United States. Since then, Puerto Rico has been a U.S. territory.      Spain ceded(or gave) Puerto Rico to the United States. Since then, Puerto Rico was a U.S. territory.   I am stuck between 'has been' and 'was' in the above sentences. Showing that $G/(H\cap K)\cong (G/H)\times (G/K)$ I made a script that should notify me when there's a new chapter of manga that I'm reading. I used the command notify-send to do this. The program works when I am trying to run it in terminal. The notification is showing. However, when I placed this in my crontab, the notification doesn't show. I'm pretty sure that the program is running since I made it to create a file for me. The file was created, but the notification didn't show.  Here's my script  #!/bin/bash    #One Piece Manga reminder     #I created a file named .newop that contains the latest chapter.     let new=$(cat ~/.newop)     wget --read-timeout=30 -t20 -O .opreminder.txt http://www.mangareader.net/103/one-piece.html  if (( $(cat .opreminder.txt | grep "One Piece $new" | wc -l) &gt;=1 ))     then         (( new+=1 ))         echo $new         echo $new &gt; ~/.newop         notify-send "A new chapter of One Piece was released."     else         notify-send "No new chapter for One Piece."         notify-send "The latest chapter is still $new."     fi         exit   And here's what I wrote in my crontab  0,15,30,45 12-23 * * 3   /home/jchester/bin/opreminder.sh Decreasing font size in verbatim How can I modify the following command to make it work?  \newcommand{\code}[1]{\begingroup \fontsize{10pt}{10pt}\selectfont \begin{verbatim} #1 \end{verbatim} \endgroup}   I currently get the following error on the close of the following verbatim block:  ! Undefined control sequence. &lt;argument&gt; ...endgroup ^^M^^M$\eta_{xi} = r_{xi} -                                                    q_i \cdot p_x$ \\^^M$q_i ... l.227     \end{verbatim} I have an HSA that allows me to invest the money in the account in the stock market. Any money not invested is available to be used for health expenses. I currently have ~50% of the total balance of the HSA invested, with the other ~50% on hand for expenses.  I've run into a situation where the ~50% on hand for expenses does not cover all of my current expenses. To cover the remaining costs, should I sell off my the HSA investments or should I leave those as is and use money from my savings account?  I'm trying to determine if the tax advantages of the HSA combined with the returns the invested money is seeing is worth me leaving that money alone - and instead, take the money from my savings account to cover the costs.