diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-07-01 04:06:58 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2022-07-01 04:06:58 +0200 |
| commit | 19f2f45852d711443c5fdc2e4659ae095a6b58cb (patch) | |
| tree | 5e71e1c506ffd252fcfa4ac9f399f9bbce3ae8f1 /posts | |
| parent | 991d657e4c980e6d1114e4adb27f20332e1f7d6b (diff) | |
| download | mitjafelicijan.com-19f2f45852d711443c5fdc2e4659ae095a6b58cb.tar.gz | |
Added new post
Diffstat (limited to 'posts')
| -rw-r--r-- | posts/2022-06-28-sentiment-based-on-political-bias.md | 86 | ||||
| -rw-r--r-- | posts/2022-06-30-trying-out-helix-editor.md | 33 |
2 files changed, 119 insertions, 0 deletions
diff --git a/posts/2022-06-28-sentiment-based-on-political-bias.md b/posts/2022-06-28-sentiment-based-on-political-bias.md new file mode 100644 index 0000000..4debfeb --- /dev/null +++ b/posts/2022-06-28-sentiment-based-on-political-bias.md | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | --- | ||
| 2 | Title: Sentiment distribution analysis based on political bias in online publications | ||
| 3 | Description: Sentiment based on political bias | ||
| 4 | Slug: sentiment-based-on-political-bias | ||
| 5 | Listing: false | ||
| 6 | Created: 2022-06-28 | ||
| 7 | Tags: [] | ||
| 8 | --- | ||
| 9 | |||
| 10 | I have been wondering for a long time what would sentiment differences look based on political leaning from popular publications. Is it the left that is more optimistic, center or the right. | ||
| 11 | |||
| 12 | > Before people loose their minds, I don't care about political stuff and this is data we are talking about and not my personal feelings about it. So, before saying anything have this in mind and let data speak for itself. | ||
| 13 | |||
| 14 | ## Preparing the data | ||
| 15 | |||
| 16 | The first step in getting stories from publications so we can start doing sentiment analysis on it. I have chosen to select 30 publications. 10 from left leaning publications, 10 from centre and 10 from right leaning ones. | ||
| 17 | |||
| 18 | To find out leaning of a publication I will defer to AllSides website which provide a [Media Bias Ratings](https://www.allsides.com/media-bias/ratings). | ||
| 19 | |||
| 20 |  | ||
| 21 | |||
| 22 | The chart above is taken from AllSides and demonstrates political leaning of publications. This data changes over time and AllSides have made the revisions publicly available on their website. | ||
| 23 | |||
| 24 | - [Learn more about Version 6](https://www.allsides.com/blog/new-allsides-media-bias-chart-version-6-updated-ratings-npr-newsmax-and-more) | ||
| 25 | - [Learn more about Version 5](https://www.allsides.com/blog/new-allsides-media-bias-chart-version-42) | ||
| 26 | - [Learn about Version 4](https://www.allsides.com/blog/new-allsides-media-bias-chart-announcing-version-4) | ||
| 27 | - [Learn about Version 3](https://www.allsides.com/blog/new-allsides-media-bias-chart-version-3) | ||
| 28 | - [Learn about Version 2](https://www.allsides.com/blog/new-allsides-media-bias-chart-version-2-updated-media-bias-ratings) | ||
| 29 | - [Learn about Version 1.1](https://www.allsides.com/blog/updated-allsides-media-bias-chart-version-11) | ||
| 30 | - [Learn about Version 1](https://www.allsides.com/blog/introducing-allsides-media-bias-chart) | ||
| 31 | |||
| 32 | |||
| 33 | They categorise political bias AllSides came up with is: | ||
| 34 | |||
| 35 | TODO: CREATE A HORIZONTAL ARRAY STYLE OF CHART IMAGE | ||
| 36 | |||
| 37 | - Left, | ||
| 38 | - Lean Left, | ||
| 39 | - Center, | ||
| 40 | - Lean Right, | ||
| 41 | - Right. | ||
| 42 | |||
| 43 | I will group Left and Lean Left together. And the same goes for Lean Right and Right. So we end up with three groups [Left, Center, Right]. | ||
| 44 | |||
| 45 | The list I have ended up with contains these publications: | ||
| 46 | |||
| 47 | - Left political bias: | ||
| 48 | - BuzzFeed News (https://www.buzzfeednews.com) | ||
| 49 | - CNN (https://cnn.com) | ||
| 50 | - Daily Beast (https://www.thedailybeast.com) | ||
| 51 | - HuffPost (https://www.huffpost.com) | ||
| 52 | - The Intercept (https://theintercept.com) | ||
| 53 | - Vox (https://www.vox.com) | ||
| 54 | - Slate (https://slate.com) | ||
| 55 | - The New Yorker (https://www.newyorker.com) | ||
| 56 | - MSNBC (https://www.msnbc.com) | ||
| 57 | - New York Times News (https://www.nytimes.com) | ||
| 58 | - Center political "bias": | ||
| 59 | - Axios (https://www.axios.com) | ||
| 60 | - BBC (https://www.bbc.com) | ||
| 61 | - News Week (https://www.newsweek.com) | ||
| 62 | - Reuters (https://www.reuters.com) | ||
| 63 | - RealClear Politics (https://www.realclearpolitics.com) | ||
| 64 | - The Hill (https://thehill.com) | ||
| 65 | - The Wall Street Journal News(https://www.wsj.com) | ||
| 66 | - Associated Press News (https://apnews.com) | ||
| 67 | - CNET (https://www.cnet.com) | ||
| 68 | - Forbes (https://www.forbes.com) | ||
| 69 | - Right political bias: | ||
| 70 | - The American Spectator (https://spectator.org) | ||
| 71 | - Breitbart News (http://www.breitbart.com) | ||
| 72 | - The Blaze (https://www.theblaze.com) | ||
| 73 | - Daily Caller (http://dailycaller.com) | ||
| 74 | - Daily Mail (https://www.dailymail.co.uk) | ||
| 75 | - The Daily Wire (https://www.dailywire.com) | ||
| 76 | - Fox News (https://www.foxnews.com) | ||
| 77 | - The Federalist (https://thefederalist.com) | ||
| 78 | - New York Post Opinion (https://nypost.com/opinion/) | ||
| 79 | - OANN (https://www.oann.com) | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | |||
diff --git a/posts/2022-06-30-trying-out-helix-editor.md b/posts/2022-06-30-trying-out-helix-editor.md new file mode 100644 index 0000000..66abe36 --- /dev/null +++ b/posts/2022-06-30-trying-out-helix-editor.md | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | --- | ||
| 2 | Title: Trying out Helix code editor as my main editor | ||
| 3 | Description: Trying out Helix code editor as my main editor | ||
| 4 | Slug: tying-out-helix-code-editor | ||
| 5 | Listing: true | ||
| 6 | Created: 2022-06-30 | ||
| 7 | Tags: [] | ||
| 8 | --- | ||
| 9 | |||
| 10 | I have been searching for a lightweight code editor for quite some time. One of the main reasons was that I wanted something that doesn't burn through CPU and RAM usage is not through the roof. I have been mostly using Visual Studio Code. It's been an outstanding editor. I have no quarrel with it at all. It's just time to spice life up with something new. | ||
| 11 | |||
| 12 | I have been on this search for a couple of years. I have tried Vim, Neovim, Emacs, Doom Emacs, Micro and couple more. Among most of them, I liked Micro and Doom Emacs the most. Micro editor was a little too basic for me. And Doom Emacs was a bit too hardcore. This does not reflect on any of the editors. It's just my personal preference. | ||
| 13 | |||
| 14 | > I tried Helix Editor about a year ago. But I didn't pay attention to it. Tried it and saw it's similar to Vi and just said no. I was premature to dismiss it. | ||
| 15 | |||
| 16 | One of the things I actually miss is line wrapping for certain files. When writing Markdown, line wrapping would be very helpful. Editing such a document is frustrating to say the least. Some of the Markdown to HTML converters don't take kindly of new lines between sentences. Not paragraphs, sentences. And I use Markdown to write this blog you are reading. | ||
| 17 | |||
| 18 | But other than this, I have been extremely satisfied by it. It's been a pleasant surprise. There have been zero issues with the editor. | ||
| 19 | |||
| 20 | One thing to do before you are able to use autocompletion and make use Language Server support is to install the language server with NPM. | ||
| 21 | |||
| 22 | ```sh | ||
| 23 | npm install -g typescript typescript-language-server | ||
| 24 | ``` | ||
| 25 | |||
| 26 | I am still getting used to the keyboard shortcuts and getting better. What Helix does really well is packing in sane defaults and even though because currently there is no plugin support I haven't found any need for them. It has all that you would need. It goes to extreme measures to show a user what is going on with popups that show you what the keyboard shortcuts are. | ||
| 27 | |||
| 28 | And it comes us packed with many [really good themes](https://github.com/helix-editor/helix/wiki/Themes). | ||
| 29 | |||
| 30 |  | ||
| 31 | |||
| 32 | I would advise using this editor. It's still young but has this mature feeling to it. It has sane defaults and mimics Vim (works a bit differently, but the overall idea is similar). | ||
| 33 | |||
