Updated my pages of Chinese red songs and Soviet red songs

They are at https://gmachine1729.com/lists/%e4%b8%ad%e5%9b%bd%e7%ba%a2%e6%ad%8c/ and https://gmachine1729.com/lists/%d1%81%d0%be%d0%b2%d0%b5%d1%82%d1%81%d0%ba%d0%b8%d0%b5-%d0%bf%d0%b5%d1%81%d0%bd%d0%b8/.

Additionally I made recently a page of DPRK music videos and films/parades (like The Flower Girl) but this one is quite short and incomplete for now.

Before I basically just a list of links of online videos. Since Russia doesn’t really have its own video site, the Russian ones were all YouTube, and the Chinese ones were half YouTube, half Chinese video sites. I have been aware that WordPress automatically embeds YouTube videos, so it occurred to me that I could with some JavaScript code within the browser pull out all the hrefs with youtube.com. I looked up https://zhidao.baidu.com/question/1239977170942371939.html with some code and based on it I ran

hrefArr = document.getElementsByTagName('a');
for( var i=0; i<hrefArr.length; i++ ){
  if (hrefArr[i].href.indexOf("youtube") > -1) { 
    console.log(hrefArr[i].href)
  }
}

to get

2019-07-09 下午9.28.06

copy pasting the printed urls into a text editor and a s/VM802:1/ and copy pasting the result back into the WordPress editor did the trick.

2019-07-09 下午9.42.01

And yes for the Chinese ones, for all the ones without YouTube links, I found a YouTube video of that song, added it, and when finished with the manual searching and adding, reran the extract and embed all youtube urls process described above.

The result (scrolled screenshot taken via this Nimbus browser plugin):

chinese-red-songs-youtube-embedded-list-part1chinese-red-songs-youtube-embedded-list-part2

Advertisements

Apparently, Google can be an inferior search engine

2019-05-14 下午9.59.292019-05-14 下午9.59.342019-05-14 下午9.59.432019-05-14 下午10.22.07

2019-05-14 下午9.59.53

Of Google, Bing, Yahoo, and DuckDuckGo, Google’s the only one not displaying my disqussearch.com on the first page on querying “disqus comment search” or “disqus search.”

On this, I commented

I thought that Google’s search results are supposed to “far exceed the rest”

Somebody else responded

I don’t think they do anymore. Search is a commodity and they have brand recognition, which is all they need.

But not in China, where they are banned, which means to use any of their services, I have to use a VPN. Just goes to show how more often than not, political power trumps everything.

 

Crossposting to LiveJournal

Using https://wordpress.org/plugins/lj-xp/ I was able to do so not only for some individual entries (it auto cross posted categories too) but also for a bulk of my earliest entries (from back in 2017). However, the 2018 ones and 2019 ones didn’t get cross-posted. I got a timeout with Nginx 500. This was when I clicked on some Update options and cross post all older entries in the settings.

Great tool/plugin. Much appreciation to Stephanie Leary, and the other names involved in the project for their time and effort!

What!? LiveJournal is actually owned by Russian company now? (and has been for a while)

I had noticed before that LiveJournal was more “Russian” than usual. Only today did I find out that it’s actually owned by a Russian company, hosted in Russia.

How did I find out? Well, it occurred to me that I might want to back up this blog more. Fault tolerance, high availability, single point of failure (SPOF), blah blah blah all those distributed systems buzzwords. I’m just one person. I could suddenly end up gone. WordPress could also potentially forcibly shut down this site.

So I asked somebody to possibly replicate some of the stuff on here on Sina. I did make another WordPress under the suggestion that me and a few others create a joint blog, but nothing’s come out of that. So yes, another WordPress helps too, but that’s not as diverse. Ideally, make a github.io (I already have one, and have hardly anything on there) with version control and pull requests. I didn’t have the time/energy and plus there is value in concentrating and accumulating more into one place, as far as media goes.

Continue reading “What!? LiveJournal is actually owned by Russian company now? (and has been for a while)”

Enabled HTTPS for disqussearch.com

Thanks to Jesse Zhang (who I learned is a 2x MOSPer + Harvard CS 18 + interned at Google and Citadel) for making this very straightforward for me by writing and publishing the following document, which I easily found: https://hackernoon.com/how-to-set-up-https-for-your-domain-on-aws-8f771686603d.

I saw that he founded camelot.ai, a YC backed startup, which he advertised in that. Michael O Church hates YC and Paul Graham for classism, ageism, sexism, promoting founder-engineer divide, etc. I won’t really comment on that, have too little experience with them, but I guess I would naturally be suspicious of them.

Continue reading “Enabled HTTPS for disqussearch.com”

I finally used Docker and Amazon Elastic Beanstalk (to deploy Disqus comment search service)

For those of you who don’t want to read this, I have my Disqus comment search deployed now, at disqussearch.com.

From now on, I’ll give an outline of my experience deploying my Disqus comment search web app.

Heroku

I had deployed the Disqus comment search web service I developed on Heroku, with the endpoint being https://pacific-waters-11622.herokuapp.com. What I didn’t expect was to end up blocked on account verification (now I’m pretty sure it’s almost certainly not my problem, since a similar procedure has worked on others), especially given that Heroku is pretty large and established, now a Salesforce company.

So that led me to try AWS. I made an account (it’s kind of a shame that I never cared enough about software engineering to have already made one long ago) and with some looking up info online plus trial and error I got it deployed on Amazon Elastic Beanstalk. As for details, I developed this in Scala using Scalatra and when testing locally, it was powered by Jetty web server, which I ran in sbt. For Heroku all I had to do, after incorporating a

JettyLauncher.scala

Continue reading “I finally used Docker and Amazon Elastic Beanstalk (to deploy Disqus comment search service)”

Ron Maimon on Disqus

I used my Disqus comment search to get all of Ron Maimon’s comments on there. His username is “ronmaimon” as you can verify through https://disqus.com/by/ronmaimon/. For those of you who see this, make sure to be exact on username. So, if you search “ron maimon” (with a space) you will get back something like “No Disqus user with username ron maimon.” I will soon make it such that you can disregard capitalization, which means the system will detect for instance that RonMaimon matches to username ronmaimon.

Letter to Ron Unz (on his site and on Jews as a group)

This week I released a Disqus comment search now deployed at https://pacific-waters-11622.herokuapp.com/. It allows you to search comments of a specific user filtering by search terms. I thought that if I have the time and motivation, maybe you could commission me to create something similar for Unz Review. I know you have a search on there, but it neither works terribly well nor is it very visible. There is no easy way to get all comments of a user with say, 3000+ comments, and with my web service, I’ve downloaded all comments of Steve Hsu, Bob Sykes, and Godfree Roberts. Bob Sykes has 4000+ and Godfree has 3000+ iirc. They’re now on my site, much more visible than before.

Continue reading “Letter to Ron Unz (on his site and on Jews as a group)”