Setting MacOS agar bisa menyimpan data di Ext-HDD/USB NTFS versi windows (ujicoba di MacOS Sierra / High Siera)

Saya akan berbagi  salah satu tips yang sangat berguna bagi pengguna MacOS yaitu setting untuk bisa menyimpan file di HDD NTFS.

Saya mengalami kesulitan saat saya mau bersih-bersih file di Mac saya karena harddisknya sudah penuh, saat saya mau copy file-2 besar ke hdd external saya yg bertipe NTFS tidak berhasil karena tipe NTFS di Mac secara default hanya bisa “read only”, hal ini disebabkan HDD NTFS hanya berformat windows.

setelah coba cari2 di google ternyata ketemu tips untuk melakukan setting tanpa harus membeli applikasi tambahan di MacOS

berikut ini caranya :

 

tahap 1 : Cek nama HDD EXternal

cek/ingat nama HDD External NTFS yang akan anda konfigurasi.

buka “FINDER” kemudian di sisi sebelah kiri ada “Device” kemudian lihat nama HDD anda dan copy atau diingat.

tahap 2 : Buka Command lines di Mac anda

jalankan applikasi Terminal, bisa ditemukan di Applications/Utilities kemudian ketik perintah seperti dibawah ini :

sudo nano /etc/fstab

tekan enter,

setelah terminal akan membuka file fstab kemudian ketik perintah dibawah ini didalam file tersebut :

LABEL=NAME none ntfs rw,auto,nobrowse

NAME diganti dengan nama HDD External yg sudah copy/ingat pada tahap 1

setelah itu tekan  Ctrl + O untuk menyimpan dan enter untuk konfirmasi menyimpan file

kemudian tekan Ctrl + X  untuk keluar dari terminal.

kemudian eject HDD external anda

 

tahap 3 : buka kembali HDD

setelah itu dicolokkan kembali HDD external anda

maka tidak akan muncul di dbagian device lagi. untuk melihatnya anda bisa buka aplikasi FINDER kemudian pilih menu GO dan pilih GO TO Folder dan input :

/Volumes

kemudian akan muncul folder dengan nama HDD External anda, buka foldernya dan silahkan copy/paste di Folder tersebut.

untuk memudahkan Drag folder nama HDD External anda ke bagian sisi sebelah kiri dibawah Favorites dan akan muncul sebagai shortcut di Finder anda.

Done

Terimakasih.

 

 

 

 

 

 

 

 

 

 

 

 

Advertisements

Mamre Megati Kita Lupa

Mamre Megati Kita Lupa

 

Mamre Megati Kita Lupa

Padanta Sanga Pasu-pasu Ndube

Sikepkep Jabunta Siman Usihen Anak-anakta

Oh Andiko Lanai Kal Sidalanken

 

Kisat Erminggu Ras Pa Mamre

Riahen Nggo Siakap Bas Kede Kopi

Ercatur Asa Ben Ngulas Togel Lalap Terutang

Oh Andiko Seh Kal Nge Lepak Na

 

Ija Padanta Ndube, Ija Tanggung Jawabta

Kelengi Lah Jabunta O Teman

Ula Ertaren2 Ota Dage Sidahi Tuhanta Dibata O Teman

Gelah Terpuji Gelar Tuhan Bas Geluhta Malem Kal Ateta

 

Tuhan Mekuah Min Atendu

Alemi Salah Kami O Tuhan

Kelengi Min Kami Pasu2 Lah Kami

Pake Ken Kami Pebelangken Beritandu

SENANG ME GUNDARI

Cipt : NN

 

O Tuhan tuduhken dalan sipinter

Gelah kami rembak ras Kam

Perbahan Kam ngenca o Bapa

Negu kami gelah ola celus

 

Pedauh kerina alang abat

Ibas kami siperdosa

Perbahan Kam ngenca o Bapa

Si nemani kami anak Ndu

 

Reff:

Senang me gundari

Bene me ukur si ceda

Perbahan dosa-dosa kami

Nggo isasapkenNdu

 

Salang perukuren

Salang sai me kerina

Adi kin Kam Bapa la nirangken

Kami anak Ndu

 

GelarNdu ngenca si man pujin o Bapa

GelarNdu ngenca si man pujin

 

How to Unprotect an excel sheet without password

How to Unprotect an excel sheet without password

THis document will tel you how to unprotect an excel spread sheet without having the password

 

 

In case of a password protect worksheet you are unable to Edit the data on the Excel Sheet. If you do not Remember the Password or do not know the password to unprotect the sheet just follow the below simple steps.

excel1

Press ALT +  F11 or click on View Code in Developers Tabs

Excel2

In the Above White Space Enter the below Code. Do not change the code just copy paste:

Sub PasswordBreaker()
‘Breaks worksheet password protection.
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ActiveSheet.ProtectContents = False Then
MsgBox “One usable password is ” & Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub

Now Click on the Run Button or press F5:

Excel3
And there you go the sheet is unprotected for you now. Also you would be getting a message in the pop up window.

This Message is contains the password which can be used to unprotect the other sheets in the same workbook.

Excel4

 

source : http://uknowit.uwgb.edu/page.php?id=28850

 

PHP: Sending Email (Text/HTML/Attachments)

PHP: Sending Email (Text/HTML/Attachments)

