Hi,i want to use this ClassParser to parse another file(class) in another package , in my code i used ClassParser to parse only existing file (class) in existing package ,,,how can i use it to parse any file and from any package ,if i can't use it ,is there any other way or parse to do this in java. This is the code that have parser that previously talking about it. package javaapplication12; public class CyclomaticComplexity { ClassParser parser=new ClassParser(CyclomaticComplexity.class.getResourceAsStream("/javaapplication12/CyclomaticComplexity.class"),"CyclomaticComplexity.class"); JavaClass javaClass=parser.parse();} Now,if i want to parse another file (ex. Class filename in package filename )how can do this? /filename/filename.class …

Member Avatar
+0 forum 0

Hi, I have a domain and DigitalOcean cloud ubuntu server, and I have been using the server as an email forwarding point. SImply, if someone sends an email to **info@domain.com**, the server forwards to **personal@gmail.com**. The beauty of this is that I don't need to spend my server space used up for saving email and I can still use gmail UI. Downside is I have to reply using gmail account. So I wanted to send an email using my domain email from gmail website. Custom domain email hosting in Google and Hotmail is not free so please don't mention it. …

Member Avatar
+0 forum 0

I am helping a friend switch from Godaddy quick shopping cart to magento. Unfortunately the Godaddy cart automatically creates product and catalog URLS. Using caps, dashes and underscores. I can dupe the link text but magento only allows dashes and no caps, I'd rather not use caps or underscores anyway. So from what I understand I can fix this issue with htaccess 301 rewrites? Can anyone please provide examples on how to handle either or both issues, with either a link to an explanation of how this works or if you can explain it yourself that's great. I'm hoping there …

Member Avatar
+0 forum 0

I have an instance of Tomcat 7.0.32 installed. The server.xml is configured to use clientAuth="want" in the Connector. I have a Context that has a docBase set to be a network share. This particular Context I want the user to be authenticated before they can access it, otherwise I want them redirected to an error page. I have tried setting security constraints, filters and valves, but I am not sure I am doing it correctly. Could someone tell me the easiest / most efficient way to achieve the above access control to a context? Authenticated users would have the username …

Member Avatar
+0 forum 0

Does anyone on the forum have any experience with pyspark (Python API for Apache Spark)

Member Avatar
+0 forum 0

Hi, In my localhost i'm getting the "500 Internal Server Error".It appears, if i add a htaccess to a website in localhost.It was started to happen recently.I enabled apache proxy module recently.After that only it satrted to happen.I don't know how to disable the proxy module.If anyone can tell me how to do that i'm admiring that.

Member Avatar
+0 forum 0

For the following xml file, i need to generate an xsl-fo file to be converted into pdf. I am new to style sheets and struggling to create dynamic table. Please help. Also, the width for each column varies,based on the column.How would i include this into the code? The Column Headers and Column Values are dynamically populated in the xml file. Below is a sample. Can anybody please help in generating xsl-fo or xslt code? <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ReportData> <ColumnHeaders> <ColumnHeader> <Name>Col-Header1</Name> <Width>5</Length> </ColumnHeader> <ColumnHeader> <Name>Col-Header2</Name> <Width>10</Length> </ColumnHeader> <ColumnHeader> <Name>Col-Header3</Name> <Width>8</Length> </ColumnHeader> </ColumnHeaders> <Rows> <Row> <Column>Row1-Col1</Column> <Column>Row1-Col2</Column> <Column>Row1-Col3</Column> </Row> …

Member Avatar
+0 forum 0

I am trying to cluster a sparse matrix with using K-means algorithm. I will use Apache mahout but I did not find any example about how can it be implement with Java. Is there any tutorial or function javadoc about it? I have tried KmeansDriver's run() function but I did not give true parameters. Trustly, I did not understand implementation of this function. Is there a clear example about that which takes a matrix, dataset or file and gives clustered data?

Member Avatar
+0 forum 0

i got a testing blog that got spammed. So I removed the entire blog. Now weeks later, my errorlog still get thousends of 404's a day. I still want to see 'normal' 404 from other sites on that server. There are no files in that dir but .htaccess: RewiteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.php)$ -[G,NC,E=dontlog:true] #deny from all and in my httpd.conf: `customLog logs/access_log combined env=!dontlog` how do I something simular to my errorlog? or do I need a diverent solution?

Member Avatar
+0 forum 0

