Unable to ping Active Directory Server with Domain Name
Domain Controller - Windows Server 2008 R2 Standard
Client OS - Window Server 2003 ( Terminal Server )
I am unable to ping my Active Directory Domain Name i.e corp.abc.com. (
Please see the print-screen )
I am successfully able to nslookup & ping my DC server ip address ( Please
see the print-screen )
I am also attaching print-screen of IP configuration.
Can you tell me why i am unable to ping, but successfully able to resolve
through nslookup command and also able to ping with DC server ip address
Tuesday, 1 October 2013
Monday, 30 September 2013
How can I execute c programs in ubuntu 13.04
How can I execute c programs in ubuntu 13.04
I upgraded my ubuntu to 13.04 version. After this upgrade I am not able to
execute c programs in terminal. When I try to execute, it shows an error
as shown below
bash: ./cd: Permission denied
where cd is my executable file which is working fine in lower versions of
ubuntu.
I upgraded my ubuntu to 13.04 version. After this upgrade I am not able to
execute c programs in terminal. When I try to execute, it shows an error
as shown below
bash: ./cd: Permission denied
where cd is my executable file which is working fine in lower versions of
ubuntu.
How to know which user killed a process
How to know which user killed a process
Is there a way in linux to find out which user or which process killed
another process? Maybe a log?
I searched through /var/log and specifically on auth.log.* but I didn't
find anything interesting..
I suppose that the process was killed using htop but as far as I know it
doesn't keep activities logs.
Thanks
Is there a way in linux to find out which user or which process killed
another process? Maybe a log?
I searched through /var/log and specifically on auth.log.* but I didn't
find anything interesting..
I suppose that the process was killed using htop but as far as I know it
doesn't keep activities logs.
Thanks
where should i paste my html form code in joomla?
where should i paste my html form code in joomla?
I'm working in joomla i have one custom contact form i have created that
in html code and when user click on submit button i should get all textbox
values email to me.
so i write php code for that.
for e.g there are only two fields in html code in php code like below
<?php
if(isset($_POST['email'])) {
$email_to = "test@gmail.com";
$email_subject = "mail";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the
form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
// add validation for other fields if needed
if(!isset($_POST['Applicant_name']) ||
!isset($_POST['email']))) {
died('We are sorry, but there appears to be a problem with the
form you submitted.');
}
//all fields with there name to send in email
$name = $_POST['name']; // required
$email= $_POST['email']; // required
$error_message = "";
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
//show all fields in message body
$email_message .= "Applicant_name: ".clean_string($Applicant_name)."\n";
$email_message .= "name: ".clean_string($dob)."\n";
$email_message .= "email: ".clean_string($sex)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
Thank you for contacting us. We will be in touch with you very soon.
<?php
}
?>
where and how I need to paste this code in Joomla?
I'm working in joomla i have one custom contact form i have created that
in html code and when user click on submit button i should get all textbox
values email to me.
so i write php code for that.
for e.g there are only two fields in html code in php code like below
<?php
if(isset($_POST['email'])) {
$email_to = "test@gmail.com";
$email_subject = "mail";
function died($error) {
// your error code can go here
echo "We are very sorry, but there were error(s) found with the
form you submitted. ";
echo "These errors appear below.<br /><br />";
echo $error."<br /><br />";
echo "Please go back and fix these errors.<br /><br />";
die();
}
// add validation for other fields if needed
if(!isset($_POST['Applicant_name']) ||
!isset($_POST['email']))) {
died('We are sorry, but there appears to be a problem with the
form you submitted.');
}
//all fields with there name to send in email
$name = $_POST['name']; // required
$email= $_POST['email']; // required
$error_message = "";
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = "Form details below.\n\n";
function clean_string($string) {
$bad = array("content-type","bcc:","to:","cc:","href");
return str_replace($bad,"",$string);
}
//show all fields in message body
$email_message .= "Applicant_name: ".clean_string($Applicant_name)."\n";
$email_message .= "name: ".clean_string($dob)."\n";
$email_message .= "email: ".clean_string($sex)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
?>
Thank you for contacting us. We will be in touch with you very soon.
<?php
}
?>
where and how I need to paste this code in Joomla?
Uploadify Not Uploading Files although there are no errors and alert is successful
Uploadify Not Uploading Files although there are no errors and alert is
successful
I have just downloaded the latest version of Uploadify (swf) ... uploaded
the uploadify folder into the server root and created a folder called
uploads and set it's permissions to 777. (I've tried 755 too).
This is my code:
$("#edit_image1_form").uploadify({
height : 30,
swf : '/uploadify/uploadify.swf',
uploader : '/uploadify/uploadify.php',
width : 120,
folder : '/uploads',
buttonText : 'Upload Image 1',
auto : true,
'onUploadComplete' : function(file) {
alert('The file ' + file.name + ' finished processing.');
}
});
Uploadify.php looks like this:
<?php
/*
Uploadify
Copyright (c) 2012 Reactive Apps, Ronnie Garcia
Released under the MIT License
<http://www.opensource.org/licenses/mit-license.php>
*/
// Define a destination
$targetFolder = '/uploads'; // Relative to the root
//$targetFolder = '/var/www/vhosts/busybar/httpdocs/uploads';
$verifyToken = md5('unique_salt' . $_POST['timestamp']);
if (!empty($_FILES) && $_POST['token'] == $verifyToken) {
$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder;
$targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name'];
// Validate the file type
$fileTypes = array('jpg','jpeg','gif','png'); // File extensions
$fileParts = pathinfo($_FILES['Filedata']['name']);
if (in_array($fileParts['extension'],$fileTypes)) {
move_uploaded_file($tempFile,$targetFile);
echo '1';
} else {
echo 'Invalid file type.';
}
}
?>
I'm trying to upload a small .png file so that should work.
When I try to upload the file everything looks like it's uploading. I even
get The Successful alert from "alert('The file ' + file.name + ' finished
processing.');"...
But the image is just not there.
What I'm I doing wrong here...forgotten something?
successful
I have just downloaded the latest version of Uploadify (swf) ... uploaded
the uploadify folder into the server root and created a folder called
uploads and set it's permissions to 777. (I've tried 755 too).
This is my code:
$("#edit_image1_form").uploadify({
height : 30,
swf : '/uploadify/uploadify.swf',
uploader : '/uploadify/uploadify.php',
width : 120,
folder : '/uploads',
buttonText : 'Upload Image 1',
auto : true,
'onUploadComplete' : function(file) {
alert('The file ' + file.name + ' finished processing.');
}
});
Uploadify.php looks like this:
<?php
/*
Uploadify
Copyright (c) 2012 Reactive Apps, Ronnie Garcia
Released under the MIT License
<http://www.opensource.org/licenses/mit-license.php>
*/
// Define a destination
$targetFolder = '/uploads'; // Relative to the root
//$targetFolder = '/var/www/vhosts/busybar/httpdocs/uploads';
$verifyToken = md5('unique_salt' . $_POST['timestamp']);
if (!empty($_FILES) && $_POST['token'] == $verifyToken) {
$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder;
$targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name'];
// Validate the file type
$fileTypes = array('jpg','jpeg','gif','png'); // File extensions
$fileParts = pathinfo($_FILES['Filedata']['name']);
if (in_array($fileParts['extension'],$fileTypes)) {
move_uploaded_file($tempFile,$targetFile);
echo '1';
} else {
echo 'Invalid file type.';
}
}
?>
I'm trying to upload a small .png file so that should work.
When I try to upload the file everything looks like it's uploading. I even
get The Successful alert from "alert('The file ' + file.name + ' finished
processing.');"...
But the image is just not there.
What I'm I doing wrong here...forgotten something?
Sunday, 29 September 2013
What is the best method to write user "log files" of an android application to a file in a remote server or a table in a remote database?
What is the best method to write user "log files" of an android
application to a file in a remote server or a table in a remote database?
I am creating a multi user android application and it is connected to a
php web service in a remote server and to a remote database via that web
service. I want to keep a track of all the important activities done by
the users. For an example if a user logged in to the app and changed his
profile details and then logged out, a brief description of what he has
done should be recorded(with time) somewhere. So then the admin of the
system can see what the users are doing. So I think it is better to use
log cat files and then flush all those data to a unique file in the server
or a table in the database, when the user logs out or exists from his
account. I it is appropriate How to do it?
application to a file in a remote server or a table in a remote database?
I am creating a multi user android application and it is connected to a
php web service in a remote server and to a remote database via that web
service. I want to keep a track of all the important activities done by
the users. For an example if a user logged in to the app and changed his
profile details and then logged out, a brief description of what he has
done should be recorded(with time) somewhere. So then the admin of the
system can see what the users are doing. So I think it is better to use
log cat files and then flush all those data to a unique file in the server
or a table in the database, when the user logs out or exists from his
account. I it is appropriate How to do it?
RSS: errors in the java code or in the site?
RSS: errors in the java code or in the site?
With Android studio, I worked on a code that reads RSS feeds and shows
them to me on the phone. I did several tests and the code is fine, except
that when I open any news from the list view gives me only bit part of the
description of the news, I have the space on the screen of the phone
because I put a scroll view but the problem is that in description quit in
the middle of the speech. Can you help me? (If it helps I put the code).
Thanks
With Android studio, I worked on a code that reads RSS feeds and shows
them to me on the phone. I did several tests and the code is fine, except
that when I open any news from the list view gives me only bit part of the
description of the news, I have the space on the screen of the phone
because I put a scroll view but the problem is that in description quit in
the middle of the speech. Can you help me? (If it helps I put the code).
Thanks
Subscribe to:
Posts (Atom)