Thursday, June 5, 2025

Resep Makanan

Telur Rebus : Telur + Kecap + Garam + air, campur semua tunggu matang 1 jam.
Mie : Terigu + Bawang Bombay + Bawang Putih yang di Haluskan + Air + Garam + Penyedap Makanan, Lalu aduk semua, lalu gilingkan tepung menjadi bentuk mie.
Doodly Ball : Tepung Beras + Bawang Putih + Bawang Merah + Gula Sedikit + Saus Tiram +Garam + Penyedap Makanan + Air untuk Tambahan Tambah Kikil Ayam, Aduk semua, bentuk dari adonan tepung menjadi bulat dan rebus hingga Matang.
Susu cokelat panas : Susu + Buah Cokelat + Garam Sedikit + Gula + Krimer, Buah cokelat di belah dan ambil bijihnya lalu kupas bijih nya hingga ada buah cokelatnya, panas buah cokelat yang telah di kupas, lalu susu tambahkan cokelat secukupnya di tambahkan garam sedikit, tambahkan gula,krimer tambahkan buah cokelat yang sudah di kupas pakai buah cokelat secukupnya, aduk hingga rata.
Kranyon : Tepung + Gula + Garam sedikit + Kacang + air, Aduk semua hingga rata, lalu kukus hingga matang.
Susu Kacang Ijo : Susu + Kacang Hijau + Garam Sedikit + Gula, Kacang hijau di tumbuk hingga halus, campurkan susu dan kacang hijau dan garam sedikit begitupun gula, aduk hingga merata.
Kue Kelapa : Tepung + Buah Kelapa + Garam Sedikit + Gula + Air, campurkan dari air buah kelapa dengan air,tepung,garam sedikit,gula dan pisahkan putih kelapa, aduk sampai merata, putih kelapa boleh di serut lalu campurkan ke adonan lalu bentukkan sesuka hati, lalu kukus adonan.
Ikan Pedas : Ikan + Jeruk Nipis + Garam Sedikit + Cabe + Air + Gula sedikit 1 capit tangan. Campurkan ikan dengan air,cabe,garam,gula, masak hingga matang campurkan peras jeruk nipis.
Mie instant : Mie + Air + Daging ayam di potong kecil-kecil + garam + bawang bombay + rumput sedikit + penyedap makanan, masak campur semua hingga matang.
Es jeruk : Jeruk + Es keras + Gula + Garam Sedikit + Krimer Sedikit + Air, Buang bijihnya dan haluskan buahnya lalu campur semua dan aduk hingga merata.
Es Buah : Buah apa saja + Gula + Garam Sedikit + Krimer Selera + Air + Es Keras, Haluskan Buah dan buang bijihnya, campurkan semua hingga merata.
Nasi Goreng : Nasi + Kecap + Bumbu Penyedap + Gula Sedikit + Garam cukup + Bawang Merah + Bawang Putih + air sedikit, potong semua bawang lalu campurkan semua, masak hingga matang.
Mie Goreng : Mie + Bawang Merah + Bawang Putih + Garam + Air Sedikit + Merica, Iriskan semua bawang lalu campurkan semua, masak hingga matang.
Saus : Air + Garam Sedikit + Cabe, Tumbuk hingga halus dan campurkan semua hingga merata.
Daging Burger : Daging + Tepung + Tepung Beras + Bawang Merah + Air + Garam + Kecap saus Tiram, tumbuk semua hingga merata, lalu kukus warnanya berubah, lalu masak hingga matang.
Roti : Tepung + Gula + Garam + Air, Campurkan semua lalu kukus.

Tuesday, June 3, 2025

Investasi dari Leluhur

Bukan penipuan. Bukan mencari tumbal. Saya mencairkan uang dimana anda invest lalu saya berikan yang sesuai dibawah ini :
𝐏𝐋𝐀𝐍 𝐁𝐀𝐒𝐈𝐂 📊
𝐍𝐎𝐌𝐈𝐍𝐀𝐋 𝐃𝐀𝐍 𝐊𝐄𝐔𝐍𝐓𝐔𝐍𝐆𝐀𝐍
1.000.000 = 15.000.000/bulan
2.000.000 = 25.000.000/bulan
3.000.000 = 35.000.000/bulan
4.000.000 = 45.000.000/bulan

Harga jasa = Rp. 200.000
Profit diatas akan di dapat selama di antara 1 Bulan. Di Withdraw setiap 7 hari sampai 1 bulan, jadi 5x pendapatan dari total di atas.

