Archive

Archive for July, 2011

Which Amazon EC2 instance is best for my CentOS or Fedora or Ubuntu or FreeBSD or Windows enterprise selection?

July 25, 2011 Leave a comment

Many companies seems like having Amazon cloude, kind of deep trust because it never fall down (advantage), disadvantage (its not friendly, and expensive, as you pay per hour the whole OS). But anyway sometime you have to use it, so use this or if you have better one as enterprise (post me here, we can keep the list alive):

CentOS 5.5: ami-066d9c6f , Kernel ID: aki-4e7d9527  (side note: i still today do not find a correct CentOS version there, its a full of mess out there, and i do not understand why in the hell Amazon, do not put Linux guys and put one standard image so that it works nicely, rather then getting confused for no reason).

Few notes on this (mostly confusing in begin):

1) When you add a instance, it start within a minute

2) If you need a remote access, make sure you do not lose the “*.pem” file. I lost it once and never get it up and runing again.

3) If you click on the instance and you will see there is a button “connnect” that gives you the ssh command and how to connect

4) Make sure you have “Security Groups” assigned and open

- Those are the firewalls, for public traffic (you) to amazon server

5) Make sure you need a “Elastic IP”, which is idiot name but its used for “Public ip” normally we call  it “WAN”

 

 

How to check what are the commands whole day i applied as root?

July 25, 2011 Leave a comment

I am installing and installing suddently it works! But i forgot what exactly i did what. So i want to check back the commands i used, files that i used.

cat /root/.bash_history

OR

/var/log/auth.log

OR

cat .bash_history | grep -P ‘^sudo’

Categories: centOS, Fedora 12

How to find a word from mess of files under a root directory?

July 25, 2011 Leave a comment

How to search whole directory for a specific word?

# find /var/www/html | xargs fgrep “widget”
./application/default/layouts/default.phtml:<div id=”extramenu”><?=$this->action(‘status’,'widget’,'user’) ?></div>

Categories: centOS, Fedora 12

PHP – How to solve the problem when error shows like PHP Warning: SimpleXMLElement::__construct()

July 25, 2011 Leave a comment

In CentOS 5.5 i solved this as following steps, where i needed PHP APC, and i need to make YahooBoss.php work. Basically its a url which allow to grab search, was not friendly, it does not mean i cant? I am a scientist :) i can do anything. Here is for future reference:

Problem: SimpleXMLElement::__construct() /application/search/models/Search/Adapter/Web/YahooBoss.php on line 39, referer:
Prase error or whatever etc etc.

Solution:

1) I included the repository from REMI: http://blog.famillecollet.com/pages/Config-en

cd /tmp
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
cd /etc/yum.repos.d
wget http://rpms.famillecollet.com/enterprise/remi.repo

yum -y install php53.x86_64 php53-cli.x86_64 php53-common.x86_64 php53-dba.x86_64 php53-devel.x86_64 php53-mbstring.x86_64 php53-mysql.x86_64 php53-odbc.x86_64 php53-process.x86_64 php53-soap.x86_64 php53-xml.x86_64 php53-xmlrpc.x86_64
yum --enablerepo=remi install php-ZendFramework-Cache-Backend-Apc.noarch php-ZendFramework-Cache-Backend-Memcached.noarch

2) I installed the Base php53 packages from default repository, only the APC installed from REMI.

