end

How do I write a program that tells when my other program ends?

How do I write a program that tells when my other program ends? ...

Fstreams C++

Hello I want the ofstream to write at the end of a file without erasing its content inside. how can i do it? (i'm talking about txt files,and C++) Thanks. ...

Will plug-ins such as Flash, Silverlight, etc. eventually replace XHTML/CSS/Javascript?

I've been developing with XHTML, CSS and Javascript for about 4 years now. I love it a lot and hate it a little. I've looked into Flash and Silverlight a bit, but as a developer, I'm not too keen on them. One reason is that they lock you into a vendor and generally, into using that vendor's tools. E.g. Adobe Flash or Microsoft Visual S...

SSIS - read a single header record from a flat file or an excel file prior to processing

Is there a method where by one can read just the first record of a file; i.e to read header information, so that a decision can be made whther or not to process the remainder of the file ? I know that with the split transformation component one can write an expression that will ignore all of the rows besides the header, based on a key wo...

How do you end an Application from a Web Method within a Web Service?

I'm trying to create a method within a web service that will terminate the application when called. The purpose of this is to end a game being played with a Windows form. Does anyone have any ideas? Thank you. ...

Does the business layer keeps working even a session closed in the middle of process?

Hi, I wonder what happens if the user closes his/her browser while a called business service method is still processing? Does it keep going working without being aware whether the user has his session closed or not? Or the process suddenly stops? Thanks. ...

unexpected $end in php

Hello, I really can't find the error. Here is my code: <? // Action: add news if( array_key_exists('create_new', @$_POST) ) { ?> ... <? exit(); } ?> Before this my problem was in construction: <?=...;?> My apache doesn't understand it so that I rewrited code without that. But now I really can't find solution. ...

If key is the last in array?

How can i check if this key is the last in an array? $array = array("a","b","c"); The value "c" would have the key 2, is there some code like this is_end(2) which returns true or false depending if they key is the last of the array? Or is there some kind of while() statement I can do? ...

PL-SQL - Two statements with begin and end, run fine seperately but not together?

Hi all, Just wondering if anyone can help with this, I have two PLSQL statements for altering tables (adding extra fields) and they are as follows: -- Make GC_NAB field for Next Action By Dropdown begin if 'VARCHAR2' = 'NUMBER' and length('VARCHAR2')>0 and length('')>0 then execute immediate 'alter table "SERVICEMAIL6"."ETD_GUESTCAR...

QXmlStreamWriter add at end of file

i got an QXmlStreamWriter and add some xml to it. when i do it first time its ok, but when i want to add text at end of file it dont work. the only thing i got is first few lines i wrote good and formatted xml and the second thing i wrote is everything on 1 line. :S how to fix this? ...

unexpected $end

hello I have this error: Parse error: syntax error, unexpected $end in /...../student.php on line 57 note: the lines in "student.php" it's only 56 lines, so the error appear in addition line ! <?php session_start(); if(!isset($_SESSION['user_login'])) include('login.php'); else {?> <a href=student.php?add=1>تسجيل طالب</a...

adding characters at the start and end of each line in a file

What is the best way to add some characters at the start and end of each line? something like quotes etc? Can it be done using Vim, or some other way? ...

cycle and erase elments from std::set

I have a std::set and I need to erase similar adjacet elements: DnaSet::const_iterator next = dna_list.begin(); DnaSet::const_iterator actual = next; ++next; while(next != dna_list.end()) // cycle over pairs, dna_list is the set { if (similar(*actual, *next)) { Dna dna_temp(*actual); // copy constructor dna_lis...

Zend Form : Validate a set of fields / group of fields

Is there any good solution for the following requirement: An Form with one field for the zip code and default validators like (number, length 4..). After submit, the form is checked against an database. If the zip code is not unique we have to ask for an city. Examples Case 1: Submited zip code is unique in database : everything o...

Doctrine : Rollback failed. There is no active transaction.

Rollback failed. There is no active transaction. I am getting the above error when i tried to rollback. I googled the issue and few suggested to disabling the autocommit..... How do we disable autocommit? Is there any other reason for the above error? I am using MYSQL and Zend and my php.ini file loaded the required drivers Thanks i...

Find the end of stream for cin & ifstream?

Hi, I'm running myself through a C++ text book that I have as a refresher to C++ programming. One of the practice problems (without going into too much detail) wants me to define a function that can be passed ifstream or cin (e.g. istream) as an argument. From there, I have to read through the stream. Trouble is, I can't figure out a wa...

Visual Studio.NET versus JDeveloper versus YourFavoriteTool when it comes to Data Validation

We know that making front end GUI is tough. I'm glad these tools offer drag and drop to make our lives easier. But which one will help us finish faster? ...

change the enddate choice with jquery datepicker

Hi, I have 2 textboxes: StartDate and endDate How can I make so the user will be able to pick from the endDate only the dates starting from the startDate text box and ending 24 hours after the startDate? I tried this but it didnt work: $("#startDate").change(function() { test = $(this).datepicker('getDate'); $("#endDate").dat...

[WPF] Retrieve the End position of the Caret in the TextBox to put the Caret in the next TextBox

How do I find the end position of the Caret in a WPF textbox so I can`t move right anymore with the caret? ...

netbeans does not recognise <<<_END

Hello, I'm trying to learn PHP using netbeans although I've come up against a problem with the interpreter and I can't tell how to fix it. It's to do with the notation <<<_END. It should, from what I'm learning wrap everything into a variable until it's ended with _END However, if I plug in the following example: <?php echo <...