𝐏𝐋𝐀𝐍 𝐒𝐈𝐋𝐕𝐄𝐑 📊
𝐍𝐎𝐌𝐈𝐍𝐀𝐋 𝐃𝐀𝐍 𝐊𝐄𝐔𝐍𝐓𝐔𝐍𝐆𝐀𝐍 
5.000.000 = 50.000.000/bulan
6.000.000 = 60.000.000/bulan
7.000.000 = 70.000.000/bulan
8.000.000 = 80.000.000/bulan
9.000.000 = 90.000.000/bulan

Harga jasa = Rp. 200.000
Profit diatas akan di dapat selama di antara 1 Bulan. Di Withdraw setiap 7 hari sampai 1 bulan, jadi 5x pendapatan dari total di atas.

𝐏𝐋𝐀𝐍 𝐆𝐎𝐋𝐃 📊
𝐍𝐎𝐌𝐈𝐍𝐀𝐋 𝐃𝐀𝐍 𝐊𝐄𝐔𝐍𝐓𝐔𝐍𝐆𝐀𝐍
10.000.000 = 300.000.000/bulan
20.000.000 = 600.000.000/bulan
30.000.000 = 9.000.000/bulan
40.000.000 = 1.200.000.000/bulan

Harga jasa = Rp. 200.000
Profit diatas akan di dapat selama di antara 1 Bulan. Di Withdraw setiap 7 hari sampai 1 bulan, jadi 5x pendapatan dari total di atas.

Contoh : Anda pesan 10 juta maka akan mendapat selama 1 bulan 300juta. Di withdraw selama 7 hari akan dapat 75 juta.

𝐉𝐈𝐊𝐀 𝐌𝐈𝐍𝐀𝐓 𝐉𝐎𝐈𝐍 𝐈𝐍𝐕𝐄𝐒𝐓𝐀𝐒𝐈
𝐈𝐬𝐢 𝐃𝐚𝐭𝐚𝐧𝐲𝐚 𝐋𝐚𝐥𝐮 𝐤𝐢𝐫𝐢𝐦 𝐊𝐞 𝐀𝐝𝐦𝐢𝐧
𝐍𝐚𝐦𝐚 : 
𝐍𝐨.𝐇𝐩 :
𝐄𝐦𝐚𝐢𝐥 : 
𝐁𝐚𝐧𝐤 : 
𝐍𝐨.𝐑𝐞𝐤 : 
Nama dari Rekening Bank :
𝐉𝐮𝐦𝐥𝐚𝐡 𝐈𝐧𝐯𝐞𝐬𝐭𝐚𝐬𝐢 : 
Profit Investasi dari di atas :

𝐁𝐄𝐋𝐔𝐌 𝐏𝐀𝐇𝐀𝐌? 𝐁𝐈𝐒𝐀 𝐂𝐇𝐀𝐓 
ATAU YANG MAU JOIN SILAHKAN.
Click ➡️Modal Usaha

Saturday, May 31, 2025

[JAVA] EXPORT EXE FILE NO JAR

Within the JAR file, you can store the EXE file.
Upon application startup, the Java code extracts the EXE file to a temporary directory.
Use System.getProperty("java.io.tmpdir") to get the temporary directory path.
Then, the Java application can execute the extracted EXE file using Runtime.getRuntime().exec().
Note that this approach requires careful handling of file permissions and temporary file cleanup.

[JAVA] SERVER MAIL

Java applications can send emails using the JavaMail API, which provides a platform-independent framework for building mail and messaging applications. This API requires a connection to an SMTP server to send emails.
Key Concepts:
JavaMail API:
This is the core library for sending emails in Java. It provides classes for creating, sending, and receiving emails.
SMTP Server:
The Simple Mail Transfer Protocol (SMTP) server is responsible for sending emails. You need the server address, port, and authentication credentials to use it. Common SMTP servers include Gmail, Outlook, and others.
Session:
A JavaMail Session object represents a connection to a mail server. It is used to create email messages.
Message:
A Message object represents an email message. You set the sender, recipient, subject, and body of the email using this object.
Transport:
The Transport class is used to send the message.
Steps to Send Email:
Add Dependencies: Include the necessary JavaMail API dependency in your project. For example, with Maven:
Kode

    <dependency>
        <groupId>com.sun.mail</groupId>
        <artifactId>jakarta.mail</artifactId>
        <version>2.0.1</version>
    </dependency>
