Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Sat Feb 04, 2012 11:19 pm


News News of Ivorde Unix/Linux/Database/Web/Mail Forum

Site map of Ivorde Unix/Linux/Database/Web/Mail Forum » Forum : Ivorde Unix/Linux/Database/Web/Mail Forum

Welcome to ivorde.ro forum

 [ Total topics 139 Go to page 1, 2, 3, 4, 5, 6, 7, 8 ... 14

Message
 Post subject: FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong
PostPosted: Fri Aug 27, 2010 2:01 pm 
I was trying to compile FFMPEG rev 24953 (27-08-2010) on CentOS 4.8 and following error occured:

[root@server ffmpeg]# make
CC libavdevice/alldevices.o
CC libavdevice/avdevice.o
CC libavdevice/dv1394.o
CC libavdevice/oss_audio.o
CC libavdevice/v4l.o
In file included from libavdevice/v4l.c:34:
/usr/include/linux/videodev.h:56: error: expected specifier-qualifier-list before ‘ulong’
libavdevice/v4l.c: In function ‘grab_read_header’:
libavdevice/v4l.c:136: error: ‘struct video_tuner’ has no member named ‘mode’
libavdevice/v4l.c:138: error: ‘struct video_tuner’ has no member named ‘mode’
libavdevice/v4l.c:140: error: ‘struct video_tuner’ has no member named ‘mode’
make: *** [libavdevice/v4l.o] Error ...

Read more : FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong | Views : 985 | Replies : 0 | Forum : Package and Software Management

Top
 Post subject: Apache to Nginx Server parameters translation with php function
PostPosted: Thu Aug 26, 2010 2:47 pm 
When ran as Apache module, PHP will get $_SERVER variables in the form that they come in the request:
Content-Type, Content-Length, X-File-Size, X-File-Name and so on.


When ran as PHP-FPM with NGINX, php will see the $_SERVER variables in a totally different way (this is because of the default passing of server parameters to fcgi scripts in nginx).

Here's how $_SERVER variables will be seen by php when ran as php-fpm:
Array ( [USER] => ...

Read more : Apache to Nginx Server parameters translation with php function | Views : 1547 | Replies : 0 | Forum : Apache, Nginx, Lighttpd and other web server software

Top
 Post subject: Rename MySql table
PostPosted: Sun Aug 22, 2010 12:46 pm 
To rename a mysql table, just use the rename mysql command

Code:
mysql> RENAME TABLE old_name TO new_name;

Read more : Rename MySql table | Views : 462 | Replies : 1 | Forum : Mysql

Top
 Post subject: Mysql - Change position of a column after another column
PostPosted: Fri Aug 20, 2010 12:03 pm 
The column order in mysql is not very important in most of the cases, since the SELECT statement can create another column order, one specifically for the application being developed (but not the "SELECT *" statement).

But in cases where order is important, this command will change the position of "column_two" after "column_one".

Code:
mysql> ALTER TABLE table_name MODIFY column_two INT(11) UNSIGNED AFTER column_one;

Read more : Mysql - Change position of a column after another column | Views : 3491 | Replies : 1 | Forum : Mysql

Top
 Post subject: Mysql change column's default value
PostPosted: Thu Aug 12, 2010 10:43 am 
Code:
mysql> ALTER TABLE table_name MODIFY column_name INT DEFAULT 'some default value';


Remember that column type must be a char, varchar, enum or some other column type that supports default value. TEXT/BLOB columns do NOT support default values.

If an attempt to set a text column's default value a mysql error will be produced:
Quote:
ERROR 1101 (42000): BLOB/TEXT column 'preferences' can't have a default value

Read more : Mysql change column's default value | Views : 1470 | Replies : 0 | Forum : Mysql

Top
 Post subject: Postfix change message size limit
PostPosted: Wed Aug 11, 2010 1:31 am 
Code:
message_size_limit = 20480000
Controlls the limit of each SMTP message submitted to a postfix smtp server.

The above example sets the limit of a mail message to 20MB.

Read more : Postfix change message size limit | Views : 557 | Replies : 0 | Forum : Mail servers and clients

Top
 Post subject: Pool for spam
PostPosted: Sat Aug 07, 2010 12:46 pm 
somebody@excy.nl will be a spam testing pool

Read more : Pool for spam | Views : 243 | Replies : 0 | Forum : Mail servers and clients

Top
 Post subject: Mysql remove column from an existing table
PostPosted: Fri Aug 06, 2010 5:06 pm 
The following command will remove an existing table's specified column and the data contained:
Code:
mysql> ALTER TABLE table_name DROP column_name;


As with any database/file delete/edit actions, it's recommended to have a backup. You never know when you meight need it.

Read more : Mysql remove column from an existing table | Views : 315 | Replies : 0 | Forum : Mysql

Top
 Post subject: Mysql add Unique index to a table column
PostPosted: Fri Aug 06, 2010 5:01 pm 
The syntax for adding a unique index to a mysql table is the following
Code:
mysql> ALTER TABLE table_name ADD UNIQUE (clumn_name);

Read more : Mysql add Unique index to a table column | Views : 412 | Replies : 0 | Forum : Mysql

Top
 Post subject: Normalizing terminal prompt (or putty prompt) after catting a binary file
PostPosted: Wed Aug 04, 2010 10:44 am 
Some binaries or some command output (unexpected) can contain control sequence which can cause a terminal to interpret it as changing character set. That's why the prompt becomes unreadable and keystrokes abnormal (lines).

To fix this, there are few possible solutions:
Code:
$ echo -e '\017'

or
Code:
$ reset
(NOT REBOOT)
or
Code:
$ stty sane

Read more : Normalizing terminal prompt (or putty prompt) after catting a binary file | Views : 499 | Replies : 1 | Forum : Tutorials for general Unix

Top
 [ Total topics 139 Go to page 1, 2, 3, 4, 5, 6, 7, 8 ... 14


Last 10 active topics


Red Hat Certified Engineer/Technician RHCE/RHCT

No new posts Disable IPv6 in Red Hat Enterprise Linux 5
View the latest post

BSD Operating Systems

No new posts SSH disable password authentication for root (only allow public key authentication)
View the latest post

Server and Network Security

No new posts Ssh disable DNS reverse lookups
View the latest post

Windows XP, Windows Vista, Windows 7

No new posts Using Firefox "Modify Headers" Add-on to change your browser's "User-Agent" attribute in HTTP header
View the latest post

Apache, Nginx, Lighttpd and other web server software

No new posts Search engine optimization
View the latest post

TCP/IP Networking

No new posts FreeBSD PF supported icmp types
View the latest post
No new posts OSPF Simulation Tutorial for Beginners (Interactive, Visual)
View the latest post

Mysql

No new posts Mysql - Change position of a column after another column
View the latest post
No new posts Mysql: add column to table
View the latest post
No new posts Rename MySql table
View the latest post

Login

Username:   Password:   Log me on automatically each visit  

Statistics

Statistics

Total posts 188 | Total topics 681 | Total members 811



News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO