Thursday, March 19, 2020

Top 10 Low Stress Jobs that Pay Well

Top 10 Low Stress Jobs that Pay Well every job comes with a certain amount of stress. even some of the ones on this list. stress is unavoidable- and often seasonal. certain times of year, or certain crises, can catapult a low-key job into an uncharacteristically high stress bracket. but, in most jobs, that peak will fade and the rest of the year and your career can be spent in relative calm. low stress jobs that pay well do not come by easily. the following 10  jobs have been deemed - based on travel, potential for growth, intensity of deadlines, public scrutiny, competition, physical demands, environmental factors and hazardous conditions, risk- yours and others’- and public presence/speaking- to be the least stressful options on the market. some of these jobs will have a high stress time of year, or require some high stress interactions, but overall they strike a gentler balance than, say, wall street trader or neurosurgeon.if high-stress and high-stakes aren’t for you, consider trying for one of the f ollowing careers.information security analystthe growth rate here is about 18% and the median income is almost $89k per year.diagnostic medical sonographerthis position has a high growth rate (24%) and decent median income (~$62,5k).(tenured) university professorgranted, you’ll have to go through tons of stress to actually get to this position, but once there, the tension eases up considerably. good money (~$70k/year) as well.hair stylistthe money isn’t that high (around $23k/year median), but it’s flexible and relatively low stakes.medical records techthis position comes with good growth (15%) and good median income (~$36k). you get all the perks of being in the healthcare field, none of the life or death situations.medical laboratory techthis certainly comes with higher stress than working in records, but the money is better (almost $50k/year median) and there is still good potential for growth.jewelerthis isn’t a fast-growing field (-11%), but it comes with decent money ($36,870 median) and relatively low stress.audiologistthis field comes with  great growth (29%) and almost $75k per year. we hear that!dieticianhere’s another field with good growth and good pay ($56,950k/year median).librarianyou wouldn’t expect a librarian to have more stress than most of the previous positions, but believe it or not there are cycles of higher stress that makes this career rate a bit higher than even laboratory techs and professors. there’s low growth (2%), but the pay is around $56k per year.

Tuesday, March 3, 2020

Parsing Text Files With Perl

Parsing Text Files With Perl Parsing text files is one of the reasons Perl makes a great data mining and scripting tool. As youll see below, Perl can be used to basically reformat a group of text. If you look down at the first chunk of text and then the last part at the bottom of the page, you can see that the code in the middle is what transforms the first set into the second. How to Parse Text Files As an example, lets build a little program that opens up a tab separated data file, and parses the columns into something we can use. Say, as an example, that your boss hands you a file with a list of names, emails, and phone numbers, and wants you to read the file and do something with the information, like put it into a database or just print it out in a nicely formatted report. The files columns are separated with the TAB character and would look something like this: Larry larryexample.com 111-1111 Curly curlyexample.com 222-2222 Moe moeexample.com 333-3333 Heres the full listing well be working with: #!/usr/bin/perl open (FILE, data.txt); while (FILE) { chomp; ($name, $email, $phone) split(\t); print Name: $name\n; print Email: $email\n; print Phone: $phone\n; print -\n; } close (FILE); exit; Note:Â  This pulls some code from the tutorial on how to read and write files in Perl. What it does first is open a file called data.txt (that should reside in the same directory as the Perl script). Then, it reads the file into the catchall variable $_ line by line. In this case, the $_ is implied and not actually used in the code. After reading in a line, any whitespace is chomped off the end of it. Then, the split function is used to break the line on the tab character. In this case, the tab is represented by the code \t. To the left of the splits sign, youll see that Im assigning a group of three different variables. These represent one for each column of the line. Finally, each variable that has been split from the files line is printed separately so that you can see how to access each columns data individually. The output of the script should look something like this: Name: Larry Email: larryexample.com Phone: 111-1111 - Name: Curly Email: curlyexample.com Phone: 222-2222 - Name: Moe Email: moeexample.com Phone: 333-3333 - Although in this example were just printing out the data, it would be trivially easy to store that same information parsed from a TSV or CSV file, in a full-fledged database.