# yum list installed *php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.symnds.com
* base: mirror.rackspace.com
* epel: mirror.cogentco.com
* extras: centos.aol.com
* updates: mirror.symnds.com
Installed Packages
php.x86_64                                                                                          5.3.6-4.el5.remi                                                      installed
php-ZendFramework.noarch                                                                            1.11.9-1.el5.remi                                                     installed
php-ZendFramework-Cache-Backend-Apc.noarch                                                          1.11.9-1.el5.remi                                                     installed
php-ZendFramework-Cache-Backend-Memcached.noarch                                                    1.11.9-1.el5.remi                                                     installed
php-bcmath.x86_64                                                                                   5.3.6-4.el5.remi                                                      installed
php-cli.x86_64                                                                                      5.3.6-4.el5.remi                                                      installed
php-common.x86_64                                                                                   5.3.6-4.el5.remi                                                      installed
php-devel.x86_64                                                                                    5.3.6-4.el5.remi                                                      installed
php-pdo.x86_64                                                                                      5.3.6-4.el5.remi                                                      installed
php-pear.noarch                                                                                     1:1.4.9-6.el5                                                         installed
php-pecl-apc.x86_64                                                                                 3.1.9-1.el5.remi                                                      installed
php-pecl-memcache.x86_64                                                                            3.0.6-1.el5.remi                                                      installed
php-process.x86_64                                                                                  5.3.6-4.el5.remi                                                      installed
php-xml.x86_64

# php -m
[PHP Modules]
apc
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
json
libxml
memcache
mhash
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]

Categories: centOS, Fedora 12, PHP, Zend

How to make the screen mode work

July 11, 2011 Leave a comment
For xPanel: .exe -nocontextmenu -nokeys -nomenu -ScreenWidth 1024 -ScreenHeight 768
For kiosk:  .exe /kioskmode -nocontextmenu -nokeys -nomenu -ScreenWidth 1024 -ScreenHeight 768
Optional:
grep profile/.ini
scale for zooms
Categories: Fedora 12

How do i update my SRX210 to latest firmwire?

July 9, 2011 Leave a comment
Q. How do i update my SRX210 to latest firmwire? 
A. Go to IRC first, meet genius friends, follow this now:

## USB connected
root@% umass1: vendor 0x13fe USB DISK 2.0, rev 2.00/1.00, addr 4
da1 at umass-sim1 bus 1 target 0 lun 0
da1: < USB DISK 2.0 PMAP> Removable Direct Access SCSI-0 device 
da1: 40.000MB/s transfers
da1: 1910MB (3911680 512 byte sectors: 255H 63S/T 243C)

root@% ls /dev/da*
/dev/da0        /dev/da0s1a     /dev/da0s1e     /dev/da1
/dev/da0s1      /dev/da0s1c     /dev/da0s1f     /dev/da1s1

root@% mount /dev/da1s1 /mnt
mount: /dev/da1s1 : Invalid argument

## Mount usb
root@% mount_msdosfs /dev/da1s1 /mnt
root@% cd /mnt
root@% ls
.Trash-500                              junos-srxsme-11.1R3.5-domestic.tgz

## Copy new to old (Backup it!)
root@% cp -R junos-srxsme-11.1R3.5-domestic.tgz /var/tmp/
root@% cli

## Install request
root> request system software add no-validate no-copy unlink /var/tmp/junos-srxsme-11.1R3.5-domestic.tgz
Installing package '/var/tmp/junos-srxsme-11.1R3.5-domestic.tgz' ...
Verified junos-boot-srxsme-11.1R3.5.tgz signed by PackageProduction_11_1_0
Verified junos-srxsme-11.1R3.5-domestic signed by PackageProduction_11_1_0
Available space: 204128 require: 25022
Saving boot file package in /var/sw/pkg/junos-boot-srxsme-11.1R3.5.tgz
JUNOS 11.1R3.5 will become active at next reboot
WARNING: A reboot is required to load this software correctly
WARNING:     Use the 'request system reboot' command
WARNING:         when software installation is complete
Saving state for rollback ...
Removing /var/tmp/junos-srxsme-11.1R3.5-domestic.tgz

Removing /var/tmp/junos-srxsme-11.1R3.5-domestic.tgz

root> request system reboot   
Reboot the system ? [yes,no] (no) yes 

Shutdown NOW!
[pid 4746]

root>                                                                                
*** FINAL System shutdown message from root@ ***                             
System going down IMMEDIATELY                                                  
                                                               


