This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class tes{ | |
public static void main(String args[]){ | |
for(int i=0; i < 10; i++) | |
{ | |
if (i % 2 == 0){ | |
System.out.println( i ); | |
} | |
} | |
// System.out.println ("hasil outputnya"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<option selected="selected">---Pilih Barang--</option> | |
<?php | |
while ($row = mysqli_fetch_array($result)){ | |
echo '<option value="' . $row['nama'] . '">' . $row['nama'] . ' </option>'; | |
$jsArray .= "NamaBarang['" . $row['nama'] . "'] = {merk:'" . addslashes($row['merk']). "', | |
satuan:'" . addslashes($row['satuan']). "', jumlah:'" . addslashes($row['jumlah']). "', | |
foto:'" . addslashes($row['foto']). "'};\n"; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problems : phpmyadmin.pma_table_uiprefs doesn't exist | |
Solved : | |
1. Edit /etc/phpmyadmin/config.inc.php and change this rows: | |
$i]['pma__bookmarktable'] = 'pma__bookmark'; | |
$cfg['Servers'][$i]['pma__relation'] = 'pma__relation'; | |
$cfg['Servers'][$i]['pma__table_info'] = 'pma__table_info'; | |
$cfg['Servers'][$i]['pma__table_coords'] = 'pma__table_coords'; | |
$cfg['Servers'][$i]['pma__pdf_pages'] = 'pma__pdf_pages'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******* | |
All the resources for this project: | |
https://www.hackster.io/Aritro | |
*******/ | |
int redLed = 12; | |
int greenLed = 13; | |
int buzzer = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******* | |
All the resources for this project: | |
https://www.hackster.io/Aritro | |
*******/ | |
int redLed = 12; | |
int greenLed = 13; | |
int buzzer = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int led = 13; | |
// the setup routine runs once when you press reset: | |
void setup() { | |
// initialize the digital pin as an output. | |
pinMode(led, OUTPUT); | |
} | |
// the loop routine runs over and over again forever: | |
void loop() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. booting ubuntu | |
2. choose ubuntu advanced mode | |
3. from the boot menu, select recovery mode, which is usually the second boot option. | |
4. In this case, you want the Drop to root shell prompt | |
5. In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the follow command to get it to remount as read-write, which will allow you to make changes: | |
mount -rw -o remount / | |
6. whoami | |
7. passwd username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Default password | |
User Name : Human | |
Password : password | |
//Mengilangkan | |
edit file .htacces di folder tersebut dan kemudian tambahkan: | |
<filesmatch "wp-login.php"> | |
Satisfy Any | |
</filesmatch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BIG DUMP | |
Download the latest version of Big Dump http://www.ozerov.de/bigdump.zip | |
Open up bigdump.php and configure: Server, database name, username, password, and the file name. | |
Upload both your SQL file and bigdump.php to your server | |
Browse to bigdump.php and click import | |
MANUAL | |
mysql -u database_user_name -p -D database_name < complete_file_path_with_file_name_and_extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
story case : ingin menjalankan sebuah portal informasi webbase secara autoload di raspberry | |
menggunakan browser | |
1.setting browser autoload | |
--sudo gedit /etc/xdg/lxsession/LXDE-pi | |
tambahkan script berikut di akhir | |
chromium --kiosk http://google.com | |
2.setting resolusi monitor 640x480 | |
--sudo gedit /boot/config.txt |
NewerOlder