Home |  MySQL Buzz |  FAQ |  Feeds |  Submit your blog feed |  Feedback |  Archive |  Aggregate feed RSS 2.0 English Deutsch Español Français Italiano 日本語 Русский Português 中文
Previous 30 Newer Entries Showing entries 91 to 120 of 171 Next 30 Older Entries

Displaying posts with tag: code (reset)

More MySQL connectors
Employee +1 Vote Up -0Vote Down

Some time ago I posted a compilation of applications and programming languages that provide an API to connect to the MySQL Server (http://mysql.com/). As it turned out, I forgot a few that I would like to mention here:

  • Apache DBD API: a MySQL driver for mod_apr_dbd is not included in the official distribution, but can be obtained seperately from here. Some distributions (e.g. openSUSE) actually provide installable packages of this driver module.
  • GRASS MySQL driver
  [Read more...]
stringstream is completely useless (and why C++ should have a snprintf)
+0 Vote Up -0Vote Down
  • It’s easy to screw up thread safety.
    If you’re trying to format something for output (e.g. leading zeros, only 1 decimal place or whatever… you know, format specifiers in printf) you are setting a property on the stream, not on what you’re converting. So if you have a thread running that sets a format, adds something to the stream, and then unsets the format, you cannot have another thread able to come in and do something to that stream. Look out for thread unsafe cout code.
  • You cannot use streams for any text that may need to be translated.
    gettext is what everybody uses. You cannot get a page into the manual before it tells you that translators may want to change the order of what

  •   [Read more...]
    Contributing to MySQL
    Employee +0 Vote Up -0Vote Down

    If interested in contributing code to MySQL, you should attend the MySQL University session on contributing code to MySQL.

    (Live broadcast with Q&A will be held on Thursday, June 25, 2009. You can still have access to rebroadcasts afterwards.)

    Contributing to MySQL
    Employee +0 Vote Up -0Vote Down

    If interested in contributing code to MySQL, you should attend the MySQL University session on contributing code to MySQL.

    (Live broadcast with Q&A will be held on Thursday, June 25, 2009. You can still have access to rebroadcasts afterwards.)

    Contributing to MySQL
    Employee +0 Vote Up -0Vote Down

    If interested in contributing code to MySQL, you should attend the MySQL University session on contributing code to MySQL.

    (Live broadcast with Q&A will be held on Thursday, June 25, 2009. You can still have access to rebroadcasts afterwards.)

    MySQL University: MySQL Code Contributions
    Employee +0 Vote Up -0Vote Down

    This Thursday (June 25th, 13:00 UTC), Lenz Grimmer will explain how to contribute code to MySQL, in a MySQL University session titled MySQL Code Contributions. Lenz is a member of the MySQL Community Team. His session will give an overview about how code contributions to MySQL should be handled and performed. It will cover the ideal workflow, requirements and available infrastructure and toolchain that potential contributors should be aware of.

    For MySQL University sessions, point your browser to this page. You need a browser with a working Flash


      [Read more...]
    Hidden Features Of Perl, PHP, Javascript, C, C++, C#, Java, Ruby, Python, And Others [Collection Of Incredibly Useful Lists]
    +2 Vote Up -0Vote Down

    Introduction

    StackOverflow is an amazing site for coding questions. It was created by Joel Spolsky of joelonsoftware.com, Jeff Atwood of codinghorror.com, and some other incredibly smart guys who truly care about user experience. I have been a total fan of SO since it went mainstream and it's now a borderline addiction (you can see my StackOverflow badge on the right sidebar).

    The Story

    Update 6/21/09: This server is currently under very heavy load (10-200), even with caching plugins enabled. Please bear with me as I try to

      [Read more...]
    MySQL Error of the day
    Employee +3 Vote Up -0Vote Down

    Just spotted the following posting from Paul DuBois on the internals mailing list:

    I'm engaged in a project (WL#3403) to compile information that will provide better information about our errors and error messages:
    • What an error means
    • Likely causes of the error
    • How to rectify or work around the error

    The general idea is to provide our users something more than a list of error codes and the messages from errmsg.txt, such as the manual currently includes here:

    http://dev.mysql.com/doc/refman/5.1/en/error-messages-server.html

      [Read more...]
    Does linux fallocate() zero-fill?
    +0 Vote Up -0Vote Down

    In an email disscussion for pre-allocating binlogs for MySQL (something we’ll likely have to do for Drizzle and replication), Yoshinori brought up the excellent point of that in some situations you don’t want to be doing zero-fill as getting up and running quickly is the most important thing.

    So what does Linux do? Does it zero-fill, or behave sensibly and pre-allocate quickly?

    Let’s look at hte kernel:

    Inside the fallocate implementation (fs/open.c):

    if (inode->i_op->fallocate)
    ret = inode->i_op->fallocate(inode, mode, offset, len);
    else
    ret = -EOPNOTSUPP;

    and for ext4:
    /*
    * currently supporting (pre)allocate mode for extent-based
    * files _only_
    */
    if (!(EXT4_I(inode)->i_flags & EXT4_EXTENTS_FL))
    return -EOPNOTSUPP;

    XFS has always done










      [Read more...]
    c++ stl bitset only useful for known-at-compile-time number of bits
    +1 Vote Up -0Vote Down

    Found in the libstdc++ docs:

    Extremely weird solutions. If you have access to the compiler and linker at runtime, you can do something insane, like figuring out just how many bits you need, then writing a temporary source code file. That file contains an instantiation of bitset for the required number of bits, inside some wrapper functions with unchanging signatures. Have your program then call the compiler on that file using Position Independent Code, then open the newly-created object file and load those wrapper functions. You’ll have an instantiation of bitset for the exact N that you need at the time. Don’t forget to delete the temporary files. (Yes, this can be, and has been, done.)

    Oh yeah – feel the love.

    Brought to you by the stl-is-often-worse-for-you-than-meth dept.

    More Code Contributions to MySQL
    Employee +0 Vote Up -0Vote Down

    MySQL has deep roots in open-source software development communities and code contributions to MySQL keep flowing in, being reviewed and integrated into the MySQL. 

    During our BoF at the MySQL Conference and Expo, Lenz Grimmer talked about our work to make MySQL (even more) contributor friendly, with some more focused effort starting on February 1, 20091.

    The desire to contribute code to MySQL remains as strong as ever as evidenced by this year's MySQL Conference and Expo, where I had an opportunity to speak with some contributors and partners who wish to contribute to MySQL. Of course, there are a lot of strong and varying opinions in this area.

    As I said above,


      [Read more...]
    More Code Contributions to MySQL
    Employee +0 Vote Up -0Vote Down

    MySQL has deep roots in open-source software development communities and code contributions to MySQL keep flowing in, being reviewed and integrated into the MySQL. 

    During our BoF at the MySQL Conference and Expo, Lenz Grimmer talked about our work to make MySQL (even more) contributor friendly, with some more focused effort starting on February 1, 20091.

    The desire to contribute code to MySQL remains as strong as ever as evidenced by this year's MySQL Conference and Expo, where I had an opportunity to speak with some contributors and partners who wish to contribute to MySQL. Of course, there are a lot of strong and varying opinions in this area.

    As I said above,


      [Read more...]
    More Code Contributions to MySQL
    Employee +0 Vote Up -0Vote Down

    MySQL has deep roots in open-source software development communities and code contributions to MySQL keep flowing in, being reviewed and integrated into the MySQL. 

    During our BoF at the MySQL Conference and Expo, Lenz Grimmer talked about our work to make MySQL (even more) contributor friendly, with some more focused effort starting on February 1, 20091.

    The desire to contribute code to MySQL remains as strong as ever as evidenced by this year's MySQL Conference and Expo, where I had an opportunity to speak with some contributors and partners who wish to contribute to MySQL. Of course, there are a lot of strong and varying opinions in this area.

    As I said above,


      [Read more...]
    A BoF on Community Code Contributions to MySQL
    Employee +0 Vote Up -0Vote Down

    The BoF schedule for MySQL Conference and Expo (2009) is now published. Lenz Grimmer, Sergei Golubchik, Tomas Ulin and myself will be available during a BoF which focuses on MySQL Community Code Contributions. Lenz will be moderating. For background material, you may start here.


    A BoF on Community Code Contributions to MySQL
    Employee +0 Vote Up -0Vote Down

    The BoF schedule for MySQL Conference and Expo (2009) is now published. Lenz Grimmer, Sergei Golubchik, Tomas Ulin and myself will be available during a BoF which focuses on MySQL Community Code Contributions. Lenz will be moderating. For background material, you may start here.


    A BoF on Community Code Contributions to MySQL
    Employee +0 Vote Up -0Vote Down

    The BoF schedule for MySQL Conference and Expo (2009) is now published. Lenz Grimmer, Sergei Golubchik, Tomas Ulin and myself will be available during a BoF which focuses on MySQL Community Code Contributions. Lenz will be moderating. For background material, you may start here.


    Drizzle low-hanging-fruit
    +0 Vote Up -0Vote Down

    We have an ongoing Drizzle milestone called low-hanging-fruit. The idea is that when there’s something that  could be done, but we don’t quite have the time to do it immediately, we’ll add a low-hanging-fruit blueprint so that people looking to get a start on the codebase and contributing code to Drizzle have a place to go to find things to do.

    Some of my personal favourites are:

      [Read more...]
    Developing with MySQL Connector/C++
    Employee +0 Vote Up -0Vote Down
    Giri Mandalika has written an article showing how to develop C++ database applications for MySQL and another article showing how to install MySQL Connector/C++ from the source.
    Developing with MySQL Connector/C++
    Employee +0 Vote Up -0Vote Down
    Giri Mandalika has written an article showing how to develop C++ database applications for MySQL and another article showing how to install MySQL Connector/C++ from the source.
    Developing with MySQL Connector/C++
    Employee +0 Vote Up -0Vote Down
    Giri Mandalika has written an article showing how to develop C++ database applications for MySQL and another article showing how to install MySQL Connector/C++ from the source.
    MySQL Conference Notes
    Employee +0 Vote Up -0Vote Down

    MySQL Conference 2009 is coming around the corner, next week, in Santa Clara.

    You may want to delve into the notes, as a fast way to learn about the happenings.

    If you want to become an active code contributor to MySQL, the hackfest by Mark Callaghan seems interesting, and you should probably also start here and here

    There will also be a special BoF geared to community contributors. (I still haven't been able to find out

      [Read more...]
    MySQL Conference Notes
    Employee +0 Vote Up -0Vote Down

    MySQL Conference 2009 is coming around the corner, next week, in Santa Clara.

    You may want to delve into the notes, as a fast way to learn about the happenings.

    If you want to become an active code contributor to MySQL, the hackfest by Mark Callaghan seems interesting, and you should probably also start here and here

    There will also be a special BoF geared to community contributors. (I still haven't been able to find out

      [Read more...]
    MySQL Conference Notes
    Employee +0 Vote Up -0Vote Down

    MySQL Conference 2009 is coming around the corner, next week, in Santa Clara.

    You may want to delve into the notes, as a fast way to learn about the happenings.

    If you want to become an active code contributor to MySQL, the hackfest by Mark Callaghan seems interesting, and you should probably also start here and here

    There will also be a special BoF geared to community contributors. (I still haven't been able to find

      [Read more...]
    Three Great Beta Deliveries in One Week
    Employee +0 Vote Up -0Vote Down

    Three great beta deliveries in one week!

    MySQL Connector/.Net 6.0.2 beta, a new version of the all-managed .NET driver for MySQL.

    MySQL Connector/C++ 1.0.4 beta, a new release providing  C++ API for connecting client applications to the MySQL Server. If you know JDBC, this should be familiar to you.

    MySQL Connector/C 6.0.0 beta, a new version of the C API for accessing MySQL database servers

    Use them and let us know what you think.

    Learn more about Connector/C++




      [Read more...]
    Three Great Beta Deliveries in One Week
    Employee +0 Vote Up -0Vote Down

    Three great beta deliveries in one week!

    MySQL Connector/.Net 6.0.2 beta, a new version of the all-managed .NET driver for MySQL.

    MySQL Connector/C++ 1.0.4 beta, a new release providing  C++ API for connecting client applications to the MySQL Server. If you know JDBC, this should be familiar to you.

    MySQL Connector/C 6.0.0 beta, a new version of the C API for accessing MySQL database servers

    Use them and let us know what you think.

    Learn more about Connector/C++




      [Read more...]
    Three Great Beta Deliveries in One Week
    Employee +0 Vote Up -0Vote Down

    Three great beta deliveries in one week!

    MySQL Connector/.Net 6.0.2 beta, a new version of the all-managed .NET driver for MySQL.

    MySQL Connector/C++ 1.0.4 beta, a new release providing  C++ API for connecting client applications to the MySQL Server. If you know JDBC, this should be familiar to you.

    MySQL Connector/C 6.0.0 beta, a new version of the C API for accessing MySQL database servers

    Use them and let us know what you think.

    Learn more about Connector/C++




      [Read more...]
    How MySQL Sandbox Solves All My Problems
    +0 Vote Up -0Vote Down
    I just can’t help thinking about how amazing and useful MySQL Sanbox is. There are so many things that it can do, and so many problems that it solves for Database Developers. When it comes down to it, I really think that every project that uses MySQL can benefit in some way or another just by using […]
    MySQL Community Contribution: One bug fix at a time ...
    Employee +0 Vote Up -0Vote Down

    It is all about one bug fix, one little feature, one step at a time.

    Armin Schöffmann fixed a bug (Deadlock in mysql_real_query with shared memory connections, is what Armin calls it), Armin signed the Sun Contributor Agreement (24 March 2009), Vladislav Vaintroub and Davi Arnaut reviewed, committed and queued the patch to MySQL 5.0 bug team (26 and 27th of March, 2009).

    That's a great example of open, contribution-based MySQL development with real results.

    Thank you Armin!

    Thank you Vlad!

    Thank you Chad!

    Thank you Davi!

    Thank you ... the one whose name I've left out! (Feel free to leave a comment below.)

    MySQL Community Contribution: One bug fix at a time ...
    Employee +0 Vote Up -0Vote Down

    It is all about one bug fix, one little feature, one step at a time.

    Armin Schöffmann fixed a bug (Deadlock in mysql_real_query with shared memory connections, is what Armin calls it), Armin signed the Sun Contributor Agreement (24 March 2009), Vladislav Vaintroub and Davi Arnaut reviewed, committed and queued the patch to MySQL 5.0 bug team (26 and 27th of March, 2009).

    That's a great example of open, contribution-based MySQL development with real results.

    Thank you Armin!

    Thank you Vlad!

    Thank you Chad!

    Thank you Davi!

    Thank you ... the one whose name I've left out! (Feel free to leave a comment below.)

    MySQL Community Contribution: One bug fix at a time ...
    Employee +0 Vote Up -0Vote Down

    It is all about one bug fix, one little feature, one step at a time.

    Armin Schöffmann fixed a bug (Deadlock in mysql_real_query with shared memory connections, is what Armin calls it), Armin signed the Sun Contributor Agreement (24 March 2009), Vladislav Vaintroub and Davi Arnaut reviewed, committed and queued the patch to MySQL 5.0 bug team (26 and 27th of March, 2009).

    That's a great example of open, contribution-based MySQL development with real results.

    Thank you Armin!

    Thank you Vlad!

    Thank you Chad!

    Thank you Davi!

    Thank you ... the one whose name I've left out! (Feel free to leave a comment below.)

    Previous 30 Newer Entries Showing entries 91 to 120 of 171 Next 30 Older Entries

    Planet MySQL © 1995, 2014, Oracle Corporation and/or its affiliates   Legal Policies | Your Privacy Rights | Terms of Use

    Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.