Tuesday, February 9, 2010

comp.programming.threads - 3 new messages in 3 topics - digest

comp.programming.threads
http://groups.google.com/group/comp.programming.threads?hl=en

comp.programming.threads@googlegroups.com

Today's topics:

* amortizing read-access in read/write mutex... - 1 messages, 1 author
http://groups.google.com/group/comp.programming.threads/t/7b92af0a72a360ba?hl=en
* Call for Paper The International Journal of Computer Science (IJCS) - 1
messages, 1 author
http://groups.google.com/group/comp.programming.threads/t/eabd0e9265ca2d67?hl=en
* Call for Papers: CGVR'10 (The 2010 International Conference on Computer
Graphics and Virtual Reality), USA, July 2010 - 1 messages, 1 author
http://groups.google.com/group/comp.programming.threads/t/8c8e27500cef120c?hl=en

==============================================================================
TOPIC: amortizing read-access in read/write mutex...
http://groups.google.com/group/comp.programming.threads/t/7b92af0a72a360ba?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 10:26 am
From: "Chris M. Thomasson"


"David Schwartz" <davids@webmaster.com> wrote in message
news:b3f8bb29-4889-45ab-986d-6cdd939d2f90@b9g2000pri.googlegroups.com...
On Feb 7, 7:37 am, "Chris M. Thomasson" <n...@spam.invalid> wrote:

> > I can enforce strict fairness without slowing any fast-path. I also
> > avoid
> > any using any loops in the algorithm. IMVHO, that's a pretty nice.

> You have no loops because you've pushed them down a layer. For
> example, your code calls WaitForSingleObject or sem_wait which contain
> loops.

Fair enough.


> Your slow paths are slower than mine, but it doesn't look like you
> particularly tried to optimize them. (Nor did I optimize mine.)

I just defer all of the actual blocking to native semaphores and rely on the
fact that the synchronization algorithm itself provides certain "guarantees"
when a thread returns from a semaphore wait. A thread that returns from a
native wait does not need to read any state because it already "knows" its
state.


Also, keep in mind that the wait operations will only be called one single
time per-slowpath because there is no looping. So, that "can" be more
"efficient" because if you have to loop around you may end up calling a
native wait operation more than one time.


> It's interesting how different our approaches are.

Indeed! :^)


> I like the fact
> that you managed to get some reader/writer fairness without slowing
> the fast paths.

Yeah. The fairness is just sort of an inherent aspect of the algorithm.


==============================================================================
TOPIC: Call for Paper The International Journal of Computer Science (IJCS)
http://groups.google.com/group/comp.programming.threads/t/eabd0e9265ca2d67?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 6:08 am
From: editor ijcs


Call for Paper
The International Journal of Computer Science (IJCS) publishes
original papers on all subjects relevant to computer science,
communication network, and information systems. The highest priority
will be given to those contributions concerned with a discussion of
the background of a practical problem, the establishment of an
appropriate model, the determination of a solution, approximate or
exact, analytical or numerical, and a discussion of the relevance of
the results when applied to the real-life problem. Paper submissions
are invited in the area of computer science, in particular the
technological advances and research results in the fields of
theoretical, experimental, applied electronics, computer science,
communication network and Information technology.
Topics of interest include but are not limited to the following:
Computer Science

* Parallel Processing and Distributed Computing
* Foundations of High-performance Computing
* Graph Theory and Analysis of Algorithms
* Artificial Intelligences and Pattern/Image Recognitions
* Neural Networks and Biomedical Simulations
* Virtual Visions and Virtual Simulations
* Data Mining, Web Image Mining and Applications
* Data Base Management & Information Retrievals Adaptive Systems
* Bifurcation, Biocybernetics & Bioinformatics
* Blind Systems, Neural Networks &Control Systems
* Cryptosystems &Data Compression
* Evolutional Computation &Fuzzy Systems
* Image Processing and Image Recognition, Modeling & Optimization
* Speech Processing, Speech Synthesis & Speech Recognition
* Video Signal Processing, Watermarking & Wavelet Transform
* All topics related Computer Science

Communication Network

* Quantum Computing & Coding
* Error Controls Agent Computing & Multi-Agents Systems
* Defining Spectrum Rights and Open Spectrum Solutions
* Quality of Services and Communication Protocols
* Satellite and Optical Communication Systems
* 3G/4G Network Evolutions & CDMA/GSM Communication Protocols
* Mobile Computing, Transmission/Switching/Distribution
technologies
* Communication Theory & Signal Processing for Communications
* Wireless Communications, Wireless & Mobile Networking
* Optical Networks and Systems &Next-Generation Networking and
Internet
* Communication QoS &Reliability and Modeling
* Ad-hoc, Sensor & Mesh Networking
* Multimedia Services, Communication Software & Services
* Communication and Information System Security
* System control and network/service management
* Network and Internet protocols and standards
* Client-server, distributed & Web-based communication systems
* Broadband and multimedia systems & applications
* Trials of advanced systems and services
* Any topics related Communication Network

Information and Systems

* Cryptography and Foundation of Computer Security
* Authentication/Authorization Issues
* IDS/Firewall, Anti-Spam mail & Anti-virus issues
* Biometric authentication & algorithms
* Fingerprint /Hand/Biometrics Recognitions and Technologies
* IC-card Security, OTP & Key Management Issues
* E-commerce, Ubiquitous & RFID Applications
* Metadata, Meta Modeling, XML & Data Management
* Knowledge Management, Web Security & Privacy
* Cyber Threats, Web Services & Web Engineering
* Web Intelligence, Protocols & Standards
* Proxies and Servers
* Multimedia Applications
* Ontology and the Semantic Web
* B2B, B2C and C2C
* E-Business System Design and Development, E-Payment
* Portal Strategies, Social Networks and Information Systems
* Social and Legal Issues and Digital Ecology
* E-Governance, E-Learning and Virtual Classrooms
* E-Entertainment, E-Journalism
* Any topics related Information systems

Electronics

* Circuits & Devices
* Communication Networks & Systems
* Communications & Information Processing
* Digital Signal Processing & Electrical Engineering
Communications
* Electromagnetics & Microwaves
* Instrumentation
* Measurement & Testing
* Nanoscience & Nanotechnology
* Optics & Optoelectronic Effects
* Devices, Systems &Semiconductors
* Systems & Control Engineering
* Telecommunications
* Any topics related Electronics

International Journal of Computer Science (IJCS)
ISSN: 1884-9083
Website: https://sites.google.com/site/ijcsorg/
Manuscript submission to: ijcsorgeditor@gmail.com

All submitted papers will be judged based on their quality by the
technical committee and reviewers. Papers that describe research and
experimentation are encouraged. All paper submissions will be handled
electronically and detailed instructions on submission procedure are
available on IJCS web pages. Researchers and authors are invited to
participate in the peer-review process of IJCS papers if your research
interest matches with the themes of Call for Papers. For other
information, please contact IJCS Managing Editor.

==============================================================================
TOPIC: Call for Papers: CGVR'10 (The 2010 International Conference on Computer
Graphics and Virtual Reality), USA, July 2010
http://groups.google.com/group/comp.programming.threads/t/8c8e27500cef120c?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 4:31 pm
From: "A. M. G. Solo"


It would be greatly appreciated if this announcement could be
shared with individuals whose research interests include
computer graphics and virtual reality. Thanks.
-------
CALL FOR PAPERS

CGVR'10
The 2010 International Conference on Computer Graphics
and Virtual Reality

Date and Location: July 12-15, 2010, Las Vegas, USA

You are invited to submit a full paper for consideration. All
accepted papers will be published in the CGVR conference
proceedings (in printed book form; later, the proceedings will
also be accessible online).

SCOPE: Topics of interest include, but are not limited to, the
following:

O Computer animation
O Software tools for computer graphics
O Rendering methods
O Compression methods
O Computational geometry
O Fractal geometry and applications
O Sound rendering technologies
O Color and texture
O Modeling techniques
O Visualization
O Surface modeling
O Web 3D and applications
O Machine architectures/engines for graphics and VR
O Modeling of natural scenes and phenomena
O Computer art and entertainment (including games)
O Shadows, translucency and visibility
O e-Learning applications and computer graphics
O Illumination and reflection techniques
O Interactive digital media
O 3D reconstruction
O Curves and meshes
O Visual computing and graphics
O Image data structures for computer graphics
O Graphics algorithms and applications
O Case studies and emerging technologies
-----------
O Virtual environments
O Virtual and augmented reality
O Virtual humans and artificial life
O Real-time collision detection algorithms
O Immersive virtual reality
O Virtual reality, visualization, and education
O Interactive techniques
O Learning and assessment based on virtual reality approaches
O Virtual laboratories
O Virtual reality tools/languages (X3D, VRML, Java3D, OpenGL, ...)
O Real-time rendering for VR
O Emerging display technologies
O Virtual reality techniques for behavioral and cognitive assessment
O Simulation and virtual reality
O Software tools for virtual reality
O Human-computer interfaces
O Multimodal display systems
O Integration of virtual reality and multimedia
O Haptic devices and techniques
O Virtual reality and emerging applications

USEFUL WEB LINKS:
To see the DBLP list of accepted papers in the last offering of CGVR,
go to
http://www.informatik.uni-trier.de/~ley/db/conf/cgvr/cgvr2009.html
The main web site of CGVR'10 is accessible at
http://www.worldacademyofscience.org/worldcomp10/ws/conferences/cgvr10

CONFIRMED ACADEMIC & TECHNICAL CO-SPONSORS (a partial list):

The Berkeley Initiative in Soft Computing (BISC), University of
California, Berkeley, USA; Collaboratory for Advanced Computing and
Simulations (CACS), University of Southern California, USA;
Intelligent
Data Exploration & Analysis Lab., University of Texas at Austin,
Texas,
USA; Harvard Statistics Department Genomics & Bioinformatics Lab.,
Harvard University, Massachusetts, USA; BioMedical Informatics &
Bio-Imaging Lab., Georgia Institute of Technology & Emory University,
Georgia, USA; Hawkeye Radiology Informatics, Department of Radiology,
College of Medicine, University of Iowa, USA; Minnesota Supercomputing
Institute, University of Minnesota, USA; Medical Image HPC &
Informatics
Lab. (MiHi Lab), University of Iowa, USA; University of North Dakota,
USA; NDSU-CIIT Green Computing & Communications Lab., North Dakota
State
University, USA; Knowledge Management & Intelligent System Center
(KMIS)
of University of Siegen, Germany; UMIT, Institute of Bioinformatics
and
Translational Research, Austria; SECLAB of University of Naples
Federico II, University of Naples Parthenope, & Second University of
Naples, Italy; National Institute for Health Research; World Academy
of
Biomedical Sciences and Technologies; High Performance Computing for
Nanotechnology (HPCNano); Supercomputer Software Department (SSD),
Institute of Computational Mathematics & Mathematical Geophysics,
Russian Academy of Sciences; Int'l Council on Medical & Care
Compunetics;
The UK Department for Business, Innovation and Skills, UK; VMW
Solution
Ltd.; Scientific Technologies Corporation; HoIP - Health without
Boundaries; Space for Earth Foundation; and Manjrasoft (Cloud
Computing
Technology company), Melbourne, Australia.

WORLDCOMP 2010 MEMBERS OF STEERING COMMITTEE:
(Each track/conference has its own committee members - what
appears below is a partial list of members of the steering
committee of the federated event - WORLDCOMP.)

Dr. Selim Aissi
Chief Strategist - Security, Manageability and Virtualization,
Ultra Mobile Group, Intel Corporation, USA

Prof. Hamid R. Arabnia
Coordinator & General Co-Chair, Professor, Computer Science,
Editor-in-Chief, The Journal of Supercomputing (Springer),
Co-Editor/Board, Journal of Computational Science (Elsevier),
Advisory Board, IEEE Technical Committee on Scalable Computing,
Elected Fellow, Int'l Society of Intelligent Biological Medicine,
The University of Georgia, USA
email: hra@cs.uga.edu

Prof. Ruzena Bajcsy
Member, National Academy of Engineering,
IEEE Fellow, ACM Fellow,
Professor, Electrical Engineering & Computer Sciences
University of California, Berkeley, California, USA

Prof. Hyunseung Choo
ITRC Director of Ministry of Information & Communication, Korea,
Director, ITRC: Intelligent HCI Convergence Research Center, Korea,
Director, Korea Information Processing Society,
Assoc. Editor, ACM Transactions on Internet Technology,
Assoc. Editor, Transactions on Computational Science, Springer-
Verlag;
Director, Korean Society for Internet Info. (KSII) + Society for
Sim.;
Sungkyunkwan University, Korea