Configure Properties: Set up properties for the SMTP server, such as the host address, port, and authentication details.
Java

    Properties props = new Properties();
    props.put("mail.smtp.host", "smtp.example.com");
    props.put("mail.smtp.port", "587");
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.starttls.enable", "true");
Create Session: Create a Session object using the properties and authentication.
Java

    Session session = Session.getInstance(props, new Authenticator() {
        protected PasswordAuthentication getPasswordAuthentication() {
            return new PasswordAuthentication("your_email@example.com", "your_password");
        }
    });
Create Message: Create a MimeMessage object and set the sender, recipient, subject, and body. 
Java

    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress("your_email@example.com"));
    message.setRecipients(Message.RecipientType.TO, InternetAddress.parse("recipient@example.com"));
    message.setSubject("Email Subject");
    message.setText("Email Body");
Send Message: Use the Transport class to send the message.
Java

    Transport.send(message);
Additional Considerations:
Attachments: Use MimeBodyPart and MimeMultipart to add attachments to emails.
HTML Content: Set the content type of the message to "text/html" to send HTML emails.
Gmail: For Gmail, you might need to enable "less secure apps" or use OAuth2 for authentication.
Spring Boot: Spring Boot provides a JavaMailSender to simplify email sending.
Email APIs: Consider using third-party email APIs for more advanced features.
By following these steps and using the JavaMail API, you can integrate email functionality into your Java applications.

[JAVA] SEARCH READ DATA FROM RUN FILE

search and read from a file in Java, you can use several classes and methods. Here's a breakdown of common approaches:
1. Using Scanner:
The Scanner class is suitable for reading formatted data, line by line, or token by token.
It can be used with a File object to read from a file.
You can use methods like nextLine(), nextInt(), next(), etc., to read different types of data.
You can use hasNextLine() to check if there are more lines to read.
Java

   import java.io.File;
   import java.io.FileNotFoundException;
   import java.util.Scanner;

   public class ReadFile {
       public static void main(String[] args) {
           File file = new File("your_file.txt"); // Replace with your file path
           try (Scanner scanner = new Scanner(file)) {
               while (scanner.hasNextLine()) {
                   String line = scanner.nextLine();
                   if (line.contains("search_term")) { // Replace with your search term
                       System.out.println("Found: " + line);
                   }
               }
           } catch (FileNotFoundException e) {
               System.out.println("File not found: " + e.getMessage());
           }
       }
   }
2. Using BufferedReader:
BufferedReader is efficient for reading text files line by line.
It provides buffering for faster reading.
You can use the readLine() method to read a line at a time and check for null to identify the end of the file.
Java

   import java.io.BufferedReader;
   import java.io.FileReader;
   import java.io.IOException;

   public class ReadFile {
       public static void main(String[] args) {
           String filePath = "your_file.txt"; // Replace with your file path
           try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {
               String line;
               while ((line = reader.readLine()) != null) {
                   if (line.contains("search_term")) { // Replace with your search term
                       System.out.println("Found: " + line);
                   }
               }
           } catch (IOException e) {
               System.out.println("Error reading file: " + e.getMessage());
           }
       }
   }
3. Using Files (NIO):
The Files class from the java.nio.file package offers more modern ways to handle files.
Files.readAllLines() reads all lines of a file into a List<String>.
Files.lines() returns a Stream<String>, which can be used for more advanced processing.
Java

   import java.io.IOException;
   import java.nio.file.Files;
   import java.nio.file.Path;
   import java.nio.file.Paths;
   import java.util.List;
   import java.util.stream.Stream;

   public class ReadFile {
       public static void main(String[] args) {
           Path filePath = Paths.get("your_file.txt"); // Replace with your file path
           try {
               // Using readAllLines
               List<String> lines = Files.readAllLines(filePath);
               for (String line : lines) {
                   if (line.contains("search_term")) { // Replace with your search term
                       System.out.println("Found: " + line);
                   }
               }

               // Using lines stream
               try (Stream<String> stream = Files.lines(filePath)) {
                   stream.filter(line -> line.contains("search_term")) // Replace with your search term
                           .forEach(line -> System.out.println("Found: " + line));
               }
           } catch (IOException e) {
               System.out.println("Error reading file: " + e.getMessage());
           }
       }
   }
