Replace string in Shell scripting

306 byte By anandjk1 at 2007-11-20 11:31:56
Hi,I need to check if the starting or ending of the give string has a double quote and replace it with null.e.g. Input var="test string "is" string" Output var=test string "is" stringPlease help in this regardThanksAnand...

How to disable screen saver/auto power off in Compact Framework (C#)

1026 byte By LEM at 2007-11-20 11:32:05
Hi all,Anybody knows a way of doing that? I have tried several things but it doesn't work.This is what I have tried:[System.Runtime.InteropServices.DllImport("coredll.dll")] private static extern int SystemParametersInfo( int uiAction, int uiParam, string pvParam, int fWinIni)...

Linker Error With BCC32

1300 byte By utsavgupta at 2007-11-20 11:32:07
Hi,I wrote a simple assembly program and i am trying to interface it with C.I have compiled my c++ driver with BCC32 and the assembly program with NASM (32 bit). Now while linking i am getting this error message:Unresolved external 'asm_main()' referenced from C:\driver.objWell here is my...

question regarding nested IF-ELSE structure

3641 byte By sjcoder07 at 2007-11-20 11:32:15
Hello everyone: I am doing a exercise from Larry Ullman's book - PHP and MySQL for dynamic web sites. (chapter 3 P119 register.php) a) I couldn't figure out the if-else structure around if(empty($errors)) section. please see line 40 and line 49 Please help me to understand how it works...

Problem with SQL sentence for MS Access

840 byte By evth_sux at 2007-11-20 11:32:31
Hi everyone, I'm trying to execute a SQL command in VC++.CString sSentence;sSentence = "SELECT * FROM Client WHERE Name LIKE 'j*'";rs.Open (CRecordset::forwardOnly, sSentence.c_str ()); So it must return the names in the Client table starting with 'j', but this function does...

Beginner Assembly help

744 byte By ff4930 at 2007-11-20 11:32:42
I need to make a program that asks the user for input 8 numbers and output the max and min value. The numbers has to be stored in an array in memory.Basically is going to be 2 loops, 1 to prompt the user for the 8 numbers and second loop to figure out the max and min values.1st loop will go 8 times...

PHP - Call to a member function on a non-object in

1708 byte By tkstock at 2007-11-20 11:32:53
Hello,This is a simplified version of a shopping cart class that I've created. A cart object consists of cartline objects (which contain other stuff and have totals).It seems to accept new cartlines ok, and even get_cartline_count works fine. When I try to call get_cart, I get the following e...

help with <description> element

489 byte By gsatyaprakash at 2007-11-20 11:33:33
I need to perform some action when the user clicks on the description element in the box. Is it possible to associate a function with the description element and printing the value of the description element from which we came from in the function called. like<description value="hello" somehandle...

How do I force a page to be re-validated?

611 byte By Debbie-Leigh at 2007-11-20 11:33:38
Hi,I'm trying to force a page to be re-validated every time someone views it, even when they click the back button. I'm currently using:header("Expires: " . gmdate("D, d M Y H:i:s", strtotime("-1 year")) . " GMT");header("Cache-Control: must-revalidate, post-check=0, pre-check=0");header("...

Validation on Text onblur

337 byte By rodin at 2007-11-20 11:33:53
Hello, I would like to excecute some validation code when the user tabs out of the Textbox .i have written the code inside the onblur() event of the Textbox. But when the user clicks a button with the focus remaining inside the textbox , i would like to avoid execution of the validation code.how can...

help with popup menus and passing arguments..

1249 byte By gsatyaprakash at 2007-11-20 11:34:00
In the foll. code right clicking on either 'Plz rt click on it' or 'Another rt click' opens the popup menu but once i am in the pop up menu how do i know which description element was possibly responsible for the opened up popup menu..in fact i need to value of the description el...

help, check my code!

4008 byte By pengait at 2007-11-20 11:34:01
here is my code... .model small.386.stack 200h.datamsg1 db 13,10, "This is a program to perform logical operations $"msg2 db 13,10, "on binary, $"msg4 db 13,10, "Enter first data(16bit ): $"msg5 db 13,10, "Enter second data(16bit): $"msg7 db 13,10, "Select operation: $"msg8 db 13,10, "1-XOR 2-XNOR...

[SQL][ORACLE] Greater-than operation on grouped data

1807 byte By Bench_ at 2007-11-20 11:34:07
Hello, I'm attempting to teach myself SQL from the book "Essence of Databases" by F.D. Rolland. I've stumbled across an exercise which has me tearing my hair out a little.Given a table STAFFwith fields StaffID, Sname, Job, Sal, BranchIDAttempting to identify all staff whose Salary (SAL) i...

J2ME - Redirecting Calls and Messages

139 byte By NoviceProgrammer at 2007-11-20 11:34:24
How do I anticipate all incoming calls and messages and then redirect it to another location besides from the inbox and received call logs?

ActiveX plug-in

578 byte By ryu at 2007-11-20 11:34:51
Hi GURUs,I have created an ActiveX plug-in for client. When the client go to the website, it will automatically detect whether the my ActiveX plug-in is available or not. If not, it will direct the user to download the plug-in from my URL.Everything works fine, but I saw some program (such as Flash)...

How to check if javascript has run in codebehind ( c# )?

424 byte By Visslan at 2007-11-20 11:35:01
codeInfront:<input type="button" onclick="JavaScript:clearSelections();" name="clear" value="Delete"/>codeBehind:public void Page_Init( object sende, System.EventArgs e ){ if( ?input button has been klicked? ) { .... }}In my code behind I want to reset an object when the button has...

XML messaging

565 byte By Patator at 2007-11-20 11:35:16
Hi all,I got XML messages fro mnetwork ( by SSL socket)., where the read function has an input parameter ( unsigned char[] ) to put the xml message in.My problems are :1. How can i get the XML message from the unsigned char[] buffer ?2. How can i verify that i received all the XML messages ( on net...

Generating Integer IDs

502 byte By akee at 2007-11-20 11:35:30
Hi,I need to generate ID's for elements in an XML file using XSL. These need to be in Integer form (aka - not G03IDK231). It must be a number because of the XSD. I can't just use position() because I may need to reference these elements in different loops and the ID wouldn't be the...

displaying MySQL data

3514 byte By monkeymafia at 2007-11-20 11:35:42
Hiim trying to make a basic content management system. i can insert data into the mysql database via a html form no problem. just having a little difficulty displaying/retrieving the data.When displaying the data i want it to be neatly formatted in a table, with the headings(which are fields from my...

beginer help needed

14 byte By mikeneedshelp at 2007-11-20 11:35:43
figured it out

Use constant in create database command

1201 byte By sjcoder07 at 2007-11-20 11:36:20
Hello everyone: I am doing an exercise by using define function to define host, user, and password information. I couldn't see the debugging message after the databaseis created. I replaced line 1 with line 2, then i was able to see the debugging message. But I couldn't figure out why...

[ANN] Liquid XML Studio Released - A Freeware XML Development Environment

679 byte By Liquid Technologies at 2007-11-20 11:36:24
Announcing the release of Liquid XML Studio 2008 a Freeware XML Development Environment. Download available from http://www.liquid-technologies.com/Product_XmlStudio.aspxKey features include - An Advanced Graphical Schema Editor - XML Editor, with auto-complete, syntax highlighting & validatio...

mysql text convert to field?

255 byte By luckroth at 2007-11-20 11:37:32
hi all. i would like to know how i can convert text to field. <br/>for example: <br/>BEGIN<br/> declare test varchar(10);<br/> set test="id,name"; <br/> SELECT test from m_question; <br/>END<br/>many thank for your help.

extract the xml data values in the specified format using C++ code

1349 byte By sabitha at 2007-11-20 11:38:11
Hi everyone,Can some one please help me how to extract the data values from the following XML file using C++ code.The attached txt file contains the xml format.From the example shown in the txt file, we can observe two types of "CfgType"(Ane Justin and Jessica Sis). Under each "CfgType" there are di...

Variable filename in xml tag in asp

767 byte By Nick A. at 2007-11-20 11:38:23
HelloI'd appreciate any help with a problem i'm facing.I'm looking for a way to include the results of an xml file in an asp document. The catch is that the name (and path) of the xml file is not constant. It is constructed within a javascript function and placed in a session variable...

Alternatives to PEAR DB

131 byte By Laurio at 2007-11-20 11:38:32
As title really, what are the main alternatives and pros and cons of using them? Ive found ADOdb but cant really find any others :/

restricting access using sessions

1511 byte By monkeymafia at 2007-11-20 11:38:50
Hii have a login form , once logged in it takes the users to another page (useraccount.php). ive set the session, however i can still access useraccount.php without logging in. why is this happeninglogin form code:session_start();include 'dbconnect.php';if(isset($_POST['submit'])...

Please help

774 byte By ff4930 at 2007-11-20 11:39:18
.textmain: la $a0, prompt_msg #load the address of the prompt_msg into $a0 li $v0, 4 #code 4 to print the string using syscall syscall #do the syscall(prints the message) li $v0, 5 #get input syscall #execute...

getting my url

529 byte By Xeel at 2007-11-20 11:40:21
hi,Im doing this for the first time in my life and i almost dont know php so sorry for possible wrong terms. I need to do 2 things in importance order:1. get the url my page was accesed by (because i have several urls pointing to my page), and print it for ex.2. make a forward/redirect to another pa...

Perl $ENV{HTTP_COOKIE} problem

2398 byte By bretterson at 2007-11-20 11:40:35
I'm writing a perl script for a class of mine and I ran into a problem that has me and everyone else in the class stumped, including the teacher.My script is using cookies. I have it adding cookies, but that's working just fine. The problem has to do with reading cookies. I have it read...

Problem in checkbox [PHP]

365 byte By manjunath1985 at 2007-11-20 11:41:00
I have a php page called viewdb.php which retrieves usernames from the database and displays it, and i have created a checkbox for each username.I want to pass the multiple selected checkbox values to the next page called as send_sms.php after i select a <option value=" http://send_sms.php">sms...

[RESOLVED] Whats wrong with this SQL

419 byte By Bill Crawley at 2007-11-20 11:41:22
Update [image] set Active = 1 where exists( select * from dwellingimage as d right join [image] as i oni.id = d.imageidwhere imageid is null)My Select statement above selects the correct number of records, but when I add the Update command it goes and update's the whole table. Can someone tell...

[FLASH] Web Radio player

1001 byte By GordonFreeman at 2007-11-20 11:41:47
Hello,i've made a simple flash application with Flash MX 2004 that plays MP3 LIVE stream from a web radio.It all works properly if i execute the compiled SWF file with FlashMX, but if i embed it in an HTML page, it won't play sound!strange uh?and, the more curious thing is that after havin...

get web browsers url string

286 byte By Xeel at 2007-11-20 11:41:50
hi,<br/>does anyone know how to get web browser's url string from the main window running the script in the same window? tnx<br/>sry, spent 3hrs yesterday looking for php/java/js solutions for this, and now with fresh head found the solution in 5 min:<br/>document.URL =)

JavaScript to recolour keywords in an HTML page in realtime

2783 byte By Seymour Clufley at 2007-11-20 11:42:27
Hi,I'm a complete beginner with JavaScript, but I've found a snippet of code that does (almost) what I want.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Highlight test</title> <script language="JavaScript" type="text/...

GAS / relative jump

2251 byte By stsm at 2007-11-20 11:43:12
hello,i'm wondering how a jump to a relative address looks like for gas/gccjmp 0xcwill jump to absoute address 0xc instead of jumping just 12 bytes forward. whats's wrong here and how does it look like correctly in AT&T syntax to jump N-bytes forward/backwardusing: pentium-m, linux 2.6.21....

lookup performance

642 byte By vikas.peshwani at 2007-11-20 11:43:19
hi all,we r using sql server 2005, and we are facing many issues with the lookup performance..wherever we r using more than one lookup the performance drastically decreases and even if it caches all the rows, it does not proceeds..it takes almost half hour for a single lookup for approx 7-10 million...

[Table assignment] Which design is better ?

1019 byte By jesvh at 2007-11-20 11:43:46
Hello: If a table X contains several columns, and might contain many (millions) rows, all rows can be splited into 5 groups by value of one column.then, below two design1. All rows in one table, and use a column to differentiate the groups2. Split rows into 5 tables, without differentiate columnWhi...

Table Structure

865 byte By maverick786us at 2007-11-20 11:44:00
I am using this query to find out the table structure and it works absolutely wellSELECT COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTH FROM INFORMATION_SCHEMA.COLUMNS Where TABLE_NAME = 'tbl_myTable'The only problem with this query is, it is unable to figure out whether a certain field...

Access DB Application Locks Up

996 byte By George1111 at 2007-11-20 11:44:02
I have a VB6 App using Access 2000 Database. Frequently, it will lockup on some of the users machines forcing the server to be rebooted.The server is actually just one of the PC's which shares its Access Database with 3 other users.When one PC locks up, it causes the others to stop functioning...

Freezing Header of the table

303 byte By haifriends at 2007-11-20 11:44:16
Hi,I'm using JSP to display the content from the database in the form of Table. Table Rows and Columns are not statis, it may vary..I want to Freeze header of the table. I'm using MAC OS and using Safari as my Web Browser.Can anyone guide me?-haifriends...

Is a DAL really that efficient?

761 byte By terickso at 2007-11-20 11:44:39
My company is looking at using a DAL. This will consist of creating business objects, setting of data objects and converting all the data to xml and on the server side turn around and put it back to the type it was. It is using a CRUD approach. These are my concerns1) converting from text then ba...

store procedure ==> race condition?

1304 byte By xusword at 2007-11-20 11:44:46
HiI have encountered a problem and it's assumed that there is a race condition happened.Someone proposed, while my method is running, someone else executed some query and altered the table my stored procedure is supposed to modifiy and causes some trouble.My questions: Is it even possible that...

Dynamic Form using Options

1601 byte By Culperat at 2007-11-20 11:44:48
The basic idea of what I'm trying to do is let the user choose an option of a category to search by. However, one of the categories that has been asked to be included is suppose to be limited in what can be searched.<form action="search.php" method="post" name="search" id="search"> &...

create a document xml

1408 byte By Patator at 2007-11-20 11:45:04
Hi all,I want to create a document XML in order to create a xml message.I will use the libxml xmlNewDoc method, after i want to create a node and to set it as root element.My problem is that the xmlNewDoc has an imput parameter which take the version of xml,and after creating and adding nodes the xm...

Microsoft Access 2003 - License Information for This Component Not Found

813 byte By Hank07 at 2007-11-20 11:45:08
I've deployed an upgraded Microsoft Access 2003 application onto my clients computers and one of the users is unable to run it due to the following information message:"license information for this component not found. You do not have an appropriate license to use this functionality in the des...

SQL-Total problem (count)

1107 byte By bordak at 2007-11-20 11:46:03
Hi all,I have a question for you.This is the view i'm working on right now.SELECT Group.Cod_Name,count(*)FROM view_Group Group INNER JOIN view_Last_Date LD ON Group.Emp_No = LD.Emp_Code AND Group.Cod_Code = LD.Cod_CodeWHERE (Group.Cod_Code = 'SEC0001')GROUP BY Group....

Call to a member function on a non-object

1148 byte By cpopa at 2007-11-20 11:46:23
Hello.I am new to PHP 5 OO, I receive the same error but i know where my problem might be. the proble is that i don;t know how to solve it :)So here is my scenario/code: I want to implement an object array.i have a class called Person:class Person{ var $m_strName; function __construct($p_strNa...

Problem in installing MySQL Connector

385 byte By srinivasant at 2007-11-20 11:46:59
Hi,I have successfully installed the MySQL client program in my machine, When I try to install the mysql connector [mysql-connector-odbc-3.51.15r409], I get the error,configure: error: Could not use the single thread MySQL client library, please check config.log for errorsduring the ./configure.How...

SQL Query Analyser...

238 byte By manu.patel at 2007-11-20 11:47:14
Hi All,<br/> <br/>I am planning to develop a SQL Query analyser. I am using SQL Server 2000. Now the problem is that HOW I CAN CHECK WHETHER THE QUERY (SYNTEX) IS RIGHT OR NOT.<br/> <br/>Hope a positive response...<br/> <br/> <br/> <br/>.