14
Jul
09

The stuning MS Office 2010 Commercial

If MS Office is good as this commercial …

Anyway this commercial is very expensive and is not so funny as some people say.

The most funny was the following dialog:

- Where is the font ?
- It’s somewhere between Arial … and Windings.

14
Jul
09

Installing Google Chrome in Debian Linux

Installing Google Chrome in Debian Linux 5.0.2 Lenny 64 bit is easy. First you should download the deb package:

Continue reading ‘Installing Google Chrome in Debian Linux’

31
May
09

Fuck in Linux Kernel

Is Sunday, is raining, my wife is reading some psychological shit and I’m bored. I knew from the morning I need to do something very very important today, so I start to count the “fuck” word in Linux Kernel.

This command is faster

find . -name *.[hcS] -not -regex ‘\./\.git.*’ | xargs cat | grep ” fuck” | wc -l

than this command:

egrep -ir “( fuck)” * | wc -l

Continue reading ‘Fuck in Linux Kernel’

30
May
09

Microsoft programmers start banning memcpy on their products

Memcpy is the fastest way to copy one chunk of memory to another. But right now Microsoft is banning memcpy function from their products. memcpy over the years was responsable for a lot of security problems in Microsoft products, but the main problem of this function was the programmer. The approach of this function was to provide us a very fast way to copy a chunk of memory to another and it succeed over the years, but passing bad variables to it is the programmer fault not the function itself.

I was just curious how many times memcpy appears in linux kernel source (2.6.29.4) code and I just run following command to find out

find . -name *.[hcS] -not -regex ‘\./\.git.*’ | xargs cat | grep memcpy | wc -l

And the result was
12092

A lot of possible bugs … then why Linus doesn’t ban this function from the Linux kernel?

Beside that Microsoft also ban : RtlCopyMemory, CopyMemory.

From msdn site: http://blogs.msdn.com/sdl/archive/2009/05/14/please-join-me-in-welcoming-memcpy-to-the-sdl-rogues-gallery.aspx

Now developers who want to be SDL compliant will should replace memcpy() functions with memcpy_s, that takes an additional parameter defining the size of the destination buffer. But my Question is: what if happens if all parametres are wrong ? You can only check the consistency of 2 arguments … and memcpy_s it seems is 3 times slower.

In the article from msdn site posted by sdl we have some hints how to write our code SDL compliant.
Add

#pragma deprecated (memcpy, RtlCopyMemory, CopyMemory)

in your header files and at compile time you should see something like

warning C4995: ‘memcpy’: name was marked as #pragma deprecated

Also you can ban this on GCC compilers in this way:

#pragma GCC poison memcpy RtlCopyMemory CopyMemory

Happy Coding !

13
May
09

Mac OS X 10.5.7 Update released

Latest updated is recommended for Mac OS X 10.5 Leopard and includes general operating system fixes that enhance the stability, compatibility and security of your Mac and also is coming with new features.

The most notable features and fixes are:
* Latest security fixes.
* Additional RAW image support for several third-party cameras.
* Improves the reliability and accuracy of Unit Converter, Stocks, Weather and Movies Dashboard widgets.
* Addresses a situation that may cause issues when logging into Gmail.
* Improves performance of video playback and cursor movements for recent Macs with NVIDIA graphics.
* Fix an issue with Dvorak keyboard layout in Mac OS X 10.5.6.
* Improves reliability when syncing contacts with Yahoo!.
* Improves stability for network home directories hosted by Mac OS X Server v10.4.
* Improves Finder search results for network volumes that may not support Spotlight searching, such as Mac OS X Server v10.4, Time Capsule, and third-party AFP servers.
* Several improvements to Directory Service and Client Management.
* Expansion Slot Utility for Mac Pro now reports the correct PCIe slot configuration.
* Improves network performance when connected to certain Ethernet switches that have Flow Control enabled.
* Fix an issue in which time limits may not work properly with full-screen games and Fast User Switching.
* Improves consistency with Parental Controls and application restrictions.
* Includes other printing reliability and stability improvements.

12
May
09

Is for sure … Al Gore invented the Internet

Al Gore invented Internet

Al Gore invented Internet

This is the truth !

05
May
09

New Adobe Reader exploit targeting all operating systems

