Archive

Posts Tagged ‘intel’

Introduction To Software Testing

July 19th, 2009 bodom_lx No comments

Elements and Concepts – A brief overview


Download PDF version of the whole document. You can browse the article online but I encourage the download of the PDF since it is written with accuracy.


Introduction

This document contains some basic concepts and definitions about software testing. It has been written for studying a part of the Software Engineering Project course at my University. It is composed by a summary of the intersection of more than 10 different sources, all of which are cited. If you feel that some contents of this publication belong to your intellectual property and it is not cited, please contact the author who is willing to correct any mistake.

The first part of the paper focuses on the definition of the most important key aspects of software testing. Then some information about input partitioning are given. What follows is a research about code coverage and two useful and famous tools, Control-flow coverage and Data-flow analysis. A complete example on using those tools is then given. The second half of the document also contains the definition of the most important software testing practices.

The goal of this tiny document is to clarify key terms and therefore become a base start for the reader to go in deep with the interested topics. Another goal is to give a simple but clear example about data flow analysis, as I realized that not all the people understand the examples around the Net.

Software Testing

Software Testing is an empirical investigation conducted to provide stakeholders with information about the quality of the product or service under test, with respect to the context in which it is intended to operate. Software Testing also provides an objective, independent view of the software to allow the business to appreciate and understand the risks at implementation of the software. Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs. It can also be stated as the process of validating and verifying that a software program/application/product meets the business and technical requirements that guided its design and development, so that it works as expected and can be implemented with the same characteristics. 1

Read more…

Related posts

Intel Graphic cards, Linux, Xorg and UXA performance boost

June 21st, 2009 bodom_lx 5 comments

For people having Intel graphic chipset under Gnu/Linux, performance using 3D applications or Compiz-* window manager effects has always been a problem. Intel drivers for Xorg never gave problems but have also never been brilliant. I always looked around searching for xorg.conf tuning configuration entries.
Today I was simply browsing Ubuntu Wiki and discovered the UxaTesting page. I wanted to know something about UXA and Intel drivers, so I found a Wikipedia definition:

In computing, UXA is the reimplementation of the EXA graphics acceleration architecture of the X.Org Server developed by Intel. Its major difference with EXA is the use of GEM, replacing Translation Table Maps.

Yeah cool, the official Xorg Wiki Intel Graphics Driver page Gives also some more information, so if you’ve got one of these chipsets (you can verify using lspci | grep VGA ):

  • i810 and variants thereof
  • i815
  • i830M
  • 845G
  • i852GM
  • 855GM
  • 865G
  • 915G and variants (GMA 900)
  • E7221
  • 945G and variants (GMA 950)
  • 946GME
  • G33
  • Q33
  • Q35
  • 965G/Q
  • G35
  • G41
  • G43
  • G/GM/Q45

You may want to try out the new acceleration method by adding this line


Option "AccelMethod" "uxa"

To your /etc/X11/xorg.conf file, in section “Device”.

Please note that:

  1. UXA is not yet stable as EXA. Try it out, signal your experience on the Ubuntu wiki page and fill out a bug if necessary
  2. You will need at least Xorg server 1.6.0
  3. You will need at least xf86-video-intel-2.6.2 drivers
  4. I don’t think this is mandatory, but please tell me if you encounter differences when updating to 2.6.30.x kernel. I already have 2.6.30.0 on Sid so I don’t know if with a previous version this is working

On Debian Sid I just had to add the Option line to my xorg.conf file.
The performance differences are noticeable and incredible. Everything runs faster and smoother.
My glxgears output went from 60 FPS (using EXA) to 425 FPS (using UXA).
This is a 700% performance improvement!

Related posts

How to limit a field with javascript-prototype and display the counter

December 3rd, 2008 bodom_lx No comments