nginx server Problem to add trailing slash if I have two or more subdirectories rewrite ^/([^.]*[^/])$ $1/ permanent; //this is working example if I have one directory [url]http://example.com/foo/[/url] (with trailing slash, conventionally a directory) [url]http://example.com/foo[/url] (without trailing slash, conventionally a file) How can add trailing slash if I have two or more subdirectories ? [url]http://example.com/foo/foo2/[/url] [url]http://example.com/foo/foo2[/url]

Member Avatar
+0 forum 0

Jobs are running in server continuously for feeding purpose and it is being monitored on web health monitor. It contains job name, Server, last run, time since last ran. Below are the cases, If the last run>time since last run the jobs are running fine. If the last run<time since last run the jobs are pending and need to be restarted again.(This part is done by using nohup command) And the last case is last run=time since last run it remains in pending jobs for few seconds until the time since last run exceeds. Is there any command in linux …

Member Avatar
+0 forum 0

I am developing the Django application which runs the Matlab code and create some txt and png files on the server.when I run these below python command on server, it works fine but when I try to run from the server (it is coded in Viewspy).It shows file is updated.(from timestamp).But when I open the file its not updated.I checked error log and access log.But they is no error in them. [CODE]os.chdir('/var/www/djangoapps/practicum/LineShapeKin_Simulation_4.1.4/LineShapeKin_Simulation_4.1/Python/') os.system('/usr/local/MATLAB/R2011b/bin/matlab -nojvm -nosplash -nodisplay -r runscript') [/CODE]

Member Avatar
+0 forum 0

