Sunday, June 24, 2018
Monday, November 3, 2014
Laravel Installtion behind proxy
Step 01 :
Open CMD With administrative privileges.Step 02 :
set HTTP_PROXY=http://user:password@proxy.domain.com:port
download the latest version of the Laravel framework and extract its contents into a directory on your server.(c:\wamp\www\laravel)
Downlod the latestcomposer.phar file from https://getcomposer.org/download/ and set environment PATH variable tocomposer.phar file
Step 03 : goto laravel folder on CMD and runcomposer install
orcomposer create-project laravel/laravel Foldername --prefer-dist
Now it is ready to work
Monday, July 21, 2014
Joomla behind a proxy server
append bellow lines in configuration.php file
public $proxy_host = 'proxy server IP Address';
public $proxy_port = 'proxy server port';
public $proxy_enable = 'true';
I tested this with Joomla 3.3.1
public $proxy_host = 'proxy server IP Address';
public $proxy_port = 'proxy server port';
public $proxy_enable = 'true';
I tested this with Joomla 3.3.1
Wednesday, July 3, 2013
How instruction set affect CPU performance
Technology: SIMD / MMX / SSE / SSE2 / SSE3 / 3DNow!
An increasing number of newer processors come with
extensions to their instruction set commonly referred to as SIMD instructions.
SIMD stands for Single Instruction Multiple Data meaning that a single
instruction, such as "add", operates on a number of data items in
parallel. A typical SIMD instruction for example will add 8 16 bit values in
parallel. Obviously this can increase execution speed dramatically which is why
these instruction set extensions were created.
MMX Instruction Set
In 1997 Intel launched the Pentium Processor with MMX Technology. Subsequently the Pentium II, III and 4 were launched and other processors, such as the AMD Athlon and Duron, added this instruction set extension.SSE Instruction Set
The Pentium III processor, introduced in 1999, was the first processor with the SSE instruction set extension. However, AMD at that time already had added the similar 3DNow! instruction set extension to their AMD K6 CPU.The SSE instruction set in fact consists of 3 distinct enhancements:
- Additional MMX instructions such as min/max
- Prefetch and write-through instructions for optimizing data movement from and to the L2/L3 caches and main memory
- New 128 bit XMM registers and corresponding 32 bit floating point (single precision) instructions
SSE2 Instruction Set
The Pentium 4 processor introduced the SSE2 instruction set extensions in 2000.Two important improvements were made:
- Support 64 bit (double precision) floating point data types
- Integer instruction for the XMM registers
Speed-Ups
SIMD instructions have the potential to speed-up software by factors of 2 .. 16 or even more. This especially applies to compute-intensive software dealing with arrays of data. However, as most compilers do not utilize the (full) potential of these instructions these speed-ups can generally only be achieved by an optimization expert.You have to a processor with an instruction set designed to improve performance with 3D graphics and other multimedia data. To take full advantage of MMX, SSE, SSE2, and 3DNow! technology, software must be written to use its specific capabilities.
Performance test
Video Converter software: FFmpeg
FFmpeg is a complete, cross-platform
solution to record, convert and stream audio and video. It includes libavcodec
- the leading audio/video codec library.
Support for -cpuflags
flags (global)
in Command line
Possible flags for
this option are:
·
x86- mmx, mmxext, sse, sse2, sse2slow, sse3, sse3slow,
ssse3, atom, sse4.1, sse4.2, avx, xop, fma4, 3dnow, 3dnowext, cmov,
·
ARM- armv5te, armv6, armv6t2, vfp, vfpv3, neon,
·
PowerPC- altivec,
·
Specific Processors - pentium2, pentium3, pentium4, k6,
k62, athlon, athlonxp, k8
Sample codes ( http://ffmpeg.org/ffmpeg.html#Preset-files
)
ffmpeg
-cpuflags -sse+mmx ...
ffmpeg
-cpuflags mmx ...
ffmpeg
-cpuflags 0 ...
ffmpeg -cpuflags mmx -i originalvideo.mkv convertedvideo.avi
Download
ffmpeg.exe, ffplay.exe
and ffprobe.exe from
http://ffmpeg.zeranoe.com/builds/win64/static/ and run start.bat file
@echo OFF
rem set inputfilename=org.wmv
rem set outfilename=out.wmv
set/p inputfilename=please enter input file :
set/p outfilename=please enter output file :
rem echo converting, %inputfilename% to %outfilename%
>>result.txt
echo =======converting, %inputfilename% to %outfilename%===========
>>result.txt
set/p cpuplags=please enter your CPUPLAGS option :
echo your CPUPLAGS option is %cpuplags% >>result.txt
ffmpeg -cpuflags %cpuplags% -i %inputfilename% %outfilename% -benchmark >>result.txt
echo ------------------------------------------------------------
>>result.txt
echo >> result.txt
pause
Saturday, May 18, 2013
java Assignment 02
//=============SavingsAccount=======================
import java.util.Scanner;
public class SavingsAccount {
private static double annualInterestRate = 0;
private double savingsBalance;
private int accountNumber;
private String name;
private String address;
public int getAccountNumber() {
return accountNumber;
}
public String getAddress() {
return address;
}
public String getName() {
return name;
}
public void addMonthlyInterest() {
double thisMonthInterest = (annualInterestRate * savingsBalance) / (12*100);
savingsBalance += thisMonthInterest;
}
static void modifyInterestRate() {
System.out.println("Enter new annual interest rate:");
annualInterestRate = (new Scanner(System.in)).nextInt();
}
public void setSavingsBalance(double amount) {
this.savingsBalance = amount;
}
public double getSavingsBalance() {
return savingsBalance;
}
public static double getAnnualInterestRate() {
return annualInterestRate;
}
public SavingsAccount() {
// createAcccount();
}
public void createAcccount(){
System.out.println("\n>>>>>>>>>>> New Account details");
System.out.print("\tAccount Number:");
accountNumber = (new Scanner(System.in)).nextInt();
System.out.print("\tName:");
name = (new Scanner(System.in)).nextLine();
System.out.print("\tAddress:");
address = (new Scanner(System.in)).nextLine();
System.out.print("\tInitial Savings Amount:");
savingsBalance = (new Scanner(System.in)).nextDouble();
}
public void deposit(){
System.out.println("Add deposite amount:");
double amount=(new Scanner(System.in)).nextDouble();
savingsBalance+=amount;
}
public void withdrawel(){
System.out.println("Add withdrawel amount:");
double amount=(new Scanner(System.in)).nextDouble();
if (savingsBalance<amount){
System.out.println("You have not enough balance in your account [balance= "+getSavingsBalance()+"]");
}else{
savingsBalance-=amount;
System.out.println("Your money transaction was successfully");
}
}
public void displayAccountDetails() {
System.out.println("\n* * * * * * * * * * * * Bank Statment* * * * * * * * * * * * * * * * * * * *");
System.out.println("\tName: " + getName() + "[ Account No: " + getAccountNumber() + "]");
System.out.println("\tAddress: " + getAddress());
System.out.printf("\tBalance: %8.2f", getSavingsBalance());
System.out.println("\t" + "Current Interest rate: " + getAnnualInterestRate());
System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *");
}
}
//=============SavingsAccountTest=======================
import java.util.Scanner;
public class SavingsAccountTest {
static int menuOption;
public static void main(String[] args) {
displayMainMenu();
SavingsAccount saver=new SavingsAccount();
do{
if(menuOption==1){
saver.createAcccount();
}else if(menuOption==2){
saver.deposit();
}else if(menuOption==3){
saver.withdrawel();
}else if(menuOption==4){
saver.displayAccountDetails();
}else if(menuOption==5){
saver.modifyInterestRate();
}else if(menuOption==6){
saver.addMonthlyInterest();
}
displayMainMenu();
}while(menuOption!=7);
}
public static void displayMainMenu() {
System.out.println("\n========================== Main Menu ===============================================");
System.out.println("\t 1- New Account");
System.out.println("\t 2- Deposite");
System.out.println("\t 3- Widdrawel");
System.out.println("\t 4- Bank Statment");
System.out.println("\t 5- Change Annual Interest Rate");
System.out.println("\t 6- Add month interest to a Account");
System.out.println("\t 7-exit ");
System.out.println("====================================================================================\n");
System.out.print("Choose :");
menuOption=(new Scanner(System.in)).nextInt();
}
}
import java.util.Scanner;
public class SavingsAccount {
private static double annualInterestRate = 0;
private double savingsBalance;
private int accountNumber;
private String name;
private String address;
public int getAccountNumber() {
return accountNumber;
}
public String getAddress() {
return address;
}
public String getName() {
return name;
}
public void addMonthlyInterest() {
double thisMonthInterest = (annualInterestRate * savingsBalance) / (12*100);
savingsBalance += thisMonthInterest;
}
static void modifyInterestRate() {
System.out.println("Enter new annual interest rate:");
annualInterestRate = (new Scanner(System.in)).nextInt();
}
public void setSavingsBalance(double amount) {
this.savingsBalance = amount;
}
public double getSavingsBalance() {
return savingsBalance;
}
public static double getAnnualInterestRate() {
return annualInterestRate;
}
public SavingsAccount() {
// createAcccount();
}
public void createAcccount(){
System.out.println("\n>>>>>>>>>>> New Account details");
System.out.print("\tAccount Number:");
accountNumber = (new Scanner(System.in)).nextInt();
System.out.print("\tName:");
name = (new Scanner(System.in)).nextLine();
System.out.print("\tAddress:");
address = (new Scanner(System.in)).nextLine();
System.out.print("\tInitial Savings Amount:");
savingsBalance = (new Scanner(System.in)).nextDouble();
}
public void deposit(){
System.out.println("Add deposite amount:");
double amount=(new Scanner(System.in)).nextDouble();
savingsBalance+=amount;
}
public void withdrawel(){
System.out.println("Add withdrawel amount:");
double amount=(new Scanner(System.in)).nextDouble();
if (savingsBalance<amount){
System.out.println("You have not enough balance in your account [balance= "+getSavingsBalance()+"]");
}else{
savingsBalance-=amount;
System.out.println("Your money transaction was successfully");
}
}
public void displayAccountDetails() {
System.out.println("\n* * * * * * * * * * * * Bank Statment* * * * * * * * * * * * * * * * * * * *");
System.out.println("\tName: " + getName() + "[ Account No: " + getAccountNumber() + "]");
System.out.println("\tAddress: " + getAddress());
System.out.printf("\tBalance: %8.2f", getSavingsBalance());
System.out.println("\t" + "Current Interest rate: " + getAnnualInterestRate());
System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *");
}
}
//=============SavingsAccountTest=======================
import java.util.Scanner;
public class SavingsAccountTest {
static int menuOption;
public static void main(String[] args) {
displayMainMenu();
SavingsAccount saver=new SavingsAccount();
do{
if(menuOption==1){
saver.createAcccount();
}else if(menuOption==2){
saver.deposit();
}else if(menuOption==3){
saver.withdrawel();
}else if(menuOption==4){
saver.displayAccountDetails();
}else if(menuOption==5){
saver.modifyInterestRate();
}else if(menuOption==6){
saver.addMonthlyInterest();
}
displayMainMenu();
}while(menuOption!=7);
}
public static void displayMainMenu() {
System.out.println("\n========================== Main Menu ===============================================");
System.out.println("\t 1- New Account");
System.out.println("\t 2- Deposite");
System.out.println("\t 3- Widdrawel");
System.out.println("\t 4- Bank Statment");
System.out.println("\t 5- Change Annual Interest Rate");
System.out.println("\t 6- Add month interest to a Account");
System.out.println("\t 7-exit ");
System.out.println("====================================================================================\n");
System.out.print("Choose :");
menuOption=(new Scanner(System.in)).nextInt();
}
}
Wednesday, February 20, 2013
The best file recovery software( File Scavenger® )
| File Scavenger® - Data Recovery Utility | |
|
File Scavenger® Version 4 is a file "undelete" and data
recovery utility for Windows® 8, 7, Vista, Server 2003, XP and 2000.
File Scavenger® can recover files that have been
accidentally deleted (including files removed from the Recycle Bin, in a
DOS window, from a network drive, from Windows Explorer with the SHIFT
key held down) provided that recovery is attempted before the files are
permanently overwritten by new data. File Scavenger® supports both basic
and dynamic disks, NTFS compression, alternate data streams, sparse
files, Unicode filenames, etc. Except in severe cases, both the file and
the folder path leading to the file can be recovered. File Scavenger® can also recover files from a reformatted or corrupted volume even when the volume has been deleted and its original position and size are unknown. File Scavenger® can scan an entire physical hard drive to look for traces of defunct volumes. File Scavenger® uses advanced algorithms to handle disks with bad sectors and badly corrupted partitions. It can be installed on a hard drive or run from a portable storage device such as a memory card, removable drive, or CD. To run File Scavenger®, you must log on as a system administrator to the computer where data recovery is intended. Files can only be restored if the disk areas allocated to the files have not been overwritten by new data. All recovered files should be validated for the integrity of the recovered data. http://www.quetek.com/prod02.htm |
Subscribe to:
Posts (Atom)
To configure Nginx for a Laravel application located within a subfolder, a location block is required to handle requests to that specifi...
-
File Scavenger® - Data Recovery Utility File Scavenger® Version 4 is a file ...
-
Find what : (^\d+)( *)(.*) Replace with : \3
-
I planned to held online practical exams for students who must save their result data on remote samba server. This tutorial ex...