Wednesday, September 11, 2013

Free PHP, HTML, CSS, JavaScript editor (IDE) - Codelobster PHP Edition



For valuable work on creation of sites you need a good comfortable editor necessarily. There are many requiring paid products for this purpose, but we would like to select free of charge very functional and at the same time of simple in the use editor - Codelobster PHP Edition .

Let us consider some important possibilities and advantages of this program:
    • All code highlights depending on a type, the also mixed code is thus supported, so the area of HTML will be highlighted as HTML, PHP as PHP, and Javascript as Javascript in a the same file. Thre is possibility of choice from color schemes, including popular IDEs.
    • Powerful autocompletion for HTML, PHP, CSS and Javascript, including HTML5 and CSS3. For PHP the structure of project is fully recognized, and the complete list of methods falls out in the proper places.
    • HTML/CSS inspector on the type of Firebug, which allows easily to correlate the selected elements of page with a code and proper style.
    • Context help on all supported languages. By pressing F1 key the page with detailed description for current tag, attribute or function will be opened.
    • PHP debugger. PHP debugger allows to execute PHP scripts incrementally, watching the values of all variables in every line.
    • SQL manager allows to produce all necessary actions with a database - to add, delete, edit a structure and records in tables, to export data, execute SQL queries. Highlighting and autocompletion works for SQL files also.
    • Support of FTP allows to work straight with a remote server and to do all necessary changes with files;
    The portable option allows to use editor without the preliminary installation.

    Other useful utilities: pair highlighting, possibility of blocks selection, collapsing, tooltips, navigation on descriptions of functions and included files at withholding of the key of CTRL, viewing of structure of files and project, preview in a browser, book-marks, and all other standard possibilities for work with a code.

      Also there are special plugins for work with:


      Developer
      Codelobster Software
      Web Site
      Language
      English, Russian, German, Spanish, French, Portuguese
      Supported OS
      Windows 2000, Windows XP, Windows Vista, Windows 7

      Monday, October 1, 2012

      Git push error: RPC failed; result=55, HTTP code = 0

      Today I had some problem pushing my data on a git repository.
      The data was some MB and the error message when I did the push was

         fatal: The remote end hung up unexpectedly
         error: RPC failed; result=55, HTTP code = 0

      If you get this error, it's because you are trying to push a large delta to the repository and your push buffer is not big as needed.

      The solution is to increase your buffer size with this command:

         git config http.postBuffer 1024000

      This will add a line in your config file with the specified value.
      Set the value to what you need.
      The http.postBuffer configuration value is exactly the maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system (source).

      EDIT: 2014/02/06
      An user (Matej Sychra) in a commet report you need a value bigger than 1024000 for lager repository.
      Thanks Matej!

      Tuesday, July 24, 2012

      Automapper upper and lower case properties mapping

      Yesterday I face some sort of common problem: mapping an class to another one (a DTO).
      The first class was a generated entity using Entity Framework 4.
      The database is a legacy one, and of course untouchable and the name of the columns are are all upper case.
      To map these entities to a DTO class, I'm using best tool for .NET on the way: I'm talking about AutoMapper of course.
      As you probably know, AutoMapper is a convention-based object-object mapping library.
      In a basic usage, AutoMapper maps your property automatically to another one, if the property have the same name.
      In my case this convection (the default one) doesn't work because of the upper-case properties, different by the properties of the DTO.

      The solution.

      AutoMapper, as said is convention based, so you have simply to say to it, to consider one said of the mapping with upper-case property.

      How to do it?
      First of all write your Naming Convention class:
      public class UppercaseNamingConvenction : INamingConvention
      {
         private static readonly Regex _splittingExpression
               = new Regex("(\\p{Lu}0-9]+)");
      
         #region Implementation of INamingConvention
      
         public Regex SplittingExpression
         {
            get { return _splittingExpression; }
         }
      
         public string SeparatorCharacter
         {
            get { return string.Empty; }
         }
      
         #endregion
      } 
      As you can see, we use a splitting regular expression with a upper case specification.

      The next is to define an Automapper profile to specify a different configuration usage.
      Write the code below where you configure your application at startup.


      Mapper.CreateProfile("first_profile"
         , expression =>
         {
            expression.SourceMemberNamingConvention
               = new UppercaseNamingConvenction();
         });
      
      Mapper.CreateProfile("second_profile"
         , expression =>
         {
            expression.SourceMemberNamingConvention
               = new UppercaseNamingConvenction();
         });
      

      So you will have two profiles: "first_profile" and "second_profile".
      To use this configuration, simple specific the profile when you define a mapping strategy:

      Mapper.CreateMap<DtoClass, MyDbEntity>().WithProfile("first_profile");
      

      Of course the strategy is the same if you have lower case properties: you have only to change the regular expression.

      Have a nice mapping ;)

      Saturday, July 7, 2012

      Android - Mobile clouds @ Exchange program seminars on cloud computing


      Wednesday 07/07/2012 I and Emanuele Palazzetticonducted a workshop in "Università degli studi di Perugia, dipartimento di Matematica/Informatica".

      Was a long and funny day and this workshop, was one of the six for the "Exchange programme summer 2012",  between University of Perugia (IT) and Hong Kong Baptist University (HK).
      Thanks to all the italy and hong kong studets was there, thanks to Professor Alfredo Milani and Valentina Franzoni.

      The link of the page of the cloud computing events is here.

      In the second part of the workshop, we did a full android application!
      This application is a simple browser, with some nice features like a "Splash screen" and "Bookmarks save/delete" in a SQLite database.

      Here the abstract of the seminar.
      You can see the slide of first part here.
      You can download the project resource (installation guide, a source tarball and the images) here.
      Here you can find the full source code of the project on github to make your own fork.

      I hope all the students (and professors :-) ) had fun building this app from scratch.

      See you next seminar!

      Friday, May 11, 2012

      Videogiocare nell'universo FLOSS - i migliori videogame free e open source - le slide..


      Sono online le slide del mio intervento all'IPSIA FLOSS 2011, dal titolo "Videogiocare nell'universo FLOSS".
      Con l'occasione mi è stato fatto onore di una maglietta con su scritto "I videogiochi mi hanno rovinato la vita: per fortuna ne avevo altre 2", con questa immagine stampata sopra:

      Gli argomenti trattati sono ovviamente i videogiochi, e cosa offre il mondo open source, e in particolare i sistemi GNU/Linux, oggi.

      Buona visione =)