Skip to main content

Dark clouds and silver linings

Today I heard about a grand wedding of an Indian tycoon (Ambani's son) from a friend of mine, and he showed me some videos of it too. He said famous and powerful people from around the world have been invited to it, and the cost of the event was going to be several Billions (of Indian Rupees or USD, I don't know). If you think about it, India is a country with a higher population of substandard living conditions. There are innocent and miserable children who are forced to work for a mere subsistence, being deprived of education, health facilities, and food and water. I remember a movie based on a true story in which Akshey Kumar was playing the leading role where he makes sanitary towels (pads) for poor women who could not afford it. In such a country, a single wedding event spends billions of money. What a crappy world we are living! You could imagine how much wealth this family has amassed. On the other, this "mental disease" of exorbitant spending must be highly we

රූපයක් තුල රහසිගතව ෆයිල් සැඟවීම

බොහොම කාලයකින් බ්ලොග් එකේ කිසිවක් ලිවීමට බැරි විය. පරණ ෆයිල් අවුස්සමින් සිටින විට පොඩි ටියුටෝරියල් එකක් හමු විය (මා වසර ගණනකට පෙර සේව් කර ගත්). එහි තිබුණේ gif format එකේ රූපයක් තුල කොහොමද zip file එකක් රහසිගතව ගබඩා කරගන්නේ කියා. මෙවිට අන් අයට එම ෆයිල් එක පෙනෙනු ඇත්තේ සාමාන්‍ය රූපයක් ලෙස වුවත්, එය winzip, winrar, 7z වැනි සොෆ්ට්වෙයාර් එකකින් ඕපන් කළ විට, ඒ තුල රහසිගතව ඇති ෆයිල් එක extract කරගෙන කියවිය හැකිය.

මෙය සිදු කරන හැටි ඉතාම පහසු අතර, අමතර කිසිම සොෆ්ට්වෙයාර් එකක් අවශ්‍ය නොවේ. පළමුව ඔබගේ gif ෆයිල් එක හා zip ෆයිල් එක (හෝ කිහිපයක් වුවද) එකම ෆෝල්ඩර් එකක් තුල සේව් කර ගන්න. ඉන්පසු DOS/command prompt එක ඕපන් කර ගන්න (මේ සඳහා වින්ඩෝස් ස්ටාර්ට් බට්න් එකේ යටින්ම ඇති සර්ච් බොක්ස් එකේ cmd.exe කියා ටයිප් කර එන්ටර් කළ හැකිය). මෙවිට පහත ආකාරයේ ටර්මිනල් වින්ඩෝ එකක් ඕපන් වේ.

 
ඉන්පසු cd යන කමාන්ඩ් එක භාවිතා කරමින් තමන් ඉහත සාදා ගත් ෆෝල්ඩර් එකට යා යුතුය. එම ෆෝල්ඩර් එක තුල abc.gif හා  cde.zip ලෙස ෆයිල් දෙකක් තිබේ යැයි සිතමු. මෙවිට ඉහත රූපයේ පෙනෙන පරිදි copy /B abc.gif+cde.zip secret.gif යන කමාන්ඩ් එක ලියා එන්ටර් කරන්න (මෙහි secret යන කොටස වෙනුවට ඔබට කැමති නමක් ලිවිය හැකිය). ෆයිල් නේම් එක තුල ස්පේස් තිබේ නම්, එම නම ඩබ්ල් කෝට්ස් තුල ඉහත රූපයේ පරිදි ලිවිය යුතුය. එවිට secret.gif යනුවෙන් අලුත් ග්‍රැෆික් ෆයිල් එකක් සෑදෙනු ඇත. මෙම ෆයිල් එක සාමාන්‍ය පරිදිම රූපයක් සේ දැකිය හැකිය. එහෙත් ඒ තුල cde.zip ෆයිල් එක සැඟව පවතී. එය වින්සිප් වැනි ප්‍රෝග්‍රෑම් එකකින් ඕපන් කර එක්ස්ට්‍රැක්ට් කර ගත හැකිය.

 

මෙලෙස ෆයිල් එකක් සැඟවිය හැක්කේ gif format එක තුල පමණක් නොව. jpg, png යන ෆයිල් ෆෝමැට් තුලද එය කළ හැකිය (අනෙක් ග්‍රැෆික් ෆෝමැට්වලත් සමහරවිට එය කළ හැකි විය හැකියි). එලෙස සඟවන ෆයිල් එකේ ආරක්ෂාව/රහසිගතබව තවත් වැඩි කිරීමට කැමති නම්, එම කම්ප්‍රෙස් ෆයිල් එකට පාස්වර්ඩ් එකක් වුවද යෙදිය හැකිය.