Showing posts with label frameware. Show all posts
Showing posts with label frameware. Show all posts

Saturday, March 19, 2011

PHP 5.3.6 Released!

email post

PHP 5.3.6 Released!

[17-Mar-2011]
The PHP development team would like to announce the immediate availability of PHP 5.3.6. This release focuses on improving the stability of the PHP 5.3.x branch with over 60 bug fixes, some of which are security related.
Security Enhancements and Fixes in PHP 5.3.6:
  • Enforce security in the fastcgi protocol parsing with fpm SAPI.
  • Fixed bug #54247 (format-string vulnerability on Phar). (CVE-2011-1153)
  • Fixed bug #54193 (Integer overflow in shmop_read()). (CVE-2011-1092)
  • Fixed bug #54055 (buffer overrun with high values for precision ini setting).
  • Fixed bug #54002 (crash on crafted tag in exif). (CVE-2011-0708)
  • Fixed bug #53885 (ZipArchive segfault with FL_UNCHANGED on empty archive). (CVE-2011-0421)
Key enhancements in PHP 5.3.6 include:
  • Upgraded bundled Sqlite3 to version 3.7.4.
  • Upgraded bundled PCRE to version 8.11.
  • Added ability to connect to HTTPS sites through proxy with basic authentication using stream_context/http/header/Proxy-Authorization.
  • Added options to debug backtrace functions.
  • Changed default value of ini directive serialize_precision from 100 to 17.
  • Fixed Bug #53971 (isset() and empty() produce apparently spurious runtime error).
  • Fixed Bug #53958 (Closures can't 'use' shared variables by value and by reference).
  • Fixed bug #53577 (Regression introduced in 5.3.4 in open_basedir with a trailing forward slash).
  • Over 60 other bug fixes.
Windows users: please mind that we do no longer provide builds created with Visual Studio C++ 6. It is impossible to maintain a high quality and safe build of PHP for Windows using this unmaintained compiler.
For Apache SAPIs (php5_apache2_2.dll), be sure that you use a Visual Studio C++ 9 version of Apache. We recommend the Apache builds as provided by ApacheLounge. For any other SAPI (CLI, FastCGI via mod_fcgi, FastCGI with IIS or other FastCGI capable server), everything works as before. Third party extension providers must rebuild their extensions to make them compatible and loadable with the Visual Studio C++9 builds that we now provide.
All PHP users should note that the PHP 5.2 series is NOT supported anymore. All users are strongly encouraged to upgrade to PHP 5.3.6.
For a full list of changes in PHP 5.3.6, see the ChangeLog. For source downloads please visit our downloads page, Windows binaries can be found on windows.php.net/download/.

Friday, March 04, 2011

Introduction to Step-by-Step C/C++

email post

Introduction to Step-by-Step C/C++

Many people are really interested in learning and implementing C/C++ programs on their favorite platforms like DOS/Windows or Linux. If you are the one looking for a step-by-step guide to get started, this tutorial is for you. Let me know your comments on  my tiny attempt to serve the community.

Contents

I. About C
  1.  
    1. What is C ?
    2. Development of C language
    3. C as a general purpose Language
    4. History of C
    5. Features of C
II. Programming Basics
  1. Components of a program
  2. Constants
  3. Data types
  4. Numeric Data Type
  5. Non-Numeric Data Type
  6. Integer Data Type
  7. Real Data Type
  8. Logical Data Type
  9. Enumerated Data Type

Introduction to Language & Expressions

What is C?

C is a compiler based programming language supports both high level and low level statements to interact directly with the hardware.

Development of C Language

The C programming language evolved from a succession of programming languages developed at Bell Laboratories in early 1970s. It was not until the late 1970s that this programming language began to gain widespread popularity and support. This was because until that time C compilers were not readily available for commercial use outside of Bell Laboratories.
The C language was the outcome of Dennis Ritchie’s work on a project in Bell Laboratories, to invent a suitable high level language for writing an Operating System which manages the input and output devices of a computer, allocates its storage and schedules the running of other programs.
UNIX operating system is written in the C language. Hence the Unix Operating system has C as its standard programming language. In fact over 90% of the operating system itself is written in the C language. So originally C language was designed and implemented on the Unix Operating System.

C as a general purpose Language

C is a high level, procedural/structured, and general purpose programming language and resembles few other high level languages such as Fortran, Pascal, and PL/1. However, we cannot call the C language as a “Purely High Level Language”.
C stands somewhere between the high-level languages meant for carrying on special activities and the low level languages such as assembly language of a machine because of some features like “System Independence”, “Limited Data Type”, “High Flexibility”, it is considered as a powerful language C has also become popular because of its portability across systems.

History of C

