Pages

Friday, June 15, 2012

Working with old video card and also old Ogre 3D engine and Blender 3D.

I make today a new tutorial about the trips and tricks with Ogre 3D engine using Blender 3D.
If you want to see this, you can go on the tutorials part from my site.
This is the just a result of my simple example.
The result is shown in next image sample.

Thursday, June 14, 2012

News: Programming with google-blocky

It's fun. You can try or your children.
Blockly is a web-based, graphical programming language. Users can drag blocks together to build an application. No typing required.

You can see more on google project.

Saturday, May 26, 2012

Show large image like thumbnails in firefox using greasemonkey

Today I focused on a problem you often encounter.

We have a web folder containing a series of large image files. We want to see the folder that contains but would be difficult to download all the images and then view them search to find a picture of us.

I installed Greasemonkey addon and I began to study how it works.

I don't have experience with javascript programming.

I still managed to make the script below:

// ==UserScript==
// @name        show-image
// @namespace   show-image
// @description show images from files
// @include     http://*
// @version     0.1
// ==/UserScript==
var elements = document.getElementsByTagName("a");
  for (var i=0; (anchor=elements[i]); i++) {
   src = anchor.getAttribute("href");
  if (src.indexOf('.gif') > -1 || src.indexOf('.jpg') > -1 || src.indexOf('.JPG') > -1 || src.indexOf('.jpeg') > -1)
  {
    img = document.createElement('img');
    img.setAttribute('src',src);
    img.style.width='10%';
    anchor.appendChild(img);
   }
  }

You can add to show the png file by adding in the if condition in the script :

src.indexOf('.png') > -1 || src.indexOf('.PNG') > -1

I hope to help you.

Monday, May 21, 2012

News: Working with python , opengl and ARB ...

Today I test a simple script that uses the OpenGL ARB "Architecture Review Board".
The script is very simple and can be found on my graphic-3d.blogspot.com.
I make this with Python 2.6.4 , pyopengl module.

Sunday, April 1, 2012

Fedora online defragmenter for ext4 filesystem

The tool is e4defrag.
The man page tells us: reduces fragmentation of extent based file.
The file targeted by e4defrag is created on ext4 filesystem made with "-O extent" option (see mke2fs(8)). The targeted file gets more contiguous blocks and improves the file access speed.
Let's try this tool.
You can try under root account this:
# e4defrag -test -cv /home/your_user/
The final result on my account is :
Total/best extents 170276/165520 Fragmentation ratio 0.03% Fragmentation score 0.24 [0-30 no problem: 31-55 a little bit fragmented: 55- needs defrag]
Also, you have to run e4defrag with the -test parameter for now, since it isn't a fully tested version.

Monday, February 27, 2012

The LightScribe - without labels and handwriting.

LightScribe is an innovative technology that uses a special disc drive, special media, and label-making software to burn labels directly onto CDs and DVDs.
Download the packages from here.
Use the root account and install this packages :
# rpm -ivh lightscribe-1.18.24.1-linux-2.6-intel.rpm 
Preparing...                ########################################### [100%]
   1:lightscribe            ########################################### [100%]
# rpm -ivh lightscribeApplications-1.18.15.1-linux-2.6-intel.rpm 
Preparing...                ########################################### [100%]
   1:lightscribeApplicationswarning: group admin does not exist - using root%)
warning: group admin does not exist - using root
########################################### [100%]
The path application is /opt/SimpleLabeler/
See the files:
$ ll
total 332
drwxr-xr-x. 4 root wheel   4096 Feb 27 14:10 content
-rwxr-xr-x. 1 root wheel   2980 May 19  2010 launchBrowser.sh
drwxr-xr-x. 3 root wheel   4096 Feb 27 14:10 plugins
-rwxr-xr-x. 1 root wheel     43 May 19  2010 qt.conf
-rw-r--r--. 1 root root      16 May 19  2010 qttr.qm
-rwsr-xr-x. 1 root wheel 314088 May 19  2010 SimpleLabeler
-rw-r--r--. 1 root root      16 May 19  2010 simplelabelertr.qm
Run the SimpleLabeler, and you see this :

Insert the special media in the special disc drive with the face down.
This is a way to not use labels and handwriting.

Saturday, February 18, 2012

G'MIC plug-in for GIMP.

GIMP is an acronym for GNU Image Manipulation Program and it has many capabilities.
One best feature is the plugins system. Plugins may be stored in different locations depending upon your distribution.
The author of G'MIC plug-in tell us: The G'MIC plug-in for GIMP proposes a set of various filters to apply on your images, including artistic effects, image denoising, and enhancement algorithms, 3D renderers, etc.. It is a quite large plug-in, integrating a lot of different effects.
You can download the G'MIC plug-in from here.
Unzip the file and go to the folder where is the gmic_gimp file.
Use this command to copy the file in the plug-ins folder.

$ cp  gmic_gimp ~/.gimp-2.6/plug-ins/
Once you have installed the plugin just restart the GIMP.
The G'MIC will work just if you have opened an image.
You can find it on menu: Filters-> G'MIC... Also, the G'MIC plug-in has available 284 filters.