Linux command execution using WinSCP.

As you know, year WinSCP is open source SFTP client and FTP client for Windows.

After you connect to linux server (windows server I have not tried), press key combination:

At the bottom of the window will show a editbox WinSCP program as shown below:

I used to exemplify the ls command.

In the picture below you can see the result of this command.

Although it seems simple, there are many users who install additional software (see software putty) to execute commands on the server.

How to resize images – python script .

Sometimes it is necessary to resize the images. The PIL module is used for image processing.The glob module takes a wildcard and returns the full path of all files and directories matching the wildcard. Here are two scripts that I made. The first is a simple example using a resize after some dimensions. In this case we used size 300×300.

In the second case I tried to do a resize with proportion preservation.

In both cases we use a renaming of files by adding the name of “thumb_”. Ambele scripturi pot fi modificate asa cum vreti. Aceste scripturi demonstreaza cum sa folosim celor doua module “PIL” si “globe”.

Source of tutorial “How to resize images”

Python – simple language scripting.

The official site www.python.org say :

Python is a dynamic object-oriented programming language that can be used for many kinds of software development.

It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days.

Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code. http://www.python.org/

How is python language for us?

Next you see some few python script code:

The output is :

Is pretty simple .

More usefull scriptyou see on this site: python-catalin.blogspot.com .

On this site pygame-catalin.blogspot.com you see some many scrips with pygme module. Now the python logo is this:

python www.free-tutorials.org

Export the database in phpmyadmin – setting name and filetype.

Always save a backup of your data.

An important aspect is the date when the backup was made??.

Today I will show you how to format the backup name so you know since you have.

Select the database and go to the Export tag and Custom – display all possible options.

If you select only one table, you only backup that table.

export database

I prefer a format like this:

If you accidentally selected a table then you will see:

Here is how to select the format name.

format name

You can also choose the output format sql, zip or other archive.

sql zip formats

These are just some settings that you should know.

The phpmyadmin offers multiple possibilities for setting up and configuring

Parsing files and rename …

Sometimes you have to rename files.
This can be tiring when we do it manually.
Command “se” may be helpful in this case.
I’ll take a simple example. I will create a working directory called “work.”

We have to create files with the command:

The result should be :

Try these commands to parse and rename files:

This is just a simple example …