Key points:
File Path: Replace "your_file.txt" with the actual path to your file.
Search Term: Replace "search_term" with the word or phrase you want to find.
Error Handling: Use try-catch blocks to handle potential FileNotFoundException or IOException
File Existence: You can use File.exists() before attempting to read to check if the file exists.
Resource Management: Use try-with-resources to ensure that resources like Scanner, BufferedReader, and streams are closed automatically.
Choosing the Right Method:
Scanner is good for formatted input or when you need to read tokens/words.
BufferedReader is efficient for line-by-line reading.
Files (NIO) is more modern and flexible, especially for larger files or when you want to use streams.

[JAVA] READ FILE FROM RUN

file in Java involves using classes from the java.io and java.nio.file packages. Here's a breakdown of common approaches:
1. Using BufferedReader:
This is a common way to read a file line by line.
It's efficient for larger text files due to buffering.
You'll need to handle potential IOExceptions. 
Java

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class ReadFile {
    public static void main(String[] args) {
        String filePath = "path/to/your/file.txt"; // Replace with your file path
        try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {
            String line;
            while ((line = reader.readLine()) != null) {
                System.out.println(line);
            }
        } catch (IOException e) {
            System.err.println("Error reading file: " + e.getMessage());
        }
    }
}
The try-with-resources statement ensures the reader is closed automatically. 
reader.readLine() reads a line, returning null at the end of the file.
2. Using Files.readAllLines() (Java 7+)
This method reads all lines from a file into a List<String>.
It's convenient for smaller files.
It also requires handling IOExceptions.
Java

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;

public class ReadFile {
    public static void main(String[] args) {
        Path filePath = Paths.get("path/to/your/file.txt"); // Replace with your file path
        try {
            List<String> lines = Files.readAllLines(filePath);
            for (String line : lines) {
                System.out.println(line);
            }
        } catch (IOException e) {
            System.err.println("Error reading file: " + e.getMessage());
        }
    }
}
3. Using Scanner:
Scanner can be used to read from various input sources, including files.
It can read line by line or token by token.
Java

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class ReadFile {
    public static void main(String[] args) {
        File file = new File("path/to/your/file.txt"); // Replace with your file path
        try (Scanner scanner = new Scanner(file)) {
            while (scanner.hasNextLine()) {
                String line = scanner.nextLine();
                System.out.println(line);
            }
        } catch (FileNotFoundException e) {
            System.err.println("Error reading file: " + e.getMessage());
        }
    }
}
The try-with-resources statement ensures the scanner is closed.
4. Reading Character by Character:
You can use FileReader to read character by character, this method is useful if you need to process the file at a character level.
Java

import java.io.FileReader;
import java.io.IOException;

public class ReadFile {
    public static void main(String[] args) {
        String filePath = "path/to/your/file.txt"; // Replace with your file path
        try (FileReader reader = new FileReader(filePath)) {
            int character;
            while ((character = reader.read()) != -1) {
                System.out.print((char) character);
            }
        } catch (IOException e) {
            System.err.println("Error reading file: " + e.getMessage());
        }
    }
}
Important Considerations:
File Paths: Use correct file paths, relative or absolute.
Error Handling: Always handle potential IOExceptions using try-catch blocks.
Resource Management: Close resources (like readers and scanners) in a finally block or using try-with-resources to prevent resource leaks.
File Encoding: Be mindful of file encoding (e.g., UTF-8) when reading text files. You can specify the character set when creating a FileReader or BufferedReader.
Command Line Arguments: If the file path is provided as a command-line argument, access it through the args array.
Choose the method that best suits your specific needs and file size. BufferedReader and Files.readAllLines() are generally preferred for most cases.

[JAVA] READ FILE EXE

    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    
    public class ReadExe {
        public static void main(String[] args) {
            File file = new File("path/to/your/executable.exe");
            try (FileInputStream fis = new FileInputStream(file)) {
                int byteRead;
                while ((byteRead = fis.read()) != -1) {
                    System.out.print(Integer.toHexString(byteRead & 0xFF) + " "); // Print as hex
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }

    import java.io.File;
    import java.io.IOException;
    
    public class ExecuteExe {
        public static void main(String[] args) {
            String exePath = "path/to/your/executable.exe";
            try {
                Process process = Runtime.getRuntime().exec(exePath);
                process.waitFor(); // Wait for the process to complete
                System.out.println("Executable finished with exit code: " + process.exitValue());
            } catch (IOException | InterruptedException e) {
                e.printStackTrace();
            }
        }
    }