Thursday, March 6, 2014
How to combine MP4 files on the Debian linux
If you are looking to combine MP4 files from the command line here is the easiest solution. First you need to use the following command to install the program.
sudo apt-get install gpac
Once installed you will be able to run the following command to join the files.
MP4Box -cat mp4_file_part_1.mp4 -cat mp4_file_part_2.mp4 -new joined_file.mp4
You should now be able to combine MP4 files from the command line, and pretty quick at that.
Tuesday, September 10, 2013
Multiple IP addresses on One Interface
Multiple IP addresses on One Interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.42
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
address 192.168.1.43
netmask 255.255.255.0
auto eth0:1
allow-hotplug eth0:1
iface eth0:1 inet static
address 192.168.1.44
netmask 255.255.255.0
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.42
netmask 255.255.255.0
gateway 192.168.1.1
iface eth0 inet static
address 192.168.1.43
netmask 255.255.255.0
iface eth0 inet static
address 192.168.1.44
netmask 255.255.255.0
# adding IP addresses from different subnets is also possible
iface eth0 inet static
address 10.10.10.14
netmask 255.255.255.0
Additional information can be found on the http://www.shorewall.net/Shorewall_and_Aliased_Interfaces.html page.
Tuesday, August 14, 2012
How to I change my Keyboard Layout on Openbox?
sudo dpkg-reconfigure console-setup
This will step through various configuration options for your console, along with Keyboard Layout.
For temporarily switching between keyboard layouts
Especially if you don't have too many keybindings
So I needed to have both the regular US keyboard as well as the US International keyboard so that I could type in Thai keyboard.
Here are the steps I took:
1) Determine which keyboard layouts you want to switch between. Determine if you want 2, 3, or more. This tutorial will work with as many as you need, but this is the first step
2) Open up a text editor and open the file ~/.config/openbox/rc.xml
3) Scroll down to the keybindings section - you should see stuff like <keybinding key="“blah-blah”"></keybinding>
4) Find any line which says </keybinding>
5) Go to the end of that line and hit Enter
6) Copy and paste the following text:
<keybind key="C-F11">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>English keyboard</name>
</startupnotify>
<command>setxkbmap us</command>
</action>
</keybind>
<keybind key="C-F12">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Thai keyboard</name>
</startupnotify>
<command>setxkbmap th</command>
</action>
</keybind>
7) Edit the <key=“C-F12”> and the <command>setxkbmap th</command> to fit your desires (C is Ctrl key, A is Alt key, S is Shift key, and change it if you want
8) Rinse, Lather, and Repeat for all of your other desired keymaps.
9) Restart Openbox or reboot computer.
That's it!
Wednesday, May 4, 2011
Some Useful Secret Codes on Nokia’s S60 Phones
There are some useful secret codes for Nokia S60′s phones to get system information, such as IMEI and software version. To enter theses codes, the phone must be in the idle screen (not in the menu screen). What is idle screen? This is the screen where you see the operator name, date, time, battery level, signal strength and some other stuff. You can switch between idle screen and menu screen using Menu key ().
*#0000# – Display the software version, the date when the software was built and the phone model. In some cases, the phone model is not the one used by marketing. It is the internal model used inside Nokia. For example, RM-36 is the internal name of Nokia 6680.
*#06# – Display IMEI (International Mobile Equipment Identify) of your phone.
*#2820# (*#BTA0#) – Display the Bluetooth device address of your phone.
*#62209526# (*#MAC0WLAN) – Display the MAC address of the WLAN adapter. This is available only in the newer devices that support WLAN
*#7370# (*#RES0#)- Reset your phone to the default factory settings. Usually you will need this code when you want to reset your phone back to the same condition when you got it for the first time. When the phone ask for security code, the default one is 12345.
Warning: Before you do reset the phone, make sure that you don’t have important data. Your data on the phone memory will be lost once you reset it.
*#92702689# (*#war0anty#) – Display the life timer information of your S60 phone, i.e. the total time of phone call (in minutes). Some users have asked how to reset this timer; as far as I know the only way to reset it is by flashing the phone.
*#7780# (*#rst0*) – This will soft reset your phone. It is different from *#7370# because all data, like contacts, calendar and notes, are not removed. It will only reset the phone settings, such as profiles, themes and shortcuts. The default lock code is 12345.
There is another key combination which is used to hard reset the phone (similar to #*7370). It is useful in some cases, for example when the phone cannot reboot. The trick is by switching off the phone then press and hold Call key (Green key) + * key + 3 key + power button for a couple of seconds. Note that you have to press and hold the four keys at the same time; otherwise it won’t reset the phone. This key combination doesn’t work on some S60 phones.
Wednesday, February 2, 2011
How to install your ipa
1. Through iTunesThe first and most common method used is through iTunes. You must have the following from cydia.a) Installd Patch for firmware 3.0/3.0.1/3.1.1/3.1.2b) miPatch for firmware 2.2/2.2.1This allows cracked ipas from iTunes be synced onto the iDevice. Simply drag the ipa into iTunes and sync it to your iDevice. You should now have that ipa on your springboard!
2. SSHSSH is a little more complicated than simply using iTunes, but I find it to be the most convenient way. You must have the following from cydia.a)OpenSSHOn your computer, you must also have an SFTP/FTP client installed. I Use WinSCP. Download that here.http://winscp.net/eng/download.phpOnce you install it, open it up and it should take you to a screen with the options new, edit, delete, rename, etc.Select new, and enter the following.
a) Host name: Your host name is always your IP address. Open the settings app on your iDevice, then select WiFi, and tap the blue arrow next to your currently connected WiFi. Where it says IP Address is what your host name is going to be. Type that in the host name.
b) Port number: Should usually leave as is.
c) User Name: Your user name is always root. So type in root.
d) Password: The default password is alpine. Unless you have changed it to something else, type in alpine.
e) Private key file: Just leave this blank.You can either save the connection, so you don't have to fill in all the fields again by clicking save..., or you can just login.Once you are connected, you will be in the directory /private/var/root. Depending on what you would like to install it with, you will have to select different folders.I use the Installous folder, to install my ipas. If you do not have Installous 3 or higher, you can download it from a source.To add a source, go into cydia and select the manage tab. Then select sources, Then edit in the top right corner, and then add in the top left corner. A window should pop up with http:// already typed in. Type in,cydia.hackulo.usThen select add anyway. Now go into the search tab and type in Installous. It should now come up and let you install it.Back to SSHing, click the folder with the two dots until you are in /private/var. Then look for the folder mobile and open it. Then select the documents folder. Then select the Installous folder. And then select the downloads folder. You should now be in /private/var/mobile/Documents/Installous/Downloads.Simply drag the ipa there and let it copy it over. Once it is finished, go on your iDevice and open Installous. The ipa should now be in the downloads tab at the bottom. Simply tap the ipa and select install, then it will install your ipa.
I hope it has helped someone :D
Monday, November 17, 2008
Direct DOS print outs to network printers on Microsoft Windows
For example, let's say your DOS program prints to LPT1 (most DOS programs do) and your printer is on the network at the following network path:
\\MY_SERVER\PRINTER
- Go to the "DOS/Command Prompt"
- Type the following command:
NET USE LPT1: \\MY_SERVER\PRINTER
and press ENTER.