For job purposes I had to learn a lot of JavaScript, including AJAX related stuffs. Like every lazy (but intelligent) developer, I looked around for frameworks that could help me doing my work. I knew that prototype existed, but I never looked at it because of lack of interest. Well it’s great, it’s really great! Nowadays everybody should use frameworks, as their abstraction permits a rapid development without worrying about things like platform compatibility, in our case browsers. Prototype also has a very nice and clean syntax that overtakes functions not compatible with every browser.

In this post I’m going to report a very nice function I implemented for limiting Form input fields, like textarea and input of type text. You have to call it via onkeyup and onkeydown events. The function accepts 3 parameters: field, limit and counterDesired.
The first is the field object, you should use the keyword this for a value.
The second parameter is a limit value, the number of characters that the field should contain at maximum.
The third parameter is optional, false as default. It permits to add a visual counter after the field, like the one you see on YouTube, for example. You can either tell to the function to add the counter for you (put inside a <span> block) or to put it inside another block you’ve already defined. In the second case, the block must have an id of the form ‘fieldID_counter’

This is the compact version, see below for some examples and the expanded, explained version:

<script type="text/javascript">
// < ![CDATA[
function limit_text(field, limit, counterDesired) {
    if (counterDesired == null)
        counterDesired = false;
    var length = $F(field).length;
    if (length > limit)
        $(field).value = $(field).value.substring(0, limit);
    if (counterDesired) {
        if ($($(field).id + '_counter')) {
            $($(field).id + '_counter').update($F(field).length + " / " + limit);
        } else {
            var counterText = new Element('span', {'id': $(field).id + '_counter'});
            counterText.update($F(field).length + " / " + limit);
            $(field).insert({'after': counterText});
        }
    }
}
// ]]>
</script>
 

Read more…

Related posts

Fedora 10, thank you very much! (macbook review and fixes)

November 29th, 2008 bodom_lx 3 comments

I’ve never been a big fan of rpm-based Gnu/Linux distributions, since I’ve always preferred the stability of Debian and Debian based distros, with their great dpkg system.
The problem with Debian on Macbooks is that I do not see both the stability and performance anymore, as I have to use Lenny/Sid. Etch is too old and I don’t have the time (*sic*) to play with it to make it work well. Lenny should be next to be released but I don’t feel the very famous stability AND lightness of Debian distributions on this release, like I was accustomed in the past years. Is this because I own a Macbook? Maybe, but a Macbook Santa Rosa is nothing more than an Intel-powered notebook with some strange input devices and a strange non-bios system :-)

Regarding Ubuntu, I believe that this distribution has become naff and really slow. See this Slashdot discussion on this topic.

Yesterday I stumbled to Scientechie review of Fedora 10, which convinced me to try it out.
The software shipped with Fedora 10 is aligned with the one provided with the other distributions: Gnome 2.24.0, kernel 2.6.27.5, NetworkManager 0.7.0 (svn) and so on. Read the release notes for more information.

Fedora 10 really surprises me, as it is the first Gnu/Linux distribution in many, many years that makes me feel again the great stability and performance of the Penguin. Therefore I’m writing this review that is also a how-to, as it contains some fixes for Fedora 10 and Macbooks.

Read more…

Related posts

Blog citato nel giornale provinciale

January 21st, 2008 bodom_lx 2 comments

Che bella sorpresa stamattina, una chiamata da mio padre e la notizia che il quotidiano locale l’”Alto Adige” riportava il mio blog tra altri.
Niente di speciale, davvero, un articolo che parla degli studenti universitari e del loro modo di esprimersi con i blog, con intervista a uno di loro.
In cima all’articolo, un piccolo box con indirizzi di blog di alcuni studenti dell’UniBz, tra i quali il mio.
blog di Daniel Graziotin su quotidiano “Alto Adige”
Non é stato neanche difficile scoprire il raffinatissimo algoritmo di ricerca utilizzato dall’autore dell’articolo:
http://www.google.it/search?q=unibz+blog
I risultati contengono i blog citati =)

Ecco lo screenshot se nei prossimi mesi la situazione dovesse cambiare:
Come l’Alto Adige ha trovato i blog degli studenti dell’unibz

