In Sublime Text - Do A Find [using regular expression] - Apply the below expression
,(?=(?:[^,]*,){16}[^,]*$),(?=(?:[^,]*,){15}[^,]*$)
public boolean renameTo(File dest)
public static void copyFile(File srcFile,
File destFile)
throws IOException
@SuppressWarnings("unchecked")
public void validate()
{
List<String> uploadErrors = (List<String>)getActionErrors();
if (getFieldErrors().get("upload") != null)
{
uploadErrors.addAll((List<String>)getFieldErrors().get("upload"));
}
for (String err : uploadErrors)
{
if ( err.startsWith("Enter the Error Message to be overridden"))
{
clearErrorsAndMessages();
addActionError("Enter new error message");
break;
}
}
}
function eliminateDuplicates(arr) {
var i,
len=arr.length,
out=[],
obj={};
for (i=0;i
GrabText V 0.1 is a Free Chrome App to Grab the Text to your phone. Scan the QR Code and Grab the Text. An easy way to copy any text in webpages to your smartphone. This is based on HTML5/JS/Chrome Handle/Google Infographic charts. Please download and write your review for the app Version 1.0 is under construction. V1.0 will have feature to categorize phone number/url/email/text Logo Designed By KK (http://twitter.com/#!/KK_Webdesigner)
<?php
$HOSTNAME = 'localhost';
$USERNAME = 'root';
$PASSWORD = '';
$DBNAME = 'rizvi_test_db';
mysql_select_db($DBNAME, mysql_connect($HOSTNAME, $USERNAME, $PASSWORD)) or die(mysql_error());
$result = mysql_query("SHOW TABLES;") or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo $row[0]; //print the table name
$result2 = mysql_query("DESCRIBE ".$row[0].";") or die(mysql_error()); //get details schema for each table
echo "<table border='1' width='70%'>";
echo "<tr><td>Field</td><td>Type</td><td>Null</td><td>Key</td><td>Default</td><td>Extra</td>";
while($row2 = mysql_fetch_array($result2)){
for($i=0; $i<6; $i++){
if($row2[$i] == "" || $row2[$i] == NULL){
$row2[$i] = " ";
}
}
echo "<tr>";
echo "<td>".$row2[0]."</td><td>".$row2[1]."</td><td>".$row2[2]."</td><td>".$row2[3]."</td><td>".$row2[4]."</td><td>".$row2[5];
echo "</tr>";
}
echo "</table>";
echo "<br/>";
}
?>
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="/media/system/js/caption.js"></script>
To remove above javascript's import, you just need to
add the following code at the top of your template's index.php file.
<?php
//remove mootools.js and caption.js
$headerstuff=$this->getHeadData();
reset($headerstuff['scripts']);
foreach($headerstuff['scripts'] as $key=>$value){
unset($headerstuff['scripts'][$key]);
}
$this->setHeadData($headerstuff);
?>
| One of the questions that often gets asked is "How can I load a Joomla! 1.5 Module into a content Article? This is in fact an easy thing to do, and can provide useful solutions such as:
By default, Joomla! Modules can be placed in any Module Position of the Template, but they do not load into Content Articles. This tutorial will explain how to enable and use Module loading within your Joomla! Articles, Here are the steps: Step 1 - Create a new Module or Copy an existing one.Within your Joomla! Administration, navigate to Extensions > Module Manager. If you are creating a new Module, click on the New button at the top right of the screen, or you can put a tick in the box next to an existing Module and copy it using the Copy button. If you copy an existing Module, the new Module will be created or copied and placed within the Module listing. Step 2 - Edit the Module
On the left side of the Module Edit Screen you will see some properties such as Module Title, Enabled, Module Position etc. Here is where the power of Joomla! shows itself. Usually we would just click on the Module Position field and select an available Module Position, but it is also possible to enter in your own value here as believe it or not, this field is editable! We need to edit this field and enter in a custom Module Position Name which will be used for our in-content use. Instead of clicking on the Arrow next to this field, click on the text within the field, and enter in your own value such as, content_custommod If you need to make other changes to your Module parameters then do so and when you are finished, make sure you click the "SAVE" button at the top right of the screen. Your new custom module position will then be saved with this Module. Step 3 - Check the Plugin
Step 4 - Load Module in ArticleNavigate to the Article Manager Screen, and Edit the Article you wish to load the Module within. Click on it's title to load the Article Edit Screen. Within the desired location of the Article, enter the following syntax in, which is code to tell the Module to load.
IMPORTANT NOTE: Do not enter in a common Template Module Position such as "Top" or "Left" into your loadposition tag. This may display all of the modules that are then set to show in that Position. |
Well the problem is with flash. So if it is not working for you just do this
Go to: administration mode
Menu: Site, Global Configuration
Choose: Enable Flash Uploader [No]
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );//this is when we are in the root
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$session =& JFactory::getSession();
$myUser = $session->get( 'myUser', 'empty' );
// include SMTP Email Validation Class
require_once('smtp_validateEmail.class.php');
// the email to validate
$email = 'user@example.com';
// an optional sender
$sender = 'user@mydomain.com';
// instantiate the class
$SMTP_Validator = new SMTP_validateEmail();
// turn on debugging if you want to view the SMTP transaction
$SMTP_Validator->debug = true;
// do the validation
$results = $SMTP_Validator->validate(array($email), $sender);
// view results
echo $email.' is '.($results[$email] ? 'valid' : 'invalid')."\n";
// send email?
if ($results[$email]) {
//mail($email, 'Confirm Email', 'Please reply to this email to confirm', 'From:'.$sender."\r\n"); // send email
} else {
echo 'The email addresses you entered is not valid';
}
define( '_JEXEC', 1 );
define( '_VALID_MOS', 1 );
// JPATH_BASE should point to Joomla!'s root directory
define( 'JPATH_BASE', realpath(dirname(__FILE__) .'/' ) );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
$user =& JFactory::getUser();
$session =& JFactory::getSession();