set version 11.1R3.5
set system root-authentication encrypted-password "PAPA   MAMA"
set system name-server 195.130.130.1
set system name-server 195.130.131.1
set system services ssh
set system services telnet
set system services web-management http interface vlan.0
set system services web-management https system-generated-certificate
set system services web-management https interface vlan.0
set system services dhcp router 192.168.1.1
set system services dhcp pool 192.168.1.0/24 address-range low 192.168.1.2
set system services dhcp pool 192.168.1.0/24 address-range high 192.168.1.254
set system services dhcp propagate-settings ge-0/0/0.0
set system syslog archive size 100k
set system syslog archive files 3
set system syslog user * any emergency
set system syslog file messages any critical
set system syslog file messages authorization info
set system syslog file interactive-commands interactive-commands error
set system max-configurations-on-flash 5
set system max-configuration-rollbacks 5
set system license autoupdate url https://ae1.juniper.net/junos/key_retrieval
set interfaces interface-range interfaces-trust member ge-0/0/1
set interfaces interface-range interfaces-trust member fe-0/0/2
set interfaces interface-range interfaces-trust member fe-0/0/3
set interfaces interface-range interfaces-trust member fe-0/0/4
set interfaces interface-range interfaces-trust member fe-0/0/5
set interfaces interface-range interfaces-trust member fe-0/0/6
set interfaces interface-range interfaces-trust member fe-0/0/7
set interfaces interface-range interfaces-trust unit 0 family ethernet-switching vlan members vlan-trust
set interfaces ge-0/0/0 mac 08:00:69:02:01:fc
set interfaces ge-0/0/0 unit 0 family inet dhcp
set interfaces vlan unit 0 family inet address 192.168.1.1/24
set security screen ids-option untrust-screen icmp ping-death
set security screen ids-option untrust-screen ip source-route-option
set security screen ids-option untrust-screen ip tear-drop
set security screen ids-option untrust-screen tcp syn-flood alarm-threshold 1024
set security screen ids-option untrust-screen tcp syn-flood attack-threshold 200
set security screen ids-option untrust-screen tcp syn-flood source-threshold 1024
set security screen ids-option untrust-screen tcp syn-flood destination-threshold 2048
set security screen ids-option untrust-screen tcp syn-flood timeout 20
set security screen ids-option untrust-screen tcp land
set security nat source rule-set trust-to-untrust from zone trust
set security nat source rule-set trust-to-untrust to zone untrust
set security nat source rule-set trust-to-untrust rule source-nat-rule match source-address 0.0.0.0/0
set security nat source rule-set trust-to-untrust rule source-nat-rule then source-nat interface
set security nat destination pool dst-nat-pool-1 address 192.168.1.2/32
set security nat destination rule-set rs1 from zone untrust
set security nat destination rule-set rs1 rule r1 match destination-address 0.0.0.0/0
set security nat destination rule-set rs1 rule r1 then destination-nat pool dst-nat-pool-1
set security nat proxy-arp interface ge-0/0/0.0 address 1.1.1.100/32 to 1.1.1.101/32
set security policies from-zone trust to-zone untrust policy trust-to-untrust match source-address any
set security policies from-zone trust to-zone untrust policy trust-to-untrust match destination-address any
set security policies from-zone trust to-zone untrust policy trust-to-untrust match application any
set security policies from-zone trust to-zone untrust policy trust-to-untrust then permit
set security policies from-zone untrust to-zone trust policy server-access match source-address any
set security policies from-zone untrust to-zone trust policy server-access match destination-address server-1
set security policies from-zone untrust to-zone trust policy server-access match application any
set security policies from-zone untrust to-zone trust policy server-access then permit
set security zones security-zone trust address-book address server-1 192.168.1.2/32
set security zones security-zone trust host-inbound-traffic system-services all
set security zones security-zone trust host-inbound-traffic protocols all
set security zones security-zone trust interfaces vlan.0
set security zones security-zone untrust screen untrust-screen
set security zones security-zone untrust interfaces ge-0/0/0.0 host-inbound-traffic system-services dhcp
set security zones security-zone untrust interfaces ge-0/0/0.0 host-inbound-traffic system-services tftp
set vlans vlan-trust vlan-id 3          
set vlans vlan-trust l3-interface vlan.0
                                        
