Elive Gem

May 11, 2008

Esta tarde me encontraba navegando , cuando de pronto me encontre con una noticia de un distro realmente elegante , vistozo y bueno. El nombre del distro es Elive, para obtenerlo se tienen que hacer diferentes cosas en dado caso de que no se pueda donar cierta cantidad esa es la unica desventaja.

Como pueden notar en el video tiene una vista muy elegante, aparte de un toque de modernismo , el desarollador tiene buenas ideas asi que he decidido ayudarlo un poco distribuyendo esta informacion en la red tal y como el lo pide a cambio de una descarga del distro linux.

Informacion :

  • General Features
  • Windows: Your Windows partitions are now recognized on /mnt like windows_c, windows_d, etc… instead of hda, hdb, etc…
  • Graphical Grub: A very nice graphical Grub boot menu selector
  • Webcams: When you plug in a webcam, a webcam viewer is launched if it’s supported, you can play with special effects and you can scare your friends in aMSN
  • The Elive User Guide added to your Documents directory, (not finished but useful)
  • aMSN: in the last version, more webcams supported, looks a lot better, aliased fonts, better skin, etc…
  • Applications: All applications renamed and re-ordered to be more intuitive for the end-user
  • 7z: Elive now supports .7z (7zip) compressed files, in other words… open it directly :).
  • Fonts! a set of 20 misc TTF fonts has been added to Elive by default for the user to play with and use on the themes and look’n'feel.
  • GTK Icons Theme selector In the GTK configurator of Elpanel, you now have an icons theme selector, Thanks LinuxNIT for coding this nice application.
  • Firefox 2: Now called iceweasel is fully implemented, remember that thunderbird is now called icedove too
  • Flash 9: Supported
  • Enlightenment Related Features
  • Entrance Themes: Both themes (Elive and Night look’s), were revamped and enhanced for a better look
  • Enlightenment: Disabled the flip desktops when mouse is at screen edge feature by default because it confuses the less-experienced users, you can enable it from the enlightenment configuration menu (e16 and e17).
  • Hotkeys: A lot of hotkeys were added and also for some multimedia keyboards. You can find a good list of HotKeys that will enhance your Elive experience in your Documents directory
  • Night look: New background like this video, very nice for use on dual or more monitors.
  • Installer Features
  • Swap File: Added a system to make Swap files if the memory is less than 128 Mb, only for FAT filesystems (Patches for ntfs-3g welcome)
  • Installer: Better and more correct fine-tuned system (post-install), launched from the graphical system when user logs in
  • Languages in the installer: Added thanks to the translator collaborations (soon more things available to translate)
  • Boot menu: ‘Vista’ detected and added in the boot menu after the installation
  • Boot menu: A much better list of other OS’s
  • Select manual partitions when the installer asks you for your desired partitions, you can enter it manually now, even ones not included on the list
  • JFS support: You have a new FileSystem of choice, JFS, a great filesystem that many users love.
  • Extra Help: Now you have a extra help in the installer, which is perfect for the non-experienced users…explaining how to partition the hard disk better etc… Translators needed here
  • Installer Features: If you have broken the grub on your MBR thanks to windows, the installer autodetects it and ask you to recover the one from your Elive system instead of installing again. So, if you want to recover the grub for any reason, just launch the installer from root like: eliveinstaller recover my grub please
  • Hardware support
  • Kernel 2.6.18:
    • CK patches: Those patches make the priority of and the memory between process work much better.
    • 1000 Hz: Better for desktop usage, better reply of the applications
    • Realtime usage: This is especially good for musical compositors
    • Low Latency mode: Applications don’t have lag if you load your system with many processes.
    • Kqemu added: The kernel accelerator module for qemu is added in Elive by default thanks to the permission of the author
  • Epson Scanner: A new Scanner application for some Epson scanners
  • iPod: Supported in the better way
  • Swiss keyboards: Supported in the configurator of Elpanel, for french and german variants
  • Resolution 1440×900 Added
  • DV Video Camera: Permission enabled to use kino with your cam-recorder for a normal user.
  • Bugs fixed
  • NTFS and FAT32: Everybody can write, read, and modify, you can do anything
  • Entrance: The no-login problem that some users have experienced when they try to login on entrance and don’t enter a wrong password. Fixed
  • DVD autolaunchement: Oxine didn’t play DVD’s. Fixed
  • Autolaunchers: not all the USB cards, SMC or SD cards are autolaunched. Fixed
  • Gimp can’t print. Fixed
  • Burners: not possible to make an image of a DVD. Fixed
  • Gparted: hang due to the module floppy. Fixed
  • Gimp: not launching and freezing on the step xsane. Fixed
  • Usb sticks: problem of the very slow speed in transfer of archives. Fixed
  • Audio CDs: just some Audio CD’s work. Fixed
  • Mplayer: Zoom, Fullscreen, and Play, doesn’t work Fixed
  • More: Many more bugs were fixed and things made better…not listed here, but you can explore all the bugs in the BTS of Elive
  • More things
  • CDROM ejects when closing the liveCD system
  • Anti War: Section ‘Anti War’ of the bookmarks of Elive removed due to misc reasons, if you want it, see it in the Revolution version of Elive
  • Cinelerra updated: With some fixes and new hotkeys added (up/down - left/right in compositor/viewer), list of hotkeys
  • More: A lot more of features and minor things, not listed here