I followed this tutorial [url=http://www.thecpaneladmin.com/change-ftp-port/]How to Change Your FTP Port :: The cPanel Admin[/url] and other similar tutorial, to change ftp port, but still cant make it the problem is, [b]/etc/chkserv.d/ftpd[/b] file always back using the original file, before i edit the file, that still using port 21, after i restarted the ftp server, using these commands [QUOTE]/etc/init.d/pure-ftpd restart /etc/init.d/cpanel restart (restarts tailwatchd/chkservd)[/QUOTE] or from whm > Restart Services > FTP Server (ProFTPd/PureFTPd) please help guys why that file always back automatically using the original file, or give me the working tutorial link to change ftp port Nb. - i …

Member Avatar
+0 forum 0

cPanel uses Exmin as mail server, when sending an email via smtp/email client such as Thunderbird, Mail.app and outlook, a copy of sent mail is stored in local Sent folder but not on remote Sent folder (mail server). While when using IMAP it does because the client will be communicating directly with the server. google mail enabled this over smtp Now what is needed, if it is possible if someone may possible stumbled up on the issue and found a solution to share it with us.

Member Avatar
+0 forum 0

Hi guys, I'm looking for a little help with Apache Xerces. I am currently trying to use Xerces-C++, but I'll soon be using Xerces-Java. As I look the the C++ programming guide and the DOM programming guide, a lot of my questions remain unanswered. The sample codes lack comments on things that are confusing to me, and important options are not explained in the API as to why or why not you might want to you use them. There also doesn't seem to be much information on best practices or what is/isn't efficient. I'm hoping to get the help of …

Member Avatar
+0 forum 0

This is partially in reference to these threads: [url]http://forums.cpanel.net/f5/fastcgi-fcgid-php-ini-per-user-100133.html[/url] [url]http://forums.cpanel.net/f5/individual-php-ini-files-php-fcgi-php-cgi-160398.html[/url] I more or less followed the instructions there and I came up with the following settings: [b]/home/username/public_html/cgi-bin/php.fcgi[/b] [code] #!/bin/sh export PHP_FCGI_CHILDREN=1 export PHP_FCGI_MAX_REQUESTS=10 exec /usr/local/cpanel/cgi-sys/php5 [/code] [b]/usr/local/apache/conf/userdata/std/2/username/custom.conf[/b] [code] AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php.fcgi [/code] [b]/usr/local/apache/conf/includes/pre_virtualhost_2.conf[/b] [code] Action php5-fastcgi /cgi-bin/php.fcgi AddType application/x-httpd-php .php [/code] [b]The custom php.ini is placed in /home/username/public_html/cgi-bin/[/b] When I implement this, the site shows error code 500. It appears it is being isolated to its own PHP configuration, because none of the other sites on the server seem to have a bad reaction. However, it won't …

Member Avatar
+0 forum 0

why do i get this error? can you please help me to fix it? [url]http://204.45.7.122/[/url] [ICODE]overHead(); echo $html->pageTop(); include('loginmenu.php'); include(inc_dir . "/left.php"); echo $html->pageMiddle($config["page_name"]); $toplamkullanicilar = $adetler["JAS_FD"]+$adetler["JAS_FS"]+$adetler["JAS_TP"]+$adetler["JAS_TH"]+$adetler["JAS_OH"]+$adetler["JAS_BG"]+$adetler["JAS_OK"]+$adetler["JAS_OL"]; $ortadakipara = getMoney("JAS_FD")+getMoney("JAS_FS")+getMoney("JAS_TP")+getMoney("JAS_TH")+getMoney("JAS_OH")+getMoney("JAS_BG")+getMoney("JAS_OK")+getMoney("JAS_OL"); ?> [/ICODE]

Member Avatar
+0 forum 0

Hello, I want to make a simple website, and friendly urls would be a great step towards that. I have been trying this for 2 days without success. [url]www.mydomain.com/join[/url] redirects to [url]www.mydomain.com/index.php?path1=join[/url] [url]www.mydomain.com/forum[/url] redirects to [url]www.mydomain.com/index.php?path1=forum[/url] [url]www.mydomain.com/forum/getting-started[/url] redirects to [url]www.mydomain.com/index.php?path1=forum&path2=getting-started[/url] These directories do not actually exist. They are going to look like they do. You should understand what I'm trying to achieve now. index.php [CODE] <?php global $path1; global $path2; $path1=""; $path2=""; if (isset($_GET['path1'])) { $path1=$_GET['path1']; } if (isset($_GET['path2'])) { $path2=$_GET['path2']; } //code omitted. Standard XHTML header if (isset($path1)) { switch ($path1) { case "join": include("join.php"); break; case "forum": include("forum-index.php"); …

Member Avatar
+0 forum 0

Ok i got a problem, i want the domain directory default folder to have index2.php as default page, but i DO HAVE also index.php. so when i even visit mysite.com/index.php it only shows mysite.com/index2.php, enven entering it explicitlly this is my rule DirectoryIndex index2.php index.php (I have a reason to do this, hard to explain and way harder to solve than the question above that would be the quickest thing to do)

Member Avatar
+0 forum 0

Hello! I just made a LAMP server out of an old computer, Ubuntu 10.04. Everything is set up properly, or so I thought. Whenever I upload a file to the "public_html" folder via ftp, the permissions are reset so that it says "Forbidden" when I try to access it. Then I have to go in and either use chmod -R or use FileZilla permissions. Is there a way for me to just set it permanently? Thanks!

Member Avatar
+0 forum 0

hii.. i am using Opensuse 11.4 with two eth0 (192.168.0.59) and eth1 (10.230.56.1) and i don't want to configure client's browsers settings. and client is not able to access my another FTP server at 192.168.0.60. i configured /etc/squid/squid.conf as acl badsites1 dstdomain .facebook.com http_access deny badsites1 but it's still accessible in clients. Please reply..thanks

Member Avatar
+0 forum 0

Hi Guys, i was trying to create vsftpd server with virtual users to be specific. reference : [url]http://www.mmncs.com/2011/07/how-to-setup-an-ftp-server-with-virtual-usersno-accounts-using-vsftpd-on-ubuntu/2/[/url] i got to a point where am having a problem with the PAM configuration cp /etc/pam.d/vsftpd /etc/pam.d/vsftpd_orig ------passed cat /dev/null > /etc/pam.d/vsftpd ------failed thats the error am getting: tom@tom:~$ cat /dev/null &gt; /etc/pam.d/vsftpd [1] 9193 gt: command not found [1]+ Done cat /dev/null -bash: /etc/pam.d/vsftpd: Permission denied tom@tom:~$ tom@tom:~$ sudo cat /dev/null > /etc/pam.d/vsftpd -bash: /etc/pam.d/vsftpd: Permission denied tom@tom:~$ so i try with sudo and using > instead of &gt; anyhelp would be appreciated !

Member Avatar
+0 forum 0

My case: I have several webapps running on my tomcat server like this: demo.myserver.com/application1 demo.myserver.com/application2 demo.myserver.com/application3 This is what I want: Application1.mydomain.com to point to demo.myserver.com/application1 Application2.mydomain.com to point to demo.myserver.com/application2 Application3.mydomain.com to point to demo.myserver.com/application3 This is what I have done: 1. I have set my DNS server to point Application1.mydomain.com and so on to my servers IP address. 2. I have set up apache webserver, apache tomcat6 and the JK2 plugin to make them communicate. 3. I have configured a virtual domain for all my domains in httpd-vhosts.conf and enabled it in httpd.conf. httpd.conf: Include conf/extra/httpd-vhosts.conf httpd-vhosts.conf: <VirtualHost …

Member Avatar
+0 forum 0

Hi guys, i am using unmanaged dedicated server, my host says to increase slot httpd limit, because daemon httpd function stopped so max slot limit already received before where is this part actually in WHM or SSH, or how to do that? the server already rebooted by the host, and running like usually again, but i dont want same problem happened again, so i must found out how to solve it gbu to all people that helping

Member Avatar
+0 forum 0

So I have a WAMP server setup on my development machine using wampserver which i want to deploy on a standard windows pc through a single installation package. I'll be using NSIS to make the installation file. I need to know a few things: 1. Should I install apache,php,mysql individually or use something like wampServer (which I am using on the dev machine)? 2. Do I need to check for pre-existing installations of Apache,mysql and/or php? If so, what should I do if I find them? 3. Should I do silent installs or call the individual installers for each 4. …

Member Avatar
+0 forum 0

Hello to all. I hava an IBM WebSpehre Application Server ver 6.1.0.31 in aix ver 5.3. Things so far. 1. I developed a WAR file and successfully deployed it in JBOSS. 2. Then we migrated to WebSphere, application was installed successfully. 3. Simple select statements like [CODE] String query = "SELECT * FROM " + dbName.toUpperCase(); try { dataSource = ServiceLocator.getDataSource(DATA_SOURCE); conn = dataSource.getConnection(); stmt = conn.createStatement(); rs= stmt.executeQuery(query); while (rs.next()) { DropListDTO ddList = new DropListDTO(); ddList.setId(rs.getInt("ID")); ddList.setDescription(rs.getString("DESCRIPTION")); menuList.add(ddList); } [/CODE] works Now the problem is when i tried to use prepared statements like these [CODE] query = "SELECT …

Member Avatar
+0 forum 0

hi guys, i have a folder which stores uploaded documents and images. the site is password protected using php with mysql database behind it. problem is the pages are secure which is great but the directory in which the documents and images sit is not protected. i was looking at securing using htaccess file however i would rather that the directory being protected could run off their username and password from the mysql database? is their any script that i could use on apache to do this? i found this on the net: AuthType Basic AuthName "MySQL Member Page" Auth_MYSQLhost …

Member Avatar
+0 forum 0

I have Xampp as my server. Apache server from my Laptop works here on my netbook by replacing the "localhost" in to it's IPv4 address. On my netbook. it has WebMatrix which runs on an IIS. what I want to see is an IIS working to view on my Laptop. I tried to replace the "localhost" with the IPv4 address of my netbook. but the problem has occured. the web files is in PHP. both the same file name as it is. what i want to do is if there's a way that localhost will be look like webhost that …

Member Avatar
+0 forum 0

Having trouble with this Mod_Rewrite line: [CODE]RewriteRule ^user/(.*)/faves/page([0-9]*)$ user/faves.php?user=$1&p=$2 [NC,L][/CODE] This works successfully for, say /user/someuser/faves/page2, giving user = someuser and page = 2 It also works for /user/someuser/faves/ - with or without the ending slash, but it does not work with /user/someuser/faves/page1. First thought is that it's down to this line: [CODE]RewriteRule ^(.*)/page1/?$ $1 [NC][/CODE] Which I expect should take /user/someuser/faves/page1 to this next line: [CODE]RewriteRule ^user/(.*)/faves/?$ user/faves.php?user=$1 [NC,L][/CODE] But for some reason I end up with a get value of user = someuser/faves The problem only occurs with /page1 - so I've narrowed it down to those two …

Member Avatar
+0 forum 0

I am in the process of trying to customize my site's URLs and I'm running into an issue with my htaccess file, specifically the newest one I am trying to add. Here's the file -- [CODE]RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] RewriteRule ^/retail/(.*)$ retail.php?id=$1[/CODE] The first condition removes the extensions from the site so that I can go to index instead of index.php. This is working great with no issues. It's the next one down that's causing problems. it's basically not working at all. So when I visit my site and go to domain.com/retail/100, …

Member Avatar
+0 forum 0

The End.