Adobe products are starting to look like Microsoft products, full of bugs. A new exploit of Adobe Reader hits the internet. The exploit is a remote one and it is working through JavaScript feature of Adobe Reader. Adobe indicates that fixes will be available by May 12, 2009. Acrobat Reader from 8.1.4 to 9.1 for Linux are vulnerable to this remote exploit. To avoid any problem, disable Acrobat JavaScript from Adobe Reader preferences. More informations you can find on Securityfocus site.

04
May
09

MacOS X, Windows 7 and Linux next features

MacOS X, Windows 7 and Linux next features

Nice comic!

18
Apr
09

Ubuntu 9.04 RC released

Ubuntu 9.04 RC released, but just for testing purpose. In 23 April the full version will be released. To upgrade just run ‘update-manager -d’.

The new features of 9.04:

Linux kernel 2.6.28
GNOME 2.26
brasero 2.26.0
X.Org server 1.6
Ext4 filesystem support
Eucalyptus Cloud computing

http://www.ubuntu.com/getubuntu/releasenotes/904overview

07
Apr
09

Fedora Beta 11 looks promising

Fedora community announce the new release of the Beta 11. Leonidas (the Fedora 11 code name) come with a lot of new features and new software packages. The final release is scheduled for the end of May. One of the most important of the new features from this release is the new rpm packager 4.7 which will reduce memory consumption for complex package dependency installation. Second most important feature is the sound system from Gnome: Pulse Audio. When Ubuntu and Debian are working from some time with pulse, Fedora, only now switched to pulse audio, a very good and complex audio system what can manage almost all types of devices and types of sound systems (from oss to alsa).

Other new software what comes with Leonidas:

GNOME 2.26
Kde 4.2.1
Xfce 4.6.0
Ext4 and Btrfs fiel system
PackageKit firmware support (For video and audio codecs for your playes … sounds like ace mega codec from windows)
Windows cross compiler (mingw32-*)
gcc 4.4
NetBeans 6.5
Python 2.6
Git 1.6.2

Right now Fedora 11 is in beta and community already start to plan the features of Fedora 12 which could arrive in October this year.

Curious ? Get it from http://torrent.fedoraproject.org/




Syndication

TopOfBlogs Blog Flux Local - New York Computer Security Blogs - BlogCatalog Blog Directory

RSS RandomBugs – From *nix to SQL

  • Tuning a Linux system for Database Server July 16, 2009
    In my experiments with databases I was constrained to tune the system together with the databases. A system what will run a database is quite different from any other server system, because databases put a lot of stress on the IO and especially on the disks (probably the file servers too). Hardware is not all you should tune your system as much as possible. […]
  • Compiling sysbench 0.4.12 for Debian July 9, 2009
    On the Linux market are a lot of distributions and every distribution is unique in his way. Is normal to have different compilers and tools from distribution to distribution so is almost normal to have programs what doesn’t compile on all distributions. sysbench 0.4.12 is one of them. Anyway the solution is simple and I will describe it very quickly […]
  • Using VMware Webservice with C++ and gSOAP June 26, 2009
    For me one of the most annoying thing from VMware is the VMware Infrastructure Client, because it doesn’t support Linux. Every-time when I want to manage some machines, or I want to see the IP/Status/etc of some machines, I need to log on on some Windows Server and run the VMware Infrastructure Client from there. Because I’m running exclusively o […]
  • Compile, install and run mod_limitipconn for Apache2 under Debian June 22, 2009
    Limiting abusers from running 20 download threads from the same Apache server is easy now with mod_limitipconn. But the apache 2 module, mod_limitipconn, is not available under the latest Debian distribution, Lenny. In this mini how-to I will show you how-to manage this module to work for Debian Lenny users. The compile process of mod_limitipconn is a little […]
  • MySQL vs PostgreSQL Benchmarks June 18, 2009
    We are living interesting times ... MySQL was first purchased by SUN and now SUN was purchased by ORACLE. I don't know what future will reserve for MySQL, but in this moment it seems MySQL is coming very very close to PostgreSQL. We are NOT talking about MySQL with MyISAM, we are talking about MySQL with InnoDB, because I'm directly interested in a […]

Pages

 

July 2009
M T W T F S S
« May    
 12345
6789101112
13141516171819
20212223242526
2728293031