[edit]
root#
Categories: Juniper

How can i check my camera is supporting which resolution and framerate in a very comprehensive way?

July 7, 2011 Leave a comment

I want to check my camera connected to my Linux box and what is its highest and lowest capacity?

$ python -c ‘import gst; a=gst.element_factory_make(“v4l2src”);a.set_state(gst.STATE_READY);print a.get_pad(“src”).get_caps();a.set_state(gst.STATE_NULL)’
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
video/x-raw-yuv, format=(fourcc)YUY2, width=(int)2592, height=(int)1944, interlaced=(boolean)false, framerate=(fraction){ 2/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)2048, height=(int)1536, interlaced=(boolean)false, framerate=(fraction){ 2/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1920, height=(int)1080, interlaced=(boolean)false, framerate=(fraction){ 2/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1600, height=(int)1200, interlaced=(boolean)false, framerate=(fraction){ 2/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1792, height=(int)1008, interlaced=(boolean)false, framerate=(fraction){ 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1712, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1600, height=(int)896, interlaced=(boolean)false, framerate=(fraction){ 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1504, height=(int)832, interlaced=(boolean)false, framerate=(fraction){ 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1280, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1392, height=(int)768, interlaced=(boolean)false, framerate=(fraction){ 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1280, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1184, height=(int)656, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)960, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1024, height=(int)576, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)960, height=(int)544, interlaced=(boolean)false, framerate=(fraction){ 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)800, height=(int)600, interlaced=(boolean)false, framerate=(fraction){ 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)864, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)800, height=(int)448, interlaced=(boolean)false, framerate=(fraction){ 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)752, height=(int)416, interlaced=(boolean)false, framerate=(fraction){ 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)640, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)640, height=(int)360, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)544, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)432, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)352, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)176, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)160, height=(int)120, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)2592, height=(int)1944, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; image/jpeg, width=(int)2048, height=(int)1536, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1920, height=(int)1080, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1600, height=(int)1200, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1792, height=(int)1008, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1712, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1600, height=(int)896, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1504, height=(int)832, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1280, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1392, height=(int)768, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1280, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1184, height=(int)656, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)960, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)1024, height=(int)576, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)960, height=(int)544, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)800, height=(int)600, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)864, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)800, height=(int)448, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)752, height=(int)416, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)640, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)640, height=(int)360, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)544, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)432, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)352, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)320, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)320, height=(int)176, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)176, height=(int)144, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; image/jpeg, width=(int)160, height=(int)120, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)2592, height=(int)1944, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)2048, height=(int)1536, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1920, height=(int)1080, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1600, height=(int)1200, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1792, height=(int)1008, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1712, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1600, height=(int)896, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1504, height=(int)832, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1280, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1392, height=(int)768, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1280, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1184, height=(int)656, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)960, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)1024, height=(int)576, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)960, height=(int)544, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)600, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)864, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)800, height=(int)448, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)752, height=(int)416, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)640, height=(int)360, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)544, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)432, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)352, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)320, height=(int)176, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)176, height=(int)144, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)I420, width=(int)160, height=(int)120, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)2592, height=(int)1944, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)2048, height=(int)1536, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1920, height=(int)1080, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1600, height=(int)1200, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1792, height=(int)1008, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1712, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1600, height=(int)896, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1504, height=(int)832, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1280, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1392, height=(int)768, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1280, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1184, height=(int)656, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)960, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)1024, height=(int)576, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)960, height=(int)544, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)800, height=(int)600, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)864, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)800, height=(int)448, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)752, height=(int)416, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)640, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)640, height=(int)360, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)544, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)432, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)352, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)320, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)320, height=(int)176, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)176, height=(int)144, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-yuv, format=(fourcc)YV12, width=(int)160, height=(int)120, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)2592, height=(int)1944, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)2048, height=(int)1536, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1920, height=(int)1080, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1600, height=(int)1200, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1792, height=(int)1008, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1712, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1600, height=(int)896, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1504, height=(int)832, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1280, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1392, height=(int)768, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1280, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1184, height=(int)656, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)960, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)1024, height=(int)576, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)960, height=(int)544, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)800, height=(int)600, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)864, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)800, height=(int)448, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)752, height=(int)416, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)640, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)640, height=(int)360, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)544, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)432, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)352, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)320, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)320, height=(int)176, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)176, height=(int)144, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321, width=(int)160, height=(int)120, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)2592, height=(int)1944, interlaced=(boolean)false, framerate=(fraction){ 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)2048, height=(int)1536, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1920, height=(int)1080, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1600, height=(int)1200, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1792, height=(int)1008, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1712, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1600, height=(int)896, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1504, height=(int)832, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1280, height=(int)960, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1392, height=(int)768, interlaced=(boolean)false, framerate=(fraction){ 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1280, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1184, height=(int)656, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)960, height=(int)720, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)1024, height=(int)576, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)960, height=(int)544, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)800, height=(int)600, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)864, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)800, height=(int)448, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)752, height=(int)416, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)640, height=(int)480, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)640, height=(int)360, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)544, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)432, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)352, height=(int)288, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)320, height=(int)240, interlaced=(boolean)false, framerate=(fraction){ 60/1, 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)320, height=(int)176, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)176, height=(int)144, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, endianness=(int)4321, width=(int)160, height=(int)120, interlaced=(boolean)false, framerate=(fraction){ 30/1, 24/1, 20/1, 15/1, 10/1, 15/2, 5/1 }
Categories: centOS, Fedora 12

