This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tar is an archiving utility in Linux. Lets see how can we extract various archived files in Linux using this utility. We will also see the meaning of the options provided with the commands. Type the following commands in terminal (Keyboard short cut: Ctrl+Alt+T in Ubuntu): | |
| Extracting .tar.bz2: | |
| tar xvjf filename.tar.bz2 location | |
| Extracting .tar.gz: | |
| tar xvzf filename.tar.gz location | |
| Where: | |
| x — extract | |
| v — verbose (it will show the extracting files in the terminal) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function is_subdir($parent,$sub){ | |
| $parent=rtrim($parent,'/'); | |
| $sub=rtrim($sub,'/'); | |
| $parent=explode('/',$parent); | |
| $sub=explode('/',$sub); | |
| for($i=0;$i<count($parent);$i++){ | |
| if($parent[$i]!=$sub[$i]){ | |
| return false; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jt.addMouseListener(new MouseAdapter() { | |
| public void mouseReleased(MouseEvent e) { | |
| int r = jt.rowAtPoint(e.getPoint()); | |
| if (r >= 0 && r < jt.getRowCount()) { | |
| jt.setRowSelectionInterval(r, r); | |
| } else { | |
| jt.clearSelection(); | |
| } | |
| int rowindex = jt.getSelectedRow(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i Manage-Event-Using-ICAgenda-Demostration.mp4 -vol 1280 -vcodec copy /home/adidac/Desktop/test.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function validateLogin($username,$password){ | |
| jimport( 'joomla.user.authentication'); | |
| $auth = & JAuthentication::getInstance(); | |
| $credentials = array( 'username' => $username, 'password' => $password ); | |
| $options = array(); | |
| $response = $auth->authenticate($credentials, $options); | |
| if ($response->status === JAUTHENTICATE_STATUS_SUCCESS) { | |
| $response->status = true; | |
| $user=JFactory::getUser($username); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@page import="java.sql.*"%> | |
| <%@page import="com.mysql.jdbc.PreparedStatement"%> | |
| <%@page import="com.mysql.jdbc.Connection"%> | |
| <%@ page language="java" contentType="text/html; charset=UTF-8" | |
| pageEncoding="UTF-8"%> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>Insert title here</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Run These Command | |
| fix-splash | |
| rm /root/.kde/cache-root/icon-cache.kcache | |
| rm /root/.kde/cache-root/plasma_theme_Volatile.kcache | |
| rm /root/.kde/cache-bt/icon-cache.kcache | |
| rm /root/.kde/cache-bt/plasma_theme_Volatile.kcache | |
| startx | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <select name="currency_code"> | |
| <option value="">Select Currency</option> | |
| <option value="AUD">Australian Dollar</option> | |
| <option value="BRL">Brazilian Real </option> | |
| <option value="CAD">Canadian Dollar</option> | |
| <option value="CZK">Czech Koruna</option> | |
| <option value="DKK">Danish Krone</option> | |
| <option value="EUR">Euro</option> | |
| <option value="HKD">Hong Kong Dollar</option> | |
| <option value="HUF">Hungarian Forint </option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function validateVersion(version){ | |
| var pat=/^[0-9]{1,3}.[0-9]{0,3}.[0-9]{0,3}$/; | |
| return pat.test(version) | |
| } | |
| Validate Version | |
| var version="10.2.5"; | |
| if(validateVersion(version)){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Validate Data | |
| */ | |
| function validate($form, $data,$group=null){ | |
| $status=true; | |
| if(!$this->EmailValidate($data['email'])){ | |
| $status=false; | |
| } | |
| if($status){ | |
| return $data; |
NewerOlder