howto

'mpirun' is not recognized as an internal ort external commands,...

Hi all, I need to make a small openMP project. I took the example from the www.openmp.org. I can compile it with /openmp option within VC++ 2005. But, When I try to run the program, I am facing the "'mpirun' is not recognized as an internal ort external commands, operable program or batch file" error. When I search the net. I found this...

VS2008 Two way Data Binding: how to get it to work?

I'm a bit stuck playing with DataBinding in a tryout project. I have a simple form with just a spinbox, which I want to bind to a member of the form. class Form1 { public class Data : System.ComponentModel.INotifyPropertyChanged { int _value = 10; public int value {get;set;} public event System.ComponentMode...

HowTo: Highlight the selected node in a UltraTree

Hello Everyone I have a UltraTree control which selects a page to display in a UltraTabControl. I am catching an event and figure out which node in the tree I want to select. This works all fine, just one (visual) thing wont: the activated node is not highlighted in the UltraTree? This is what I am doing pageTree.ActiveNode = pageTree...

How to write a spec for a website

As I'm starting to develop for the web, I'm noticing that having a document between the client and myself that clearly lays out what they want would be very helpful for both parties. After reading some of Joel's advice, doing anything without a spec is a headache, unless of course your billing hourly ;) In those that have had experienc...

How to get started with Windows 7 gadgets

I have never programmed a gadget for Vista or Seven, but I would like to try to make one. But where do I start? I have tried to search around on google and msdn, but I haven't managed to find anything useful. Either very, very old stuff (Vista beta stuff), already made gadgets or differences between gadgets in Vista and Seven. But that d...

Monitoring which statement updates (and when) a certain table row with Oracle 10

Hi all, I'm using (have to) a badly designed Oracle(10) DB, for which I don't have admin rights (although I can create tables, triggers, etc in my scheme). Now I had run into a problem: this DB connected with several users/programs. I must find out who updates a certain row, when, and if possible: with what kind of statement. Is it pos...

How to deal with dead open-source dependencies?

Hi folks, I'm trying to prep a project for open-source release and have run into a problem... This project depends on a number of open-source components which I've just stored as JAR-files in my lib directory to date. Some of them date back a few years, and at least of them is from an open-source project whose site has disappeared and w...

How to become better developer ?

Ok, Most of you are better developer than me but how did you become one ? Could you explain me how. ...

Creating libraries in C/C++ - ld can't find my library.

Hi, I'm trying to learn how to create a C/C++ library in a linux environment but I'm having a problem (probably a trivial one) that online tutorials had not helped to solve. For definiteness let's say I have a foo.c file with the following code: //file: foo.c #include <stdio.h> void hello(void) { printf("hello!\n"); } a foo.h: ...

Where do I start with Zend Framework?

I have been coding my PHP applications in Notepad. I want to take it a step up and do it professional, and as far as I can tell using the Zend Framework is where to start. I have been reading the documentation and quick start and a few tutorials but I am still completely lost. Is Zend on your local machine or on the remote server? Is ...

Get IP Address of the requested client (Soap message)

Hi guys, I builded a ASMX Service and in the code that process an Error Log that comes from ELMAH. I add into the database all the fields and I add some more, one is the IP Address of the requested client... But I can't (please read, don't know how to) get that... I'm used to string ipAddress = HttpContext.Current.Request.ServerVari...

how do you make a makefile

I would like to know how to makefile for Unix. ...

How to overcome the anti-pattern "Big Ball of Mud"?

What causes a computer program to turn into a Big Ball of Mud? Is it possible to recover from this anti-pattern? Are there proven refactoring methods that can be applied? ...

How do I communicate with HTTPS? (Basic Stuff)

I'm not too familiar with networking in JAVA but what i'm basically trying to do is create a couple of threads that will "talk" to each other using HTTPS for security reasons. I'm not sure about the terminology so what I'm looking for is a pointing in the right direction. Hopefully, this should be pretty easy for experienced JAVA networ...

GWT text inputs with spell-check like behavior?

Hello, Does anyone know of a GWT widget that works like a spelling suggestor? Ideally it would be similar to this: http://www.polishmywriting.com/ I need a click-triggered popup on user generated text so that I can suggest replacements (I am not building a spell-checker, but something similar). I also really like the way the polishmy...

Using Emacs, how could I indent/format a code segment in a TXT file?

I am writing a document with Emacs. As you know, there are some code segments in the text file I am working with. Typically, when I open this file, emacs will get into text-mode automatically. And it works fine for me to edit the ordinary paragraphs. But for those code segments, how could I indent them into gnu or linux style just like w...

How to build an Ecommerce Shopping Cart in Django ?

Hello Is there a book or a tutorial which teaches how to build a shopping cart with django or any other python framework ? ...

How to improve the following code in PHP

Hello Here is a simple form I am using to send XML data in admin_xml.php <form name="review" action="admin_xml.php" method="post"> <textarea name="xml" cols="40" rows="10"></textarea> <input class="submit" type="submit" value="Submit Request"> </form> Here is the XML which I enter in order to retrieve the data from MySQL Databa...

How to debug a application on a customers environment .NET

We have an application written in C# .NET that is currently used in production environments. Obviously the release build is used. Unfortunately sometimes the application misbehaves under certain conditions and we can't figure out why. We are unable to reproduce the issue in house. Yes, more tracing would help, but often it is after the ...

How do I get the value of the autogenerated fields using Postgresql?

I have a postgres table like this: CREATE SEQUENCE seq; CREATE TABLE tbl (id INTEGER DEFAULT VALUE nextval('seq'), data VARCHAR); When I insert into the table: INSERT INTO tbl (data) VALUES ('something'); How can I get back the value of the id field for the record I just created? (Note, I may have got some of the SQL syntax a bit ...