Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

Wednesday, 27 June 2012

Installing (ibus-Anthy) Japanese IME on Mint12 KDE

1. System Settings -> Locale -> System Languages -> Download Language support -> wait for download to complete

2. Install Tab -> Japanese -> Download Language Support -> Wait for Download to complete -> Do not close this window

3. Synaptic Package Manager -> mark for downloads: Ibus Anthy, Mecab & Kasumi -> Apply -> Close after changes applied

4. Applications -> Settings -> Keyboard Input Methods -> Click "Yes" to start ibus daemon -> close

5. Go back to the System Language Window from Step 2 above -> Set System Language Tab -> Select Japanese Language -> go to the drop-down box at the bottom right and select ibus -> Click Apply -> click OK when Alert box says the default system language is Japanese -> your original default system language and click apply. (We don't want our system language to be Japanese, we only want Japanese support.)

6. Click Country/Region & Language on the left -> Move the desired language to the right from the left with Japanese now being an option -> click Apply and OK for the Alert Box. -> wait for it to update

7. Click on Overview at the top to go back to the main systems settings -> Click on "Startup and Shutdown" at System Administration on the bottom -> click "Add Program" -> Type "ibus" in the text box and select "ibus-daemon" -> Click OK -> Click Application Tab -> Type in the following text box: Name: "Ibus", Description: "Japanese IME", Command: "ibus-daemon -d" -> click OK (This will start-up Ibus everytime the system boot up). -> Close System Settings Window.

8. Shutdown -> Restart

9. Applications -> Settings -> Keyboard Input Methods -> Input Method Tab -> Click on the "Select and Input Method" drop-down box -> "> Japanese" will be displayed" with Japanese greyed-out. -> Do not click on "Japanese" but click on the ">" before it. -> "Anthy" will appear -> Select "Anthy" -> Click "Add" -> "Japanese Anthy" will appear in the text area. -> close.

10. Shutdown -> Restart

11. Test with several input windows such as "kate", "mozilla" & "LibreOffice Writer". It had only worked for "kate" before the shutdown/restart in step 10 above. (CTR+space to switch between languages)





Thursday, 10 November 2011

Algorithm for sorting money into $20 & $50 notes for an ATM




Precondition:
Amnt is valid. That is: Amnt > $20; Amnt != $30; Amnt % $10 = 0
The following codes uses integer division so if any numbers are of type double convert to integers where necessary.

// Referring to the table:
//amnt; numOfFifties and numOfTwenties are integer variables
// also need remainder as integer variable.

// pseudocode for sorting into $20 & $50 

numOfFifties = amnt / 50;
remainder = amnt – numOfFifties * $50;
numOfTwenties = remainder / $20;

// The above code works but not for values such as 60, 80, 110, etc.
// Because of integer division it won't give us the values we want in the table.
// So we have to test for those values and add some more codes to make it work.
// The following codes work for all values. 

numOfFifties = amnt / $50;
remainder = amnt – (numOfFifties * $50);
    //Here is the test for these values
    if ( (remainder % $20) != 0 ) {
         numOfFifties = numOfFifties – 1; // Change back to the previous $50 counter
         remainder = amnt – (numOfFifties * $50);
         numOfTwenties = remainder / $20;
    } else { // This is where it isn't those values that sit on the border
         numOfFifties = amnt / $50
         remainder = amnt – (numOfFifties * $50);
         numOfTwenties = remainder / $20;
        } // end else
} // end if

Sunday, 2 October 2011

Reformat drive and installing software on Windows 7 250GB Partition

