dev-cpp-users Mailing List for Dev-C++ (Page 327)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Ioannis V. <iv...@em...> - 2003-08-19 04:40:42
|
I have not studied std::string/std::basic_string thoroughly yet but I
checked TC++PL a bit.
// Constructor
string s=3D'a'; is not valid.
However,=20
string s;
s=3D'a';=20
IS valid.
Also string::assign can be used in the way Haeri told me in a private =
email.
Also s.push_back('a'); can be used.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
|
|
From: Yeoh H. <ye...@ye...> - 2003-08-19 04:08:36
|
----- Original Message ----- From: "Smurf, Papa" <smu...@xs...> To: "Ed Cottrell" <em...@ed...>; "'Dev-Cpp-Users'" <dev...@li...> Sent: Tuesday, August 19, 2003 9:29 AM Subject: RE: [Dev-C++] Creating controls based on a database > I'm not 100% sure but I think you should or could use CreateWindowEx (win32 > API) to dynamically create any kind of window (control). Look it up in the > MSDN lib. > Yes, CreateWindowEx is the right Win32 function to use. |
|
From: Yeoh H. <ye...@ye...> - 2003-08-19 04:08:28
|
----- Original Message ----- From: <sca...@ne...> To: <dev...@li...> Sent: Sunday, August 17, 2003 7:12 AM Subject: [Dev-C++] Resources > > I'm using Dev-C++ Version 4.9.8.1 with Windows98. I have created, compiled and .exe a window, but I haven't been able to include resources such as menus, bitmaps or custom cursors in Win32. Could someone help me to get started? Thanks. > > Check out this site: http://www.yeohhs.com/free/portal.asp. There are examples programs written using Dev-C++. Best Regards, Yeoh -- |
|
From: Yeoh H. <ye...@ye...> - 2003-08-19 04:08:22
|
----- Original Message ----- From: "Andr=E9 Mac=E1rio Barros" <and...@su...> > Dear Users, > > 1) Is it possible develop SQL code inside a C code in the Dev-C++ > environment? > 2) Is it possible develop SQL code inside a C++ code in the Dev-C++ > environment? > 3) If "Yes" for 1) and/or 2) do you know where can I get a free > documentation > for free download? > > Regards > Andre Barros > Yes to both questions 1 and 2. As for 3, it depends on the SQL server, yo= u intend to use. And you can usually find the documentation (user guide + API guide) at it= s website. You can find DevPaks and/or example programs to access SQLite, MS Access, MySQL and Interbase/Firebird at this site: http://www.yeohhs.com/free/portal.asp The example programs are built using Dev-C++. Best Regards, Yeoh -- More FREE downloads for Dev-C++ users at: http://www.yeohhs.com/free/portal.asp |
|
From: Smurf, P. <smu...@xs...> - 2003-08-19 01:29:25
|
I'm not 100% sure but I think you should or could use CreateWindowEx (win32 API) to dynamically create any kind of window (control). Look it up in the MSDN lib. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Ed Cottrell Sent: Tuesday, August 19, 2003 3:17 AM To: 'Dev-Cpp-Users' Subject: RE: [Dev-C++] Creating controls based on a database > That depends on what API or library you wish to use. I'm using the (Microsoft) Win32 API - sorry about that. -Ed -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of P.D. van Zelst Sent: Monday, August 18, 2003 6:36 PM To: 'Ed Cottrell'; 'Dev-Cpp-Users' Subject: RE: [Dev-C++] Creating controls based on a database That depends on what API or library you wish to use. If you had specified that up front, people would be able to provide you with samples. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed Cottrell Sent: Monday, August 18, 2003 11:51 PM To: 'Dev-Cpp-Users' Subject: [Dev-C++] Creating controls based on a database Hi all - I have a fairly straightforward requirement: query a database table, then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an array, how would I use this array to create these controls? Thanks! -Ed ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ed C. <em...@ed...> - 2003-08-19 01:20:13
|
> That depends on what API or library you wish to use. I'm using the (Microsoft) Win32 API - sorry about that. -Ed -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of P.D. van Zelst Sent: Monday, August 18, 2003 6:36 PM To: 'Ed Cottrell'; 'Dev-Cpp-Users' Subject: RE: [Dev-C++] Creating controls based on a database That depends on what API or library you wish to use. If you had specified that up front, people would be able to provide you = with samples. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed = Cottrell Sent: Monday, August 18, 2003 11:51 PM To: 'Dev-Cpp-Users' Subject: [Dev-C++] Creating controls based on a database Hi all - I have a fairly straightforward requirement: query a database table, = then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of = names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an = array, how would I use this array to create these controls? Thanks! -Ed ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including = Data Reports, E-commerce, Portals, and Forums are available now. Download = today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/= 01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: P.D. v. Z. <pa...@my...> - 2003-08-18 22:36:23
|
That depends on what API or library you wish to use. If you had specified that up front, people would be able to provide you with samples. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Ed Cottrell Sent: Monday, August 18, 2003 11:51 PM To: 'Dev-Cpp-Users' Subject: [Dev-C++] Creating controls based on a database Hi all - I have a fairly straightforward requirement: query a database table, then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an array, how would I use this array to create these controls? Thanks! -Ed |
|
From: Chain v. d. K. <cha...@gm...> - 2003-08-18 22:21:38
|
Well, I have downloaded this package. But what now? I just can't figure out what to do with it... > -----Urspr=FCngliche Nachricht----- > Von: Reid Thompson [mailto:Rei...@at...]=20 > Gesendet: Montag, 18. August 2003 14:11 > An: Chain von den Keiya > Betreff: RE: [Dev-C++] Problem with getting started with a=20 > HTTP Client... [Newbie to Dev-Cpp] >=20 >=20 > WebCon - a command line tool for Win32/Unix http://www.w3.org/ComLine/ > This application which shows how to use libwww for=20 > building simple batch mode tools for accessing the Web. Can=20 > be used to do PUT, POST, DELETE, OPTIONS, and much more >=20 > reid >=20 >=20 > > -----Original Message----- > > From: Chain von den Keiya [mailto:cha...@gm...] > > Sent: Monday, August 18, 2003 12:05 AM > > To: dev...@li... > > Subject: [Dev-C++] Problem with getting started with a HTTP=20 > > Client... [Newbie to Dev-Cpp] > >=20 > >=20 > > Hi everybody, > > I am trying to get started in programming a little HTTP > > Client to do batch jobs... But I have some problems... First=20 > > of all I had to look very long for a snippet. Now I found=20 > > one, but I am missing some Header Files for this... They are:=20 > > Netdb.h Arpa/inet.h Netinet/in.h Sys/socket.h > >=20 > > Where can I get these? > > Or has anybody a snippet of a simple HTTP Client for me? > >=20 > > Greetings, > > Richard Homonnai from Austria > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites > > including Data Reports, E-commerce, Portals, and Forums are=20 > > available now. Download today and enter to win an XBOX or=20 > > Visual Studio .NET.=20 > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet > _072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Ed C. <em...@to...> - 2003-08-18 21:51:41
|
Hi all - I have a fairly straightforward requirement: query a database table, then generate checkboxes and labels to correspond to each row, with the checkboxes remaining non-static. For example, if my data consists of names of people, I want to add controls to my form like: [] John Doe [] Suzie Q [] G. W. Bush [] Jacque Chirac ... ([] represents a check box) Assuming I know how to query the database and store the data in an array, how would I use this array to create these controls? Thanks! -Ed |
|
From: Ed C. <em...@ed...> - 2003-08-18 21:25:06
|
That's not entirely accurate, either... MySQL does support subqueries (sub-selects) with updates as of v. 4.1.0 (out to 82 levels deep). = Foreign keys are supported by MySQL in InnoDB tables. UNION is supported as of 4.0.0. The only join not supported in MySQL is the full outer join (left outer join and right outer join are supported). As for constraints - = it's often (usually) better to implement these things in your own code. More = time consuming, yes, but often more efficient. If you want to compare any two databases, go here: http://www.mysql.com/information/features.html. Yes, that's MySQL's = version of the way things are, but it's also pretty darned accurate, and independently verifiable. For what it's worth, some large brokerage = firms and Yahoo! Finance use MySQL as a backend. My $.02. -Ed -----Original Message----- From: Reid Thompson [mailto:Rei...@at...]=20 Sent: Monday, August 18, 2003 1:11 PM To: Ed Cottrell; Dev-Cpp-Users Subject: RE: [Dev-C++] Dev-C++ with SQL It all depends on what you are planning to use it for. Note that I = ended my statement with the word "also", I was just offeringa an alternative, = with alternative options/capabilities. A quick search on google will provide hours of reference/opinions to refute/support/decide for yourself which = is better for your purposes( eg the table below listing features that are = not supported my MySql( Sub-selects No Transactions Yes, however InnoDB table type must be used Foreign key support No Views No Stored procedures No Triggers No Unions No Full joins No Constraints No.) Are any of these requirements for your development/use??? etc. So speed = and size come with their own expenses. For most uses I do not think that = the speed differences would be noticeable to the user or developer. I am = not aware of any postgresql stability issues either. And I do not know the = sizes of either MySQL or PostgreSQL as size has not been a limiting factor. http://www.webtechniques.com/archives/2001/09/jepson/ MySQL's claim to fame is that it provides a reasonable set of features, = such as built-in SQL functions, that follow the 80/20 rule: It has the 20 = percent of SQL capabilities that are needed for 80 percent of database = applications. Developers of simple applications can live without the remaining = features, such as stored procedures and subqueries, or can work around them with creative client-side programming. PostgreSQL, on the other hand, provides more features than MySQL. These include more SQL functions, server-side procedural languages, and sophisticated methods for date manipulation. PostgreSQL also offers object-relational capabilities and geometric data types. If you're developing an application that has highly complex business rules, = PostgreSQL lets you handle business logic on the database server. ...... Article continues. http://www.mysql.com/doc/en/MySQL-PostgreSQL_features.html notes = comparison with v7.2 of postgresql, which is now at v7.3.4. http://asia.cnet.com/builder/architect/db/0,39009328,39062643,00.htm COMMENTARY-- I'm often asked, "Do you prefer PostgreSQL or MySQL?" My = answer is always the same: "It's a matter of preference." Here is a comparison = of MySQL and PostgreSQL databases, offered not for the sake of voicing my opinion, but to help you make your own decision. Both systems have much to offer in terms of stability, flexibility, and performance. MySQL has features that PostgreSQL lacks, and vice versa. However, my primary focus is to help you determine which of the two databases to use in your own development. Before getting into the side-by-side comparison, I need to make it clear = I'm referring to default installations. MySQL has many different table types that support transactions and foreign keys and are compliant with ACID. However, some of the configurations of these table types are quite = complex. Not many Web developers or programmers use the additional table types = found in MySQL. With that said, let's compare these two products. Feature list Table A is a side-by-side comparison of some of the more frequently used features of MySQL and PostgreSQL. Table A is not an exhaustive list of features, data types, or = performance issues relating to these two database systems-it just gives a view of = what each has to offer. From the table we see that PostgreSQL offers overall features for traditional database applications, while MySQL focuses on faster performance for Web-based applications. Open source development = will bring more features to subsequent releases of both databases. Table A POSTGRESQL MYSQL ANSI SQL compliance Closer to ANSI SQL standard Follows some of the ANSI SQL standards Performance Slower Faster Sub-selects Yes No Transactions Yes Yes, however InnoDB table type must be used Database replication Yes Yes Foreign key support Yes No Views Yes No Stored procedures Yes No Triggers Yes No Unions Yes No Full joins Yes No Constraints Yes No Windows support Yes Yes Vacuum (cleanup) Yes No ODBC Yes Yes JDBC Yes Yes Different table types No Yes MySQL and PostgreSQL comparison When to use MySQL Why would you use MySQL over PostgreSQL? First, we need to consider the needs of the applications in terms of database requirements. If I want = to create a Web application and performance is an issue, MySQL will be my choice because it's fast and designed to work well with Web-based = servers. However, if I want to create another application that demands = transactions and foreign key references, PostgreSQL is the choice. As an open source developer, I work with both databases on a regular = basis, and I typically use all the features of a given database in the design = and development process. It wouldn't suffice for me to use PostgreSQL for a database-driven Web site when my application requires performance. Even though MySQL is not fully compliant with the ANSI SQL standard, I should mention that, while PostgreSQL is closer to the ANSI SQL = standard, MySQL is closer to the ODBC standard. Let me suggest some reasons for using MySQL over PostgreSQL: * MySQL is relatively faster than PostgreSQL. * Database design will be simpler. * You can create a basic Web-driven Web site. * MySQL's replication has been thoroughly tested. * There's no need for cleanups in MySQL (Vacuum). When to use PostgreSQL Not many Web developers use PostgreSQL because they feel that the = additional features degrade performance. For example, some of the features I use = are foreign key references, triggers, and views. They allow me to hide the complexity of the database from the application, thus avoiding the = creation of complicated SQL commands. I know many developers who prefer the rich functionality of PostgreSQL's SQL commands. One of the most notable differences between MySQL and PostgreSQL is the fact that you can't do nested subqueries of subselects in MySQL. PostgreSQL follows many of the = SQL ANSI standards, thus allowing the creation of complex SQL commands. Let me suggest some reasons for using PostgreSQL over MySQL: * Complex database design * Moving away from Oracle, Sybase, or MSSQL * Complex rule sets (i.e., business rules) * Use of procedural languages on the server * Transactions * Use of stored procedures * Use of geographical data * R-Trees (i.e., used on indexes) http://brainscraps.com/faq/pg_my.html Are there any good reasons to = choose PostgreSQL over MySQL? (updated for PostgreSQL 7.3 and MySQL 4) Rick Morris ri...@br... To start with, comparing PostgreSQL and MySQL directly is a serious = mistake. The real question is "what kinds of applications do you want to build?". = I have had experience building complex web-based applications with both = MySQL (mainly against my will) and PostgreSQL, and here are some of the conclusions I reached: The basic (over)generalization I often hear is: use MySQL for basic = dynamic websites, and very lightweight (read: non-critical) applications, but = use PostgreSQL for Serious stuff. Well, this is not a bad generalization, = but even for lightweight applications, PostgreSQL can really save you some = time, and a lot of server-side code, if you bother to learn about views, constraints, stored procedures, triggers, etc... Here are just the basics on what MySQL lacks, which PostgreSQL covers nicely: (I know MySQL is working on some of them, but it is rather late = in the game, it seems to me...)..... Article continues reid > -----Original Message----- > From: Ed Cottrell [mailto:em...@ed...] > Sent: Monday, August 18, 2003 8:54 AM > To: 'Dev-Cpp-Users' > Subject: RE: [Dev-C++] Dev-C++ with SQL >=20 >=20 > > postgresql is an excellent choice also. >=20 > Yes, but MySQL is faster, smaller, more stable, and just as free... >=20 |
|
From: Wociech <nie...@po...> - 2003-08-18 18:23:46
|
----- Original Message ----- =46rom: <dev...@li...> To: <dev...@li...> Sent: Sunday, August 17, 2003 1:44 PM Subject: Dev-cpp-users digest, Vol 1 #1620 - 15 msgs > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. opinion on as it could be the list (Rhuan Paulo Lopes Barros) > 2. Re: Help with application security (hiding strings in compiled binaries) (Mark Livingstone) > 3. RE: Compiler (Ioannis Vranos) > 4. Re: Compiler (Daniel K. O.) > 5. bit extraction problem (Dawood Vora) > 6. Re: Compiler (=3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D) > 7. complier solution -- well maybe (Michael D. Smith) > 8. Re: bit extraction problem (w.y.) > 9. Re: Compiler (Hossein Haeri) > 10. RE: Compiler (Per Westermark) > 11. RE: opinion on as it could be the list (P.D. van Zelst) > 12. Re: How do I store HUGE numbers. (Hossein Haeri) > 13. Re: Compiler (Per Westermark) > 14. Re: complier solution -- well maybe (Per Westermark) > 15. Re: How do I store HUGE numbers. (Hossein Haeri) > > --__--__-- > > Message: 1 > From: "Rhuan Paulo Lopes Barros" <rhu...@po...> > To: dev...@li... > Date: Sun, 17 Aug 2003 00:53:11 -0300 > Subject: [Dev-C++] opinion on as it could be the list > > I do not know if the remaining portion of the staff goes to agree to = me, =3D > but=3D20 > this list in email form is very bad to read the messages sent the lis= t. =3D20 > F=3DF3rum would have to be one type phpBB, it would be much more easy= to an=3D > swer=3D20 > the messages, and a suggestion would not crowd the box of entrance of= its=3D > =3D20 > email alone. if sufficiently people to agree we poderiamos to speak = with=3D > =3D20 > the staff of the Dev-c++ on the subject! or if they not to agree cou= ld=3D20 > create thus in same a forum. it are that we teriamos much more advan= tage=3D > s=3D20 > in our communication!=3D20 > > -------- > Rhuan Barros, 16 anos, > Brasil - Rio Grande do Sul - Porto Alegre, > T=3DE9cnico em Inform=3DE1tica > ICQ 45268878 > --------=3D20 > > =3D20 > > > --=3D20 > POP. Nem parece internet gr=3DE1tis.=3D20 > > Seja POP voc=3DEA tamb=3DE9m! > Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscador. > > > --__--__-- > > Message: 2 > Date: Sun, 17 Aug 2003 14:51:44 +1000 (EST) > From: Mark Livingstone <mli...@ip...> > Subject: Re: [Dev-C++] Help with application security (hiding string= s in compiled binaries) > To: dev...@li... > Reply-To: Mark Livingstone <mli...@ip...> > > On Fri, 15 Aug 2003 17:10:05 -0400 Ed Cottrell <emc@topsailconsulting= =2Ecom> wrote: > > EC> So, how can I hide those strings in the compiled code, other than > EC> building > EC> in some sort of encryption? Would building the passwords from > EC> individual > EC> characters (ASCII values) work? Other ideas? > > Build the DSN string in say ROT13 (or any other shrouding type routin= e) and > then when you go to use it, unshroud it. > > HTH > > MarkL > > > > > > --__--__-- > > Message: 3 > From: "Ioannis Vranos" <iv...@em...> > To: <dev...@li...> > Subject: RE: [Dev-C++] Compiler > Date: Sun, 17 Aug 2003 08:05:16 +0300 > > Ehehe, may be I shall put an answer for that question in the unsubscr= ibe > faq. :-) A more convenient solution would be an explicit "Pause after= run" > option in Dev-C++. > > > > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL 1: http://run.to/noicys > * Alternative URL 2: http://www.noicys.cjb.net > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Smurf, Papa > > Sent: Saturday, August 16, 2003 8:49 PM > > To: dev...@li... > > Subject: RE: [Dev-C++] Compiler > > > > > > You guys should do a FAQ for these kinds of questions ;) > > Like what someone did for unsubscribing. > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of alir= eza > > goshtaei > > Sent: Saturday, August 16, 2003 7:30 PM > > To: dev...@li... > > Subject: [Dev-C++] Compiler > > > > > > Dear friend > > everytime I run the program in DEV-C++ the wondows > > console is closed so fast so I can't see the result. > > how come can I fix this problem ? > > thanks > > alex > > > > > --__--__-- > > Message: 4 > Date: Sun, 17 Aug 2003 03:35:31 -0300 > From: "Daniel K. O." <dan...@ya...> > CC: dev...@li... > Subject: Re: [Dev-C++] Compiler > > > And why the hell don't you guys include a template for console progra= ms > that shows how to pause before exiting? Oh wait... never mind... > > > > > Daniel K. O. > > > Ioannis Vranos wrote: > > >Ehehe, may be I shall put an answer for that question in the unsubsc= ribe > >faq. :-) A more convenient solution would be an explicit "Pause afte= r run" > >option in Dev-C++. > > > > > > > > > > > > > >Ioannis Vranos > > > > > > > > > --__--__-- > > Message: 5 > Date: Sun, 17 Aug 2003 15:07:01 +0800 > From: Dawood Vora <da...@ku...> > To: Dev C++ <dev...@li...> > Subject: [Dev-C++] bit extraction problem > > bit extraction problem > > Below is a program to extract the layout of the bits from an integer. > It works fine, if the input number is within the range of long type o= f int. > It is suppose to give me a message, if the input number is either gre= ater > than the max limits of long or lower than the min limits of long. Bu= t it > does not. Apparently the offending line is : "cin>>x;" If x is not = able > to accommodate any input number it simply stores the number 2 as per = my > system. Does anybody know, how to solve this problem. > > #include <cstdlib> > #include <iostream> > #include <climits> > using namespace std; > > #define BYTE 8 > > int main() > { > string bits; > long x; > unsigned long y =3D 1; > > cin>>x; > if ((x >=3D INT_MIN) && (x <=3D INT_MAX)){ > int i =3D 1; > while (i++ <=3D BYTE*sizeof(x)) { > if (x&y) > bits =3D '1' + bits; > else > bits =3D '0' + bits; > y<<=3D1; > } > cout<<"the bit layout in x :"; > cout<<bits<<'\n'; > } > else > cout<< "input number either too large or too small\n"; > > system("PAUSE"); > return 0; > > } > > > > --__--__-- > > Message: 6 > Date: Sun, 17 Aug 2003 09:36:59 +0200 > From: =3D?ISO-8859-1?Q?OROSZI_Bal=3DE1zs?=3D <or...@vp...> > To: dev...@li... > Subject: Re: [Dev-C++] Compiler > > Ioannis Vranos wrote: > > > Ehehe, may be I shall put an answer for that question in the unsubs= cribe > > faq. :-) A more convenient solution would be an explicit "Pause aft= er run" > > option in Dev-C++. > > Agreed, and it MUST be turned on by default. That would save us 5 mai= ls > a week. > People don't read any faq nowadays. Just always ask... > > -- > Greetings, > Bal=E1zs > > > > --__--__-- > > Message: 7 > Date: Sun, 17 Aug 2003 03:30:44 -0500 > To: dev...@li... > From: "Michael D. Smith" <for...@hi...> > Subject: [Dev-C++] complier solution -- well maybe > > When you start a new console operation, it has include stdio, main, t= he {} > and return already there. Why not have the pause by default. It's a console > operation and you can safely assume no one will not need to do SOME > debugging so why not? > > But then they would be asking how to make it stop :) > > ms > > Slap it on the side. Works with my TV set. > From the original My Favorite Martian comic book > > > > --__--__-- > > Message: 8 > Date: Sun, 17 Aug 2003 06:59:58 -0400 > From: "w.y." <yok...@ve...> > To: Dev C++ <dev...@li...> > Subject: Re: [Dev-C++] bit extraction problem > > > > Dawood Vora wrote: > > > > string bits; > > long x; > > unsigned long y =3D 1; > > > > cin>>x; > > if ((x >=3D INT_MIN) && (x <=3D INT_MAX)){ > > Try this out and examine the output carefully: > > cout << "sizeof(int) =3D " << sizeof(int) << endl; > cout << "sizeof(long) =3D " << sizeof(long) << endl; > cout << "sizeof(long long) =3D " << sizeof(long long) << endl= ; > > cout << "\nINT_MIN, INT_MAX =3D " << INT_MIN << ", " > << INT_MAX << endl; > cout << "LONG_MIN, LONG_MAX =3D " << LONG_MIN << ", " > << LONG_MAX << endl; > > cout << "\n(hex)INT_MIN, INT_MAX =3D " << hex << INT_MIN > << ", " << INT_MAX << endl; > cout << "(hex)LONG_MIN, LONG_MAX =3D " << LONG_MIN << ", " > << LONG_MAX << endl; > > cout << "\nLONG_LONG_MIN, LONG_LONG_MAX =3D " << dec > << LONG_LONG_MIN << ", " << LONG_LONG_MAX << endl; > cout << " (hex) =3D " << hex << LONG_LONG_MIN << ", " > << LONG_LONG_MAX << endl; > > > --__--__-- > > Message: 9 > From: "Hossein Haeri" <ult...@em...> > To: dev...@li... > Date: Sun, 17 Aug 2003 06:11:30 -0500 > Subject: Re: [Dev-C++] Compiler > > Dear Alireza (or Alex, don't know which!), > > Amongst all the group-given solutions to your problem, the most > portable is to use std::cin. (I presume that you are using C++, > and not C.) Use it this way: > > #include <iostream> > > int main() > { > ... > cin.get();//The last line of main() body > } > > Regards, > --Hossein > > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=3Dsignup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job se= arch > http://corp.mail.com/careers > > > > --__--__-- > > Message: 10 > Date: Sun, 17 Aug 2003 13:23:45 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: Ioannis Vranos <iv...@em...> > cc: dev...@li... > Subject: RE: [Dev-C++] Compiler > > Yes, such a switch would be invaluable - some other tools have it - b= ut we > would still need a faq, since the mejority of newcomers wouldn't know > about it... > > /Per W > > On Sun, 17 Aug 2003, Ioannis Vranos wrote: > > > Ehehe, may be I shall put an answer for that question in the unsubs= cribe > > faq. :-) A more convenient solution would be an explicit "Pause aft= er run" > > option in Dev-C++. > > > > > > > > > > > > > > Ioannis Vranos > > > > * Programming pages: http://www.noicys.freeurl.com > > * Alternative URL 1: http://run.to/noicys > > * Alternative URL 2: http://www.noicys.cjb.net > > > > > -----Original Message----- > > > From: dev...@li... > > > [mailto:dev...@li...] On Behalf > > > Of Smurf, Papa > > > Sent: Saturday, August 16, 2003 8:49 PM > > > To: dev...@li... > > > Subject: RE: [Dev-C++] Compiler > > > > > > > > > You guys should do a FAQ for these kinds of questions ;) > > > Like what someone did for unsubscribing. > > > > > > -----Original Message----- > > > From: dev...@li... > > > [mailto:dev...@li...]On Behalf Of al= ireza > > > goshtaei > > > Sent: Saturday, August 16, 2003 7:30 PM > > > To: dev...@li... > > > Subject: [Dev-C++] Compiler > > > > > > > > > Dear friend > > > everytime I run the program in DEV-C++ the wondows > > > console is closed so fast so I can't see the result. > > > how come can I fix this problem ? > > > thanks > > > alex > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includ= ing > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0= 1/01 > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > --__--__-- > > Message: 11 > Reply-To: <mys...@xs...> > From: "P.D. van Zelst" <pa...@my...> > To: "'Rhuan Paulo Lopes Barros'" <rhu...@po...>, > <dev...@li...> > Subject: RE: [Dev-C++] opinion on as it could be the list > Date: Sun, 17 Aug 2003 13:25:39 +0200 > Organization: Mysterious Game Development > > There already is a Dev-C++ forum, hosted at SourceForge, but I find t= his > forum seriously flawed. It has no required membership, so tons of the > same posts (and troll posts) turn up way too frequently, oftentimes b= y > anonymous posters. Furthermore it doesn't support "sticky posts", so > it's not possible to keep a FAQ or other important information at the > top of the list at all times. > It would indeed be better if a different forum is used, but that woul= d > only work if it became the "official" forum. > > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf Of Rhuan > Paulo Lopes Barros > Sent: Sunday, August 17, 2003 5:53 AM > To: dev...@li... > Subject: [Dev-C++] opinion on as it could be the list > > > I do not know if the remaining portion of the staff goes to agree to = me, > but=3D20 > this list in email form is very bad to read the messages sent the lis= t. > > F=3DF3rum would have to be one type phpBB, it would be much more easy= to > answer=3D20 > the messages, and a suggestion would not crowd the box of entrance of > its=3D20 > email alone. if sufficiently people to agree we poderiamos to speak > with=3D20 > the staff of the Dev-c++ on the subject! or if they not to agree cou= ld=3D20 > create thus in same a forum. it are that we teriamos much more > advantages=3D20 > in our communication!=3D20 > > -------- > Rhuan Barros, 16 anos, > Brasil - Rio Grande do Sul - Porto Alegre, > T=3DE9cnico em Inform=3DE1tica > ICQ 45268878 > --------=3D20 > > =3D20 > > > --=3D20 > POP. Nem parece internet gr=3DE1tis.=3D20 > > Seja POP voc=3DEA tamb=3DE9m! > Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscador. > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites includin= g > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303= _01 > /01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > --__--__-- > > Message: 12 > From: "Hossein Haeri" <ult...@em...> > To: dev...@li... > Date: Sun, 17 Aug 2003 06:29:35 -0500 > Subject: Re: [Dev-C++] How do I store HUGE numbers. > > Dear David, > > > Cool, > > It looks like it is exactly what I want. > > Thanks. > > > I would apeciate it if you would tell me when you complete > > it. > > Well, I don't really know. But, I hope to finish it whithin the > few next weaks (if no disaster jumps in). > > Do you want to test the version using boost::shared_ptr<>, > meanwhile? > > > Thanks in Advance > You'r welcome freind, no need to thanks! > > Regards, > --Hossein > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=3Dsignup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job se= arch > http://corp.mail.com/careers > > > > --__--__-- > > Message: 13 > Date: Sun, 17 Aug 2003 13:32:54 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: Hossein Haeri <ult...@em...> > cc: dev...@li... > Subject: Re: [Dev-C++] Compiler > > Why bother about the most portable single-line solution? > > When I develop a console app, I want it to behave as a console app, i= =2Ee. > not require some extra input in the end. > > I add the system("pause"); command during testing, just to allow the > program to be run from the editor. When I stop compiling with debug, = I > don't want the pause anymore. > > For a portable solution, the code should try and figure out if it was= run > from the command line or from the desktop. > > /Per W > > On Sun, 17 Aug 2003, Hossein Haeri wrote: > > > Dear Alireza (or Alex, don't know which!), > > > > Amongst all the group-given solutions to your problem, the most > > portable is to use std::cin. (I presume that you are using C++, > > and not C.) Use it this way: > > > > #include <iostream> > > > > int main() > > { > > ... > > cin.get();//The last line of main() body > > } > > > > Regards, > > --Hossein > > > > -- > > __________________________________________________________ > > Sign-up for your own personalized E-mail at Mail.com > > http://www.mail.com/?sr=3Dsignup > > > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job search > > http://corp.mail.com/careers > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includ= ing > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0= 1/01 > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > --__--__-- > > Message: 14 > Date: Sun, 17 Aug 2003 13:34:13 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: "Michael D. Smith" <for...@hi...> > cc: dev...@li... > Subject: Re: [Dev-C++] complier solution -- well maybe > > At least my installation adds the system("pause") command. I don't > remember adding the line myself to the template, but then again, I > sometimes do edit the templates, and I'm known to be forgetful :-) > > /Per W > > On Sun, 17 Aug 2003, Michael D. Smith wrote: > > > When you start a new console operation, it has include stdio, main,= the {} > > and return already there. Why not have the pause by default. It's a console > > operation and you can safely assume no one will not need to do SOME > > debugging so why not? > > > > But then they would be asking how to make it stop :) > > > > ms > > > > Slap it on the side. Works with my TV set. > > From the original My Favorite Martian comic book > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includ= ing > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0= 1/01 > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > --__--__-- > > Message: 15 > From: "Hossein Haeri" <ult...@em...> > To: dev...@li... > Date: Sun, 17 Aug 2003 06:42:12 -0500 > Subject: Re: [Dev-C++] How do I store HUGE numbers. > > Dear Per, > > > Have you looked at the GNU MP library (GMP). > > http://www.swox.com/gmp/ > > Thank you for informing me about a new link. > > > It has good documentation, a large number of functions, and is well > > tested. > > Oh yeah! It seems so (and I'm sure that's actually the case). > But, maybe it is not that bad to let my library to be tested. > Anyway, if David needs a reliably tested library, there is > another one that is so reliable in comparison with mine. I don't > have a direct link to it, but it is (likely to be) named BigInt > (or some variation of it) , and it is somewhere whithin the boost > huge repository. It is best to search for it in: > > http://www.boost.org > > Regards, > --Hossein > > -- > __________________________________________________________ > Sign-up for your own personalized E-mail at Mail.com > http://www.mail.com/?sr=3Dsignup > > CareerBuilder.com has over 400,000 jobs. Be smarter about your job se= arch > http://corp.mail.com/careers > > > > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest |
|
From: Reid T. <Rei...@at...> - 2003-08-18 17:12:07
|
It all depends on what you are planning to use it for. Note that I ended my statement with the word "also", I was just offeringa an alternative, with alternative options/capabilities. A quick search on google will provide hours of reference/opinions to refute/support/decide for yourself which is better for your purposes( eg the table below listing features that are not supported my MySql( Sub-selects No Transactions Yes, however InnoDB table type must be used Foreign key support No Views No Stored procedures No Triggers No Unions No Full joins No Constraints No.) Are any of these requirements for your development/use??? etc. So speed and size come with their own expenses. For most uses I do not think that the speed differences would be noticeable to the user or developer. I am not aware of any postgresql stability issues either. And I do not know the sizes of either MySQL or PostgreSQL as size has not been a limiting factor. http://www.webtechniques.com/archives/2001/09/jepson/ MySQL's claim to fame is that it provides a reasonable set of features, such as built-in SQL functions, that follow the 80/20 rule: It has the 20 percent of SQL capabilities that are needed for 80 percent of database applications. Developers of simple applications can live without the remaining features, such as stored procedures and subqueries, or can work around them with creative client-side programming. PostgreSQL, on the other hand, provides more features than MySQL. These include more SQL functions, server-side procedural languages, and sophisticated methods for date manipulation. PostgreSQL also offers object-relational capabilities and geometric data types. If you're developing an application that has highly complex business rules, PostgreSQL lets you handle business logic on the database server. ...... Article continues. http://www.mysql.com/doc/en/MySQL-PostgreSQL_features.html notes comparison with v7.2 of postgresql, which is now at v7.3.4. http://asia.cnet.com/builder/architect/db/0,39009328,39062643,00.htm COMMENTARY-- I'm often asked, "Do you prefer PostgreSQL or MySQL?" My answer is always the same: "It's a matter of preference." Here is a comparison of MySQL and PostgreSQL databases, offered not for the sake of voicing my opinion, but to help you make your own decision. Both systems have much to offer in terms of stability, flexibility, and performance. MySQL has features that PostgreSQL lacks, and vice versa. However, my primary focus is to help you determine which of the two databases to use in your own development. Before getting into the side-by-side comparison, I need to make it clear I'm referring to default installations. MySQL has many different table types that support transactions and foreign keys and are compliant with ACID. However, some of the configurations of these table types are quite complex. Not many Web developers or programmers use the additional table types found in MySQL. With that said, let's compare these two products. Feature list Table A is a side-by-side comparison of some of the more frequently used features of MySQL and PostgreSQL. Table A is not an exhaustive list of features, data types, or performance issues relating to these two database systems-it just gives a view of what each has to offer. From the table we see that PostgreSQL offers overall features for traditional database applications, while MySQL focuses on faster performance for Web-based applications. Open source development will bring more features to subsequent releases of both databases. Table A POSTGRESQL MYSQL ANSI SQL compliance Closer to ANSI SQL standard Follows some of the ANSI SQL standards Performance Slower Faster Sub-selects Yes No Transactions Yes Yes, however InnoDB table type must be used Database replication Yes Yes Foreign key support Yes No Views Yes No Stored procedures Yes No Triggers Yes No Unions Yes No Full joins Yes No Constraints Yes No Windows support Yes Yes Vacuum (cleanup) Yes No ODBC Yes Yes JDBC Yes Yes Different table types No Yes MySQL and PostgreSQL comparison When to use MySQL Why would you use MySQL over PostgreSQL? First, we need to consider the needs of the applications in terms of database requirements. If I want to create a Web application and performance is an issue, MySQL will be my choice because it's fast and designed to work well with Web-based servers. However, if I want to create another application that demands transactions and foreign key references, PostgreSQL is the choice. As an open source developer, I work with both databases on a regular basis, and I typically use all the features of a given database in the design and development process. It wouldn't suffice for me to use PostgreSQL for a database-driven Web site when my application requires performance. Even though MySQL is not fully compliant with the ANSI SQL standard, I should mention that, while PostgreSQL is closer to the ANSI SQL standard, MySQL is closer to the ODBC standard. Let me suggest some reasons for using MySQL over PostgreSQL: * MySQL is relatively faster than PostgreSQL. * Database design will be simpler. * You can create a basic Web-driven Web site. * MySQL's replication has been thoroughly tested. * There's no need for cleanups in MySQL (Vacuum). When to use PostgreSQL Not many Web developers use PostgreSQL because they feel that the additional features degrade performance. For example, some of the features I use are foreign key references, triggers, and views. They allow me to hide the complexity of the database from the application, thus avoiding the creation of complicated SQL commands. I know many developers who prefer the rich functionality of PostgreSQL's SQL commands. One of the most notable differences between MySQL and PostgreSQL is the fact that you can't do nested subqueries of subselects in MySQL. PostgreSQL follows many of the SQL ANSI standards, thus allowing the creation of complex SQL commands. Let me suggest some reasons for using PostgreSQL over MySQL: * Complex database design * Moving away from Oracle, Sybase, or MSSQL * Complex rule sets (i.e., business rules) * Use of procedural languages on the server * Transactions * Use of stored procedures * Use of geographical data * R-Trees (i.e., used on indexes) http://brainscraps.com/faq/pg_my.html Are there any good reasons to choose PostgreSQL over MySQL? (updated for PostgreSQL 7.3 and MySQL 4) Rick Morris ri...@br... To start with, comparing PostgreSQL and MySQL directly is a serious mistake. The real question is "what kinds of applications do you want to build?". I have had experience building complex web-based applications with both MySQL (mainly against my will) and PostgreSQL, and here are some of the conclusions I reached: The basic (over)generalization I often hear is: use MySQL for basic dynamic websites, and very lightweight (read: non-critical) applications, but use PostgreSQL for Serious stuff. Well, this is not a bad generalization, but even for lightweight applications, PostgreSQL can really save you some time, and a lot of server-side code, if you bother to learn about views, constraints, stored procedures, triggers, etc... Here are just the basics on what MySQL lacks, which PostgreSQL covers nicely: (I know MySQL is working on some of them, but it is rather late in the game, it seems to me...)..... Article continues reid > -----Original Message----- > From: Ed Cottrell [mailto:em...@ed...]=20 > Sent: Monday, August 18, 2003 8:54 AM > To: 'Dev-Cpp-Users' > Subject: RE: [Dev-C++] Dev-C++ with SQL >=20 >=20 > > postgresql is an excellent choice also. >=20 > Yes, but MySQL is faster, smaller, more stable, and just as free... >=20 |
|
From: Ed C. <em...@ed...> - 2003-08-18 12:54:05
|
> postgresql is an excellent choice also. Yes, but MySQL is faster, smaller, more stable, and just as free... > -----Original Message----- > From: David McKen [mailto:ci...@ya...] > Sent: Friday, August 15, 2003 9:33 PM > To: Andr=E9" "Mac=E1rio" Barros; Dev-Cpp-Users > Subject: Re: [Dev-C++] Dev-C++ with SQL >=20 >=20 > mySQL++ seems to be the best one out there. > http://www.mysql.com/downloads/api-mysql++.html >=20 > ----- Original Message ----- > From: "Andr=E9 Mac=E1rio Barros" <and...@su...> > To: "Dev-Cpp-Users" <dev...@li...> > Sent: Friday, August 15, 2003 3:31 PM > Subject: [Dev-C++] Dev-C++ with SQL >=20 >=20 > > Dear Users, > > > > 1) Is it possible develop SQL code inside a C code in > the Dev-C++ > > environment? > > 2) Is it possible develop SQL code inside a C++ code > in the Dev-C++ > > environment? > > 3) If "Yes" for 1) and/or 2) do you know where can I > get a free > > documentation > > for free download? > > > > Regards > > Andre Barros > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET > sites including > > Data Reports, E-commerce, Portals, and Forums are > available now. > > Download today and enter to win an XBOX or Visual Studio > .NET. > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including = Data Reports, E-commerce, Portals, and Forums are available now. Download = today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/= 01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including = Data Reports, E-commerce, Portals, and Forums are available now. Download = today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/= 01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Daniel G. <sp...@ho...> - 2003-08-18 12:10:58
|
I think he means the console background colour. >From: OROSZI Balázs <or...@vp...> >To: dev...@li... >Subject: Re: [Dev-C++] (no subject) >Date: Sat, 16 Aug 2003 09:56:37 +0200 > >yiwei li wrote: >>hihi is there anyone here know how to change the background color of where >>you run the programme (not the text color). Thanks > >Is there anyone, who understands this question? :) > >-- >Greetings, > Balázs > > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Reid T. <Rei...@at...> - 2003-08-18 11:46:55
|
postgresql is an excellent choice also. reid > -----Original Message----- > From: David McKen [mailto:ci...@ya...]=20 > Sent: Friday, August 15, 2003 9:33 PM > To: Andr=E9" "Mac=E1rio" Barros; Dev-Cpp-Users > Subject: Re: [Dev-C++] Dev-C++ with SQL >=20 >=20 > mySQL++ seems to be the best one out there. > http://www.mysql.com/downloads/api-mysql++.html >=20 > ----- Original Message -----=20 > From: "Andr=E9 Mac=E1rio Barros" <and...@su...> > To: "Dev-Cpp-Users" <dev...@li...> > Sent: Friday, August 15, 2003 3:31 PM > Subject: [Dev-C++] Dev-C++ with SQL >=20 >=20 > > Dear Users, > > > > 1) Is it possible develop SQL code inside a C code in > the Dev-C++ > > environment? > > 2) Is it possible develop SQL code inside a C++ code > in the Dev-C++ > > environment? > > 3) If "Yes" for 1) and/or 2) do you know where can I > get a free > > documentation > > for free download? > > > > Regards > > Andre Barros > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET > sites including > > Data Reports, E-commerce, Portals, and Forums are > available now. > > Download today and enter to win an XBOX or Visual Studio > .NET. > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/= 01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Chain v. d. K. <cha...@gm...> - 2003-08-18 04:05:06
|
Hi everybody, I am trying to get started in programming a little HTTP Client to do batch jobs... But I have some problems... First of all I had to look very long for a snippet. Now I found one, but I am missing some Header Files for this... They are: Netdb.h Arpa/inet.h Netinet/in.h Sys/socket.h Where can I get these? Or has anybody a snippet of a simple HTTP Client for me? Greetings, Richard Homonnai from Austria |
|
From: Ioannis V. <iv...@em...> - 2003-08-18 01:19:51
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Hossein Haeri > Sent: Monday, August 18, 2003 1:16 AM > To: dev...@li... > Subject: Re: [Dev-C++] what is wrong with the code > > There is, however, a conversion from char* to std::string, and > you may want to suit from it like this: > > string p = &ch; That is guaranteed to be undefined behaviour since there is no terminating '\0' character. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: Rhuan P. L. B. <rhu...@po...> - 2003-08-18 00:37:16
|
if more people to accept the proposal I could order an email for the staf= f=20 of dev-c++?=20 -------- Rhuan Barros, 16 anos, Brasil - Rio Grande do Sul - Porto Alegre, T=E9cnico em Inform=E1tica ICQ 45268878 --------=20 =20 =20 --=20 POP. Nem parece internet gr=E1tis.=20 Seja POP voc=EA tamb=E9m! Acesse: http://www.pop.com.br/pop_discador.php e baixe o POPdiscador. |
|
From: Ioannis V. <iv...@em...> - 2003-08-18 00:17:10
|
One "analog" approach that I can think is to convert the numeric_limits<long>::max() and min() to strings and count the digits. Then compare the number of digits of the input with the number of digits of max or min depending if the input has a minus sign. If the number if digits is equal with the equivalent limit, compare if the first digit is larger/smaller of the corresponding limit (depending on the minus sign). And so on. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net > -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Sunday, August 17, 2003 4:19 PM > To: Ioannis Vranos > Cc: 'Dev C++' > Subject: RE: [Dev-C++] bit extraction problem > > > One alternative is to count the number of digits, and take the log. > > One decimal digit consumes 1/log(2) binary digits, > or approx 3.322 bits. However, it is still only possible to > get close to > the true limit - since the log of a number needs at least as many > value-digits as the number for an exact result :-) > > Another approach - which is exact - is to perform the decimal->binary > conversion in own code, and for each added decimal digit check if the > binary number overflows. For a positive number decimal input > number, the > resulting binary should increase for each iteration. If the > input number > is negative, it is simple to check for overflow by negating the result > twice and check that the original value was returned. > > For a traditional machine with two-complement handling, a > negation at the > end will not overflow. However, I'm not sure if that is true for all > strange machines out there, that uses other ways of encoding negative > numbers. Maybe it is possible to negate a number twice and check if > original value is returned. Anyway, right now, 2-complement rulez :-) |
|
From: David M. <ci...@ya...> - 2003-08-17 22:36:16
|
NeoEngine. It has TCP sockets as well as UDP. Haven't had the time to play around with it though. The fact that there is a Dev-Pak for it is a definite plus. ----- Original Message ----- From: "OROSZI Balázs" <or...@vp...> To: <dev...@li...> Sent: Sunday, August 17, 2003 5:40 PM Subject: Re: [Dev-C++] 3D graphics library. > David McKen wrote: > > I will check out the other libraries and get back to you > > with my decision. > > So, how did you decide? > Nothing, I'm just courious :) > > -- > Greetings, > Balázs > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
|
From: Hossein H. <ult...@em...> - 2003-08-17 22:17:39
|
Dear Dawood, > can anybody let me know, why the code below is not running. That's probabely occuring as there is no conversion from char to std::string. And thus, nor is there an assignment operator. You are using the assignment operator in the following line: > string p = ch; There is, however, a conversion from char* to std::string, and you may want to suit from it like this: string p = &ch; But I do not recommend it. It would be nicer to explain your concrete problem more, so that we can help you more! Regards, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: Hossein H. <ult...@em...> - 2003-08-17 21:55:12
|
Per, > GMP isn't just big integers - it also contains code for big real numbers. Thanks again, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: <or...@vp...> - 2003-08-17 21:40:23
|
David McKen wrote: > I will check out the other libraries and get back to you > with my decision. So, how did you decide? Nothing, I'm just courious :) -- Greetings, Balázs |
|
From: Per W. <pw...@ia...> - 2003-08-17 20:41:53
|
That was my point - it doesn't matter how portable we wait for a key to be
pressed. When we develop a console application, we normally don't want to
leave that code in the release - if a user run a console application from
the command line, they don't want to have to press a key to get back the
command line.
As long as it's just for testing, any whatever code that waits is fine.
And as long as the command works on the environment the IDE is running on,
that is portable enough.
/Per W
On Sun, 17 Aug 2003, xRxIxPx wrote:
> At 13:32 8/17/2003 +0200, Per Westermark wrote:
> >Why bother about the most portable single-line solution?
> >
> >When I develop a console app, I want it to behave as a console app, i.e.
> >not require some extra input in the end.
> >
> >I add the system("pause"); command during testing, just to allow the
> >program to be run from the editor. When I stop compiling with debug, I
> >don't want the pause anymore.
> >
> >For a portable solution, the code should try and figu
>
> I think that would be some kind of overkill, because few applications will
> need that feature after development.
> I'd rather prefer that devcpp creates a console, then runs the app, then
> runs pause and then frees the console. This even could be done by calling a
> batch file using comspec command line.
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: xRxIxPx <xr...@gm...> - 2003-08-17 19:38:08
|
At 13:32 8/17/2003 +0200, Per Westermark wrote:
>Why bother about the most portable single-line solution?
>
>When I develop a console app, I want it to behave as a console app, i.e.
>not require some extra input in the end.
>
>I add the system("pause"); command during testing, just to allow the
>program to be run from the editor. When I stop compiling with debug, I
>don't want the pause anymore.
>
>For a portable solution, the code should try and figu
I think that would be some kind of overkill, because few applications will
need that feature after development.
I'd rather prefer that devcpp creates a console, then runs the app, then
runs pause and then frees the console. This even could be done by calling a
batch file using comspec command line.
|