Feb 10, 2025

Alfred Netease Music Workflow Fix

 I was using alfred netease workflow for years, but after I changed a new laptop and downloaded the workflow, it does not work anymore. Finally I found out the reason and came out with a fix.


It turns out that my netease music is in English version and the workflow identifies those menus in Chinese, for example :tell menu "控制" of menu bar item "控制" of menu bar 1


So the fix is to change those names to English according to the actual menu and menu items names, for example tell menu "Controls" of menu bar item "Controls" of menu bar 1.

Hope this would also help you.

Jan 18, 2024

IntelliJ Editor NNBSP problem

 






Recently I start to use IntelliJ to coding, but I met a strange problem as shown above that there are special characters, which in my mind are garbage codes. How to remove them?

There a lots of posts. But let's first try OpenAI, let's see whether they know the answer well. 

Below are the interesting dialogs between me and ChatGPT. Have fun!






But actually it's not correct, for example in my editor settings, "Show whitespaces" are already unchecked. 


【Solutions】

Go to IntelliJ Settings -> Editor -> Advanced Settings,

Uncheck "Render special characters, such as control codes, using their Unicode name abbreviations.



We can see the contents are good now. 



PS: It has been quite a long time since my last post. How time flies! But better late than never, and let's go back to the beautiful engineer world!

Nov 9, 2016

Adobe Reader Error "adobe failed to connect to a dde server"

I met a problem that my Adobe Reader cannot open pdf files, and pops up an error: "adobe failed to connect to a dde server"

To solve this, simply open control panel->Adobe Reader->Modify, use repair model to fix the problem.


Sep 7, 2015

Strange spark problem: "Error:scalac: error while loading ..., Missing dependency bad symbolic reference..."

I am very new to spark and try to develop it on Windows using IntelliJ. This kind environment is not typical environment for developing spark because normally people use Ubuntu + IntelliJ.

I copied a famous example from spark official example SparkPi, when run it in idea, it pops an error:

I did a lot of search but no luck there. Finally I find out that the problem is caused by my pom.xml settings.

 

    org.apache.spark
    spark-core_2.10
    1.4.1
    ${myscope}

The reason of doing this is because we don't to package spark-core jar file in our finally package, but when specify it as provided it cannot run locally. The details can be check in another post of mine:
IntelliJ "Provided" Scope Problem

The solution is that:
1. keep the ${myscope} value here
2. add pom.xml a variable called myscope


      compile

3. In maven part, keep the setting
clean install -Dmyscope=provided

Now the spark object can run successfully and also package as we expected.

If you think this article is useful, please click the ads on this page to help. Thank you very much.

Aug 29, 2015

GitHub for Windows through Company Proxy

GitHub is a very famous tool but I am just starting to use it... Shy... Because we come from ancient times in source codes management: ClearCase, SVN, (TeamForge), now it's time to embrace GitHub.

I have downloaded a windows version. GitHub for Windows... Maybe the best way is to use the command line which I will investigate later.

This is the tool GitHub for Windows, which can be obtained here: https://git-scm.com/download/win



The problem is that we are under company proxy and there is no option to change it. Luckily there is a solution.

1. Open the file
C:\Users\YOURNAME\.gitconfig

2. Add there two lines
[http]
proxy = http://YOUR_COMPANY_PROXY:8080

[https]
proxy = http://YOUR_CONPANY_PROXY:8080

OK, all set!


By I feel using command line is more convenient.

1. clone

git clone REPOSITORY URL
for example

2. update
1) cd to the folder for example Spark
2) git pull


For the turorial of Git, we can check the great website, many thanks to the author!
http://rogerdudler.github.io/git-guide/

If you think this article is useful, please click the ads on this page to help. Thank you very much.