Prof. Andy Marsh
Director HoIP (Healthcare over Internet Protocol),
Secretary-General WABT (World Academy of Biomedical Science &
Tech.),
Vice-president ICET (Int'l Council for Engineering & Technology),
Vice-president ICMCC (Int'l Council on Medical & Care Compunetics),
Visiting Professor, University of Westminster, UK

Prof. Layne T. Watson
IEEE Fellow, NIA Fellow, ISIBM Fellow, Fellow of The National
Institute of Aerospace, Departments of Computer Science & Math,
Virginia Polytechnic Institute & State University, USA

Prof. Lotfi A. Zadeh
Member, National Academy of Engineering,
IEEE Fellow, ACM Fellow, AAAS Fellow, AAAI Fellow, IFSA Fellow,
Director, Berkeley Initiative in Soft Computing,
Professor, University of California, Berkeley, USA

PURPOSE / HISTORY:

CGVR'10 Conference is being held jointly (same location and dates)
with a number of other research conferences (WORLDCOMP).
WORLDCOMP is the largest annual gathering of researchers in
computer
science, computer engineering and applied computing. We anticipate
to have 2,000 or more attendees from over 85 countries
participating
at WORLDCOMP Congress. A number of individual research tracks of
the Congress have been held for many years; for example, PDPTA has
been held annually since 1995 (PDPTA'10 is the 16th annual
conference); ERSA has been held annually since 2001 (ERSA'10 is the
10th annual conference); ICAI has been held annually since 1999
(ICAI'10 is the 12th annual conference); CGVR has been held
annually since 1997 (CGVR'10 is the 14th annual conference;
originally it was offered as CISST). Other tracks of WORLDCOMP
Congress have similar records.

The motivation behind this federated congress is to assemble
a spectrum of affiliated research conferences into a coordinated
research meeting held in a common place at a common time. The
main goal is to provide a forum for exchange of ideas in a
number of research areas that interact. The model used to form
CGVR facilitates communication among researchers from all
over the world in different fields of computer science,
computer engineering, applied computing, and computational
biology. Both inward research (core areas) and outward research
(multi-disciplinary, inter-disciplinary, and applications) will
be covered during the conference. CGVR makes concerted effort
to reach out to participants affiliated with diverse entities
(such as: universities, institutions, corporations, government
agencies, and research centers/labs) from all over the world.

CGVR'10 will be composed of research presentations, keynote
lectures, invited presentations, tutorials, panel discussions,
and poster presentations. In recent past, keynote/tutorial/panel
speakers have included (as part of the federated event):
Prof. David A. Patterson (pioneer/computer architecture, U. of
California, Berkeley), Dr. K. Eric Drexler (known as Father of
Nanotechnology), Prof. John H. Holland (known as Father of
Genetic Algorithms; U. of Michigan), Prof. Ian Foster (known as
Father of Grid Computing; U. of Chicago & ANL), Prof. Ruzena
Bajcsy (pioneer/VR, U. of California, Berkeley), Prof. Barry
Vercoe (Founding member of MIT Media Lab, MIT), Dr. Jim Gettys
(known as X-man, developer of X Window System, xhost; OLPC),
Prof. John Koza (known as Father of Genetic Programming,
Stanford U.), Prof. Brian D. Athey (NIH Program Director, U. of
Michigan), Prof. Viktor K. Prasanna (pioneer, U. of Southern
California), Dr. Jose L. Munoz (NSF Program Director and
Consultant), Prof. Jun Liu (Broad Institute of MIT & Harvard U.),
Anousheh Ansari (CEO, Prodea Systems & first female private
space explorer), and many other distinguished speakers. To get
a feeling about the events' atmosphere, see the 2009 delegates
photos available at:
http://www.pixagogo.com/1672514104
2008 delegates photos can be viewed at:
http://www.pixagogo.com/8658134154

SUBMISSION OF PAPERS, PUBLICATION, INDEXING INFORMATION:

Prospective authors are invited to submit their papers by
uploading them to the evaluation web site at:
http://worldcomp.cviog.uga.edu/
Submissions must be uploaded by March 1, 2010 and they must
be in either MS doc (but not docx) or pdf formats (about 5
to 7 pages - single space, font size of 10 to 12). All
reasonable typesetting formats are acceptable (later, the
authors of accepted papers will be asked to follow a
particular typesetting format to prepare their final papers.)

The length of the Camera-Ready papers (if accepted) will be
limited to 7 (IEEE style) pages. Papers must not have been
previously published or currently submitted for publication
elsewhere. The first page of the draft paper should include:
title of the paper, name, affiliation, postal address, and
email address for each author. The first page should also
identify the name of the Contact Author and a maximum of 5
topical keywords that would best represent the content of
the paper. Finally, the name of the conference (ie. CGVR)
must be stated on the first page.

Full papers will be evaluated for originality, significance,
clarity, impact, and soundness. Each paper will be refereed
by two experts in the field who are independent of the
conference program committee. The referees' evaluations will
then be reviewed by one member of the program committee who
will recommend a decision to the chair of the track that
the paper has been submitted to. The chair will make the
final decision. Lastly, the final papers will be reviewed
by one member of the program committee.

All accepted papers will be published in the respective
conference proceedings (in both, printed book form as well as
online). The proceedings will be indexed in Inspec / IET /
The Institute for Engineering and Technology, DBLP / Computer
Science Bibliography, and others.) The printed proceedings
will be available for distribution on site at the conference.

In addition to the publication of the proceedings, selected
authors will be invited to submit extended versions of their
papers for publication in a number of research books being
proposed/contracted with various publishers (such as, Springer,
Elsevier, IOS, ...) - these books would be composed after the
conference. Also, many chairs of sessions and workshops will
be forming journal special issues to be published after the
conference.

IMPORTANT DATES:

March 1, 2010: Submission of papers (about 5 to 7 pages)
March 25, 2010: Notification of acceptance
April 22, 2010: Final papers + Copyright + Registration
July 12-15, 2010: The 2010 International Conference on Computer
Graphics and Virtual Reality (CGVR'10)

URL: http://www.world-academy-of-science.org

MEMBERS OF PROGRAM AND ORGANIZING COMMITTEES:

The Program Committee includes members of chapters of World
Academy of Science (chapters: supercomputing; scientific
computing; AI; imaging science; databases; simulation;
software eng.; embedded systems; internet & web technologies;
communications; computer security; & bioinformatics.) The
Program Committee for CGVR'10 conference is currently
being formed. Many who have already joined the committees
of individual tracks are renowned leaders, scholars,
researchers, scientists and practitioners of the highest
ranks; many are directors of research labs., fellows of
various societies, heads/chairs of departments, program
directors of research funding agencies, deans and provosts.
You can view the list of program committee of the last two
offerings of CGVR at:
http://www.worldacademyofscience.org/worldcomp08/ws/conferences/cgvr08/committee
http://www.worldacademyofscience.org/worldcomp09/ws/conferences/cgvr09/committee
Program Committee members are expected to have established
a strong and documented research track record. Those
interested in joining the Program Committee should email
H. R. Arabnia (hra@cs.uga.edu) the following information for
consideration/evaluation: Name, affiliation and position,
complete mailing address, email address, a one-page biography
that includes research expertise and the name of the conference
offering to help with (ie, CGVR).

LOCATION OF CONFERENCE:

CGVR'10 will be held at Monte Carlo Resort, Las Vegas,
Nevada, USA (with any overflows at other near-by hotels).
This is a mega hotel with excellent conference facilities and
over 3,000 rooms. It is minutes from the airport with 24-hour
shuttle service to and from the airport. This hotel has many
recreational attractions, including: waterfalls, spa, pools,
sunning decks, Easy River, wave pool, nightly shows, many
restaurants, ... The hotel is adjacent to CityCenter
( http://en.wikipedia.org/wiki/CityCenter ) which is the
largest private development in the United States' history
(costing over $11 Billion); this offers access to additional
recreational and entertainment attractions. The negotiated
room rate for conference attendees is very reasonable.

==============================================================================

You received this message because you are subscribed to the Google Groups "comp.programming.threads"
group.

To post to this group, visit http://groups.google.com/group/comp.programming.threads?hl=en

To unsubscribe from this group, send email to comp.programming.threads+unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.programming.threads/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com/?hl=en

Monday, February 8, 2010

[jQuery] Ajax Upload using valums upload plugin

Hi , i just came across this ajax upload plugin and i wish to use it inside a form as shown in the demo page example 3. For some reason i am not able to make it work. I am not sure what parameters come into the function. For example here is my sample code.

$(document).ready(function(){

/* Example3 */
        var upload = new AjaxUpload('property_i',
        {
        action: 'submitproperty.php',
        autoSubmit: false,
        onSubmit : function(file , extension){
        return false;
        }
        });
      
        var upload_data = upload.setData({
        'propertytype':'propertytype'
        });
       
       });

Now th ID used in the AjaxUpload function should be ID of the <input type = file .../> or of the Entire form. Also how do i use setData method. Any suggestions or links will be very helpful. Thanks
--
Regards,
idrish laxmidhar


[jQuery] Multiple Cascading Shows with jQuery Cycle

Greetings,

What I'm trying to accomplish is a 'cascade' effect. I have 3 shows
setup. I'd like for the 'after' callback to fire the 'next' slide on
the next show... something like this:

$('#show1').cycle({
fx: 'fade',
timeout: 0,
after: show1After
});

function show1After() {
$('#show2').click('next');
};

$('#show2').cycle({
fx: 'fade',
timeout: 0,
after: show2After
});

function show2After() {
$('#show3').click('next');
};

$('#show3').cycle({
fx: 'fade',
timeout: 0,
after: show3After
});

function show3After() {
$('#show1').click('next');
};

I'm obviously doing it TOTALLY wrong...I'm pretty sure the 'after'
callback would be the right one to use. Just not sure how to fire off
the 'next' slide in the next show. And then there's a slide delay... I
assume that's with 'timeout' but I don't want it to auto-advance.

Any ideas? I'll keep hacking at it too but if someone could give me a
shove in the right direction, I'd appreciate it.

-RK-

[jQuery] Smooth div scroll and slideshow caption

Hi All

I was looking at combining the smooth div scroll jquery plugin with the
slideshow caption plugin, but haven't had much success in doing this.
Basically what i want to do is to have the Smooth div scroller functionality
for the gallery navigation but have the slideshow caption element appear as
the images scroll through. So rather than setting the caption to rotate on a
timed interval (setInterval('portfolio()',6000);) it would be triggered as
the images reach the start position of the slideshow? (possibly being
trigged by the id of the image)...So say if the user scrolls to a specific
image in the pan the img id of that image would be recognized and so that
image caption would fade in? I hope this makes sense! I have provided the
sample files i've been working through as reference. Any help with this
would be greatly appreciated!
http://old.nabble.com/file/p27509161/slideshow_caption.zip
slideshow_caption.zip

Cheers
clin-TON
--
View this message in context: http://old.nabble.com/Smooth-div-scroll-and-slideshow-caption-tp27509161s27240p27509161.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] order book jquery for designer

hi, may i know where can i order this book, i tried manning online,
but yahoo store doesn't have option for "malaysia"

comp.lang.c++ - 25 new messages in 6 topics - digest

comp.lang.c++
http://groups.google.com/group/comp.lang.c++?hl=en

comp.lang.c++@googlegroups.com

Today's topics:

* Motivation of software professionals - 16 messages, 9 authors
http://groups.google.com/group/comp.lang.c++/t/21a3fdec4dd53e6a?hl=en
* C++ and shared objects - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/c0dc99feb20c6b5f?hl=en
* B const * array[ ] in gobal - 2 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/539f80e07ceb283b?hl=en
* int (*&)() - 4 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/889d2547688e2155?hl=en
* Never seen this usage before - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/9a99c229e104389e?hl=en
* Classes named CFoo (was Re: Odd Exception Behavior) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/ce3a580936f3cddd?hl=en

==============================================================================
TOPIC: Motivation of software professionals
http://groups.google.com/group/comp.lang.c++/t/21a3fdec4dd53e6a?hl=en
==============================================================================

== 1 of 16 ==
Date: Mon, Feb 8 2010 10:32 am
From: Ian Collins


Malcolm McLean wrote:
> On Feb 8, 1:43 am, James Kanze <james.ka...@gmail.com> wrote:
>> On Feb 5, 3:14 pm, Patricia Shanahan <p...@acm.org> wrote:
>>
>> [...]
>>
>>> That said, by definition professionals are, to some extent, in
>>> it for the money. If they were not, they would be amateurs as
>>> I am now. How that is balanced against interesting work,
>>> physical working conditions, status, etc. varies.
>> I'm not sure if the word "professional" has the same conotations
>> in English as it does in French, but from the French meaning, I
>> don't think you can be truely a "professional" if you're only in
>> it for the money. "Professional" implies being paid for what
>> you do, but it also implies a certain degree of personal
>> standards with regards to quality and such---a "professional"
>> will take pride in his work.
>>
> Strictly a "professional" is someone who is a member of a professional
> body which regulates itself and has the right to control entry to the
> profession.

In some contexts maybe, but golf and cricket clubs had their
"professional" long before anyone thought of developing software. It
isn't the term "professional" that has been bastardised, it's "Engineer".

--
Ian Collins


== 2 of 16 ==
Date: Mon, Feb 8 2010 10:34 am
From: Dirk Bruere at NeoPax


Malcolm McLean wrote:
> On Feb 8, 1:43 am, James Kanze <james.ka...@gmail.com> wrote:
>> On Feb 5, 3:14 pm, Patricia Shanahan <p...@acm.org> wrote:
>>
>> [...]
>>
>>> That said, by definition professionals are, to some extent, in
>>> it for the money. If they were not, they would be amateurs as
>>> I am now. How that is balanced against interesting work,
>>> physical working conditions, status, etc. varies.
>> I'm not sure if the word "professional" has the same conotations
>> in English as it does in French, but from the French meaning, I
>> don't think you can be truely a "professional" if you're only in
>> it for the money. "Professional" implies being paid for what
>> you do, but it also implies a certain degree of personal
>> standards with regards to quality and such---a "professional"
>> will take pride in his work.
>>
> Strictly a "professional" is someone who is a member of a professional
> body which regulates itself and has the right to control entry to the
> profession. For instnace I can't simply buy scalpels and antiseptic
> and set myself up as a brain surgeon - I have to go throguh the
> British Medical Association before they'll let me chop people up. the
> same is true for lawyers, accountants, and some other more obscure
> niches.
>
> Most people aren't professionals, and the word has become misused to
> mean 'skilled workers with high standards'. Bascially employers want
> the advantages of professional status without conferring on their
> employees the control that is the natural concomitant.
>
> Computer programmers are rarely professionals in the true sense, but
> ususally professional in the bastardised sense of the term.

Come to Britain where we have "boffins" or occasionally "eggheads" and
where the gas company will send round an engineer to fix your appliance.
Or, if he cannot manage it, a technician (yes - that's what they really
said).

--
Dirk

http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.blogtalkradio.com/onetribe - Occult Talk Show


== 3 of 16 ==
Date: Mon, Feb 8 2010 10:46 am
From: Seebs


On 2010-02-08, Dirk Bruere at NeoPax <dirk.bruere@gmail.com> wrote:
> Some places you go, however, you never want to return.
> They are real tech sweatshop hellholes with everyone looking for a new
> job. Last place like that I was at the boss said: "This project is
> behind schedule and if it is not on time heads will roll. I am now off
> on holiday". I suspect he returned to an empty office.

I should hope so!

Last time we had a thing behind schedule, the management sent out a request
that we put in extra time to bring it on schedule. They had already cut
product specs in a few key places to try to make things better, and they
told us they'd make it good if we helped them out. We had very close to
24/7 management coverage, and they helped out as much as they could. And
yes, we made the deadline, and they rewarded us suitably.

The primary motivation there wasn't the money, it was the visible
demonstration that the management felt it was their problem more than ours
that the schedule had been wrong. (Note the emphasis; it was not that we
were behind the schedule, it was that the schedule was, empirically, wrong.)

-s
--
Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!


== 4 of 16 ==
Date: Mon, Feb 8 2010 11:57 am
From: Dirk Bruere at NeoPax


Seebs wrote:
> On 2010-02-08, Dirk Bruere at NeoPax <dirk.bruere@gmail.com> wrote:
>> Some places you go, however, you never want to return.
>> They are real tech sweatshop hellholes with everyone looking for a new
>> job. Last place like that I was at the boss said: "This project is
>> behind schedule and if it is not on time heads will roll. I am now off
>> on holiday". I suspect he returned to an empty office.
>
> I should hope so!
>
> Last time we had a thing behind schedule, the management sent out a request
> that we put in extra time to bring it on schedule. They had already cut
> product specs in a few key places to try to make things better, and they
> told us they'd make it good if we helped them out. We had very close to
> 24/7 management coverage, and they helped out as much as they could. And
> yes, we made the deadline, and they rewarded us suitably.
>
> The primary motivation there wasn't the money, it was the visible
> demonstration that the management felt it was their problem more than ours
> that the schedule had been wrong. (Note the emphasis; it was not that we
> were behind the schedule, it was that the schedule was, empirically, wrong.)
>
> -s

The best place I ever worked was in a small R&D dept run like a
skunkworks. We reported directly to the owner and all other layers of
management eliminated. The most productive place in over 30 years of
design. All went to shit when the owner was persuaded to get in "real"
management. 3 years and the company went from $30m to bust.

--
Dirk

http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.blogtalkradio.com/onetribe - Occult Talk Show


== 5 of 16 ==
Date: Mon, Feb 8 2010 12:06 pm
From: Andy Champ


James Kanze wrote:
>
> I'm not sure if the word "professional" has the same conotations
> in English as it does in French, but from the French meaning, I
> don't think you can be truely a "professional" if you're only in
> it for the money. "Professional" implies being paid for what
> you do, but it also implies a certain degree of personal
> standards with regards to quality and such---a "professional"
> will take pride in his work.
>
I think that side of the meaning is becoming less visible.

There was a time when being an engineer was an important thing - and
what we do is a branch of engineering.

http://upload.wikimedia.org/wikipedia/commons/6/65/Royal_Albert_Bridge_-_Saltash_pier_from_Tamar_Bridge.JPG

AKA

http://preview.tinyurl.com/ykycpgu

Nowadays an engineer is no longer someone who exercises their ingenuity,
but a locomotive driver (US) or repairman.

As time has gone by the status of engineering in general has dropped,
and I think the status of the professions in general. A bank manager
was a professional, but not likely to be particularly qualified; an
accountant definitely counted. The real money these days is made by
arbitrageurs and such who are only professional in the sense that they
are in it for the money. I suspect that most people do not have the
respect for them that a banker, lawyer, politician or doctor would have
attracted in years gone by.

Anyway - money a motivator? Only up to a point, for most people. If
you've got enough it just stops mattering.

Except to those few for whom having lots of money is an end to itself.
And in general they tend not to be technical people.

The other side of the coin is amateur - doing it for the love of it.
And I for one am glad that there are people on this group helping people
for no financial reward whatsoever.

Andy


== 6 of 16 ==
Date: Mon, Feb 8 2010 12:11 pm
From: Tim Streater


On 08/02/2010 20:06, Andy Champ wrote:

> http://preview.tinyurl.com/ykycpgu

Could do with a lick of paint.

--
Tim

"That the freedom of speech and debates or proceedings in Parliament
ought not to be impeached or questioned in any court or place out of
Parliament"

Bill of Rights 1689


== 7 of 16 ==
Date: Mon, Feb 8 2010 3:18 pm
From: Martin Gregorie


On Tue, 09 Feb 2010 07:32:01 +1300, Ian Collins wrote:

>
> In some contexts maybe, but golf and cricket clubs had their
> "professional" long before anyone thought of developing software. It
> isn't the term "professional" that has been bastardised, it's
> "Engineer".
>
That's easy: anybody who isn't a member of a recognised engineering
society should not be called an engineer and should be laughed out of
town if they call themselves one.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |


== 8 of 16 ==
Date: Mon, Feb 8 2010 3:25 pm
From: James Kanze


On Feb 8, 12:25 am, "Alf P. Steinbach" <al...@start.no> wrote:
> * James Kanze:

[...]
> But strangely, one thing that motivates me is apparent peer
> disapproval. For in many social environments (last week or so
> there was a damning report about this kind of environment at
> the University of Oslo, happily I'm not there) the art of
> put-down'ing and dissing is key to personal success. When
> someone else does something really good then put-down'ing
> becomes necessary and the default response. Thus, when I get
> critique that has more emotional impact than technical I
> concentrate on the technical points. Then, interpreting those
> more technical points in a kind of inverse-picture way, I know
> what's good.

Any commercial firm which created that sort of environment would
fail very quickly. And I'll admit that I've never quite seen it
to that point. (I have seen cases where one manager tried to
cause the failure of projects for which another manager was
responsible. But I've never seen anything similar among the
technical personel.)

I've always gotten a great deal of satisfaction from peer (as
opposed to boss') approval. And it's been forthcoming in
practically every firm I've worked in---my collegues have
thought my programs good, and told me so. Even in really poorly
run shops. (Perhaps more so in poorly run shops---in the better
run shops, it was taken for granted that everyone would write
good code, and you needed to do something exceptional to get
special approval.)

> Of course, that's part of the personal satisfaction
> motivation, but I think it's interesting that personal
> satisfaction, knowing that you've created something good, in
> some/many environments can be directly incompatible with peer
> approval.

Don't work in such environments. They're dangerous for your
(mental) health. And as long as you stick to the technical
side, they are very, very rare.

> And for me personal satisfaction weights more.

> Peer approval would in most cases just say that I'm
> conforming, which is not something that I'd be proud of;

No. But it does mean that what you've done that is original can
be understood by others. Which IMHO is good.

> it's something I strive to avoid. But in some cases approval
> is really nice. E.g., a few times you've stated that I'm
> pretty good, or words to that effect, which coming from
> someone that one respects is uplifting in a way; likewise,
> once, many years ago, I had a dispute with one very well-known
> C++ expert over in clc++m and wrote some things that I really
> shouldn't have, the mod apologized for accepting the article
> by saying that he didn't read closely because it was two "C++
> experts" discussing things, and that helped much, otherwise I
> might have stopped posting... :-)

Note that approval can come in many different forms:-). At
times, I've argued strongly with you because IMO, you opinion
counts. You're not just anyone---your knowledge of C++ (and
software engineering in general) is exceptional. So when your
point of view disagrees with mine, it worries me. Which makes
me argumentive.

--
James Kanze


== 9 of 16 ==
Date: Mon, Feb 8 2010 3:26 pm
From: Seebs


On 2010-02-08, Martin Gregorie <martin@address-in-sig.invalid> wrote:
> That's easy: anybody who isn't a member of a recognised engineering
> society should not be called an engineer and should be laughed out of
> town if they call themselves one.

This strikes me as the polar opposite of an engineering mindset, which
would be that a thing is what it is, and isn't what it isn't, regardless
of any labels.

-s
--
Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!


== 10 of 16 ==
Date: Mon, Feb 8 2010 3:33 pm
From: James Kanze


On Feb 8, 4:06 pm, Lew <no...@lewscanon.com> wrote:
> MarkusSchaber wrote:
> >> I won't dispute that money is a motivator, but it is not
> >> the most efficient motivator. The more money you pay, the
> >> more you will attract those developers which are purely
> >> after the money, and not the really good ones. For the
> >> latter ones, a certain level on the paycheck is enough to
> >> give attention to fun, excitement, atmosphere and such
> >> factors.

> Dirk Bruere at NeoPax wrote:

> > I once joked with an employer that if he paid me twice as
> > much I would only have to work half as long :-)

> Given that nearly nobody gives a perfect working environment,
> or even close, money is the primary distinguisher. As a
> contract worker, I've seen a few dozen IT workplaces. The
> grass is never greener. Offer me twice as much compensation
> as the other potential employer and my talents are yours to
> exploit.

That's completely wrong. The effect of money depends on a lot
of things: someone who's just coming out of an expensive
divorce, heavily endebted, will doubtlessly put more importance
on it that a young, single person who has no debts and is making
enough to comfortably sustain the lifestyle he likes. But
environments do vary, enormously, and unless I'm under duress,
I'll always go for the position which seems to offer the better
environment. (But of course, at my level, even those positions
offer a comfortable level of life. It's generally a question of
being well off, rather than very well off.)

> It's not that money is the motivator. The question is leading
> and extremely ill cast. I don't depend on anyone else for my
> motivation. Money is the decider; it decides whether and
> where I work. It doesn't determine how.

I'll refuse jobs that aren't sufficiently paid. But I recently
changed jobs more because I was bored than because I make more
in my new job. (Formally, my income is considerably higher.
But so are my expenses---my living standard is basically
unchanged, or even a little lower than it used to be.)

--
James Kanze


== 11 of 16 ==
Date: Mon, Feb 8 2010 3:36 pm
From: James Kanze


On Feb 8, 6:46 pm, Seebs <usenet-nos...@seebs.net> wrote:
> On 2010-02-08, Dirk Bruere at NeoPax <dirk.bru...@gmail.com> wrote:

[...]
> The primary motivation there wasn't the money, it was the
> visible demonstration that the management felt it was their
> problem more than ours that the schedule had been wrong.
> (Note the emphasis; it was not that we were behind the
> schedule, it was that the schedule was, empirically, wrong.)

Yes! I think that most people fundamentally like to help
others, in one way or another. And someone saying that they
screwed up, and asking for help, is a strong motivator for most
people. On the other hand, threats almost never work. People
don't work well when they feel threatened.

--
James Kanze


== 12 of 16 ==
Date: Mon, Feb 8 2010 3:39 pm
From: Arved Sandstrom


Seebs wrote:
> On 2010-02-08, Martin Gregorie <martin@address-in-sig.invalid> wrote:
>> That's easy: anybody who isn't a member of a recognised engineering
>> society should not be called an engineer and should be laughed out of
>> town if they call themselves one.
>
> This strikes me as the polar opposite of an engineering mindset, which
> would be that a thing is what it is, and isn't what it isn't, regardless
> of any labels.
>
> -s

Insofar as competent and professional engineering societies set real
standards for qualifications and conduct to be able to use the title
"Engineer", and insofar as the vast majority of software developers have
nothing like this at all, I see no problem here.

AHS


== 13 of 16 ==
Date: Mon, Feb 8 2010 3:42 pm
From: James Kanze


On Feb 8, 4:14 pm, Malcolm McLean <malcolm.mcle...@btinternet.com>
wrote:
> On Feb 8, 1:43 am, James Kanze <james.ka...@gmail.com> wrote:
> > On Feb 5, 3:14 pm, Patricia Shanahan <p...@acm.org> wrote:

> > [...]

> > > That said, by definition professionals are, to some
> > > extent, in it for the money. If they were not, they would
> > > be amateurs as I am now. How that is balanced against
> > > interesting work, physical working conditions, status,
> > > etc. varies.

> > I'm not sure if the word "professional" has the same
> > conotations in English as it does in French, but from the
> > French meaning, I don't think you can be truely a
> > "professional" if you're only in it for the money.
> > "Professional" implies being paid for what you do, but it
> > also implies a certain degree of personal standards with
> > regards to quality and such---a "professional" will take
> > pride in his work.

> Strictly a "professional" is someone who is a member of a
> professional body which regulates itself and has the right to
> control entry to the profession. For instnace I can't simply
> buy scalpels and antiseptic and set myself up as a brain
> surgeon - I have to go throguh the British Medical Association
> before they'll let me chop people up. the same is true for
> lawyers, accountants, and some other more obscure niches.

Words have many meanings, and some professions are "reglementé".
Still, in France, I was a "profession libérale", and not a
"commerçant" or "artisan"---in Germany, the categorie was
"freiberuflich", rather than "Gewerber". These are very
distinct legal categories, with (especially in Germany)
implications with regards to how I was taxed, etc. (And it did
lead to some interesting situations in France, since typically,
as a "profession libérale", I was asked for my registration with
the professional association. Which didn't exist for my
profession.)

--
James Kanze


== 14 of 16 ==
Date: Mon, Feb 8 2010 3:44 pm
From: Phil Carmody


Ivan Marsh <ivanmarsh@yahoo.com> writes:
> Lew wrote:
>> Ivan Marsh wrote:
>>> The 1950's [sic] were totally awesome.
>>
>> Oh, yeah - the twin evils of McCarthyism and Communism. Racism. Sexism.
>> The
>> Cold War. Superpowers playing chess with smaller countries. Wars
>> everywhere.
>> Dictators. Massive stockpiling of nuclear and chemical weapons. Rapine
>> of
>> the planet. The birth of AIDS. Hideous fashions.
>>
>> Totally awesome.
>
> The complete lack of sarcasm...

No, I think you'll find that Tom Lehrer was quite active in
those days.

Phil
--
Any true emperor never needs to wear clothes. -- Devany on r.a.s.f1


== 15 of 16 ==
Date: Mon, Feb 8 2010 3:50 pm
From: Seebs


On 2010-02-08, Arved Sandstrom <dcest61@hotmail.com> wrote:
> Seebs wrote:
>> On 2010-02-08, Martin Gregorie <martin@address-in-sig.invalid> wrote:
>>> That's easy: anybody who isn't a member of a recognised engineering
>>> society should not be called an engineer and should be laughed out of
>>> town if they call themselves one.

>> This strikes me as the polar opposite of an engineering mindset, which
>> would be that a thing is what it is, and isn't what it isn't, regardless
>> of any labels.

> Insofar as competent and professional engineering societies set real
> standards for qualifications and conduct to be able to use the title
> "Engineer", and insofar as the vast majority of software developers have
> nothing like this at all, I see no problem here.

Membership in an organization is not the same thing as meeting the formal
standards that would be required by such an organization if it existed.

In short, if there exists a set of qualifications and conduct which would
be necessary to be a member of an organization, and membership confers the
title "engineer", then having that set of qualifications and conduct ought
to confer the title *with or without* membership in the organization.
Meanwhile, at least some members of any given organization will usually
not actually meet the nominal or formalized standard in one way or another.

Measurement by proxy is not very good measurement.

-s
--
Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!


== 16 of 16 ==
Date: Mon, Feb 8 2010 4:01 pm
From: Arved Sandstrom


Seebs wrote:
> On 2010-02-08, Arved Sandstrom <dcest61@hotmail.com> wrote:
>> Seebs wrote:
>>> On 2010-02-08, Martin Gregorie <martin@address-in-sig.invalid> wrote:
>>>> That's easy: anybody who isn't a member of a recognised engineering
>>>> society should not be called an engineer and should be laughed out of
>>>> town if they call themselves one.
>
>>> This strikes me as the polar opposite of an engineering mindset, which
>>> would be that a thing is what it is, and isn't what it isn't, regardless
>>> of any labels.
>
>> Insofar as competent and professional engineering societies set real
>> standards for qualifications and conduct to be able to use the title
>> "Engineer", and insofar as the vast majority of software developers have
>> nothing like this at all, I see no problem here.
>
> Membership in an organization is not the same thing as meeting the formal
> standards that would be required by such an organization if it existed.
>
> In short, if there exists a set of qualifications and conduct which would
> be necessary to be a member of an organization, and membership confers the
> title "engineer", then having that set of qualifications and conduct ought
> to confer the title *with or without* membership in the organization.
> Meanwhile, at least some members of any given organization will usually
> not actually meet the nominal or formalized standard in one way or another.

At the moment those standards do not exist for the majority of software
developers. So it's pretty much a moot point.

If the standards did exist, how would you know that a person who claimed
a title actually deserved it, without having them go through a
certification process?

[ SNIP ]

AHS

==============================================================================
TOPIC: C++ and shared objects
http://groups.google.com/group/comp.lang.c++/t/c0dc99feb20c6b5f?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 2:39 pm
From: James Kanze


On Feb 8, 6:46 am, Robert Fendt <rob...@fendt.net> wrote:
> And thus spake Phoenix87 <phoenix1...@gmail.com>
> Sun, 7 Feb 2010 16:14:50 -0800 (PST):

> > I want to build some shared libraries from C++ code defining
> > classes because I want to load them dynamically in programs
> > that need that classes. I've read about dlopen and co.,
> > which require the implementation of factory procedures in
> > order to dynamically allocate class instances from the
> > loaded shared object. Is there an alternative way to
> > dynamically load classes in C++ programs? I mean something
> > which allows to instantiate new class instances with new
> > keyword etc...Basically my question is quite the same thing
> > as asking how the STL, or the CERN ROOT libraries work.

> STL is a template framework. It therefore does not consist of
> any runtime libraries apart from the C standard stuff
> underneath.

It depends on what you mean by "STL". Traditionally, it did
refer to a library created by Stepanov, which in fact was almost
exclusively templates. Most people today, however, use the term
STL to refer to the standard library. In which case, it's
provided somehow by your compiler, and you don't really have to
know the details. (And it's not all templates.)

Of course, the real problem is that he doesn't really say what
he's trying to do, so it's difficult to find a solution. In
general, if you're providing a library for other programs,
you'll provide a set of headers, a dynamic object *and* a static
library, since except in exceptional cases, the client will
probably prefer linking statically. (If nothing else, unless
you're freeware, the licensing issues for DLL's will be a
nightmare.)

> In order for a direct 'new' to work, the class definition has
> to be available (header file) as well as the object files
> containing all non-inline functions.

And in order for a factory method to work, and external
declaration of the factory method must be present. And to use
whatever the factory method returns, you also need headers which
declare the interface. In the end, it's purely a question of
what and how you want to provide something.

> So you just can build a shared library of your stuff and use
> it for regular compiling and linking against. In this case,
> the system's runtime facilities will do the loading of the
> dynamic library for you at program startup.

With some notable exceptions, if that's the case, you should
probably be linking statically.

> This is straight-forward, and I do not interpret your question
> in that direction. You seem to think about dynamic loading
> rather than dynamic linking.

> Dynamic loading means that you load something your compiler
> did not know about. If you look at the specifications of
> dlopen() and such (the Windows equivalents have similar
> restrictions), you will find that the framework just allows
> for retrieval of unmangled (i.e. plain C) symbols. This works
> for constants and for function pointers (although the ability
> to retrieve a function pointer directly through dlsym() is
> technically a non-standard compiler extension, albeit a
> popular one).

The interface (both under Unix and under Windows) allows for
loading just about anything. (Windows is somewhat more
restrictive here, I think.) All you have to do is give the name
according to the local conventions, which means mangled in the
case of Windows or Unix. On the other hand, you also have the
problem that the function returns a void* (Unix) or a void (*)()
(Windows), which means you'll also need some casting. And no
doubt, headers, to define what you'll be casting to. In
practice, because of the mangling, the easiest solution is to
provide an ``extern "C"'' factory function. (Typically, the
mangling used by C is far simpler than that used by C++.) But
the client code still needs the header files to know the target
type of the cast, and the type actually returned.

> Long story short: you really can only get a pointer to a
> factory function by using dlsym() (POSIX) or GetProcAddress()
> (Windows). There is no way around it, just live with it.

That's false. With both, you can get a pointer to anything.
And if the library contains classes which have been exported
(and under Unix, by default, everything has been exported), you
can new them. But you need a header file with the concrete type
to do so.

> Loading C++ classes directly would involve all sorts of pains
> and hassles, not to mention a change to the C++
> specifications, and since at least POSIX does not deal with
> C++ anyway, dlsym() will not be changed in the near future. I
> do not know about Microsofts's plans for VC and
> GetProcAddress, but I would be surprised.

GetProcAddress is almost exactly like dlsym, except that it
returns the address of a function, rather than the address of
data, But since both Windows and Unix require the two to have
the same representation, all it takes is some very ugly funny
casting to get from one to the other. (As luck would have it,
every time I've used dlsym, I've needed the address of a
function, but the first time I used GetProcAddress, it was to
obtain the address of data.)

In general, I think what you're trying to say is correct, but
the issues are far more complicated than one would guess from
your posting.

--
James Kanze

==============================================================================
TOPIC: B const * array[ ] in gobal
http://groups.google.com/group/comp.lang.c++/t/539f80e07ceb283b?hl=en
==============================================================================

== 1 of 2 ==
Date: Mon, Feb 8 2010 2:55 pm
From: James Kanze


On Feb 8, 1:55 pm, soft wind <soft_w...@nifty.com> wrote:
> I have a problem about an object ( B const * array[ ] ) in
> global. Please see source program below.

> I provide B * const array [ ] in global scope in my first try,
> but their lifetime seems to be already end when the program
> goes to the enrty of main function.

> why is it so ?
> I usually provide char const * array[ ] in global and goes
> well. In which page does the standard describe about
> lifetime in this case ?
> Maybe '3.8 Object lifetime", but which phrases are applied in this
> case?

> In my second try, it goes well but another structure (class)
> is required. Is there any better way to provide B * pointer
> to handle late binding ?

> ------------------------------------------------------------------
> #include <string>
> #include <iostream>

> using std::string;
> using std::cout;

> class B {
> public:
> B( string str ) : str_m( str ) { }
> string get_str( void ) const { return str_m; }

> virtual int fnc( void ) const = 0;
> virtual ~B( ) { }

> private:
> std::string str_m;
> };

> class D : public B {
> public:
> D( string str ) : B( str ) { }

> virtual int fnc( void ) const { return 1; }
> };

> struct Create_B {
> string str_m;
> B * (*fnc)( string str );
> };

> B * create_D( string str )
> {
> return new D( str );
> }

> B const * list_0[ ] = {
> & D( "D0" ),

This shouldn't compile. I don't see any user defined overload
of D::operator&, so & is the built in operator, which requires
an lvalue.

If it does compile, you're using an implementation specific
extention, not C++, and you'll have to verify in the
implementation documentation what it means with regards to
lifetime of objects.

(Personally, I'd be very suspicious of a compiler with such
extensions, as it suggests that the people who wrote the
compiler don't understand C++.)

> };

> D const list_1[ ] = {
> D( "D1" ),
> };

> Create_B list_2[ ] = {
> { "D2", &create_D },
> };

> int main( void )

Just a nit, but the void marks you as a C programmer, and gives
the impression that you don't know C++.

> {
> // My first try, but fails
> s = list_0[ 0 ]->get_str( );

What is "s"? I don't see it declared anywhere.

As for the rest, see your compiler documentation; the
initialization of list_0 isn't C++, but some compiler specific
extention, so only the compiler documentation can tell you what
to expect.

> cout << s << "\n";

> // just for checking what is wrong with the first try
> string s;
> s = list_1[ 0 ].get_str( );
> cout << s << "\n";

This is well defined behavior: it should call the get_str
function on a copy of the D object used to initialize list_1.

> // My second try runs without error,
> // but another class 'Create_B' is required
> B * p = list_2[ 0 ].fnc( list_2[ 0 ].str_m );
> s = p->get_str( );
> cout << s << "\n";

This is also legal, but has distinctly different semantics than
the first two, since it creates a new object on the heap.

> return 0;
> }

--
James Kanze


== 2 of 2 ==
Date: Mon, Feb 8 2010 2:57 pm
From: James Kanze


On Feb 8, 2:46 pm, Victor Bazarov <v.Abaza...@comAcast.net> wrote:
> soft wind wrote:
> > [..]
> > B const * list_0[ ] = {
> > & D( "D0" ),
> > };

> Here you initilialise the pointer (the first element of your
> array) with the address of a *temporary*.

Maybe. The code is not legal C++, and requires diagnostic. If
he doesn't get an error message, he's not using a C++ compiler,
but something else. And what the statement does depends on what
that something else defines it to do.

--
James Kanze

==============================================================================
TOPIC: int (*&)()
http://groups.google.com/group/comp.lang.c++/t/889d2547688e2155?hl=en
==============================================================================

== 1 of 4 ==
Date: Mon, Feb 8 2010 2:59 pm
From: James Kanze


On Feb 8, 3:45 am, Asif Zaidi <asifnza...@gmail.com> wrote:
> What does the syntax in subject line mean - how should I read
> it.

According to the rules of type expressions. A reference to a
pointer to a function taking no arguments and returning int.

--
James Kanze


== 2 of 4 ==
Date: Mon, Feb 8 2010 3:05 pm
From: James Kanze


On Feb 8, 12:58 pm, Asif Zaidi <asifnza...@gmail.com> wrote:
> On Feb 8, 12:28 am, Syron <mr.sy...@googlemail.com> wrote:

> > Am 08.02.2010 04:45, schrieb Asif Zaidi:

> > > What does the syntax in subject line mean - how should I
> > > read it.

> > if this is a typedef (like 'int(*&func)()') it is a
> > reference to a pointer to a function that returns an int.

> I am trying to implement the following and getting compile
> failure. Any suggestions ?

> typedef int (*& func_ptr1)();

> int goo()
> {
> cout << "un goo" << endl;
> return 0;
> }

> int main()
> {
>
> func_ptr1 p1 = goo;
> }

Why? The formal reason why it doesn't work is that you're
trying to initialize a reference to a non-const with an rvalue.
But the real question is "what do you think you're trying to
do?" To make the above work, it's sufficient to change the
typedef to:

typedef int (*const & func_ptr1)();

But while the results may be legal C++, they still don't make
any logical sense.

> The error is below

> 1>d:\profiles\waz003\my documents\visual studio 2008\projects
> \hw5_3\hw5_3\hw5_3.cpp(174) : error C2440: 'initializing' : cannot
> convert from 'int (__cdecl *)(void)' to 'func_ptr1'

The error message could be better, the fact remains: you can't
initialize a reference to a non-const with an rvalue. Given,
however, that at least in the above case, it doesn't make any
sense to even want to, the question remains: what are you really
trying to do?

--
James Kanze


== 3 of 4 ==
Date: Mon, Feb 8 2010 3:09 pm
From: James Kanze


On Feb 8, 1:40 pm, Asif Zaidi <asifnza...@gmail.com> wrote:
> On Feb 8, 7:12 am, Victor Bazarov <v.Abaza...@comAcast.net> wrote:

[...]
> The first option you state: why does it work. I had the same
> thing you had except I did NOT have the const in the typedef
> definition. Why would the const help ?

Because the standard says so. Basically, when initializing a
reference, you need an lvalue, unless it is a reference to
const. (Strictly speaking, Victor was wrong when he said you
needed a modifiable lvalue: you need an lvalue whose type is not
const, which isn't quite the same thing. Morally, however, if
it's not the same thing, then you're cheating somewhere, and
you're going to have troubles down the road.)

--
James Kanze


== 4 of 4 ==
Date: Mon, Feb 8 2010 3:13 pm
From: James Kanze


On Feb 8, 2:34 pm, Syron <mr.sy...@googlemail.com> wrote:
> Am 08.02.2010 14:40, schrieb Asif Zaidi:
> > On Feb 8, 7:12 am, Victor Bazarov<v.Abaza...@comAcast.net> wrote:
> > [...]

> > Thanks Victor - a few questions though

> > The first option you state: why does it work. I had the same
> > thing you had except I did NOT have the const in the typedef
> > definition. Why would the const help ?

> > The second option you state: that is just a function ptr is
> > it not. It is not a reference to a ptr to a function which
> > is what I want ?

> if a function pointer would not be const, you could do some
> REALLY stupid things like "funcPtr++".

The ++ operator isn't supported on function pointers. But
non-const function pointers do make sense---in fact, why use a
pointer to a function, instead of calling the function directly,
if the pointer is const?

> and as I now think about that, a reference to a const pointer
> does not really make sense, does it?

Yes and no. It's generally simpler to use the pointer directly,
but such references are likely to occur in templates and such.
If you instantiate:
std::vector< int (*)() >
, some of it's functions, like push_back, will take references
to const pointers.

--
James Kanze

==============================================================================
TOPIC: Never seen this usage before
http://groups.google.com/group/comp.lang.c++/t/9a99c229e104389e?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 3:44 pm
From: l h


I'm looking over some C++ code and I came across a class definition
that I don't understand the purpose of. If someone could tell me what
kind of construct this is and its purpose, I'd appreciate it.

class A
{
public:
typedef A Adesc;
typedef B::C<Adesc> B1;
typedef B::D<Adesc> B2;
};

What is the intent of this class of typedefs and what is it used for?

Thanks.

Les

==============================================================================
TOPIC: Classes named CFoo (was Re: Odd Exception Behavior)
http://groups.google.com/group/comp.lang.c++/t/ce3a580936f3cddd?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 5:10 pm
From: Branimir Maksimovic


Jorgen Grahn wrote:
> On Thu, 2010-02-04, none wrote:
>> Alf P. Steinbach wrote:
> ...
>>> * "C"-prefix for a class is a Microsoft-ism, therefore (almost
>>> automatically)
>>> ungood.
>> Guilty as charged. I've been using the "C" prefix since the early days
>> of Visual Studio.
>
> More generally: I see this class CFoo scheme in a lot of postings
> here. Why do people use it, *really*?

I beleive that C is hungarian notation. C stands for "class".

S is for struct, I guess?

Greets

==============================================================================

You received this message because you are subscribed to the Google Groups "comp.lang.c++"
group.

To post to this group, visit http://groups.google.com/group/comp.lang.c++?hl=en

To unsubscribe from this group, send email to comp.lang.c+++unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.c++/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com/?hl=en

[jQuery] is there a way to get events to work in cross window context

In my parent window i got this in the 'onload' function. There is an
HTML iframe element with id='frame'

function init( ) {
iframeElement = document.getElementById('frame')
iframeElement.src='http://childWindowFile.php'

$(iframeElement.contentWindow).bind("LOADED", this, foo)

}
function foo( ) {
alert("I WANT THIS TO WORK");
}


In my child window i got this in the 'onload' function.

funciton init( ) {
...
...
...
$(window).trigger("LOADED");
}

This does not work, but, is there a way to get user-defined-events to
work in a similar, cross-window fashion.

comp.lang.c++ - 25 new messages in 6 topics - digest

comp.lang.c++
http://groups.google.com/group/comp.lang.c++?hl=en

comp.lang.c++@googlegroups.com

Today's topics:

* C++ Workshop Announcement from the NYLUG and NYLXS Mailing Lists - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5899d52668535101?hl=en
* int (*&)() - 7 messages, 4 authors
http://groups.google.com/group/comp.lang.c++/t/889d2547688e2155?hl=en
* Motivation of software professionals - 11 messages, 7 authors
http://groups.google.com/group/comp.lang.c++/t/21a3fdec4dd53e6a?hl=en
* B const * array[ ] in gobal - 4 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/539f80e07ceb283b?hl=en
* Loop generates never-ending sockets and threads, need help debugging - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/bfb43e94d5fe70d1?hl=en
* MultiCharts 5.5 warez download - www.top-tradesoft.com - 1 messages, 1
author
http://groups.google.com/group/comp.lang.c++/t/3763c155c0ef3f5a?hl=en

==============================================================================
TOPIC: C++ Workshop Announcement from the NYLUG and NYLXS Mailing Lists
http://groups.google.com/group/comp.lang.c++/t/5899d52668535101?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 12:10 am
From: Ruben Safir

C++ Syntax

Before exploring how we actually represent data in our C++ programs, I
want to introduce a formal discussion of basic C++ syntax, which, like
data types, doesn't get enough attention in most standardized texts.

All programming languages require syntax rules in order for the
compilers, to parse and create working machine code. These syntax rules
require basic understanding of core components. These components include
files, structure, statements, data and operators.

Starting from the top, first you have files, and files usually have naming
rules. C++ inherits from C nearly all the file structures, and actually
requires a greater knowledge in more detail and at an earlier level of
expertise. C++, because of its object oriented design depends heavely on
library creation. In fact, even for beginners, most of your work happens
on the library level.

All C programs inherit from the Unix enviroment, which co-developed with
C, the need for an initiation of the main function definition. All C
programs start with main, and main will then absorb and use all other
parts of the systems libraries and programming to produce your completed
program. Main is located in your upper most programming file.

Standard Programming Files: A standard programming file is when the top
most programming will take place. In the C language, most of your code,
espeically as a beginner takes place in this file. Most commonly these
files have a suffix of either .cc oro .C. file.C for example is a
standard C++ File name.

A standard programming file will have several components:

1) Include Prepocessor Directives - These import header files and define
the definitions of the symbols which your not spontaneously creating,
that your program will use.

And include directive might look like this:

#include <iostream>

Which tells the compiler to load up the defintions of all the functions
and objects defined in the iostream library.

Standard C++ libraries are included using the angle blacket notions as
above.They are search for by your compiler in a set of standard locations
which are defined by your compiler and programming enviroment (something
I wouldn't mind understanding better on modern Linux and GNU enviroments).

If you use the syntax

#include "myheader"

with double quotes, the compiler will look for these headers in the local
directory.

C libraries are accessable in C++ and can either have a standard C
language notion

#include <assert.h>
#include <stdio.h>
***Note the .h suffix being included***
or use the C++ version

#include <casset>
#include <cstdio>


2) Macro and other Prepocessor Compiler Directives - Help set up
conditions in which libraries and header files are brought into your
program to help prevent duplication and to create different versions of
a program as might be needed for differing architecture or conditions.

The list of Preprocessor Directives are as follows:
#define

[jQuery] [Autocomplete] Problem with unordered multiple words

Hello,

I'm using the bassistance version of autocomplete.

What I'd like to do, is getting my initial list filtered even if I add
words unordered :

If I type "Marc", I will get a list of [Abb Marc, Trp Marc, Thx Marc]
If I keep writing "Marc Ab.." by instance, the list dissapears because
it's not in the right order.

If I use multiple = true, It seems I get a new list with all the "Abb"
in it, but I only want "Abb Marc".

I'd like to do something like http://www.hotels.com/

Is it possible ?

[jQuery] jqGrid emptyrecords

Hello,
I cant seem to get this parameter to work. In the docs it says to make
sure that viewrecords is set to true which I have done. I have
searched Google and this group and found nothing.

This is the JSON that is returned from my service:

{"total":0,"page":"1","records":0,"rows":[]}

This is my base definition:

jQuery.extend(jQuery.jgrid.defaults,{
emptyrecords: "No records retrieved",
viewrecords: true
}
);

Here is one of my grid definitions:

jQuery('#service_list').jqGrid({
url: '/subscribers/get_services',
mtype: 'POST',
datatype: 'json',
postData: {
colOrder: 'ServiceName,Rate'
},
colModel: [{
label: 'Service',
name: 'ServiceName',
index: 'ServiceName',
sortable: false
}, {
label: 'Rate',
name: 'Rate',
index: 'Rate',
sortable: false,
align: 'right'
}],
pager: jQuery('#pager'),
rowNum: 20,
rowList: [10, 20, 30],
sortname: 'title',
sortorder: 'asc',
autowidth: true,
height: 'auto'
});

Thanks for any help.
Steve

[jQuery] Re: Problem with a simple dropdown menu: it keeps collapse??

oh, and i am trying to use the hoverflow plugin. (http://www.
2meter3.de/code/hoverFlow/)

but it assumes you are animating the current div/id

I our case the trigger is another div. but this doesn't work

$("#nav-container").hover(function(e) {
$("#dropmenu").hoverFlow(e.type, {top:100},
'fast');
}, function() {
$("#dropmenu").hoverFlow(e.type, {top:0},
'fast');

});

[jQuery] Re: Problem with a simple dropdown menu: it keeps collapse??

Hi Chris,

Tx for thinking along / posting the code ;)

I think i am almost there, but the menu doesn't stop when you quickly
hover it continues to drop down and up.

I tested with
$("#nav-container").hover(function() {
$("#dropmenu").stop().slideToggle("fast");
}, function() {
$("#dropmenu").slideToggle("fast");
});

and
$("#nav-container").hover(function() {
$("#dropmenu").stop().slideToggle("fast");
}, function() {
$("#dropmenu").stop().slideToggle("fast");
});

But that also gives a strange effect, the dropmenu doesn't show up at
all when you quickly hover.

Any suggestions?

comp.lang.c++ - 22 new messages in 11 topics - digest

comp.lang.c++
http://groups.google.com/group/comp.lang.c++?hl=en

comp.lang.c++@googlegroups.com

Today's topics:

* This one seem silent on this too - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/0bb66ac02fab6d19?hl=en
* Incomplete types and std::vector - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/b0741c38fc15b5f7?hl=en
* Motivation of software professionals - 7 messages, 5 authors
http://groups.google.com/group/comp.lang.c++/t/21a3fdec4dd53e6a?hl=en
* C++ and shared objects - 3 messages, 3 authors
http://groups.google.com/group/comp.lang.c++/t/c0dc99feb20c6b5f?hl=en
* vector of Repository* - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/7f611d39b3355ccd?hl=en
* Rolex Watch wholesale (paypal payment) (www.globlepurchase.com) - 1 messages,
1 author
http://groups.google.com/group/comp.lang.c++/t/fe2724b8f85d9bbc?hl=en
* int (*&)() - 2 messages, 2 authors
http://groups.google.com/group/comp.lang.c++/t/889d2547688e2155?hl=en
* Paypal payment Discount Wholesale/Retail Gucci Shoes GUCCI Boots LV Shoes LV
Boots D&G shoes UGG boots etc BRAND shoes - 1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/68527c5fea45a8c6?hl=en
* MySQL connector/driver behaviour with Visual C++ CLR/CLI project - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/738ca35dc8623177?hl=en
* Paypal payment Discount Wholesale/Retail LV,Paket,Rolex,Omega,RADO,Armani ,
Hermes,GUCCI ,Chanel,D&G,Burberry etc BRAND watches(www.globlepurchase.com) -
1 messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/a494775f6e50fff4?hl=en
* C++ Workshop Announcement from the NYLUG and NYLXS Mailing Lists - 1
messages, 1 author
http://groups.google.com/group/comp.lang.c++/t/5899d52668535101?hl=en

==============================================================================
TOPIC: This one seem silent on this too
http://groups.google.com/group/comp.lang.c++/t/0bb66ac02fab6d19?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 3:29 pm
From: "**Group User**"


On Feb 8, 6:27 am, "**Group User**" <imuaple...@gmail.com> wrote:
> So it seems
will this lesson plzzzz

==============================================================================
TOPIC: Incomplete types and std::vector
http://groups.google.com/group/comp.lang.c++/t/b0741c38fc15b5f7?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, Feb 7 2010 3:29 pm
From: "Alf P. Steinbach"


* James Kanze:
> On Feb 4, 11:07 pm, "Leigh Johnston" <le...@i42.co.uk> wrote:
>>> I've doubtlessly read it, but I'm not convinced. I repeat:
>>> what does std::auto_ptr buy you, compared to a raw pointer?
>
>> std::auto_ptr buys you ownership semantics with RAII (no
>> memory leak if exception is thrown during construction of
>> class owning the pimpl object). The alternative is to write
>> your own version of something similar to std::auto_ptr but why
>> bother? I will use unique_ptr instead when it is available.
>
> Sorry, but that's just false. Whether you use auto_ptr or a raw
> pointer changes absolutely nothing during construction.

I think Leigh is referring to something like

Foo::Foo()
: myImpl( std::auto_ptr<Impl>( new Impl ) )
{
// Statement X that might trow
}

If X throws then statements in ~Foo are not executed.

However, the smart pointer ensures that the Impl instance is deleted.

This avoids doing silly things like

Foo::Foo()
{
std::auto_ptr<Impl> pImpl( new Impl );

myImpl = pImpl.get();
// Statement X that might throw
pImpl.release();
}

or even worse with try-catch.

A main catch is that one is using knowledge of how a std::auto_ptr is usually
implemented in order to create code that will work in practice in spite of
formally Undefined Behavior, which is a bit fragile...

And really, what's used is not std::auto_ptr's ownership transfer semantics, but
just its RAII cleanup.

And so even the simplest of the simplest RAII cleanup class would do as a
well-defined substitute, e.g.

template< typename T >
struct AutoDestroyed
{
T* p;

~AutoDestroyed() { destroy( p ); } // Define 'destroy' per type T.
AutoDestroyed( T* const p_ ): p(p_) {}

AutoDestroyed( AutoDestroyed const& );
AutoDestroyed& operator=( AutoDestroyed const& );
};


>> It is silly saying a <memory> dependency is undesirable.
>
> It's not really a big point, but why add the dependency if it
> doesn't buy you anything.

See above.


Cheers,

- Alf


== 2 of 2 ==
Date: Sun, Feb 7 2010 3:36 pm
From: "Leigh Johnston"


"James Kanze" <james.kanze@gmail.com> wrote in message
news:4db3fe66-d76b-45f1-8924-d70549373c1a@j31g2000yqa.googlegroups.com...
> On Feb 4, 11:07 pm, "Leigh Johnston" <le...@i42.co.uk> wrote:
>> > I've doubtlessly read it, but I'm not convinced. I repeat:
>> > what does std::auto_ptr buy you, compared to a raw pointer?
>
>> std::auto_ptr buys you ownership semantics with RAII (no
>> memory leak if exception is thrown during construction of
>> class owning the pimpl object). The alternative is to write
>> your own version of something similar to std::auto_ptr but why
>> bother? I will use unique_ptr instead when it is available.
>
> Sorry, but that's just false. Whether you use auto_ptr or a raw
> pointer changes absolutely nothing during construction.
>

It is not false, auto_ptr gives you RAII. Assigning to a raw pointer the
result of new in a ctor-initializer list is not using RAII and can leak if
subsequent ctor code throws an exception. Perhaps pimpl is the wrong term
here, it is the method by which you can reduce the number of #includes in
your code:

struct foo;
struct bar;
struct baz;
struct model
{
/* ... */
std::auto_ptr<foo> fooObject;
std::auto_ptr<bar> barObject;
std::auto_ptr<baz> bazObject;
};

We don't want users who #include "model.h" to be forced to include foo.h,
bar.h and baz.h unless they are interested in such objects.

pimpl idiom is a special case of the above using just one object instead of
N objects with a more restrictive header file policy (i.e. pimpl class will
usually only be seen by the TU containing the pimpl parent class).

/Leigh


==============================================================================
TOPIC: Motivation of software professionals
http://groups.google.com/group/comp.lang.c++/t/21a3fdec4dd53e6a?hl=en
==============================================================================

== 1 of 7 ==
Date: Sun, Feb 7 2010 3:33 pm
From: James Kanze


On Feb 5, 12:23 pm, Richard Cornford <Rich...@litotes.demon.co.uk>
wrote:
> On Feb 5, 11:19 am, Stefan Kiryazov wrote:

> > I am doing a research about motivation in software
> > development, the most efficient practices to motivate
> > software engineers, their popularity, etc.

> Strange question; the most efficient motivator of
> professionals is money, and money is very popular.

Yes and no. Obviously, money plays a role---some of us have
expensive habits, like eating regularly, that have to be paid
for. But it has its limits, and I've rarely seen money alone
motivate the best performance (in anything).

--
James Kanze


== 2 of 7 ==
Date: Sun, Feb 7 2010 3:35 pm
From: James Kanze


On Feb 5, 12:39 pm, Anthony Williams <anthony....@gmail.com> wrote:
> Richard Cornford <Rich...@litotes.demon.co.uk> writes:
> > On Feb 5, 11:19 am, Stefan Kiryazov wrote:

> >> I am doing a research about motivation in software
> >> development, the most efficient practices to motivate
> >> software engineers, their popularity, etc.

> > Strange question; the most efficient motivator of
> > professionals is money, and money is very popular.

> Whilst people like money, it's not necessary the most
> efficient motivator. Developers also like interesting,
> challenging, varied work, work with new technologies, flexible
> hours, freedom to do what they feel is technically best
> without being hampered by management dictat and many other
> things.

Amongst other things. Two of the most important motivaters are
peer approval and admiration, and personal satisfaction with the
results.

--
James Kanze


== 3 of 7 ==
Date: Sun, Feb 7 2010 3:43 pm
From: James Kanze


On Feb 5, 3:14 pm, Patricia Shanahan <p...@acm.org> wrote:

[...]
> That said, by definition professionals are, to some extent, in
> it for the money. If they were not, they would be amateurs as
> I am now. How that is balanced against interesting work,
> physical working conditions, status, etc. varies.

I'm not sure if the word "professional" has the same conotations
in English as it does in French, but from the French meaning, I
don't think you can be truely a "professional" if you're only in
it for the money. "Professional" implies being paid for what
you do, but it also implies a certain degree of personal
standards with regards to quality and such---a "professional"
will take pride in his work.

--
James Kanze


== 4 of 7 ==
Date: Sun, Feb 7 2010 4:25 pm
From: "Alf P. Steinbach"


* James Kanze:
> On Feb 5, 12:39 pm, Anthony Williams <anthony....@gmail.com> wrote:
>> Richard Cornford <Rich...@litotes.demon.co.uk> writes:
>>> On Feb 5, 11:19 am, Stefan Kiryazov wrote:
>
>>>> I am doing a research about motivation in software
>>>> development, the most efficient practices to motivate
>>>> software engineers, their popularity, etc.
>
>>> Strange question; the most efficient motivator of
>>> professionals is money, and money is very popular.
>
>> Whilst people like money, it's not necessary the most
>> efficient motivator. Developers also like interesting,
>> challenging, varied work, work with new technologies, flexible
>> hours, freedom to do what they feel is technically best
>> without being hampered by management dictat and many other
>> things.
>
> Amongst other things. Two of the most important motivaters are
> peer approval and admiration, and personal satisfaction with the
> results.

I agree.

But strangely, one thing that motivates me is apparent peer disapproval. For in
many social environments (last week or so there was a damning report about this
kind of environment at the University of Oslo, happily I'm not there) the art of
put-down'ing and dissing is key to personal success. When someone else does
something really good then put-down'ing becomes necessary and the default
response. Thus, when I get critique that has more emotional impact than
technical I concentrate on the technical points. Then, interpreting those more
technical points in a kind of inverse-picture way, I know what's good.

Of course, that's part of the personal satisfaction motivation, but I think it's
interesting that personal satisfaction, knowing that you've created something
good, in some/many environments can be directly incompatible with peer approval.

And for me personal satisfaction weights more.

Peer approval would in most cases just say that I'm conforming, which is not
something that I'd be proud of; it's something I strive to avoid. But in some
cases approval is really nice. E.g., a few times you've stated that I'm pretty
good, or words to that effect, which coming from someone that one respects is
uplifting in a way; likewise, once, many years ago, I had a dispute with one
very well-known C++ expert over in clc++m and wrote some things that I really
shouldn't have, the mod apologized for accepting the article by saying that he
didn't read closely because it was two "C++ experts" discussing things, and that
helped much, otherwise I might have stopped posting... :-)


Cheers,

- Alf


== 5 of 7 ==
Date: Sun, Feb 7 2010 3:44 pm
From: yf110@vtn1.victoria.tc.ca (Malcolm Dew-Jones)


James Kanze (james.kanze@gmail.com) wrote:
: On Feb 5, 3:14 pm, Patricia Shanahan <p...@acm.org> wrote:

: [...]
: > That said, by definition professionals are, to some extent, in
: > it for the money. If they were not, they would be amateurs as
: > I am now. How that is balanced against interesting work,
: > physical working conditions, status, etc. varies.

: I'm not sure if the word "professional" has the same conotations
: in English as it does in French, but from the French meaning, I
: don't think you can be truely a "professional" if you're only in
: it for the money. "Professional" implies being paid for what
: you do, but it also implies a certain degree of personal
: standards with regards to quality and such---a "professional"
: will take pride in his work.

In English also, "professional" implies "a certain degree of personal
standards with regards to quality and such".

As with many words the different facets of its meaning can appear to be
both ambiguous and contradictory, but I think that in the long run being
"professional" in the sense of earning money requires "professional"ism in
behaviour (and vice versa), so ultimately the meaings do not conflict
(even though they can in the short term).

$0.10


== 6 of 7 ==
Date: Sun, Feb 7 2010 6:18 pm
From: Dirk Bruere at NeoPax


MarkusSchaber wrote:
> On 5 Feb., 13:23, Richard Cornford <Rich...@litotes.demon.co.uk>
> wrote:
>> On Feb 5, 11:19 am, Stefan Kiryazov wrote:
>>
>>> Hi all,
>>> I am doing a research about motivation in software development,
>>> the most efficient practices to motivate software engineers,
>>> their popularity, etc.
>> Strange question; the most efficient motivator of professionals is
>> money, [...]
>
> This was proven wrong by Science. Read Bruce Eckels excellent blog
> entries about this topic, he always references relliable sources on
> this subject.

Depends.
Right now I am primarily motivated by money, or at least the lack of it.

--
Dirk

http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.blogtalkradio.com/onetribe - Occult Talk Show


== 7 of 7 ==
Date: Sun, Feb 7 2010 11:15 pm
From: MarkusSchaber


Hi, Dirk,

On 8 Feb., 03:18, Dirk Bruere at NeoPax <dirk.bru...@gmail.com> wrote:
> >>> I am doing a research about motivation in software development,
> >>> the most efficient practices to motivate software engineers,
> >>> their popularity, etc.
> >> Strange question; the most efficient motivator of professionals is
> >> money, [...]
> > This was proven wrong by Science. Read Bruce Eckels excellent blog
> > entries about this topic, he always references relliable sources on
> > this subject.
> Depends.
> Right now I am primarily motivated by money, or at least the lack of it.

I won't dispute that money is a motivator, but it is not the most
efficient motivator. The more money you pay, the more you will attract
those developers which are purely after the money, and not the really
good ones. For the latter ones, a certain level on the paycheck is
enough to give attention to fun, excitement, atmosphere and such
factors.

==============================================================================
TOPIC: C++ and shared objects
http://groups.google.com/group/comp.lang.c++/t/c0dc99feb20c6b5f?hl=en
==============================================================================

== 1 of 3 ==
Date: Sun, Feb 7 2010 4:14 pm
From: Phoenix87


Hallo everybody

I want to build some shared libraries from C++ code defining classes
because I want to load them dynamically in programs that need that
classes. I've read about dlopen and co., which require the
implementation of factory procedures in order to dynamically allocate
class instances from the loaded shared object. Is there an alternative
way to dynamically load classes in C++ programs? I mean something
which allows to instantiate new class instances with new keyword
etc...Basically my question is quite the same thing as asking how the
STL, or the CERN ROOT libraries work.

Thanks in advice!

Gab.


== 2 of 3 ==
Date: Sun, Feb 7 2010 6:33 pm
From: tonydee


On Feb 8, 9:14 am, Phoenix87 <phoenix1...@gmail.com> wrote:
> I want to build some shared libraries from C++ code defining classes
> because I want to load them dynamically in programs that need that
> classes. I've read about dlopen and co., which require the
> implementation of factory procedures in order to dynamically allocate
> class instances from the loaded shared object. Is there an alternative
> way to dynamically load classes in C++ programs? I mean something
> which allows to instantiate new class instances with new keyword
> etc...Basically my question is quite the same thing as asking how the
> STL, or the CERN ROOT libraries work.

Using "new" (or creating an object on the stack) requires knowledge of
the object's size. For non-polymorphic objects, this is perfectly
possible without factories and polymorphism. But, just as in library
code that's not compiled into a shared object, if you want the library
to be able to vary the object size without needing the application to
be recompiled then you need to do something extra. Techniques such as
the pImpl idiom and run-time polymorphism / factories defer the memory
allocation to the shared object's code. You could plausibly have the
shared object report the size requirements back to the application, so
it can allocate memory using new, alloca etc., but that would be an
even more roundabout way of doing it.

The STL is quite different in that it's a template library...
everything is in the headers and they're instantiated as needed per
translation unit, with redundant instantiations removed at link time.
There is no shared library object involved. Same goes for most of
BOOST. I'm not familiar with CERN ROOT....

Cheers,
Tony


== 3 of 3 ==
Date: Sun, Feb 7 2010 10:46 pm
From: Robert Fendt


And thus spake Phoenix87 <phoenix1987@gmail.com>
Sun, 7 Feb 2010 16:14:50 -0800 (PST):

> I want to build some shared libraries from C++ code defining classes
> because I want to load them dynamically in programs that need that
> classes. I've read about dlopen and co., which require the
> implementation of factory procedures in order to dynamically allocate
> class instances from the loaded shared object. Is there an alternative
> way to dynamically load classes in C++ programs? I mean something
> which allows to instantiate new class instances with new keyword
> etc...Basically my question is quite the same thing as asking how the
> STL, or the CERN ROOT libraries work.

STL is a template framework. It therefore does not consist of
any runtime libraries apart from the C standard stuff
underneath. I do not know how ROOT works, but at first glance it
looks like just any other library to me. Which means that there
is no 'dynamic' stuff involved, at least not for the basics.

In order for a direct 'new' to work, the class definition has to
be available (header file) as well as the object files
containing all non-inline functions. So you just can build a
shared library of your stuff and use it for regular compiling
and linking against. In this case, the system's runtime
facilities will do the loading of the dynamic library for you at
program startup. This is straight-forward, and I do not
interpret your question in that direction. You seem to think
about dynamic loading rather than dynamic linking.

Dynamic loading means that you load something your compiler did
not know about. If you look at the specifications of dlopen()
and such (the Windows equivalents have similar restrictions),
you will find that the framework just allows for retrieval of
unmangled (i.e. plain C) symbols. This works for constants and
for function pointers (although the ability to retrieve a
function pointer directly through dlsym() is technically a
non-standard compiler extension, albeit a popular one).

Long story short: you really can only get a pointer to a factory
function by using dlsym() (POSIX) or GetProcAddress() (Windows).
There is no way around it, just live with it. Loading C++
classes directly would involve all sorts of pains and hassles,
not to mention a change to the C++ specifications, and since at
least POSIX does not deal with C++ anyway, dlsym() will not be
changed in the near future. I do not know about Microsofts's
plans for VC and GetProcAddress, but I would be surprised.

Regards,
Robert


==============================================================================
TOPIC: vector of Repository*
http://groups.google.com/group/comp.lang.c++/t/7f611d39b3355ccd?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, Feb 7 2010 7:15 pm
From: "Alf P. Steinbach"


* forums_mp@hotmail.com:
> Consider:
>
> # include<iostream>
> # include<vector>
>
> class CBase {

Consider omitting the "C" prefix for class names. E.g., instead of "CLaw", use
"Law", and instead of "CLick", just "Lick", and instead of "CLamp", just "Lamp".
Then you can talk and think about a "Law" and a "Lick" and a "Lamp" instead of a
"CLaw" and a "CLick" and a "CLamp" (not to mention "Lit" and "Luster").


> public :
> virtual ~CBase() {}
> };
> class CDerived1 : public CBase {
> public :
> };
> class CDerived2 : public CBase {
> public :
> };
> // etc.
>
> //later
> class Worker {
> CDerived1 cd1 ;
> unsigned int CDerived1Counter ;
> bool CDerived1Flag ;
> unsigned int CDerived1ID ;
>
> CDerived2 cd2 ;
> unsigned int CDerived2Counter ;
> bool CDerived2Flag ;
> unsigned CDerived2ID ;
> /// etc
>
> public :
>
> };

For this consider templates.

template< class T >
struct Blah
{
T obj;
bool flag;
int id;
};

class Worker
{
Blah<Derived1> d1;
Blah<Derived2> d2;
...
};


> The worker class has a ID, a Flag and a counter for each derived
> type. An approach that in my view is just silly. So I decided to
> create a repository.
>
>
>
> struct Repository {
> CBase *ptr;
> unsigned int Counter ;
> bool Flag ;
> unsigned int ID ;
>
> Repository ( CBase *ptr_, int BaseClassID )
> : ptr ( ptr_ )
> , Counter ( 0 )
> , Flag ( false )
> , ID ( BaseClassID )
> {}
> };
>
> typedef std::vector < Repository* > REPOSITORY_VEC ;
> class RevisedWorker {
> static REPOSITORY_VEC rep_vec ;

First, making that "static" means all instances share the same "rep_vec".

That's inconsistent with the earlier original "Worker".

Second, it's generally regarded as best practice to reserve all uppercase names
for macros (except for some few idiomatic usages such as for template params).


> public :
> RevisedWorker ()
> {
> rep_vec.push_back ( new Repository ( new CDerived2, 0x400 ) ) ;
> rep_vec.push_back ( new Repository ( new CDerived1, 0x300 ) ) ;
>
> // would be nice if i could do.. or perhaps use a map
> //rep_vec.add ( new Repository ( new CDerived2, 0x4000 ) )
> // .add ( new Repository ( new CDerived1, 0x300 ) ) );
> }
> };
>
> REPOSITORY_VEC RevisedWorker::rep_vec;
>
> int main() {
> RevisedWorker rw;
> std::cin.get();
> }
> At issue: 'new' Repository 'new' CDerivedXX looks unsightey but I'm
> not of a reasonable workaround. Ideas? Thanks in advance.

See above, but also keep in mind that you could just make that a vector of
"Repository", not "Repository*".


Cheers & hth.,

- Alf


== 2 of 2 ==
Date: Sun, Feb 7 2010 7:52 pm
From: forums_mp@hotmail.com


On Feb 7, 10:15 pm, "Alf P. Steinbach" <al...@start.no> wrote:

> > class CBase {
>
> Consider omitting the "C" prefix for class names. E.g., instead of "CLaw", use
> "Law", and instead of "CLick", just "Lick", and instead of "CLamp", just "Lamp".
> Then you can talk and think about a "Law" and a "Lick" and a "Lamp" instead of a
> "CLaw" and a "CLick" and a "CLamp" (not to mention "Lit" and "Luster").

The ironic thing about this is the 'C' prefix is a requirement from my
company's coding standards. I have two choise though. CFoo or
C_Foo.

>
> For this consider templates.
>
>    template< class T >
>    struct Blah
>    {
>        T     obj;
>        bool  flag;
>        int   id;
>    };
>
>    class Worker
>    {
>        Blah<Derived1>    d1;
>        Blah<Derived2>    d2;
>        ...
>    };
>

>
> See above, but also keep in mind that you could just make that a vector of
> "Repository", not "Repository*".

Ahhhh! I see.. Not sure I often think the a vector of pointers (I
think I read that somewhere) would be ideal here. I'm away from my
compiler right now but I suspect I should be able to get away with.

typedef std::vector < blah < Base > > base_vec ;
base_vec bv ;
bv.push_back ( blah < Derived1 > ) ;
True?

Thanks Alf

==============================================================================
TOPIC: Rolex Watch wholesale (paypal payment) (www.globlepurchase.com)
http://groups.google.com/group/comp.lang.c++/t/fe2724b8f85d9bbc?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 7:43 pm
From: brandtrade


Ebel Watch wholesale (paypal payment) (www.globlepurchase.com)
Bape Watch wholesale (paypal payment) (www.globlepurchase.com)
Bell&Ross Watch wholesale (paypal payment) (www.globlepurchase.com)
Breit Ling Watch wholesale (paypal payment) (www.globlepurchase.com)
Burberry Watch wholesale (paypal payment) (www.globlepurchase.com)
Cartier Watch wholesale (paypal payment) (www.globlepurchase.com)
Chopard Watch wholesale (paypal payment) (www.globlepurchase.com)
D&G Watch wholesale (paypal payment) (www.globlepurchase.com)
Givenchy Watch wholesale (paypal payment) (www.globlepurchase.com)
Jacob&Co Watch wholesale (paypal payment) (www.globlepurchase.com)
Kappa Watch wholesale (paypal payment) (www.globlepurchase.com)
Prada Watch wholesale (paypal payment) (www.globlepurchase.com)
Tissot Watch wholesale (paypal payment) (www.globlepurchase.com)
Titoni Watch wholesale (paypal payment) (www.globlepurchase.com)
U-BOAT Watch wholesale (paypal payment) (www.globlepurchase.com)
Zenith Watch wholesale (paypal payment) (www.globlepurchase.com)
A.Lange&Sohne Watch wholesale (paypal payment)
(www.globlepurchase.com)
Audemars Piguet Watch wholesale (paypal payment)
(www.globlepurchase.com)
Baume&Mercier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Blancpain Watch wholesale (paypal payment) (www.globlepurchase.com)
Breguet Watch wholesale (paypal payment) (www.globlepurchase.com)
BRM Watch wholesale (paypal payment) (www.globlepurchase.com)
Bvlgari Watch wholesale (paypal payment) (www.globlepurchase.com)
Chanel Watch wholesale (paypal payment) (www.globlepurchase.com)
Concord Watch wholesale (paypal payment) (www.globlepurchase.com)
Corum Watch wholesale (paypal payment) (www.globlepurchase.com)
Dewitt Watch wholesale (paypal payment) (www.globlepurchase.com)
Ferrari Watch wholesale (paypal payment) (www.globlepurchase.com)
Franck Muller Watch wholesale (paypal payment)
(www.globlepurchase.com)
Girard Perregaux Watch (paypal payment) (www.globlepurchase.com)
Glashutte Watch (paypal payment) (www.globlepurchase.com)
Graham Watch wholesale (paypal payment) (www.globlepurchase.com)
GUCCI Watch wholesale (paypal payment) (www.globlepurchase.com)
GUESS Watch wholesale (paypal payment) (www.globlepurchase.com)
Hamilton Watch wholesale (paypal payment) (www.globlepurchase.com)
Hermes Watch wholesale (paypal payment) (www.globlepurchase.com)
Hublot Watch wholesale (paypal payment) www.globlepurchase.com)
IWC Watch wholesale (paypal payment) (www.globlepurchase.com)
Jaeger Le Coultre Watch wholesale (paypal payment)
(www.globlepurchase.com)
Longines Watch wholesale (paypal payment) (www.globlepurchase.com)
LV Watch wholesale (paypal payment) (www.globlepurchase.com)
Montblanc Watch wholesale (paypal payment) (www.globlepurchase.com)
Movado Watch wholesale (paypal payment) (www.globlepurchase.com)
Omega Watch wholesale (paypal payment) (www.globlepurchase.com)
Oris Watch wholesale (paypal payment) (www.globlepurchase.com)
Paket Philippe Watch wholesale (paypal payment)
(www.globlepurchase.com)
Panerai Watch wholesale (paypal payment) (www.globlepurchase.com)
Parmigiani Fleurier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Piaget Watch wholesale (paypal payment) (www.globlepurchase.com)
Porsche Design Watch wholesale (paypal payment)
(www.globlepurchase.com)
Rolex Watch wholesale (paypal payment) (www.globlepurchase.com)
Romain Jerome Titanic-Dna Watch wholesale (paypal payment)
(www.globlepurchase.com)
Tag Heuer Watch wholesale (paypal payment) (www.globlepurchase.com)
Tudor Watch wholesale (paypal payment) (www.globlepurchase.com)
Vach.Constantine Watch wholesale (paypal payment)
(www.globlepurchase.com)
Armani Watch wholesale (paypal payment) (www.globlepurchase.com)
RADO Watch wholesale (paypal payment) (www.globlepurchase.com)

paypal wholesale d&g shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale gucci shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale lv shoes (paypal payment)( www.globlepurchase.com)
paypal wholesale NBA shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale nike (paypal payment)(www.globlepurchase.com)
paypal wholesale adidas shoes (paypal payment)
(www.globlepurchase.com)
paypal wholesale UGG shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale bape hoody (paypal payment)(www.globlepurchase.com)
paypal wholesale antick jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale diesel jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale artful dudger (paypal payment)
(www.globlepurchase.com)
paypal wholesale bag(lv gucci coach chanel d&g dior ed fendi )
(paypal payment)( www.globlepurchase.com)
paypal wholesale clothing (paypal payment)(www.globlepurchase.com)
paypal wholesale lrg,jeans,hoody, (paypal payment)
(www.globlepurchase.com)
paypal wholesale evisu jeans,hoody,shirt (paypal payment)
(www.globlepurchase.com)

paypal wholesale Prada (paypal payment)(www.globlepurchase.com)
paypal wholesale Puma (paypal payment)(www.globlepurchase.com)
paypal wholesale Sand (paypal payment)(www.globlepurchase.com)
paypal wholesale Shox (paypal payment)(www.globlepurchase.com)
paypal wholesale soccer (paypal payment)(www.globlepurchase.com)
paypal wholesale UGG (paypal payment)(www.globlepurchase.com)
paypal wholesale Versace (paypal payment)(www.globlepurchase.com)
paypal wholesale Women (paypal payment)(www.globlepurchase.com)
paypal wholesale Y-3 (paypal payment)(www.globlepurchase.com)

==============================================================================
TOPIC: int (*&)()
http://groups.google.com/group/comp.lang.c++/t/889d2547688e2155?hl=en
==============================================================================

== 1 of 2 ==
Date: Sun, Feb 7 2010 7:45 pm
From: Asif Zaidi


What does the syntax in subject line mean - how should I read it.


Thanks

Asif


== 2 of 2 ==
Date: Sun, Feb 7 2010 10:28 pm
From: Syron


Am 08.02.2010 04:45, schrieb Asif Zaidi:
> What does the syntax in subject line mean - how should I read it.
>
>
> Thanks
>
> Asif

if this is a typedef (like 'int(*&func)()') it is a reference to a
pointer to a function that returns an int.

Kind regards, Syron

==============================================================================
TOPIC: Paypal payment Discount Wholesale/Retail Gucci Shoes GUCCI Boots LV
Shoes LV Boots D&G shoes UGG boots etc BRAND shoes
http://groups.google.com/group/comp.lang.c++/t/68527c5fea45a8c6?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 7:50 pm
From: brandtrade


Shox Shoes (paypal payment)(www.globlepurchase.com)
shoes shox shoes (paypal payment)(www.globlepurchase.com)
nike shox shoe (paypal payment)(www.globlepurchase.com)
nike shox shoes (paypal payment)( www.globlepurchase.com )
shox shoe (paypal payment)( www.globlepurchase.com )

LV,coach,chanel boots wholesale (paypal payment)
( www.globlepurchase.com )
air force ones (paypal payment)(www.globlepurchase.com)
nike trading (paypal payment)( www.globlepurchase.com )
nike shox (paypal payment)( www.globlepurchase.com )
shox air (paypal payment)( www.globlepurchase.com)
white shoe (paypal payment)(www.globlepurchase.com )
nike shoe (paypal payment)( www.globlepurchase.com )
nike air shox (paypal payment)( www.globlepurchase.com)
shox r4
tennis shoes (paypal payment)(www.globlepurchase.com )
tennis shoe (paypal payment)( www.globlepurchase.com)
basketball shoe (paypal payment)( www.globlepurchase.com )
jordan shoe (paypal payment)(www.globlepurchase.com)
nike shox 2 (paypal payment)( www.globlepurchase.com)
nike shox ace (paypal payment)( www.globlepurchase.com)
men's shoe (paypal payment)( www.globlepurchase.com )
buy shoe (paypal payment)( www.globlepurchase.com)
adidas shoe (paypal payment)( www.globlepurchase.com )
kids shoe (paypal payment)( www.globlepurchase.com )
buy shoes (paypal payment)( www.globlepurchase.com )
puma shoe (paypal payment)(www.globlepurchase.com )
converse shoe (paypal payment)( www.globlepurchase.com )
shoes sale (paypal payment)(www.globlepurchase.com)
running shoes women (paypal payment)(www.globlepurchase.com )
adidas running shoes (paypal payment)( www.globlepurchase.com )
Ugg shoes wholesale (paypal payment)(www.globlepurchase.com)
ugg shoes (paypal payment)(www.globlepurchase.com )
Footwear (paypal payment)( www.globlepurchase.com)
Paul Smith shoes (paypal payment)( www.globlepurchase.com )
Jordan shoes (paypal payment)(www.globlepurchase.com )
Bape shoes (paypal payment)( www.globlepurchase.com)
Chanel shoes (paypal payment)(www.globlepurchase.com )
D&G shoes (paypal payment)( www.globlepurchase.com )
Dior shoes (paypal payment)( www.globlepurchase.com)
ED hardy shoes (paypal payment)( www.globlepurchase.com)
Evisu shoes (paypal payment)(www.globlepurchase.com)
Fendi shoes (paypal payment)( www.globlepurchase.com )
Gucci shoes `(paypal payment)( www.globlepurchase.com )
Hogan shoes (paypal payment)( www.globlepurchase.com )
Lv shoes (paypal payment)(www.globlepurchase.com )
Prada shoes (paypal payment)( www.globlepurchase.com )
Timberland shoes (paypal payment)( www.globlepurchase.com )
Tous shoes (paypal payment)( www.globlepurchase.com )
Ugg shoes (paypal payment)(www.globlepurchase.com)
Ice cream shoes (paypal payment)( www.globlepurchase.com )
Sebago shoes (paypal payment)( www.globlepurchase.com )
Lacoste shoes (paypal payment)( www.globlepurchase.com)
Air force one shoes (paypal payment)( www.globlepurchase.com )
TODS shoes (paypal payment)( www.globlepurchase.com)
AF shoes (paypal payment)( www.globlepurchase.com)

paypal wholesale d&g shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale gucci shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale lv shoes (paypal payment)( www.globlepurchase.com)
paypal wholesale NBA shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale nike (paypal payment)(www.globlepurchase.com)
paypal wholesale adidas shoes (paypal payment)
(www.globlepurchase.com)
paypal wholesale UGG shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale bape hoody (paypal payment)(www.globlepurchase.com)
paypal wholesale antick jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale diesel jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale artful dudger (paypal payment)
(www.globlepurchase.com)
paypal wholesale bag(lv gucci coach chanel d&g dior ed fendi )
(paypal payment)( www.globlepurchase.com)
paypal wholesale clothing (paypal payment)(www.globlepurchase.com)
paypal wholesale lrg,jeans,hoody, (paypal payment)
(www.globlepurchase.com)
paypal wholesale evisu jeans,hoody,shirt (paypal payment)
(www.globlepurchase.com)

paypal wholesale Prada (paypal payment)(www.globlepurchase.com)
paypal wholesale Puma (paypal payment)(www.globlepurchase.com)
paypal wholesale Sand (paypal payment)(www.globlepurchase.com)
paypal wholesale Shox (paypal payment)(www.globlepurchase.com)
paypal wholesale soccer (paypal payment)(www.globlepurchase.com)
paypal wholesale UGG (paypal payment)(www.globlepurchase.com)
paypal wholesale Versace (paypal payment)(www.globlepurchase.com)
paypal wholesale Women (paypal payment)(www.globlepurchase.com)
paypal wholesale Y-3 (paypal payment)(www.globlepurchase.com)

==============================================================================
TOPIC: MySQL connector/driver behaviour with Visual C++ CLR/CLI project
http://groups.google.com/group/comp.lang.c++/t/738ca35dc8623177?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 8:01 pm
From: 0


On Feb 2, 10:48 pm, 0 <jeffrey.whites...@gmail.com> wrote:
> Hello. i'm having an issue getting the MySQL connector/driver to
> behave proberly with a Visual C++ CLR/CLI project....  my issue is
> best described by this screen capture:http://img97.imageshack.us/i/mysqlissue.jpg/
>
> The host name that MySQL is trying to resolve is a series of strange
> characters.... certainly not the "string" that is passed into the
> connector function.  The exception handler is saying: Unknown MySQL
> server host 'U‹ìWVS ì  ' (11004)... clearly it is not trying to
> connect to tcp://bluetech
>
> Has anyone see this?  Could it have to do with language/character sets
> or something?  I've already tried: this->con = this->driver->connect
> (L"tcp://bluetech:3306",L"SC",L"SC");  but, the connect function is
> looking for a std::string.
>
> Can someone please help me?
>
> Thanks!

just a follow up here. i used the .NET version of the MySQL
connector. that seemed to do the trick! the .NET connector uses the
System::String as the inbound parameters. this eliminates all the
language/character issues.

cheers

==============================================================================
TOPIC: Paypal payment Discount Wholesale/Retail LV,Paket,Rolex,Omega,RADO,
Armani ,Hermes,GUCCI ,Chanel,D&G,Burberry etc BRAND watches(www.globlepurchase.
com)
http://groups.google.com/group/comp.lang.c++/t/a494775f6e50fff4?hl=en
==============================================================================

== 1 of 1 ==
Date: Sun, Feb 7 2010 8:35 pm
From: globaltrade


Ebel Watch wholesale (paypal payment) (www.globlepurchase.com)
Bape Watch wholesale (paypal payment) (www.globlepurchase.com)
Bell&Ross Watch wholesale (paypal payment) (www.globlepurchase.com)
Breit Ling Watch wholesale (paypal payment) (www.globlepurchase.com)
Burberry Watch wholesale (paypal payment) (www.globlepurchase.com)
Cartier Watch wholesale (paypal payment) (www.globlepurchase.com)
Chopard Watch wholesale (paypal payment) (www.globlepurchase.com)
D&G Watch wholesale (paypal payment) (www.globlepurchase.com)
Givenchy Watch wholesale (paypal payment) (www.globlepurchase.com)
Jacob&Co Watch wholesale (paypal payment) (www.globlepurchase.com)
Kappa Watch wholesale (paypal payment) (www.globlepurchase.com)
Prada Watch wholesale (paypal payment) (www.globlepurchase.com)
Tissot Watch wholesale (paypal payment) (www.globlepurchase.com)
Titoni Watch wholesale (paypal payment) (www.globlepurchase.com)
U-BOAT Watch wholesale (paypal payment) (www.globlepurchase.com)
Zenith Watch wholesale (paypal payment) (www.globlepurchase.com)
A.Lange&Sohne Watch wholesale (paypal payment)
(www.globlepurchase.com)
Audemars Piguet Watch wholesale (paypal payment)
(www.globlepurchase.com)
Baume&Mercier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Blancpain Watch wholesale (paypal payment) (www.globlepurchase.com)
Breguet Watch wholesale (paypal payment) (www.globlepurchase.com)
BRM Watch wholesale (paypal payment) (www.globlepurchase.com)
Bvlgari Watch wholesale (paypal payment) (www.globlepurchase.com)
Chanel Watch wholesale (paypal payment) (www.globlepurchase.com)
Concord Watch wholesale (paypal payment) (www.globlepurchase.com)
Corum Watch wholesale (paypal payment) (www.globlepurchase.com)
Dewitt Watch wholesale (paypal payment) (www.globlepurchase.com)
Ferrari Watch wholesale (paypal payment) (www.globlepurchase.com)
Franck Muller Watch wholesale (paypal payment)
(www.globlepurchase.com)
Girard Perregaux Watch (paypal payment) (www.globlepurchase.com)
Glashutte Watch (paypal payment) (www.globlepurchase.com)
Graham Watch wholesale (paypal payment) (www.globlepurchase.com)
GUCCI Watch wholesale (paypal payment) (www.globlepurchase.com)
GUESS Watch wholesale (paypal payment) (www.globlepurchase.com)
Hamilton Watch wholesale (paypal payment) (www.globlepurchase.com)
Hermes Watch wholesale (paypal payment) (www.globlepurchase.com)
Hublot Watch wholesale (paypal payment) www.globlepurchase.com)
IWC Watch wholesale (paypal payment) (www.globlepurchase.com)
Jaeger Le Coultre Watch wholesale (paypal payment)
(www.globlepurchase.com)
Longines Watch wholesale (paypal payment) (www.globlepurchase.com)
LV Watch wholesale (paypal payment) (www.globlepurchase.com)
Montblanc Watch wholesale (paypal payment) (www.globlepurchase.com)
Movado Watch wholesale (paypal payment) (www.globlepurchase.com)
Omega Watch wholesale (paypal payment) (www.globlepurchase.com)
Oris Watch wholesale (paypal payment) (www.globlepurchase.com)
Paket Philippe Watch wholesale (paypal payment)
(www.globlepurchase.com)
Panerai Watch wholesale (paypal payment) (www.globlepurchase.com)
Parmigiani Fleurier Watch wholesale (paypal payment)
(www.globlepurchase.com)
Piaget Watch wholesale (paypal payment) (www.globlepurchase.com)
Porsche Design Watch wholesale (paypal payment)
(www.globlepurchase.com)
Rolex Watch wholesale (paypal payment) (www.globlepurchase.com)
Romain Jerome Titanic-Dna Watch wholesale (paypal payment)
(www.globlepurchase.com)
Tag Heuer Watch wholesale (paypal payment) (www.globlepurchase.com)
Tudor Watch wholesale (paypal payment) (www.globlepurchase.com)
Vach.Constantine Watch wholesale (paypal payment)
(www.globlepurchase.com)
Armani Watch wholesale (paypal payment) (www.globlepurchase.com)
RADO Watch wholesale (paypal payment) (www.globlepurchase.com)

paypal wholesale d&g shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale gucci shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale lv shoes (paypal payment)( www.globlepurchase.com)
paypal wholesale NBA shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale nike (paypal payment)(www.globlepurchase.com)
paypal wholesale adidas shoes (paypal payment)
(www.globlepurchase.com)
paypal wholesale UGG shoes (paypal payment)(www.globlepurchase.com)
paypal wholesale bape hoody (paypal payment)(www.globlepurchase.com)
paypal wholesale antick jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale diesel jeans (paypal payment)
(www.globlepurchase.com)
paypal wholesale artful dudger (paypal payment)
(www.globlepurchase.com)
paypal wholesale bag(lv gucci coach chanel d&g dior ed fendi )
(paypal payment)( www.globlepurchase.com)
paypal wholesale clothing (paypal payment)(www.globlepurchase.com)
paypal wholesale lrg,jeans,hoody, (paypal payment)
(www.globlepurchase.com)
paypal wholesale evisu jeans,hoody,shirt (paypal payment)
(www.globlepurchase.com)

paypal wholesale Prada (paypal payment)(www.globlepurchase.com)
paypal wholesale Puma (paypal payment)(www.globlepurchase.com)
paypal wholesale Sand (paypal payment)(www.globlepurchase.com)
paypal wholesale Shox (paypal payment)(www.globlepurchase.com)
paypal wholesale soccer (paypal payment)(www.globlepurchase.com)
paypal wholesale UGG (paypal payment)(www.globlepurchase.com)
paypal wholesale Versace (paypal payment)(www.globlepurchase.com)
paypal wholesale Women (paypal payment)(www.globlepurchase.com)
paypal wholesale Y-3 (paypal payment)(www.globlepurchase.com)

==============================================================================
TOPIC: C++ Workshop Announcement from the NYLUG and NYLXS Mailing Lists
http://groups.google.com/group/comp.lang.c++/t/5899d52668535101?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Feb 8 2010 12:10 am
From: Ruben Safir

C++ Syntax

Before exploring how we actually represent data in our C++ programs, I
want to introduce a formal discussion of basic C++ syntax, which, like
data types, doesn't get enough attention in most standardized texts.

All programming languages require syntax rules in order for the
compilers, to parse and create working machine code. These syntax rules
require basic understanding of core components. These components include
files, structure, statements, data and operators.

Starting from the top, first you have files, and files usually have naming
rules. C++ inherits from C nearly all the file structures, and actually
requires a greater knowledge in more detail and at an earlier level of
expertise. C++, because of its object oriented design depends heavely on
library creation. In fact, even for beginners, most of your work happens
on the library level.

All C programs inherit from the Unix enviroment, which co-developed with
C, the need for an initiation of the main function definition. All C
programs start with main, and main will then absorb and use all other
parts of the systems libraries and programming to produce your completed
program. Main is located in your upper most programming file.

Standard Programming Files: A standard programming file is when the top
most programming will take place. In the C language, most of your code,
espeically as a beginner takes place in this file. Most commonly these
files have a suffix of either .cc oro .C. file.C for example is a
standard C++ File name.

A standard programming file will have several components:

1) Include Prepocessor Directives - These import header files and define
the definitions of the symbols which your not spontaneously creating,
that your program will use.

And include directive might look like this:

#include <iostream>

Which tells the compiler to load up the defintions of all the functions
and objects defined in the iostream library.

Standard C++ libraries are included using the angle blacket notions as
above.They are search for by your compiler in a set of standard locations
which are defined by your compiler and programming enviroment (something
I wouldn't mind understanding better on modern Linux and GNU enviroments).

If you use the syntax

#include "myheader"

with double quotes, the compiler will look for these headers in the local
directory.

C libraries are accessable in C++ and can either have a standard C
language notion

#include <assert.h>
#include <stdio.h>
***Note the .h suffix being included***
or use the C++ version

#include <casset>
#include <cstdio>


2) Macro and other Prepocessor Compiler Directives - Help set up
conditions in which libraries and header files are brought into your
program to help prevent duplication and to create different versions of
a program as might be needed for differing architecture or conditions.

The list of Preprocessor Directives are as follows:
#define