Complimentoni vivissimi ai colleghi del blog Scusa..hai Visto Gira?, che sono riusciti in poco piú di un mese a concentrare ben 8 post di stronzate trashosissime, conquistarsi la simpatia di Google per le keywords “unibz” e “blog”, e perdere preziosissime ore di studio insieme al sottoscritto.

L’articolo “linkato” dal quotidiano é questo: http://task3.cc/unibz-inizio-tranquillo/, dove viene davvero sintetizzata l’essenza dell’intelligenza del sottoscritto.. Gran bella figura di cacca con i bolzanini ci faccio =) Se dopo aver letto quell’articolo finite su questo, ci tengo a dire che ho scritto anche alcune cose utili nel mio blog :P Non per niente sono nella top 100mila siti mondiali (secondo netcraft) da piú di due anni
Mi consola vedere che i colleghi di “Scusa..hai Visto Gira?” siano messi molto peggio di me, visto che le prime parole che mi saltano all’occhio visitandolo sono “vibratori riscaldati”, “uso di posto auto della Gnecchi”, “sostituire snow-days con gare di rutti”
=) in bocca al lupo, prossima tappa TG 5

Related posts

Publications

November 5th, 2006 bodom_lx No comments

This page contains all my pubblications around in the Net. These pubblications are mainly how-tos, tutorials and even little thoughts that I find useful. If you find a description in Italian, you should speak Italian for understanding it.

In questa pagina elencheró tutte le mie piccole pubblicazioni in giro per la Rete. Queste pubblicazioni comprendono guide, how-to, anche piccoli, oppure pensieri ai quali dó importanza.

Introduction to Software Testing
http://task3.cc/introduction-to-software-testing/
Link to the Pubblication (PDF)
A brief introduction to Software Testing concepts and Techniques, with explanations about control-flow graphs and data-flow analysis.

Object Oriented Memory Management
http://task3.cc/object-oriented-memory-management/
Page with topics covered
Link to the Pubblication (PDF)
Modeling OO memory management (stack and heap) touching both Java and C++

Introduzione alla Logica Sfumata
Fuzzy Logic: tesina (PDF)
Fuzzy Logic: Slides Integrativi (PDF)

Installare OpenGEU su un Apple Macbook
http://opengeuwiki-it.intilinux.com/index.php?title=Macbook
Una guida su come installare Ubuntu, OpenGEU e qualsiasi altra distribuzione derivata da Ubuntu, sul Macbook

How to install OpenGEU on a Apple Macbook
http://opengeuwiki-en.intilinux.com/index.php?title=Macbook
A guide on how to succesfully install Ubuntu, OpenGEU and any other Ubuntu derivate distribution on a Macbook

How to manage a card reader and the FSFE crypto card
http://task3.cc/how-to-manage-a-card-reader-and-the-fsfe-crypto-card/
A nice tutorial on how to set up a USB card reader for using it with a GPG card (for example, the FSFE fellow card)

Some definitions for Introduction to Programming
PDF
A very little PDF document with some useful definitions for a past university course, Introduction to Programming.

Hp nx6325 (and friends) thermal problems solved
http://task3.cc/hp-nx6325-and-friends-thermal-problems-solved/
An article on how to solve the (in)famous thermal problem of all Hp notebooks with an Amd Turion 64 X2 / Sempron cpu. It contains a bash script that really works and turns on the CPU fan when the temperature rises.


Installare Gnome Slacky su Slackware Current
http://www.slacky.eu/wikislack/index.php?title=Gnome_Slacky_su_Slackware_Current
Un How-To su come installare e configurare Gnome Slacky su Slackware Current

Abilitare l’accelerazione 3D con schede ATI e distribuzione Ubuntu Feisty Fawn
http://wiki.ubuntu-it.org/Abilitare3DAti
Un how-to sul wiki di ubuntu-it che spiega come installare i driver proprietari Ati per linux, utilizzando la distribuzione Ubuntu Feisty Fawn

