Monmonja Programming Blog

October 29, 2008

Searching tv shows in chinese video sites

Filed under: Hacks,Other — Tags: , — admin @ 11:39 am

Say you want to watch your favorite tv shows online, (hulu is not available in other place, those people think that the only country in the world is US), and you really want to watch it. You can go to Chinese video sites like youku.com and search for the shows that you want to watch, all you have to do is locate the search box and start searching. But how?

Usually they would name tv shows like heroes 第三季 07, or heroes第三季 第07集, now what does this mean? The first Chinese words, 第三季, means the 3rd quarter or the 3rd season, then the 2nd Chinese words, 第07集, means the 7th part or the 7th article or 7th set. Now what if i want to watch the 2nd episode in season 2? You would search something like ‘heroes 第二季 第2集’ or ‘heroes 第二季 第二集’ .

If we put it into a mathematical formula it should be something like
let search = x 第y季 第z集
where x is your favorite tv shows
y is the season number
z is the episode number

And here are the numbers for you to substitute from
1 = 一
2 = 二
3 = 三
4 = 四
5 = 五
6 = 六
7 = 七
8 = 八
9 = 九
10 = 十

So getting heroes season 1 ep 9 is like
search = heroes 第一季 第九集

What about numbers getter than ten? To get numbers beyond 10 you have to mix them in the formula
let num = x十y (the second character is not a plus but the Chinese ten 十)
where x be the multiplier of ten except 1, you will understand why except one later on
where y is from one to nine, then y would be added to the results of x十

Say you want to search for the 25th, it should be
二十五
Why? x is the multiplier then 2(10), 二十, is 20 then add 5,五, then its equal to 25, 二十五
Thirty four would be 三十四
Forty nine would be 四十九

You could simple rephase the formula to
let num = (x multiply to 10) plus y

Now from 11 to 19, you don’t need to add 一 to the front coz its the same with or without it.
And so 18 would be 十八
Fifteen would be 十五

If you find this way to complicated then you can use Google Translate, btw i’m not Chinese, i just studied in Hong Kong when i was small so i do know their language a bit.

Hope it helps and lets all hope that big media company would realize that there people outside US.

October 9, 2008

Watch MyGma for free

Filed under: Hacks,Other — Tags: — admin @ 9:26 am

MyGma is the online initiative of GMA7 Network, subscription fee of 12.99,7.99 a daily pass of 0.99 and a 7 day free trial but you need to create an account. But there is flaw in this on where you can watch it for free without an account (you can do it anyway on other video site). The flaw is the same as imeem.com on the beginning on where the content is at the back (usually flash) and a layer of html on the top asking you to login in order to see the content. The layer is was not done by javascript (i tired to disable javascript and it still have the layer). Anyway to cut the story short here is the steps

1) Ditch IE (Internet Explorer) and Download firefox
Spreadfirefox Affiliate Button

2) Download Firebug
https://addons.mozilla.org/en-US/firefox/addon/1843

3) Go to myGMA
http://www.mygma.com.ph

4) Select a video
Example http://www.mygma.com.ph/video/570/Imbestigador

5) Right click on the black overlay and select Inspect Element, there will be a yellow code highlighted right click on that
and select Delete Element

6) Do step 5 for the login box

7) Watch and enjoy

Cool i can watch GMA for free, only for a short time coz i have reported this issue to them (they are doing business) and until they have actioned according to my post.

August 10, 2008

Ubuntu Alarm

Filed under: Hacks,Ubuntu,linux — Tags: , — admin @ 10:12 am

I had been looking for some alarm related software in Ubuntu, and i had found a solution using vlc together with cron job, so i had made my own alarm.

First Create a shell script
> sudo gedit alarm.sh
> Enter the following
#!/bin/sh
/usr/bin/amixer -c 0 sset Master,0 99%
/usr/bin/vlc --intf dummy --repeat /home/almond/gising.mp3
> Save and exit
> chmod +x ./alarm.sh

What this does is create a file what will set the mixer to 99 volume (amixer -c 0 sset Master,0 99%) and call vlc to play your mp3 using a dummy interface module (no interface inshort) and repeat the music unlessly. Then make the file executable.

Next stuff is to make an automatic/cron job for you (by default this will use vim as editor)
If the following does not work, follow the alternative instruction
> crontab -e
> press i to insert the following line
* 7 * * 1,2,3,4,5 /path/to/alam.sh
> exit vim (esc then :wq)

(This will make the alarm every 7am from monday to friday)

Fujitsu Computer Systems Corporation

Alternative instruction
> touch crontab
> gedit crontab
> Enter the following
* 7 * * 1,2,3,4,5 /path/to/alam.sh
> crontab -u crontab
> sudo /etc/init.d/cron restart

What this does it create a new cron file under you username and restart the cron process.

If you want a more simple approach try this one
http://alarm-clock.pseudoberries.com/, there is a guide on how to install it on linux.

I used the cron approach, now how to stop the music?
This will be fun coz you have to really wake up and type something or open system monitor to stop all vlc. If you cannot locate your system monitor then type these commands
> top
memorize the process id of vlc and press q
> kill -9

Hope this does wake you up, just don’t go back to bed after stopping the music.

July 1, 2008

Download All Rapidshare Link At Once

Filed under: Hacks,Technology,linux — Tags: , , — admin @ 2:44 am

Update: Thanks to Thomas, we could use the linkify addon
https://addons.mozilla.org/en-US/firefox/addon/7878

Sometimes you might stumble on some sites where gives you a list of rapidshare link (not really a link) and you want to download all of it, you cant do Ctrl + click, or Open All Urls in new tab on firefox tab mix plus. So how to do it? This requires you to use the terminal, vi, premium Rapidshare account and Unix base OS (sorry windows user, you can still do this but your on your own).
(more…)

June 6, 2008

Google Gadget on Ubuntu Heron

Filed under: Hacks,Technology,linux — Tags: , , , — admin @ 6:48 am

This is how i installed Google Gadge on Ubuntu Heron. Hope it helps.
(more…)

June 26, 2007

Phpbb3 Adsense version 2

Filed under: Hacks — Tags: — admin @ 7:37 am

Its been a while since i last blog, hah, been so busy. These are the new ways of how i manage to add google adsense in phpbb3
(more…)

May 19, 2007

Adsense in phpBB3

Filed under: Hacks — Tags: — admin @ 10:06 am

I was experimenting with phpBB3 and I was looking for hacks that would insert google adsense.
There are some hacks out there but I want to show you how I did it.

Powered by WordPress

Monmonja Programming Blog is Digg proof thanks to caching by WP Super Cache