YearLanguageDeveloped byRemarks
1960ALGOLInternational CommitteeToo general, Too abstract
1963CPLCambridge UniversityHard to learn, Difficult to implement
1967BCPLMartin RichardsCould deal with only specific problems
1970BKen Thompson AT & T Bell LabsCould deal with only specific problems
1972CDennis Ritchie AT & T Bell LabsLost generality of BCPL and B restored
Early 80’sC++Bjarne Stroustrup AT & TIntroduces OOPs to C.

Features of C

-    Simple, versatile, general purpose language
-    Programs are fast and efficient
-    Has got rich set of operators
-    more general and has no restrictions
-    can easily manipulates with bits, bytes and addresses
-    Varieties of data types are available
-    separate compilation of functions is possible and such functions can be called by any C program
-    block-structured language
-    Can be applied in System programming areas like operating systems, compilers & Interpreters, Assemblers etc.,

II. Programming Basics

Components of a program

1.    Constants
2.    Variables
3.    Operators
4.    Statements
So, before writing serious programming we must be clear with all the above components of programs. According to above example every program is a set of statements, and statement is an instruction to the computer, which is a collection of constants, variables, operators and statements.

Constants

A constant is a fixed value, which never altered during the execution of a program.
Constants can be divided into two major categories:
1.    Primary Constants
2.    Secondary Constants

Data Types

The kind of data that the used variables can hold in a programming language is known as the data type.
Basic data types are as follows:
1.    Numeric Data Type
2.    Non-Numeric Data Type
3.    Integer Data Type
4.    Real Data Type
5.    Logical Data Type
6.    Enumerated Data Type
1.    Numeric Data Type: Totally deals with the numbers. These numbers can be of integer (int) data type or real (float) data type.
2.    Non-Numeric Data Type : Totally deals with characters. Any character or group of characters enclosed within quotes will be considered as non-numeric or character data type.
3. Integer Data Type :   Deals with integers or whole numbers. All arithmetic operations can be achieved through this data type and the results are again integers.
4.    Real Data Type :  deals with real numbers or the numeric data, which includes fractions. All arithmetic operations can be achieved through this data type and the results can be real data type.
5.    Logical or Boolean Data Type :  can hold only either of the two values TRUE or FALSE  at a time. In computer, a 1 (one) is stored for TRUE and a 0 (zero) is stored for FALSE.
6. Enumerated Data Type :  Includes the unstructured data grouped together to lead to a new type. This data type is not standard and us usually defined by user.
Ex.
    Week_days = { “sun”, “mon”, “tue”, “wed”, “thu”, “fri”, “sat” };
    Directions = {”North”, “East”, “West”, “South” };
The following table shows the standard data types with their properties.
KeywordRange: lowRange: highDigits of precisionBytes of memoryFormat-ID
vhar-128127n/a1%c
int-32, 76832, 767N/a2 (on 16 bit processor)
%d
long-2,147, 483, 6482, 147, 483, 647N/a4%ld
float3.4 x 10-383.4 x 103874%f
double1.7 x 10-3081.7 x 10308158%lf
long double3.4 x 10-49323.4 x 10-49321910%Lf
NOTE: The required ranges for signed and unsigned int are identical to those for signed and unsigned short. On compilers for 8 and 16 bit processors (including Intel x86 processors executing in 16 bit mode, such as under MS-DOS), an int is usually 16 bits and has exactly the same representation as a short. On compilers for 32 bit and larger processors (including Intel x86 processors executing in 32 bit mode, such as Win32 or Linux) an int is usually 32 bits long and has exactly the same representation as a long.

Tuesday, February 01, 2011

How to Unlock Bell's 2wire 2701HG-G Modem

email post

How to Unlock Bell's 2wire 2701HG-G Modem


WARNING ! Any flashing may brick your device. All next actions will be at your own risk.

1. Prepare a new firmware for your device
Direct Download link for 2wire_reinstall_voice_5.29.117.3.2sp File size:10.45 MB
File name: 2wire_reinstall_voice_5.29.117.3.2sp File size:10.45 MB



2. We have to Power On our modem and connect it to a computer by Ethernet ( flashing will be proceed directly from computer )

3. Wait while Power LED on the modem front side stop blinking and become stong green and while your computer get an IP from router .

4. Open your browser and write in address bar : http://gateway.2wire.net/tech/upgrade.html
It will redirect you to the internal tech site . Press Continue




5. Choose the firmware that you downloaded before and press Upgrade Now




And wait while the site told you that upgrade was successful . ( when I was flashing my modem I have to refresh this page , maybe you won't need it )

6. After flashing the device i advise to unplug the modem , wait 10-15 seconds and plug in for resetting settings .

Last but not least parts .

7. Go to your modem internal site http://gateway.2wire.net
Click on Diagnostic -> Advanced Settings (main page will differs from Bell's a little bit)

Your DSL settings must look like mine (thx to Fergless for the assistance with right settings )

8. Click Save. Connect DSL to your modem and wait while Internet LED comes Solid Green . If everything was fine , you will see it in 2-3 minutes.