Print
Email is the most popular Internet service today. A plenty of emails are sent and delivered each day. The goal of this tutorial is to demonstrate how to generate and send emails in PHP.So, you want to send automated email messages from your PHP application. This can be in direct response to a user’s action, such as signing up for your site, or a recurring event at a set time, such as a monthly newsletter. Sometimes email contains file attachments, both plain text and HTML portions, and so on. To understand how to send each variation that may exist on an email, we will start with the simple example and move to the more complicated.

Note that to send email with PHP you need a working email server that you have permission to use: for Unix machines, this is often Sendmail; for Windows machines, you must set the SMTP directive in your php.ini file to point to your email server.

Sending a Simple Text Email

At first let’s consider how to send a simple text email messages. PHP includes the mail() function for sending email, which takes three basic and two optional parameters. These parameters are, in order, the email address to send to, the subject of the email, the message to be sent, additional headers you want to include and finally an additional parameter to the Sendmail program. The mail() function returns True if the message is sent successfully and False otherwise. Have a look at the example:

<?php
//define the receiver of the email
$to = ‘youraddress@example.com’;
//define the subject of the email
$subject = ‘Test email’;
//define the message to be sent. Each line should be separated with \n
$message = “Hello World!\n\nThis is my first mail.”;
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: webmaster@example.com\r\nReply-To: webmaster@example.com”;
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print “Mail sent”. Otherwise print “Mail failed”
echo $mail_sent ? “Mail sent” : “Mail failed”;
?>

As you can see, it very easy to send an email. You can add more receivers by either adding their addresses, comma separated, to the $to variable, or by adding cc: or bcc: headers. If you don’t receive the test mail, you have probably installed PHP incorrectly, or may not have permission to send emails.

Back to top

Sending HTML Email

The next step is to examine how to send HTML email. However, some mail clients cannot understand HTML emails. Therefore it is best to send any HTML email using a multipart construction, where one part contains a plain-text version of the email and the other part is HTML. If your customers have HTML email turned off, they will still get a nice email, even if they don’t get all of the HTML markup. Have a look at the example:

<?php
//define the receiver of the email
$to = ‘youraddress@example.com’;
//define the subject of the email
$subject = ‘Test HTML email’;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(‘r’, time()));
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: webmaster@example.com\r\nReply-To: webmaster@example.com”;
//add boundary string and mime type specification
$headers .= “\r\nContent-Type: multipart/alternative; boundary=\”PHP-alt-“.$random_hash.”\””;
//define the body of the message.
ob_start(); //Turn on output buffering
?>
–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/plain; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bitHello World!!!
This is simple text email message.

–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/html; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

<h2>Hello World!</h2>
<p>This is something with <b>HTML</b> formatting.</p>

–PHP-alt-<?php echo $random_hash; ?>–
<?
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print “Mail sent”. Otherwise print “Mail failed”
echo $mail_sent ? “Mail sent” : “Mail failed”;
?>

In the preceding example we add one additional header of Content-type:multipart/alternative and boundary string that marks the different areas of the email. Note that the content type of the message itself is sent as a mail header, while the content types of the individual parts of the message are embedded in the message itself. This way, mail clients can decide which part of the message they want to display.

Sending Email with Attachment

The last variation that we will consider is email with attachments. To send an email with attachment we need to use the multipart/mixed MIME type that specifies that mixed types will be included in the email. Moreover, we want to use multipart/alternative MIME type to send both plain-text and HTML version of the email. Have a look at the example:

<?php
//define the receiver of the email
$to = ‘youraddress@example.com’;
//define the subject of the email
$subject = ‘Test email with attachment’;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(‘r’, time()));
//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: webmaster@example.com\r\nReply-To: webmaster@example.com”;
//add boundary string and mime type specification
$headers .= “\r\nContent-Type: multipart/mixed; boundary=\”PHP-mixed-“.$random_hash.”\””;
//read the atachment file contents into a string,
//encode it with MIME base64,
//and split it into smaller chunks
$attachment = chunk_split(base64_encode(file_get_contents(‘attachment.zip’)));
//define the body of the message.
ob_start(); //Turn on output buffering
?>
–PHP-mixed-<?php echo $random_hash; ?>
Content-Type: multipart/alternative; boundary=”PHP-alt-<?php echo $random_hash; ?>”–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/plain; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

Hello World!!!
This is simple text email message.

–PHP-alt-<?php echo $random_hash; ?>
Content-Type: text/html; charset=”iso-8859-1″
Content-Transfer-Encoding: 7bit

<h2>Hello World!</h2>
<p>This is something with <b>HTML</b> formatting.</p>

–PHP-alt-<?php echo $random_hash; ?>–

–PHP-mixed-<?php echo $random_hash; ?>
Content-Type: application/zip; name=”attachment.zip”
Content-Transfer-Encoding: base64
Content-Disposition: attachment

<?php echo $attachment; ?>
–PHP-mixed-<?php echo $random_hash; ?>–

<?php
//copy current buffer contents into $message variable and delete current output buffer
$message = ob_get_clean();
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print “Mail sent”. Otherwise print “Mail failed”
echo $mail_sent ? “Mail sent” : “Mail failed”;
?>

As you can see, sending an email with attachment is easy to accomplish. In the preceding example we have multipart/mixed MIME type, and inside it we have multipart/alternative MIME type that specifies two versions of the email. To include an attachment to our message, we read the data from the specified file into a string, encode it with base64,  split it in smaller chunks to make sure that it matches the MIME specifications and then include it as an attachment.