In 2013 before my SSC exam my parents locked my computer with password.Then I used some tricks to unlock the computer.Today I am going to share those tricks with you.If your parents do the same with you then you can unlock computer easily.
1.Some thing that you can do before getting locked
Install a keystroke logger before they lock your PC.If your parents locked your computer once and they can do it again any time then you can use a keystroke logger.Keystroke logger will keep a record of all keystrokes in your PC.If you get access to PC anyway you can see what password they typed!
2.Use your webcam
If your parents give you access to your computer for some time then you can you can use your webcam to see what they typed.If your webcam is good enough! Download a video capture software (vlc media player can be used).Once they give you access start video capturing then lock the computer after that call them and say that you locked the computer accidentally and ask for password again ;)
3.Use Ubuntu Install disk
Download ubuntu. Make a bootable disk or usb stick.Run that disk and select to try ubuntu. Now you can use ubuntu without installing! You can browse internet,get access to your hdd,watch movies!
This one is easier than the first one.You have to give the path of the file that you want to move in the first parameter of the rename() function. Then give the new path for the file in the second parameter (give the path with the file name).
If your site is in a different language than English then you must need to display date and time in that language in your site.It is very easy to display date in any language with php.
You can do this by using str_replace() function.All you have to do replace the numbers, months and day names with your wanted language’s words. Str_replace() function is used to replace parts of a PHP string with new value.
I am going to create a function named translated_date_and_time() and do every thing inside that and when I call this function anywhere in my php script it will display date in the language that I want.I am going to use Bengali here.
Definition of the translator function:
function translated_date_and_time()
{
//First take the value of date() function
$date = date('g:i A F j, Y');
//Translate the numbers
$english_numbers = array(0,1,2,3,4,5,6,7,8,9);
$translated_numbers = array('০','১','২','৩','৪','৫','৬','৭','৮','৯');
$date = str_replace($english_numbers,$translated_numbers,$date);
//Translate the months
$english_months = array(
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December'
);
$translated_months = array(
'জানুয়ারি',
'ফেব্রুআরি',
'মার্চ',
'এপ্রিল',
'মে',
'জুন',
'জুলাই',
'আগস্ট',
'সেপ্টেমর',
'অক্টবর',
'নভেম্বর',
'ডিসেম্বর'
);
$date = str_replace($english_months,$translated_months,$date);
//Translate Am and PM
$english_am_pm = array("AM","PM");
$translated_am_pm = array('এম','পিএম');
$date = str_replace($english_am_pm,$translated_am_pm,$date);
return $date;
}
Now it is time to call our function:
echo translated_date_and_time();
. . .
This was originally posted on one of my old blog – CodingWar.com
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Recent Comments