Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
34% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
5
2 Commented Posts
~61.0K People Reached
Favorite Tags

117 Posted Topics

Member Avatar for prem2

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 ? …

Member Avatar for JamesCherrill
0
4K
Member Avatar for jsefraijeen

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 …

Member Avatar for JamesCherrill
0
9K
Member Avatar for prem2

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 …

Member Avatar for sepp2k
0
2K
Member Avatar for prem2

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 …

Member Avatar for ko ko
0
283
Member Avatar for Ashok_121284
Member Avatar for prem2

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 -- …

Member Avatar for diafol
0
363
Member Avatar for prem2

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 …

Member Avatar for cereal
0
993
Member Avatar for prem2

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 …

Member Avatar for pritaeas
0
254
Member Avatar for prem2

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

Member Avatar for sepp2k
0
127
Member Avatar for prem2

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.

Member Avatar for pritaeas
0
224
Member Avatar for prem2

Hi team, Can any one say what is instance Method in java ? *Method Overriding Concept? Thank you, with Regards, Prem

Member Avatar for JamesCherrill
0
2K
Member Avatar for prem2

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 …

Member Avatar for Troy III
0
210
Member Avatar for prem2

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

Member Avatar for DavidB
0
163
Member Avatar for prem2

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

Member Avatar for baig772
0
145
Member Avatar for 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 …

Member Avatar for JamesCherrill
0
172
Member Avatar for prem2

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 …

Member Avatar for cereal
0
211
Member Avatar for prem2

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 …

Member Avatar for iw2011
0
172
Member Avatar for prem2

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 …

Member Avatar for macgurl70
0
2K
Member Avatar for prem2

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 …

Member Avatar for prem2
0
171
Member Avatar for prem2

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

Member Avatar for prem2
0
110
Member Avatar for prem2

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

Member Avatar for Airshow
0
74
Member Avatar for prem2

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

Member Avatar for Airshow
0
191
Member Avatar for chiefpf

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 = …

Member Avatar for masijade
0
2K
Member Avatar for prem2

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 …

Member Avatar for Taywin
0
1K
Member Avatar for oldezwe
Member Avatar for prem2
0
84
Member Avatar for coding101

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

Member Avatar for prem2
0
114
Member Avatar for mani2

Dear nonshatter, It is possible to practice the linux basic commands in ubundo. Thx You, With Regards, Prem

Member Avatar for sneaker
0
511
Member Avatar for cristi08

run the same program in terminal .You will get the error messages . php filename.php

Member Avatar for prem2
0
121
Member Avatar for prem2

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

Member Avatar for Akill10
0
151
Member Avatar for prem2

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 …

Member Avatar for Shanti C
0
125
Member Avatar for prem2

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(); …

Member Avatar for prem2
0
250
Member Avatar for theurbanist

kindly display your program so that it will me more clear to understand. Prem

Member Avatar for rapture
0
170
Member Avatar for prem2

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

0
36
Member Avatar for prem2

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

Member Avatar for pritaeas
0
265
Member Avatar for Richajr0
Member Avatar for Richajr0
0
115
Member Avatar for prem2

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, …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for prem2

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

Member Avatar for Kraai
0
49
Member Avatar for mapee

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

Member Avatar for mapee
0
378
Member Avatar for krip_101

kindly print the value of the the divided statement. [code] System.out.println( plfstar/plf); [/code] And check whether what output you are receiving.

Member Avatar for krip_101
0
252
Member Avatar for JAVA4ME

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 ); …

Member Avatar for JAVA4ME
0
105
Member Avatar for blur0224
Member Avatar for JamesCherrill
0
97
Member Avatar for prem2

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 ============= …

Member Avatar for prem2
0
688
Member Avatar for prem2

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

0
56
Member Avatar for prem2

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 …

Member Avatar for prem2
0
277
Member Avatar for prem2

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 …

Member Avatar for abhinavsingh
0
158
Member Avatar for prem2

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

Member Avatar for abhinavsingh
0
473
Member Avatar for prem2

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 …

Member Avatar for Looben
0
104
Member Avatar for prem2

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

Member Avatar for paulrajj
0
75
Member Avatar for prem2

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, …

Member Avatar for diafol
0
275
Member Avatar for prem2

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

Member Avatar for ~s.o.s~
0
184

The End.