FXP - C++

May 11, 2008

Aqui les dejo este codigo que lo que hace es mover algunos valores del registro para intentar darle un empujon a Windows XP y acelerar algunos de sus procesos, les dejare el codigo fuente que es de mi autoria. Si ustedes desean pueden modificarlo bajo la licencia en la que se encuentra este blog tambien.

Aviso: No puse b-quote , ni code porque se perdia parte del codigo haciendo el formato que deberia tener, por lo cual para obtener el codigo fuente normal copien y peguenlo en el bloc de notas y despues pasenlo a su compilador para que funcione bien.

#include “iostream”
#include “windows.h”
int main()
{
using namespace std;
int opc;
cout << “====================================” << endl;
cout << “# FXP by JR                        #” << endl;
cout << “====================================” << endl;

HKEY hkey1;
int value = 4;
RegOpenKey(HKEY_CURRENT_USER,”Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings”,&hkey1);
RegSetValueEx(hkey1,”MaxConnectionPerServer”,0,REG_DWORD,(BYTE *)&value,sizeof(DWORD));
RegCloseKey(hkey1);

HKEY hkey2;
int value2 = 8;
RegOpenKey(HKEY_CURRENT_USER,”Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings”,&hkey2);
RegSetValueEx(hkey2,”MaxConnectionsPer1_0Server”,0,REG_DWORD,(BYTE *)&value2,sizeof(DWORD));
RegCloseKey(hkey2);

HKEY hkey3;
int value3 = 1;
RegOpenKey(HKEY_LOCAL_MACHINE,”SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management”,&hkey3);
RegSetValueEx(hkey3,”DisablePagingExecutive”,0,REG_DWORD,(BYTE *)&value3,sizeof(DWORD));
RegCloseKey(hkey3);

HKEY hkey4;
unsigned char value4[5] = “4000″;
RegOpenKey(HKEY_CURRENT_USER,”Control Panel\\Desktop”, &hkey4);
RegSetValueEx(hkey4,”WaitToKillAppTimeout”,0,REG_SZ,value4,sizeof(value4));
RegCloseKey(hkey4);

HKEY hkey5;
unsigned char value5[5] = “4000″;
RegOpenKey(HKEY_LOCAL_MACHINE,”SYSTEM\\CurrentControlSet\\Control”, &hkey5);
RegSetValueEx(hkey5,”WaitToKillAppTimeout”,0,REG_SZ,value5,sizeof(value5));
RegCloseKey(hkey5);

HKEY hkey6;
int value6 = 1;
RegOpenKey(HKEY_LOCAL_MACHINE,”SYSTEM\\CurrentControlSet\\Control\\Sesion Manager\\Memory Management”, &hkey6);
RegSetValueEx(hkey6,”LargeSystemCache”,0,REG_DWORD,(BYTE *)&value6, sizeof(DWORD));
RegCloseKey(hkey6);

HKEY hkey7;
unsigned char value7[2] = “1″;
RegOpenKey(HKEY_LOCAL_MACHINE,”SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer”, &hkey7);
RegSetValueEx(hkey7,”AlwaysUnloadDll”,0,REG_SZ,value7,sizeof(value7));
RegCloseKey(hkey7);

cout << endl << “Creating Registry …” << endl;
Sleep(5000);
cout << “Press [Enter] to close.” << endl;
getchar();

system(”cls”);
cout << “====================================” << endl;
cout << “# FXP by JR                        #” << endl;
cout << “====================================” << endl << endl;

cout << “Restart\n(1)Yes or (2)No :”;
cin >> opc;

switch(opc)
{
case 1:
cout << “Restarting the pc” << endl;
system(”shutdown -r -t 10 -c \”Bye\”");
break;
case 2:
cout << endl << “Later” << endl;
getchar();  getchar();
break;
default:
cout << “Incorrect number” << endl;
getchar();
break;
}

return EXIT_SUCCESS;
}


Filosofia del Open Source

May 11, 2008

La filosofía del Open Source centra su atención en la premisa de que al compartir el código, el programa resultante tiende a ser de calidad superior al software propietario, es una visión meramente técnica. Por otro lado, el Software Libre funciona bajo un ideal: el software propietario, al no poder compartirse, es antiético dado que prohibir compartir entre seres humanos va en contra de las leyes naturales.

El movimiento Open Source tiene un decálogo que debe cumplir un código para poder llamarse “Open Source” (es de hacer notar que estas 10 premisas son completamente equivalentes con las 4 libertades o principios del Software Libre), éstas son :

1. Libre redistribución: el software debe poder ser regalado o vendido libremente.
2. Código fuente: el código fuente debe estar incluido u obtenerse libremente.
3. Trabajos derivados: la redistribución de modificaciones debe estar permitida.
4. Integridad del código fuente del autor: las licencias pueden requerir que las modificaciones sean redistribuidas sólo como parches.
5. Sin discriminación de personas o grupos: nadie puede dejarse fuera.
6. Sin discriminación de áreas de iniciativa: los usuarios comerciales no pueden ser excluidos.
7. Distribución de la licencia: deben aplicarse los mismos derechos a todo el que reciba el programa
8. La licencia no debe ser específica de un producto: el programa no puede licenciarse solo como parte de una distribución mayor.
9. La licencia no debe restringir otro software: la licencia no puede obligar a que algún otro software que sea distribuido con el software abierto deba también ser de código abierto.
10. La licencia debe ser tecnológicamente neutral: no debe requerirse la aceptación de la licencia por medio de un acceso por clic de ratón o de otra forma específica del medio de soporte del software.


Richard Stallman - Entrevista GNU

May 11, 2008

Este es uno de los pioneros de la informatica , aparte de eso tambien sabe hablar español el señor por lo cual pudo conceder una entrevista en españa, aqui dejo ambos videos.

Video #1:

Video #2:


FileExists() - C++

May 11, 2008

Hasta donde yo tengo entendido no existe una funcion que venga dentro del estandar del lenguaje C++ utilizando por ejemplo la WInApi para verificar la existencia de un archivo, asi que voy a presentar 2 funciones que pueden servirles en dado caso de que necesiten un tipo de funcion como esta :

int FileExists(const TCHAR *fileName)
{
DWORD       fileAttr;

fileAttr = GetFileAttributes(fileName);
if (0xFFFFFFFF == fileAttr)
return false;
return true;
}

BOOL FileExists(char file[])
{
HANDLE Validation;
Validation=CreateFile(file,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_ARCHIVE,NULL);
if(NULL == Validation || Validation == INVALID_HANDLE_VALUE)
{
return FALSE;
}
else
{
return TRUE;
}
}

Ambas funciones hacen su trabajo como debe de ser, ya las probe y son de gran ayuda en cierto tipo de codigos.