| Models | Examples |
|---|---|
| Display ads | Yahoo! |
| Search ads |
This file contains hidden or 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
| composer create project laravel | |
| npm install | |
| php artisan key:generate | |
| php artisan:migrate | |
| composer require laravel/ui | |
| php artisan ui vue --auth | |
| php artisan migrate | |
This file contains hidden or 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
| <p id="test"></p> |
This file contains hidden or 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
| .wrapword{ | |
| white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ | |
| white-space: -webkit-pre-wrap; /*Chrome & Safari */ | |
| white-space: -pre-wrap; /* Opera 4-6 */ | |
| white-space: -o-pre-wrap; /* Opera 7 */ | |
| white-space: pre-wrap; /* css-3 */ | |
| word-wrap: break-word; /* Internet Explorer 5.5+ */ | |
| word-break: break-all; | |
| white-space: normal; | |
| } |
This file contains hidden or 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
| package com.bagaswidodo.test; | |
| import java.io.BufferedReader; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import org.apache.http.HttpEntity; | |
| import org.apache.http.HttpResponse; | |
| import org.apache.http.client.HttpClient; | |
| import org.apache.http.client.methods.HttpGet; |
This file contains hidden or 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
| import java.util.Properties; | |
| import javax.mail.*; | |
| import javax.mail.internet.*; | |
| // http://www.azertech.net/content/sending-email-using-javamail-package | |
| public class test_mail | |
| { | |
| public static void main(String[] args) throws AddressException, MessagingException | |
| { |
This file contains hidden or 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
| coderanch.com/t/454062/java/session-multi-tabs-browser | |
| Hi, | |
| Using window.name javascript property we can track tabs/windows in the same session. I successfully used window.name in my application to track & do necessary action when application is accessed from multiple tabs. | |
| Implementation details to restrict multi tabs access: | |
| On Login page submit, set the window.name property to some value. Pass the same value as a hidden variable to Login action. | |
| With this we can always ensure that proper login attempt window will have a name associated with it. | |
| You have to put a check in Login action. If the value is not there in the session, it means 1st time you are trying to login in the session. Put the value in the session. If value already exist in the session, it means you are trying to login from another tab in the same session. | |
| if(sessionmap.get("WINDOW_NAME") == null){ |
This file contains hidden or 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
| ===== | |
| aku gak tahu pastinya. tapi algoritmanya kira2 begini. ketika kita diatrahkan oleh ke url ke halaman itu, | |
| halaman akan menggenerate kode token yg disertakan di tiap tautan serbagai patamater url yg dienkripsi dan | |
| disimpan sebagai sesi, nah ketika kita klik tombol, patrameter tersebut dikirimkan dan dicocokkan dengan sessi yg tersimpan. | |
| jadi mirip dengan login dengan captcha, bedanya kalo captcha harus diinput manual, kalo ini disertakan dalam parameter url. | |
| sekali lagi ininanalusaku. yg sebenarnya aku kurang tahu | |
| ====================== |
This file contains hidden or 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
| import java.text.DecimalFormat; | |
| public class EnglishNumberToWords { | |
| private static final String[] tensNames = { | |
| "", | |
| " ten", | |
| " twenty", | |
| " thirty", | |
| " forty", |
This file contains hidden or 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
| 0856 | |
| 0888 | |
| 0878 | |
| 0812 |
NewerOlder