Setting Up an Actionscript Development Environment on Linux

Actionscript development is typically done using Flash Pro and Flash Builder, but neither of these software has a Linux version. On Linux, we can manually set up an Actionscript development environment. The Actionscript development environment mainly consists of three components: the IDE, SDK, and Flash Player Debugger. IDE Adobe provides Flash Builder specifically for Actionscript development, which is based on Eclipse. Since Eclipse offers a Linux version, we can achieve Flash Builder functionality on Linux by installing the Actionscript plugin on Eclipse. First, download the Eclipse IDE from the Eclipse official website. The latest version is 4.3. The installation process is not detailed here. Eclipse requires a Java environment to run. Users of Linux distributions without pre-installed Java can visit the Oracle website to download the appropriate installation package. After installing Eclipse, you need to install the Flash Builder plugin. Since there is no official plugin for Linux, we use an open-source Flash Builder 4.5 Linux plugin called fb4linux. The project can be found at: http://code.google.com/p/fb4linux/. Visit this link to download the FB4.5ForLinuxaa and FB4.5ForLinuxab packages. Once downloaded, use the command cat FB45ForLinux* >FB45ForLinux.tar.bz2 to combine the two packages into a single compressed file and then extract it. Next, install the FB45ForLinux plugin in Eclipse. In Eclipse, go to Help->Install New Software, click Add, and in the pop-up window, select Local. Navigate to the directory where FB45ForLinux.tar.bz2 was extracted, and click OK. If no installable plugins appear in the list, uncheck the Group items by category option to display the available software. Select all available items and click Next to install. Once the plugin installation is complete, the IDE configuration is done. Next is the SDK installation. ...

August 4, 2013 · 3 min · Zhiya

Creating a JavaScript Runtime Environment for Vim

When testing JavaScript code, I usually write an HTML page, place the code in the body, execute it in the browser, and then check the JavaScript console. Suddenly, it occurred to me that I could use a JavaScript engine to execute JS directly. So, I decided to give it a try. After a quick Google search, I found Mozilla’s SpiderMonkey engine and Google’s V8 engine. Since V8 is widely recognized for its speed, I decided to go with it. However, after looking at some online articles, I realized that installing the V8 engine is quite troublesome = .= Then I remembered that Node.js seems to use the V8 engine, so I could just use Node.js to execute JS. I went to the Node.js official website to download the latest version. There is a pkg installer for Mac, and after installation, I needed to configure Vim to use Node.js to execute JS files. Next, I modified the .vimrc file. In the .vimrc file, I added a compile command for JavaScript files: node filename.js, as shown in the image. ...

March 7, 2013 · 1 min · Zhiya

A Small Issue Triggered by the 'nettop' Command

I came across a post online mentioning that Mac OSX 10.7 introduced a new command called nettop, which allows you to view current network connections and data flow in real-time. Here is the description of the nettop command: The nettop program displays a list of sockets or routes. The counts for network structures are updated periodically. I decided to give it a try in Terminal. After experimenting with it, I didn’t pay much attention to it. However, about a minute or two after closing Terminal, the fan on my Mac suddenly started spinning wildly. According to iStatMenu, it reached around 5300rpm. Typically, the fan only spins up like this when playing games or watching Flash content, but when I checked the dock, I found that only Chrome, iMessage, and iTunes were open, and no services like Apache were running. Opening Activity Monitor, I discovered that all four CPU cores were maxed out, and two nettop processes were consuming almost all CPU resources. ...

December 19, 2012 · 2 min · Zhiya

Add Apache and MySQL as CentOS Services

When you install self-compiled Apache and MySQL, they are not added as system services by default, so we need to manually add them as services. Adding Apache as a System Service Copy apachectl to the init.d directory # cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd Edit httpd # vi /etc/rc.d/init.d/httpd Add the following comment lines: # chkconfig: 345 85 15 # description: Apache server Add Apache to the system services # chkconfig --add httpd Adding MySQL as a System Service ...

October 19, 2012 · 1 min · Zhiya

MacOS + VMware Fusion: Setting Up CentOS Network

After performing a minimal installation of CentOS 6.3 in VMware, I found that the network could not be connected whether VMware was set to shared or bridged mode. I searched online for methods to set up CentOS under VMware Workstation, but they did not apply to VMware Fusion on macOS. After some trial and error, I discovered that configuring the CentOS network under Fusion is quite simple. Here’s how: Set VMware to bridged network mode. ...

October 19, 2012 · 1 min · Zhiya