Reformat drive and installing software on Windows 7 250GB Partition
Start-time: around 9:30pm
  1. Insert Linux  Mint Live DVD
  2. Copy data over to external HD: 
  • My Documents, 
  • Pictures, 
  • DropBox, 
  • Shared Data Folder (data for use by different OS. 
  • No important data was on Data Partition
  1. Format Drive to 250 GB & Installed Win7 Pro
  2. Install Acer Drivers
  3. Install the following Software:
  4. MS Visual Studio 2010
  5. MS Access 2010
  6. MS Visio 2010
  7. MS Project 2010
  8. MS Office 2010 Home & Student Edition
  • FireFox Browser with the following Add-ons:
  • Rikaichan: English - Japanese Plugin & Japanese Names dictionaries
  • AdBlock with subscription to list
  • FlashBlock
  1. Adobe Flash
  2. Java Support
  3. Adobe Acrobat Reader
  4. Sophos Anti-virus
  5. Anki with Japaneses Support & Tatoeba Plugin
  6. Mplayer
  7. Enable games features on Win 7
  8. DropBox
  9. Run Windows update
  10. Create Image and Recovery Disk
End-time: around 4:30am


Other Software to install then Create Image on hard-drive again:
  1. VLC (done)
  2. HandBrake (done)
  3. Aegisubs (done)
  4. Blender (done)
  5. MS XNA 4
  6. MS Expression Studio 4
  7. Create New Image once done.
Create new partitions for Linux:
Install: various version of Linux Mint around 10-15GB: KDE, LMDE Gnome, LMDE Xfce for experimentation and maybe Fedora 16 to see any progress in Gnome 3

A return to blogging activity

Haven't posted in awhile mainly due to being busy with my Masters of  IT. Only doing two subjects this semester partly because of not doing too well in my previous courses due to chronic fatigue and partly because those were the only two subjects available . Now that I have worked out the cause of it being an allergy to rice, I wanted to give it everything I've got. So far I've got around 7s for all my assessments (despite being sick for over a month from exposure to the cold wind and rain from the South at the end of August). But the marks aren't important, they are just a natural result of me wanting to reclaim the last 10 years of my life back and trying to learn as much as I can.

To me the course is interesting so I will start blogging again. As for the lack of fansubbing activity, I'm starting to lose profiency in my Japanese with that loss being retarded by a daily practcice on Anki. I do miss fansubbing but I don't know when I can afford the time to do it. Fansubbing takes a lot of time.

Wednesday, 4 May 2011

Fansubbing Technology

In this entry, I will discuss the technology used in doing my first two fansubs. I will specifically talk about fansubbing "Young Black Jack" as it was harder to sub due to the medical terms.

Firstly, I do my work on a 4th generation white MacBook dual booting of OSX Snow Leopard and Ubuntu Maverick Meerkat 10.10. The OS that I mainly work under these days is Ubuntu.

Let's look at some screenshots of the applications used while fansubbing "Young Black Jack." In both these screenshots, the panel on the top and both docks to the left and the bottom had "autohide" turned off. Normally, I would have "autohide" on, so I have a bit more space on the screen to work with. Screenshot 1 is on Virtual Desktop 1 and Screenshot 2 is on Virtual Desktop 2. These are like workspaces in OSX or rather workspaces in OSX is like virtual desktop on Linux as I believe that Linux had these technology before Apple. Breaking down the software used in Screenshot 1 and Screenshot 2:


Screenshot 1:
Gnome MPlayer to play the video; Gedit Text Editor where I just typed over the timed Japanese subs; and I also opened up the Japanese sub file with Mozilla Firefox. Firefox had Rikaichan plugin installed where the options of the installed dictionary from JDict is configured. By hovering the mouse over the Japanese words the entries will show up in a tool tips type box. This is not shown here as I needed to move the mouse to do the screenshots.


By clicking the second space in the virtual desktop either in the panel at the top or the dock at the bottom, my screen will spin around to screenshot 2.

Screenshot 2: Are the websites that I used. Mainly Google, Wikipedia, online English dictionary and thesaurus sites and most importantly two tabs with Jim Breen's JDic opened. One page is opened with Jpn-Eng General (EDICT) dictionary for gneral usage terms while the other is opened with the Life Sciences/Bio-Med dictionary for medical terms. The other application shown is Anki where I enter new words and phrases to study Japanese.

But soon my fansubbing process is about to change as in the panel there is an icon for Aegisub which didn't work very well under Linux the last time I tried it. This time it's a goer. And the cost of all these applications? $0.00 and legal.

Wednesday, 6 January 2010

Ubuntu Sakura Theme on MB


Friday, 20 November 2009

Japanese Input for Anki or other Qt Apps.

MB 4,1=> Ubuntu 9.10 => Primary Desktop Gnome + Secondary Desktop KDE

Installed Anki but Anki is Qt app.
Installed scim/skim in both Gnome and KDE, but Japanese input only works for Gtk apps.

Uninstalled scim (maybe ok to leave it installed and install skim components for later as well)

In Gnome, run ibus daemon: System => Preferences => IBus Preferences => Input Method =>Japanese Anthy => close. There shouldn't be any problems in setting up IBus, although again Qt apps didn't work for me. Gtk apps work fine though.
I don't think it was necessary, but in my attempt to get IBus working for Qt apps I followed these instructions:

http://www.uluga.ubuntuforums.org/showthread.php?p=8293772

Logout of Gnome Desktop.
Log into KDE and follow these instructions to installed relevant scim/skim from repository (if not already installed):

http://kubuntuforums.net/forums/index.php?topic=13489.0

Because these instructions are for Edgy, I skipped the first three instruction codes from part 1, and used the KDE's equivalent to synaptic to get the scim/skim from the repository. Should also be okay to install from the Gnome Desktop via synaptic then log into KDE. Follow the instructions carefully, especially the all Caps part and instead of logout then login may have to restart for some parts.

Once installed, test that scim works ok for Qt apps such as kate and Anki.

Logout or restart and login using Gnome Desktop. CJK inputs can then be used for Qt apps. using skim, while IBus is used to input CJK for Gtk apps.


Note: Anki works fine with Japanese input under Linux Mint 8 on the GDM with just iBus installed. That is there is no need to install KDE on Linux Mint 8 to get Japanese IME working for QT apps.