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
tests |
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
JPan |
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
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for doctrine.cli' in /var/www/zf2-api/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:521 | |
Stack trace: | |
#0 /var/www/zf2-api/vendor/doctrine/doctrine-module/bin/doctrine-module.php(51): Zend\ServiceManager\ServiceManager->get('doctrine.cli') | |
#1 /var/www/zf2-api/vendor/doctrine/doctrine-module/bin/doctrine-module(4): include('/var/www/zf2-ap...') | |
#2 {main} | |
thrown in /var/www/zf2-api/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php on line 521 |
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
curl -i -X POST -H "Content-Type: multipart/form-data" --form file=@Selection_008.png http://localhost:8000/v1/media/upload?format=json |
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
sudo apt-get build-dep python-imaging python-dev | |
sudo apt-get install libjpeg62 libjpeg62-dev | |
sudo apt-get install libjpeg libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/ | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/ | |
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/ | |
pip install Pillow |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package epcust.domain.subdomain; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Vector; | |
import javax.swing.table.AbstractTableModel; | |
import orm.entity.Subdomain; |
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 void insert(Mahasiswa mhs){ | |
String sql = "INSERT INTO mahasiswa (NIM, NAMA) VALUES(?,?)"; | |
MySQLQuery query = new MySQLQuery(); | |
PreparedStatement st = query.prepareQuery(sql); | |
st.setString(1, mhs.getNIM()); | |
st.setString(2, mhs.getNAMA()); | |
st.executeUpdate(); | |
} |
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
SELECT | |
* | |
FROM book b | |
INNER JOIN book_has_category bhc | |
ON b.id = bhc.book_id | |
INNER JOIN category c | |
ON bhc.category_id = c.id |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package epserv.orm.utils; | |
import java.io.File; | |
import org.hibernate.cfg.AnnotationConfiguration; | |
import org.hibernate.SessionFactory; |
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
import epserv.orm.utils.HibernateUtil; | |
import java.util.List; | |
import org.hibernate.Criteria; | |
import org.hibernate.Session; | |
import org.hibernate.Transaction; | |
import org.hibernate.criterion.Restrictions; | |
import orm.entity.Subdomain; | |
/** | |
* |
OlderNewer