- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 5
- Posts with Downvotes
- 5
- Downvoting Members
- 5
117 Posted Topics
Hi, In C program Function has three parts, Function Declaration. Function Definition. Function Calling. In java i cannot able to declare a function .Is it possible to declare a function in Java. For example: [code] import java.io.*; import java.util.*; class Fun_example { // show();//Cannot able to Declare a Function ? … | |
Re: Dear jsefraijeen, Try the below program .You will get the output .As a programmer you must try the logic or some coding steps .Then you post that code in daniweb so that it will be more helpfull for you. import java.io.*; import java.util.*; class dani_add{ public static void main(String args[])throws … | |
Dear all, I am using linux fedora os. But i cannot able to set the java Classpath command. Step 1: whereis java java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz Step 2: vi .bash_profile export JAVA_HOME=/usr/bin/java export PATH=$PATH:/usr/bin/java Step 3: java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Server … | |
Dear team, I am facing difficulties to validate the below format. I want regular expression needs to be satisfied with the below condtion. $pattern = '/^\w[\w\s\.\%\-\(\)\[\]]*$/u'; $file_name = "(00)filename.jpg"; if(preg_match($pattern,$file_name)){ echo "Pattern matched"; }else { echo "Pattern not matched"; } I have tried several ways. But, the main problem is … | |
Hi team, Kindly, clarify the below query, i am confused the difference between in and like statements in the mysql. mysql> select count(id) as tablename from postings where is_active=1 and publish in (2) ; result -- 38 mysql> SELECT COUNT(*) FROM tablename WHERE is_active=1 and publish like '%2%'; result -- … ![]() | |
Hi, I have recently getting the follwing error when using soap in my php. Fatal error: Class 'SoapClient' not found My php version : PHP 5.4.19 (cli) Installed: php-soap.x86_64 0:5.3.3-23.el6_4 Currently using centos $client = new SoapClient('https://sandbox.cashu.com/merchants/cashUPayments.wsdl',array("trace" => 1)); Kindly, let me know how to fix it out. I have … | |
Hi guys, I am struggling with regular expression.Can you please suggest the regular expression for the below patterns. I have tried many times with several patterns but still i could not resolve the below patterns. 1. Must contain at least one alpha character (i.e. a, b, c etc,) 2. Only … | |
Hi guys, I am new to ruby i already have an experience in the core php and zend framework.I need to clarify the below doubts, Is oops in ruby is completely different from other oops concept languages like java,c#. Can you pls help me out. Thank you, Regards, Premnath | |
I have implemented 3D CoverFlow effect slider in jQuery, but its not working in IE7,IE8 so any one can give me solution for this issue. url of coveflow effect slider http://codecanyon.net/item/icarousel/full_screen_preview/2527180 This jQuery function is not working in IE7,IE8 and IE9 and also its a paid versions. | |
Hi team, Can any one say what is instance Method in java ? *Method Overriding Concept? Thank you, with Regards, Prem | |
Dear all, I am new to javascript.I have a little doubt in basic concepts in javascript. //Example Program class classname(){ //Decalaring Properties var length; var abcd; public function toUpperCase(){ //This Method is used to convert the strings into uppercase } public function toLowerCase(){ //This Method is used to convert the … | |
Dear all, I want to know what exactly the below command does in linux box. Command : ls -ltr Is this command sort only the main folders or it sort including the subfolders. Thankyou, Regards, Prem | |
Dear all, I am new to mvc architecture Programming concepts.I have doubt that why peoples are using MVC Architecture?.What are the core benefits of using this architecture. Thank you, Regards, prem2 | |
Hi , I have implemented the Hashtable and enumeration concepts in java.The program is executed fine but i have a doubt.When i try to print the keys and elements in the Hashtable by using enumeration ,it start prints from the second key and second element. Did any one know why … | |
Dear team, I need to get the information for a particular domain name using the php and some linux commands.So, i have tried a small program in php in Lamp Environment. When the user gives,www.google.com.My program uses the below commands and functions ping,dig,host,get_host_names etc.To retrive the informations. But i need … | |
Dear team, Please explain, which one will be faster in Mysql for the following query? SELECT * FROM `userstatus` where BINARY Name = 'Raja' [OR] SELECT * FROM `userstatus` where Name = 'raja' Db entry for Name field is 'Raja' there is no key for the field. I have 1000000 … | |
Dear all, I have done a sample program using ajax . But onreadystatechange not working. If i specifies "false" in the open method. Example program : [code] <html> <head><title>Sample Ajax File</title></head> <script type="text/javascript"> function ajax_function(){ var httpReq = new XMLHttpRequest(); httpReq.onreadystatechange=function(){ alert(httpReq.readyState); } httpReq.open("GET","http://localhost/ajax/sample.php?name=prem&Id=1",false); httpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded"); httpReq.send(null); } </script> <body> <form … | |
Dear all, I am using linux . My system is connected to local network and i have local address as 192.168.1.1 . There are more number of systems in my organization.I want to list out, Ip address = list of sites used today. For example, 192.168.1.2 =>google.com,yahoo.com etc. Is there … | |
Dear team, How to get the process id for the particular file in php? for example ============ To get the process id in linux we use ps -ef | grep "message.php" Thank you, With Regards, Prem | |
Dear team, I am going to implement chat application in my site. I want to use long-polling or ajax -push concept in my program .I prefer to use php and javascript and ajax. kindly suggest me ajax-push concept or long-polling concept. Thank you, Regards, Prem | |
Dear team, "ajax" is not supporting for cross-domain compatibility.I want to implement cross-domain compatibility.Did any one know new technology or technique to implement the cross-domain compatibility. Thank you, With Regards, Prem | |
Re: Dear chiefpf, Try the below program . [code] import java.io.*; import java.util.*; class Recursion { public static void main(String args[])throws IOException{ System.out.println("\nRecursion Program"); System.out.println("Enter the Number"); BufferedReader obj = new BufferedReader(new InputStreamReader(System.in)); int no = Integer.parseInt(obj.readLine()); int result = 0; if(no == 0){ System.out.println("Nothing Happen"); }else{ for(int i=1;i<=no;no--){ result = … | |
Dear all, I have using db operations such as insert,update,select,delete in my program .I have perform this operation using the prepared statement. How to avoid the sql injection in my java program.? *)I want to know functions to avoid the escape characters in java ? *)Did any one know what … | |
Re: [url]http://dev.mysql.com/[/url] Thank you, Regards, Prem | |
Re: Did you installed java in your linux system.Check whether you have java by typing the below command. which java locate java To check the version: java -version Thank you, Regards Prem | |
Re: Dear nonshatter, It is possible to practice the linux basic commands in ubundo. Thx You, With Regards, Prem | |
Re: run the same program in terminal .You will get the error messages . php filename.php | |
Dear all, Scope resoultion operator is used to call the properties or methods of the class. Properties : =========== Variables Constants Why scope resoultion operator cannot be used for non-static variables . Can any one help me out . Thank you, With Regards, Prem | |
Dear all, Why below program not working .It gives fatal error. NOT WORKING [code] <?php class Class_access{ const a="50"; public $bb="Class Variable \n"; function display(){ //$Function_Variable; echo "Function Display \n "; //echo $this->bb; } } $obj=new Class_access(); $obj->display(); echo Class_access::a; echo "\n"; echo Class_access::$bb; ?> [/code] WOKING ====== [code] <?php … | |
Dear all, I am confused about the output of the below programs .When i use the scope resolution operator i am getting the below error. [code] <? class MyClass{ public $variable_value="This is a variable value "; function display(){ echo "Display Function \n"; echo $this->variable_value; } } MyClass::display(); //$obj=new MyClass(); //$obj->display(); … | |
Re: kindly display your program so that it will me more clear to understand. Prem | |
Dear all, I am using linux fedora system.I cannot able to understand localhost.localdomain localhost Even i can able to change the localhost to some other name xxxx.Still it works . What is that exactly localhost.localdomain.? Thank you, With Regards, Prem | |
Dear all, Digest authentication is not working in my php. I do not how to check whether digest authentication is enabled in my php . Is any other module is required to enable the digest authentication in php. Thank you, With Regards, Prem | |
Re: What insert querey you are using to send the information to mysql | |
Dear team, I have done some java programs .Still i am confused what is the difference between j2se vs j2ee vs j2me . Can any one explain what is the diffrence . I want to do sun certificate in java.Can any one have idea about the sun certificate. Thank you, … | |
Dear all, I am totally confused what is the difference between the Hostname Vs Virtual Host? Can any one explain about this? Thank you, With Regards, Prem | |
Re: Dear mapee, Check the below link for file uploading operations. [url]http://www.w3schools.com/php/php_file_upload.asp[/url] use the below code to check the file type print_r($_FILES[file][type]); if file type specifies it is a php file . Then omit it by using the condition. Thank you, Regards, prem | |
Re: kindly print the value of the the divided statement. [code] System.out.println( plfstar/plf); [/code] And check whether what output you are receiving. | |
Re: Anyhow if u want to open non-java application You can use class java.lang.Runtime class. The following java program opens a word file named 'OAFAQs.doc'. import java.io.*; public class Doc { public static void main(String[] str)throws IOException { Runtime rt = Runtime.getRuntime(); Process p = rt.exec( C:\\Program Files\\Microsoft Office\\OFFICE11\\WINWORD.exe OAFAQs.doc ); … | |
Re: can you print the code so that we can track why this error has occured | |
Dear all, I want to connect the my mysql database in the below java program.But i could not able to connect the myslq database. i have downloaded the below jar file and put the jar file in the below path. Jar File: ========= mysql-connector-java-5.0.8-bin.jar Path: ==== /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/lib mysql version ============= … | |
Dear team, I want to implement jabber server and jabber client . Can any one provide the jabber tutorial or some other links about the jabber . Thank you, With Regards, Prem | |
Dear team, Hi all i have implemented google data api in my project. I have downloaded the api from the below url.This api is used to delete,add,update the google contacts.I have successsfully add ,list the new contacts. [url]http://code.google.com/apis/contacts/docs/3.0/developers_guide_java.html#GettingStarted[/url] But i do no how to delete the contact using this api … | |
Hi, I want to create a im(Instant Message ) bot for my company.So, i searched in our forum.I found the below url. [url]http://www.daniweb.com/forums/thread9761.html[/url] But, i did not get the more information in that thread and more number of links are expired .I want to send instant message to gtalk,yahoo from … | |
Hi all, I want to need the information about xmpphp .I have downloaded the code form the google.But i did not get the detailed information.So,Kindly provide the tutorial of xmpphp to send messages to gtalk. Thank you, With Regards, Premnath.M | |
Dear all, I want to create a im(Instant Message ) bot for my company.So, i searched in our forum.I found the below url. [url]http://www.daniweb.com/forums/thread9761.html[/url] But, i did not get the more information in that thread and more number of links are expired .I want to send instant message to gtalk,yahoo … | |
Hi to all, How to send the instant message to yahoo messenger by using the xmpp or any other application .If some one knows kindly provide the url and links. Thank you, With Regards, Premnath.M | |
Hi, I am going to implement the Oops conecpt in php .So i written the below program it did not printing the values.Can any one say why this value is not printing . [code] class simpleclass{ echo "Hai how are you i am fine"; } [/code] Thank you, With Regards, … ![]() | |
Hi all, Can any one say how to execute the below programs .I need some packages to run the programs .Kindly specify the packages and their links. URL: [url]http://code.google.com/appengine/docs/java/xmpp/overview.html#Sending_Instant_Messages[/url] Thank you, With Regards, Premnath.M |
The End.