How can i add 30 files into 1 single files? For instance CSV files with multiple sheets saved as many different file.

July 7, 2011 Leave a comment

To mix multiple files into one single file:

$ ls
10.csv  13.csv  16.csv  19.csv  22.csv  25.csv  28.csv  30.csv  33.csv  36.csv  39.csv  41.csv  44.csv  47.csv  4.csv   6.csv  9.csv     all.original.csv
11.csv  14.csv  17.csv  20.csv  23.csv  26.csv  29.csv  31.csv  34.csv  37.csv  3.csv   42.csv  45.csv  48.csv  50.csv  7.csv  all.csv   done
12.csv  15.csv  18.csv  21.csv  24.csv  27.csv  2.csv   32.csv  35.csv  38.csv  40.csv  43.csv  46.csv  49.csv  5.csv   8.csv  all.csv~
$ cat ./*.csv >> all.csv

or

for i in `ls *.csv` ; do cat $i >> final.csv ; done

 

Categories: centOS, Fedora 12

Postfix cheat-sheet cheat code

July 7, 2011 Leave a comment

General task:

How to check mail queue?

$postqueue -p

How to flash/resend the queue mails?

$postqueue -f

How to check the basic config?

$postconf -n

How to check whole config?

$postconf

How to make all queue as renew queue?

$postsuper -r ALL

How to reload the config after modification to my main.cf or master.cf?

$postfix reload
$service postfix restart

Problems

What to check for this error ”relay=none, delay=0.02, delays=0.02/0.01/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)”

$check your master.cf if Dkim or Antivirus configurations are ok, if not ok or confused, comment it out and restart. In my case it was Dkim config error

Viewing the queue 
As I mention, sometimes mail gets stuck. Let’s see what’s inside the Postfix mail queue.

~# postqueue -p
-Queue ID- –Size– —-Arrival Time—- -Sender/Recipient——-
040481B31 3489 Tue Nov 22 00:02:33 MAILER-DAEMON
(connect to smtp2.greghorne.com[64.246.163.13]: Connection timed out)
fog@greghorne.com
E4C2E1C7B 3523 Tue Nov 22 00:02:34 MAILER-DAEMON
(connect to gfield.ednet.ns.ca[142.227.95.65]: Connection refused)
adevries@gfield.ednet.ns.ca

As you can see from this real-world example, there are two e-mails in the queue. Both of them are bounced messages, because the Sender is MAILER-DAEMON. You can see the error or why they ended in the queue (connect to smtp2.greghorne.com[64.246.163.13]: Connection timed out), and you can see the Queue ID of each message. You need that ID to operate on each one.

If there’s ‘*’ character next to queue ID
040481B31*
it means that this message is in the active queue e.g. attempts to deliver the messages are made.

If there’s ‘!’ character next to queue ID
040481B31!
it means that this message is put “on hold”.

Flushing the queue

The reasons to flush the queue may differ from tweaking your main.cf, or fixing some errors that your MDA reports, to resuming timed out connection. Here’s how to do it:
postqueue -f

Then check what’s going on in /var/log/mail.log:
{| WIDTH=”75%”
|-
|
~# tail -f /var/log/mail.log
Nov 22 00:28:22 mathilda postfix/qmgr[1990]: 040481B31: from=<>, size=3489, nrcpt=1 (queue active)
Nov 22 00:28:22 mathilda postfix/qmgr[1990]: E4C2E1C7B: from=<>, size=3523, nrcpt=1 (queue active)
Nov 22 00:28:22 mathilda postfix/smtp[9287]: connect to gfield.ednet.ns.ca[142.227.95.65]: Connection refused (port 25)
Nov 22 00:28:22 mathilda postfix/smtp[9287]: E4C2E1C7B: to=<adevries@gfield.ednet.ns.ca>, relay=none, delay=1548, status=deferred (connect to gfield.ednet.ns.ca[142.227.95.65]: Connection refused)
Nov 22 00:28:52 mathilda postfix/smtp[9286]: connect to smtp2.greghorne.com[64.246.163.13]: Connection timed out (port 25)
Nov 22 00:28:52 mathilda postfix/smtp[9286]: 040481B31: to=<fog@greghorne.com>, relay=none, delay=1579, status=deferred (connect to smtp2.greghorne.com[64.246.163.13]: Connection timed out)
|}

You should look for the queue ID’s that postqueue -p shows, in this example – 040481B31, E4C2E1C7B. If everything goes well, you should see status=sent, instead of status=deferred.

Holding messages
Holding messages in the queue means that no attempts to deliver this particular message will be made. To put “on hold” a single message:
~# postsuper -h 040481B31

To put on hold all messages:
~# postsuper -h ALL
postsuper: Placed on hold: 6 messages

To put on hold messages from user@domain.com:
~# postqueue -p | awk ‘BEGIN { RS = “” } { if ($7 == “user@domain.com” ) print $1 }’ | tr -d ‘!*’ | postsuper -h -

Release from hold
Once a message was put “on hold”, it comes a time when you want to move it from ”hold” queue to ”deffered” queue or to release it.

Release single message:
~# postsuper -H 040481B31

Release all messages:
~# postsuper -H ALL
postsuper: Released from hold: 6 message
s

To release messages just from user@domain.com
~# postqueue -p | awk ‘BEGIN { RS = “” } { if ($7 == “user@domain.com” ) print $1 }’ | tr -d ‘!*’ | postsuper -H -

Deleting messages from queue 
Deleting messages from queue is as easy as putting them “on hold”. Be cautious when playing with this option, it’s unreversible.

To delete a single message:
~# postuper -d 040481B31

To delete all messages:
~# postsuper -d ALL

To delete messages from user@domain.com
~# postqueue -p | awk ‘BEGIN { RS = “” } { if ($7 == “user@domain.com” ) print $1 }’ | tr -d ‘!*’ | postsuper -d -

Resources
postsuper(1) and postqueue(1) man pages.

(Collected from http://ramnik.net/wp/?p=5  , thanks for listing it nicely)

Categories: centOS, Fedora 12

How to use poedit for phtml extension files?

July 3, 2011 Leave a comment

This problem is due to xgettext not recognizing *.phtml files. Change php-settings in tab for code interpreters

1. Add to files: *.php;*.phtml
2. Add -L php to xgettext: “xgettext –force-po -o %o %C %K %F -L php

 

Categories: PHP, Zend
Follow

Get every new post delivered to your Inbox.