Monday, July 15, 2013

Cut or trim mp3 files with Linux

Link.


We are going to see two different options:

1. mpgtx
To install this program under Debian
$ sudo aptitude install mpgtx
Now if you want to trim a mp3 file into 10 pieces just enter this command
mpgtx -10 input.mp3 -o output
You will get output01.mp3, output02.mp3 .... output10.mp3 files, and now you can easily transport them, use them as ringtones, or anything you need.
Now if you want to cut an specific part of the mp3 file you may use ranges:
$ mptsplit input.mp3 [00:00:20-00:00:58] -o output.mp3
Now you will have from the 20th second to the 58th second of the song, in output.mp3 file, which is great for creating ringtones for your cellular.
Read the man page for more options, as you can also join files and some other useful things.

2. mp3cut
First install the program, mp3cut is one tool, of the mp3 suite tools called poc-streamer, so lets install the suite of tools.
$ sudo aptitude install poc-streamer
Now to cut or trim the mp3 files, it works a lot like the first option in this article, lets try the same example.
$ mp3cut -o output.mp3 -t 00:00:20+000-00:00:58+000 input.mp3
This will have the same effect and you will get a resulting file containing the song from the 20th second to the 58th second.
Do not forget to check the man page, and also to hear to your resulting files also from the command line check out: mpg123
Read more ...

Tuesday, July 9, 2013

X Forwarding with Putty on Windows

Prerequisites

Configuring Putty
  1. Add Unix hostname/IP address
  2. Switch Protocol to SSH
  3. Type name of session in saved sessions
  4. Click 'Save'
  5. Expand the 'SSH' tab from the 'Category' list
  6. Choose 'X11' from 'SSH' list
  7. Check 'Enable X11 Forwarding'
  8. Put localhost:0 to X display location
  9. Choose 'Session' from 'Category' list
  10. Click 'Save'
Connecting
  1. Start Xming
  2. Start Putty
  3. Double click on the saved session you want
via: here

Read more ...

Windows 下配置 Latex

首先安装 MiKTeX 或者 TexLive
然后安装 TeXstudio

MiKTeX 的 texmf 路径可以通过 MiKTeX Options (Admin) 程序查看

打开 MiKTeX Options (Admin)
选择 Roots
勾选 Show MiKTeX-mantained root directories

就可以看到了

第三方的 theme 可以直接放到这里面

另外安装 package 可以用 Package Manager (Admin) 程序安装
如果是下载好的宏包安装
可以打开 Package Manager (Admin)
选择 Repository
选择 Change Package Repository
选择 Package shall be installed from a directory
Read more ...