Jump to content

renatov

Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by renatov

  1. Hello guys, I'll have to use the Fast Neural Network (FANN) framework on my research to build a multilayer feedforward network with backpropagation error algorithm. I'm currently deciding if I use C or PHP and I would like your oppinion. The main reason I don't want to code it in C is because it will be a pain in the ass working with pointers, structures etc... in PHP everything would be much easier, and performance is not an issue. The only thing that gets me worried is how functional is FANN's PHP binding? Is it fully working? Is it up to date? Have all C function already been binded to PHP?

     

    If someone already used FANN's PHP binding, I would appreciate if you tell me your experience too.

     

    Thanks for your attention.

  2. I'm looking for something like iPython is for Python, but a shell for JavaScript.

     

    If you don't know iPython, what I'm looking for is a terminal that interpret JavaScript codes in real time, so I can type some commands and see their output. I always find this kind of interpreter very useful when I'm learning a new language.

     

    Thanks!

  3. Oh, now I understand your point. I wasn't clear when I said MariaDB is the default DB in OpenSUSE. It doesn't come pre-installed. What I tryed to mention is that when you specifically try to install MySQL, OpenSUSE installs MariaDB instead. All metapackages that previously installed MySQL now install MariaDB. If you insist on using MySQL, like I did (for learning purposes), you must uninstall MariaDB, manually remove its tables and then install the mysql communit server package.

  4. It's nice to see this point of view. According to the article you suggested, MariaDB and MySQL are very similar RDBMS and it seems that the most important difference that is encouraging people to migrate is the license. I read another article that said Oracle has an agreement of providing a dual licensing (one open source and another commercial) to MySQL only until 2015. After that, it's totally up to Oracle what to do with MySQL. For now I'm not too concerned about all this because I'm still learning and even though I won't use MySQL forever, after learning some fundamental SQL manipulation concepts it will be easy to learn another RDBMS tool. But I confess I got a bit troubled by all these things I read. I mean, what if I do some jobs using MySQL now and withing a few years this tool is no longer avaliable, or force me to pay in order to use it, or become a very bad product that we won't be able to fork ? Maybe that's why people are migrating now, because they are being cautious and if they already start migrating, they can do it gradually.

     

    Why do you say that a relational database shouldn't be the default database for a Linux distro? What do you think would be better, and why?

  5. Hi guys, I've been following some discussions in Linux forums about migrating from MySQL to MariaDB. Linux community seems very enthusiastic about this migration and some distros already set MariaDB as their default SQL database, for example, OpenSUSE 13.1.

     

    But what do you, web developers, think about this? Overall, are web developers really planning to migrate from MySQL to MariaDB? Do you think MariaDB will be more used than MySQL in the near future?

  6. It is. I use it on a daily basis with a few large Symfony2 based applications. It's a great tool.

     

    http://thorpesystems.com/blog/debugging-php-in-vim

     

    I'm pretty interested in taking a look at http://phpdbg.com one of these days too as it ships with PHP5.6.

     

    Yes, I was interested in learning phpdbg too since it will be in PHP 5.6 core, but it seems xdebug is better documented, so I'll give it a try at least for now. Thanks for your tutorial!

  7. Hello everybody, I'm using OpenSUSE 13.1 and PHP 5.4.20, which was installed from OpenSUSE's official repository. The problem is that I have no /etc/php.ini, although I have a php.ini in 3 other locations:

    # find /etc -name php.ini
    /etc/php5/fastcgi/php.ini
    /etc/php5/cli/php.ini
    /etc/php5/apache2/php.ini
    The page phpinfo.php loads correctly in localhost and it points that php.ini location is /etc/php5/apache2/php.ini . Is this normal or is it mandatory to have a /etc/php.ini file? Do I must copy one of the others php.ini to the /etc directory? If yes, which one of them?
  8. I find XDebug as not very efficient for myself when I follow object oriented design patterns in my code. It could be very powerful and useful if you're coding in procedural way with bad coding design. I am on Netbeans IDE which is absolutely enough for what I want to do and Vi/VIM as command line  interface code editor.

     

    Why isn't XDebug suitable for debuggin Object Oriented PHP?

     

     

    XDebug itself doesn't provide any kind of interface for actually interacting with the script. That is the job of a third-party client like your text editor or IDE. On the XDebug website they have a list of clients that will provide this functionality. In the list there is:

     

    If you're not using windows, then look at the list for other possible clients. If you feel comfortable with a compiler, the xdebug source package includes a simple client you can compile and use.

     

    I'm on Linux and I'm totally comfortable with compiling. How is this simple xdebug client included in the source package? I couldn't find any information about it.

  9. I find a plugin for Sublime Text that aparently can enable XDebug inside this text editor. What I need for PHP is something like pudb (for Python), take a look at this pudb print screen:

     

    http://asmeurersympy.files.wordpress.com/2010/07/screen-shot-2010-07-28-at-12-51-36-pm.png

     

    It runs on terminal and it has these features:

     

    1. Execute line by line

    2. Show variables values and changes line by line

    3. Enable you to navigate between functions stack

    4. Can use breakpoints

     

    Does XDebug offer this? Is there another debugger for PHP that has these features?

  10. I've found some debugger options for PHP:

     

    http://xdebug.org/

    http://www.php-debugger.com/dbg/

    http://phpdbg.com/

    http://dbug.ospinto.com/

    http://www.firephp.org/

    http://pecl.php.net/package/apd

     

    And probably there are more. Do you guys know any of these debuggers? Do you recommend one? What is the best PHP debugger?

     

    ps: I'm trying to avoid IDEs at the momment, I would like to use a tool specifically made for debugging.

  11. I used to think it's far more convenient to have all the stuff I needed in one single window and so installed Eclipse and used it for almost a year. But then I started to think that it's troublesome to rely exclusive on my IDE and to expect that it will provide every single feature I need. A general purpose software will provide a lot of features indeed, but it will excel in none of them when compared to tools which were designed to do specific tasks. For example, I could use an IDE to do some MySQL manipulations. Eclipse has two famous plugins for Database management: SQL Explorer and Data Tools Platform. Although they can do what they are meant to do, their interface are clunky, syntax highlighting is inaccurate and their queries are terribly slow - inexplicably slow, oh my god. They will never be as good as an accurate text editor like Sublime Text + a specific MySQL administration tool like phpMyAdmin. I'm currently keen to get rid of IDEs and to start using separate lightweight tools for specific tasks. I'm still trying new software to see what makes me happier, but so far I feel better with Sublime Text + auxiliary tools than when I was with that monolithic bloatware called Eclipse.

     

    @trq I tryed to use VIM, but it just didn't happen. I don't know, everything seemed so unnatural. How did you become familiar with it? Did it happened spontaneously or did you have to push yourself into using it for a while?

  12. Hello guys, I've recently came across different points of view concerning IDEs: there are people who find that they are bad or at least unnecessary, and there are people who find that they are good or even indispensable. The only two arguments I found favorable to IDEs say that IDEs help people code faster and, in some cases, they are indispensable tools because you can't properly program without it in some languages, like Java. But then I found some people arguing that if a language needs an IDE to be used this is a sign that this language is a bad programming language in the first place. According to these people, a good programming language shouldn't require an IDE to be used efficiently. People complain that IDEs are bloatwares, resource consuming, and they get worse in every release. When working with projects, IDEs tend to add a bunch of useless information, hidden files and metadata. IDEs has their own work flow and particular ways of doing things, there is no space for creativity and over time you become passively tied to what these softwares offer you. I found a lot of people saying that they prefer to stick with lightweight and versatile text editors, like VIM, EMACS, Sublime etc, and the basic tool chain, so they know exactly what they are doing, they have more control over what's happening and there is more flexibility the way things can be done. VIM and EMACS are not considered IDEs in a pejorative way, although they can have IDE features, because they don't have the bad qualities of monolithic bloatwares like Eclipse and Visual Studio, and they don't force you to develop bad habits, hence they are primarily considered lightweight text editors. Here are some articles I've been reading recently:

     




     

    What's your opinion about that? What do you thing about the use of IDEs?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.