nexus

Nexus may refer to: read more at WikiPedia

  • Configuring TeamCity, Maven for PHP for Joomla continuous build

    apache_maven

    Doxygen phpDocumentator phpunit-logo teamcity512 maven4php

    Maven for PHP uses the power of Maven for building, reporting on and creating documentations of PHP projects. It adapts the Maven build lifecycle to the PHP world while fully supporting PHP 4 and PHP 5. PHP for Maven uses PHPUnitfor unit testing and doxygenfor creating the api documentation.
    Use a PHP library project to create a library that can be used by other PHP libraries or PHP web projects. Use a PHP web project to create a standalone web project.

    So I quickly describe what I did install on my root server (OpenSuse 11.X)

    My Objectives: being able to build all my Joomla! component using best agile development practices

    “Specific tools and techniques such as continuous integration, automated or xUnit test, pair programming, test driven development, design patterns, domain-driven design, code refactoring and other techniques are often used to improve quality and enhance project agility.”

    Maven

    While not needed as TeamCity has an integrated Maven engine, I would like to use an external MAVEN version, in order to have the latest version and living dangerously on the edge!

    So I download

    # wgethttp://apache.mirror.testserver.li/maven/binaries/apache-maven-2.1.0-bin.tar.gz

    And unpack

    # tar xvf apache-maven-2.1.0-bin.tar.gz

    Since I would like to avoid having a version number in my configuration build path, I create a symlink

    # ln -s apache-maven-2.1.0 maven

    I just now tell TeamCity to use my own Maven version, by specifying the Maven Home Path

    teamcity.maven4php 

    phpDocumentor

    phpDocumentor is an open source documentation generator written in PHP. It automatically parses PHP source code and produces readable API and source code documentation in a variety of formats. phpDocumentor generates documentation based on PHPDoc-formatted comments and the structure of the source code itself. It supports documentation of both object-oriented and procedural code. phpDocumentor can create documentation in HTML, PDF, CHM or Docbook formats.

    Can be installed using PEAR, simply run

    # pear upgrade PhpDocumentor
    downloading PhpDocumentor-1.4.2.tgz...
    Starting to download PhpDocumentor-1.4.2.tgz (2,421,028 bytes)
    ..............................................................................done: 2,421,028 bytes
    upgrade ok: channel://pear.php.net/PhpDocumentor-1.4.2

    PHPUnit

    PHPUnit is a unit testing framework for the PHP programming language. Created by Sebastian Bergmann, PHPUnit is one of the xUnit family of frameworks that originated with Kent Beck's SUnit.

    Can be installed using PEAR, simply run

    # pear upgrade PHPunit

    DOxygen

    Doxygen is a documentation generator for C++, C, Java, Objective-C, Python, IDL (Corba and Microsoft flavors), Fortran, VHDL, PHP, C#, and to some extent D. It runs on most Unix-like systems, including Mac OS X, as well as on Windows. The first version of Doxygen borrowed some code of an old version of DOC++; later, the Doxygen code was rewritten by Dimitri van Heesch. from www.doxygen.org

    # zypper se doxy
    Lese installierte Pakete...

    S | Name       | Zusammenfassung                                    | Typ 
    --+------------+----------------------------------------------------+------
      | doxygen    | Automated C, C++, and Java Documentation Generator | Paket
      | doxywizard | Graphical User Interface for Doxygen               | Paket

    # zypper in doxygen

    Herunterladen von Paket doxygen-1.5.5-17.1.x86_64 (1/1), 2,3 M (6,2 M installiert)
    Lade herunter: doxygen-1.5.5-17.1.x86_64.rpm [fertig] 
    Installiere: doxygen-1.5.5-17.1 [fertig]

    Artifactory

    Prepare Artifactory by adding new Maven for PHP repositories

    At http://maven.waltercedric.com/artifactory/webapp/repositoryconfig.html

    As Admin user (you cant go to that links without being an admin!), add 2 new repositories

    teamcity.maven4php.artifactory

    In Maven settings.xml

    In order to use Artifactory at his best (proxy and caching of remote repositories), I have a Maven settings.xml that contains ONLY

    # vi /home/teamcity/.m2/settings.xml

    <activeProfiles>
      <activeProfile>cedric-profile</activeProfile>
    </activeProfiles>

    <profiles>
       <profile>
            <id>cedric-profile</id>
            <activation>
            <activeByDefault>true</activeByDefault>
            </activation>
    <repositories>
        <repository>
            <id>central</id>
            <url>http://maven.waltercedric.com/artifactory/repo/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>snapshots</id>
            <url>http://maven.waltercedric.com/artifactory/repo/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>central</id>
            <url>http://maven.waltercedric.com/artifactory/plugins-releases/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
        <pluginRepository>
            <id>snapshots</id>
            <url>http://maven.waltercedric.com/artifactory/plugins-snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
        </pluginRepository>
    </pluginRepositories>
        </profile>
      </profiles>
    </settings>

    Attention: Artifactory WIKI tell to use http://maven.waltercedric.com/artifactory/plugins-releases and not http://maven.waltercedric.com/artifactory/plugins-releases/ on my HOST with mod_proxy it made an error 404 If I do not add a slash at the end. Try with your host before, you will gain a lot of time by checking if the URL is valid!

    Note that http://url:port/artifactory/repo/ is a virtual repositories that proxy all external repositories

     

    Eclipse

    Use SolarJoomla (hopefully to be distributed this week) to have a running Eclipse, PDT, Maven 4 PHP environment, Mylyn, TeamCity in no time

    Lets build!

    First I create a new Maven Project with Archetype “Maven for PHP” “PHP5 libraries”

    In TeamCity I did create a new project “Joomla 15 components plugins and modules” and a new Build “MyGuestbook”.

    teamcity.maven4php.myguestbook

    The first build failed with

    [INFO] PHP Warning: require_once(PHPUnit/TextUI/TestRunner.php): failed to open stream: Operation not permitted

    This is because of my PHP security restrictions, I only allow file to be opened from /home/teamcity/

    So I just add

    /home/teamcity/TeamCity/buildAgent/ to my open_basedirin my php.ini

    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below.  This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    open_basedir = /srv/www/vhosts:/tmp:/home/teamcity/TeamCity/buildAgent/

    To be continued

    So long an empty PHP project is building successfully, tomorrow I will try to make a REAL Joomla! component build there!

    As soon as It works, and all my Joomla! components are running in TeamCity, I will try to achieve the same goal in Bamboo, why? because it is simply . . .fun!

    Links

  • Nexus Prime vs Samsung Galaxy S2 vs Apple iPhone 4S

    samsung_galaxy_nexus_prime_header

    My next telephone will be a Samsung Nexus Prime Smile  bye bye Apple

      Apple iPhone 4S Samsung Galaxy S2 Samsung Nexus Prime
    Size(Height* Width* Depth): 115.2 mm x 58.6 mm x 9.3 mm 125.0 x 66.0 x 8.5 mm 135.5 x 67.94 x 8.94 mm
    Weight 140g 116g 135g
    Mobile Network: UMTS/HSDPA/HSUPA (850, 900, 1900, 2100 MHz);
    GSM/EDGE (850, 900, 1800, 1900 MHz), 3G
    UMTS/HSDPA/HSUPA (850, 900, 1800, 1900, 2100 MHz);
    GSM/EDGE (850, 900, 1800, 1900 MHz), 3G
    HSPA+ 21Mbps/HSUPA 5.76Mbps 850/900/1900/1700/2100
    EDGE/GPRS 850/900/1800/1900
    3G/4G
    Wi-Fi 802.11b/g/n Wi-Fi (802.11n 2.4GHz only) 802.11b/g/n Wi-Fi (802.11n 2.4GHz & 5GHz) 802.11b/g/n Wi-Fi (802.11n 2.4GHz & 5GHz)
    Bluetooth: Bluetooth 4.0 Bluetooth 3.0 Bluetooth 3.0
    GPS: A-GPS A-GPS A-GPS
    Display: Retina Display 4.3″ Super AMOLED Plus 800×480, Gorilla-Glass 4.6 Inch Super HD AMOLED, Gorilla-Glass
    Display Width: 3.5-inch 4.27-inch 4.65-inch
    Resolution: 960 x 640 Pixel 480 x 800 Pixel 1280×720 Pixel
    Other accelerometer, compass, gyro, proximity sensor accelerometer, compass, gyro, proximity sensor accelerometer, compass, gyro, proximity sensor, barometer
    Camera (Back) 8 MP 8 MP 5MP LED Flash
    Camera (Front): VGA Ja, 2MP 1.3 MP
    Operating System: Apple iOS 5 Gingerbread Android 2.3.3 Ice Cream Sandwich, Android 4.0
    Processor: Apple A5 (Dual Core) Samsung Exynos 4210 1.200 MHz (Dual Core) Dual-Core Texas Instruments 1.5 / 1.2 GHz CPU
    Memory (RAM): 512MB 1 GB RAM 1 GB RAM
    Internal Memory 16/32/64 GB 16 GB 16 GB
    External Memory No Yes micro SDHC No
    Autonomy   1650mAh Talk time 8 hours, one day heavy usage, two days moderate 1750mAh Talk time: Up to 8 hours on 3G
    Price www.digitec.ch CHF 879.- (Apple iPhone 4S - 16 GB – SIM-Free) CHF 489.- (Samsung I9100 Galaxy S II - 16 GB - Black) 
    ?
    Website: Apple iPhone 4S Samsung Galaxy S2  
           

    samsung_galaxy_nexus_prime

    Samsung and Google introduce GALAXY Nexus
    World's First Smartphone to feature Android 4.0 Ice Cream Sandwich and a HD Super AMOLED display

    Hong Kong – October 19, 2011 – Samsung Electronics Co., Ltd, a leading mobile device provider, and Google, today announced GALAXY Nexus™, the world's first smartphone running Android™ 4.0, Ice Cream Sandwich, the latest release of the Android platform. GALAXY Nexus features a 4.65" HD Super AMOLED display technology at 720p resolution and a 1.2GHz dual core processor.
    "Samsung and Google have closely collaborated to push the mobile experience forward. We are pleased to deliver the best Android smartphone experience for customers with GALAXY Nexus. We will continue to move forward with Android to provide the compelling consumer experience in mobile world," said JK Shin, President and Head of Samsung's Mobile Communications Business.
    "Ice Cream Sandwich demonstrates the Android platform's continued innovation with one release that works on phones and tablets and everything in between. Features like Android Beam and Face Unlock show the innovative work our team is doing, and GALAXY Nexus showcases the power behind Ice Cream Sandwich," said Andy Rubin, Senior Vice President of Mobile for Google.
    The first smartphone to feature Android 4.0, Ice Cream Sandwich
    Ice Cream Sandwich brings an entirely new look and feel to Android. It has a redesigned user interface with improved multi-tasking, notifications, Wi-Fi hotspot, NFC support and a full web browsing experience. GALAXY Nexus features software navigation buttons, a first for Android smartphones. The lock screen, home screen, phone app, and everything in between has been rethought and redesigned to make Android simple, beautiful, and useful.
    Ice Cream Sandwich also features a new People app, which lets you, browse friends, family, and coworkers, see their photos in high-resolution, and check their latest status updates from Google+ and other social networks. GALAXY Nexus features a redesigned camera which introduces panorama mode, 1080p video capture, zero-shutter lag, and effects like silly faces and background replacement.
    GALAXY Nexus is also connected to the cloud, keeping your email, contacts, and all other data synced across your devices. You have access to more than 300,000 apps and games from Android Market™, or, in certain countries, you can buy and read books, or rent movies and stream them instantly from your phone. In the U.S., you can also upload your music to the cloud with Music Beta by Google and listen anywhere, even when offline.
    Ice Cream Sandwich introduces innovations such as Face Unlock which uses facial recognition to unlock your phone. Using NFC technology, Android Beam allows you to quickly share web pages, apps, and YouTube™ videos with your friends by simply tapping your phones together. You can even use fun effects while shooting video or video chatting with Google Talk™.
    Google Experience
    GALAXY Nexus is designed to provide a "pure Google," experience, and with it, you will be the first to receive software upgrades and new applications as they become available.
    It also features a number of Google Mobile services, including: Android Market, Gmail™, Google Maps™ 5.0 with 3D maps and turn-by-turn navigation, Google Earth™, Movie Studio, YouTube™, syncing with Google Calendar™, and a redesigned Google+ app.
    Best-in-class hardware meets the most advanced software
    GALAXY Nexus is the first smartphone to feature a 4.65'' display with a market-leading resolution of 720p (1280x720), ensuring you can enjoy GALAXY Nexus' immersive entertainment capabilities and fast web browsing in superior clarity.
    Succeeding the original Contour Display of Nexus S, GALAXY Nexus comes with a rounded shape that fits perfectly within your palm or to your face for phone calling. Hyper-skin backing on the battery cover improves the ergonomic feel of the device and makes the phone slip-resistant. At just 8.94mm thick, with a minimal 4.29mm bezel, GALAXY Nexus provides superb portability alongside an expansive screen.
    GALAXY Nexus also features an ultra-fast 1.2GHz dual core processor, providing superior power and speed, ensuring you can take full advantage of GALAXY Nexus' enhanced multitasking capabilities with ease, or enjoy the large, vivid display to its full capacity with high-definition gaming or video streaming. LTE or HSPA+ connectivity combined with a dual core processor delivers high-speed web browsing which ensures you always have the web at your fingertips, wherever you are.
    GALAXY Nexus will be available in the U.S., Europe, and Asia beginning in November and gradually rolled out to other global markets.
    For multimedia content and more detailed information, please visit www.samsungmobilepress.com/
    Note to Editors:
    GALAXY Nexus Product Specifications
    Network
    HSPA+ 21Mbps/HSUPA 5.76Mbps 850/900/1900/1700/2100
    EDGE/GPRS 850/900/1800/1900
    *LTE version will be available depending on the region.
    Processor
    1.2 GHz Dual Core Processor
    Display
    4.65" 1280X720 HD Super AMOLED
    OS
    Android 4.0, Ice Cream Sandwich
    Camera
    Main(Rear) : 5 MP AF with LED Flash with zero shutter lag and fast shot2shot
    Sub (Front) : 1.3MP for Video Call
    Video
    Codec : MPEG4/H.263/H.264
    Playback : 1080p@ 30fps
    Recording : 1080p Full HD Video@ 30fps
    Audio
    Codec : MP3/AAC/AAC+/eAAC+
    3.5mm Ear Jack
    Google™Mobile Services
    Android Market™, Gmail™, Google Earth™, YouTube™, Movie Studio
    Google Maps™ 5.0 with 3D maps and turn-by-turn navigation
    Syncing with Google Calendar™, Google+ app
    Connectivity
    Bluetooth® technology v 3.0
    USB 2.0
    Wi-Fi 802.11 a/b/g/n (2.4GHz/ 5GHz)
    NFC
    Sensor
    Accelerometer, Compass, Gyro, Light, Proximity, Barometer
    Memory
    1GB(RAM) + 16GB/ 32GB Internal memory
    Size
    135.5 x 67.94 x 8.94mm, 135g
    Battery
    Standard battery, Li-on 1,750 mAh
    * Specifications above may differ on the LTE version.
    * All functionality, features, specifications and other product information provided in this document including, but not limited to, the benefits, design, pricing, components, performance, availability, and capabilities of the product are subject to change without notice or obligation.