Abilitare l’accelerazione 3D con schede ATI e distribuzione Ubuntu Edgy Eft
http://wiki.ubuntu-it.org/Abilitare3DAti/Edgy
Un how-to sul wiki di ubuntu-it che spiega come installare i driver proprietari Ati per linux, utilizzando la distribuzione Ubuntu Edgy Eft

Abilitare l’accelerazione 3D con schede ATI e distribuzione Ubuntu Dapper Drake
http://wiki.ubuntu-it.org/Abilitare3DAti/Dapper

un how-to sul wiki di ubuntu-it che spiega come installare i driver proprietari Ati per linux, utilizzando la distribuzione Ubuntu Dapper Drake

Abilitare l’accelerazione 3D con schede ATI e distribuzione Ubuntu Breezy Badger
http://wiki.ubuntu-it.org/Abilitare3DAti/Breezy
un how-to sul wiki di ubuntu-it che spiega come installare i driver proprietari Ati per linux, utilizzando la distribuzione Ubuntu Breezy Badger

Abilitare l’accelerazione 3D con schede ATI e distribuzione Ubuntu Hoary Hedgehog
http://wiki.ubuntu-it.org/Abilitare3DAti/Hoary
un how-to sul wiki di ubuntu-it che spiega come installare i driver proprietari Ati per linux, utilizzando la distribuzione Ubuntu Hoary Hedgehog

Abilitare l’accelerazione 3D con schede ATI e distribuzione Ubuntu Warty Warthog
http://wiki.ubuntu-it.org/Abilitare3DAti/Warty
un how-to sul wiki di ubuntu-it che spiega come installare i driver proprietari Ati per linux, utilizzando la distribuzione Ubuntu Warty Warthog

Abilitare l’accelerazione 3D con schede ATI e distribuzione Ubuntu
http://wiki.ubuntu-it.org/Enable3DAtiRadeon(fglrx)
-ora deprecata – é la pubblicazione della quale vado piú fiero: un how-to sul wiki di ubuntu-it che spiega come installare i driver proprietari Ati per linux, utilizzando la distribuzione Ubuntu. Questo testo é una delle piccole prove che lo spirito del software libero e della condivisione delle informazioni funzioni davvero, perché creato dal sottoscritto (rimango sempre il mantainer ufficiale, ed é mia la maggior parte del testo), ma modificato e migliorato dagli utenti. Soprattutto, funziona :-)
Ora questa guida ha avuto uno split-up, andate su http://wiki.ubuntu-it.org/AbilitareIl3D per dettagli

Installare e configurare Xgl con schede video Ati (anche serie Xxxx) e Ubuntu Dapper Drake
http://task3.cc/2006/08/04/installare-xgl-con-schede-ati – é il risultato della raccolta di una mole immensa di informazioni nella Rete, della sperimentazione di Xgl sul mio portatile, e le istruzioni per come configurarlo correttamente. Questa guida non funziona per Ubuntu Edgy Eft, perché il sistema é cambiato, non appena configureró Xgl sul portartile nuovo e su Edgy Eft, prometto di scrivere come fare

Risolvere i problemi con il wireless Intel dopo l’update a Dapper Drake
http://task3.cc/2006/06/03/ubuntu-dapper-drake-e-wireless-intel/
– Piccola guida su come far funzionare nuovamente la propria scheda di rete wireless Intel dopo l’aggiornamento a Dapper Drake. A scanso di equivoci, questa piccola guida serve solo se la propria scheda di rete risultava giá operativa prima dell’update


If you find my publications interesting, if something I wrote on the blog did help you to solve a problem, if you realize you could have paid for solving it..
Why don’t you consider a donation? Donations are useful to maintain my domains and the infrastructures that host my Projects. I’m just a student, I’m not interested to earn profits from my projects, that will always remain free. But I would be delighted to don’t pay for them :-)

Related posts