tag:blogger.com,1999:blog-20457759335446639632024-03-12T20:25:10.296-07:00Belajar Bareng Python Programming LanguageDream.Make.BelieveWildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-2045775933544663963.post-71449152727529738792022-10-09T00:48:00.008-07:002022-10-09T00:48:59.997-07:00Remove Image Background using Python<p> ...</p><h3 style="text-align: left;">Referensi</h3><p></p><ol style="text-align: left;"><li>Rembg, Rembg is a tool to remove images background, <a href="https://github.com/danielgatis/rembg" target="_blank">https://github.com/danielgatis/rembg</a></li></ol><p></p>Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-77785843464498079972020-12-17T06:08:00.007-08:002020-12-17T06:08:38.115-08:00High Performance Python<p> ..</p><h3 style="text-align: left;">Referensi</h3><p></p><ol style="text-align: left;"><li>Lightning-fast Python for 100x faster performance from Saturn Cloud, now available on Snowflake, <a href="https://www.zdnet.com/article/lightning-fast-python-for-100x-faster-performance-from-saturn-cloud-now-available-on-snowflake/" target="_blank">https://www.zdnet.com/article/lightning-fast-python-for-100x-faster-performance-from-saturn-cloud-now-available-on-snowflake/</a></li></ol><p></p>Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-1128385318528428252020-04-15T18:23:00.001-07:002020-04-15T18:24:14.186-07:00Land Use Land Cover Change Detection in Python....<br />
<br />
<h3>
Referensi</h3>
<ol>
<li>How to perform Land Use Land Cover Change Detection in Python?, <a href="https://www.researchgate.net/post/How_to_perform_Land_Use_Land_Cover_Change_Detection_in_Python" target="_blank">https://www.researchgate.net/post/How_to_perform_Land_Use_Land_Cover_Change_Detection_in_Python</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-14157087342099455082019-11-02T15:40:00.000-07:002019-11-02T15:40:26.930-07:00scholarly...<br />
<br />
<h3>
Referensi</h3>
<br />
<ol>
<li>scholarly, a module that allows you to retrieve author and publication information from Google Scholar in a friendly, Pythonic way, <a href="https://pypi.org/project/scholarly/" target="_blank">https://pypi.org/project/scholarly/</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-37727607753540619652019-03-05T19:16:00.000-08:002019-03-05T19:16:11.610-08:00Silabus Belajar Bareng PythonSilabur belajar ini diambil dari tau-data.id :<br />
<br />
<div class="panel-layout" id="pl-gb1227-5c7f2401273ee" style="border: 0px; box-sizing: border-box; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="panel-grid panel-no-style" id="pg-gb1227-5c7f2401273ee-3" style="border: 0px; box-sizing: border-box; display: flex; flex-wrap: nowrap; font-family: inherit; font-style: inherit; font-weight: inherit; justify-content: space-between; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="panel-grid-cell" id="pgc-gb1227-5c7f2401273ee-3-0" style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; width: calc(100% - 0px);">
<div class="so-panel widget widget_sow-editor panel-first-child panel-last-child" data-index="4" id="panel-gb1227-5c7f2401273ee-3-0-0" style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; zoom: 1;">
<div class="so-widget-sow-editor so-widget-sow-editor-base" style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="siteorigin-widget-tinymce textwidget" style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<h3 style="border: 0px; box-sizing: border-box; color: #333333; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 25px; line-height: 1.5; margin: 0px; outline: 0px; padding: 0px; text-align: center; vertical-align: baseline;">
Python for Data Science I – Beginner:</h3>
<ol style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 15px 20px; outline: 0px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Pendahuluan</strong> (1 Jam):<br style="box-sizing: border-box;" />* The Zen of Python<br style="box-sizing: border-box;" />* Python “distro” : Python, Anaconda/miniconda, WinPython, etc.<br style="box-sizing: border-box;" />* Editor Jupyter & Spyder<br style="box-sizing: border-box;" />* Python VS (R, Julia, Matlab, Java, C, PHP, etc)<br style="box-sizing: border-box;" />* beberapa kelemahan & kelebihan Python<br style="box-sizing: border-box;" />* Google Colab</li>
<li style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Dasar Python</strong> (1 Jam)<br style="box-sizing: border-box;" />* Syntax Format (indenting, multiline, import, deklarasi/inisialisasi)<br style="box-sizing: border-box;" />* Code descriptor & Comments<br style="box-sizing: border-box;" />* integer, float, Bytes, Boolean<br style="box-sizing: border-box;" />* list, tuple, dictionary<br style="box-sizing: border-box;" />* (Frozen) Set<br style="box-sizing: border-box;" />* types : Beginner Pitfall<br style="box-sizing: border-box;" />* Slicing in Python</li>
<li style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Python Logic</strong> (3 Jam)<br style="box-sizing: border-box;" />* (Nested – hierarchical) if Logic<br style="box-sizing: border-box;" />* Looping For (& list comprehension)<br style="box-sizing: border-box;" />* Iterator VS Iterable<br style="box-sizing: border-box;" />* Looping while<br style="box-sizing: border-box;" />* Breaking Loop<br style="box-sizing: border-box;" />* Python Exception<br style="box-sizing: border-box;" />* TQDM</li>
<li style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Penggunaan & Instalasi Modul</strong> (1 Jam)<br style="box-sizing: border-box;" />* Full and Partial Import<br style="box-sizing: border-box;" />* Import all functions as first level implicitly<br style="box-sizing: border-box;" />* Personal Library<br style="box-sizing: border-box;" />* Conda/pip/easy_install<br style="box-sizing: border-box;" />* Adding repository modul<br style="box-sizing: border-box;" />* Automatic update all modules<br style="box-sizing: border-box;" />* Pure Python vs compiled Modules<br style="box-sizing: border-box;" />* Module’s Wheels<br style="box-sizing: border-box;" />* Check modules dependency<br style="box-sizing: border-box;" />* Installing from Source<br style="box-sizing: border-box;" />* Installing modul from script</li>
<li style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Going Deeper in Python</strong> (2 jam)<br style="box-sizing: border-box;" />* Deeper with Print Function<br style="box-sizing: border-box;" />* Reference/pointer to variable(s)<br style="box-sizing: border-box;" />* Deeper with Python string<br style="box-sizing: border-box;" />* List/Dictionary comprehension<br style="box-sizing: border-box;" />* Zipping List<br style="box-sizing: border-box;" />* List again : Kelebihan List di Python<br style="box-sizing: border-box;" />* Optimal Python Data Type use case</li>
<li style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Python Function</strong> (2 Jam)<br style="box-sizing: border-box;" />* Fungsi di Python<br style="box-sizing: border-box;" />* Global & local variable<br style="box-sizing: border-box;" />* vars, dirs**<br style="box-sizing: border-box;" />* Recursive in Python<br style="box-sizing: border-box;" />* Lamda Function</li>
<li style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"><strong style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">Python as Numerical computing & (simple) Visualizations</strong> (2 Jam)<br style="box-sizing: border-box;" />* Numpy Matrix:<br style="box-sizing: border-box;" />* List VS Arrays/Matrix: best use scenarios, etc.<br style="box-sizing: border-box;" />* Linear Algebra Functions<br style="box-sizing: border-box;" />* Numpy Operations, etc.<br style="box-sizing: border-box;" />* DataFrame Basics<br style="box-sizing: border-box;" />* MatplotLib & Seaborn: Visualisasi dasar di Python<br style="box-sizing: border-box;" />Scatter plot, histogram, barchart, boxplot, etc.</li>
</ol>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel-layout" id="pl-gb1227-5c7f240129eec" style="border: 0px; box-sizing: border-box; font-family: inherit; font-size: 14px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="panel-grid panel-has-style" id="pg-gb1227-5c7f240129eec-0" style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<div class="panel-row-style panel-row-style-for-gb1227-5c7f240129eec-0" data-overlay-opactity="1" style="align-items: flex-start; border: 0px; box-sizing: border-box; display: flex; flex-wrap: nowrap; font-family: inherit; font-style: inherit; font-weight: inherit; justify-content: space-between; margin: 0px; outline: 0px; padding: 0px; position: relative; vertical-align: baseline;">
<div class="panel-grid-cell" id="pgc-gb1227-5c7f240129eec-0-0" style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; width: calc(100% - 0px);">
<div class="so-panel widget widget_text panel-first-child panel-last-child" data-index="0" id="panel-gb1227-5c7f240129eec-0-0-0" style="border: 0px; box-sizing: border-box; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; zoom: 1;">
<h3 class="widget-title" style="background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: Montserrat, Helvetica, Arial, sans-serif; font-size: 25px; line-height: 1.5; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
<br /></h3>
<div>
<br /></div>
<div class="textwidget" style="background-color: white; border: 0px; box-sizing: border-box; color: #666666; font-family: Montserrat, Helvetica, Arial, sans-serif; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;">
</div>
</div>
</div>
</div>
</div>
</div>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com1tag:blogger.com,1999:blog-2045775933544663963.post-23069280097663320192019-02-13T03:17:00.001-08:002019-10-25T03:23:46.592-07:00Belajar Best Practices Pengembangan Software dari pgAdmin 4 ...<br />
<br />
<h3>
Referensi</h3>
<ol>
<li>pgAdmin 4, <a href="https://github.com/postgres/pgadmin4" target="_blank">https://github.com/postgres/pgadmin4</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-31631323919826814812018-10-21T10:00:00.001-07:002018-10-21T10:00:09.559-07:00Instagram Pythoninstaloader, dapat digunakan untuk mendownload otomatis seluruh media (foto atau video) beserta captionnya sebuah user instagram.<br /><h3>
Referensi</h3>
<div>
<ol>
<li>instaloader, <a href="https://github.com/instaloader/instaloader">https://github.com/instaloader/instaloader</a></li>
</ol>
</div>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com1tag:blogger.com,1999:blog-2045775933544663963.post-28818271646817023432018-07-30T19:14:00.002-07:002018-07-30T19:14:33.149-07:00Quantum Computing in Python<b>Status : Draft </b><br />
<b><br /></b>
<h3>
Referensi</h3>
<br />
<ol>
<li>Tutorial: Getting started with Quantum Computing in Python, <a href="http://dataespresso.com/en/2018/07/22/Tutorial-Generating-random-numbers-with-a-quantum-computer-Python/" target="_blank">http://dataespresso.com/en/2018/07/22/Tutorial-Generating-random-numbers-with-a-quantum-computer-Python/</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com1tag:blogger.com,1999:blog-2045775933544663963.post-5556708376790955512018-07-28T17:35:00.001-07:002018-07-28T17:35:33.955-07:00Machine Learning in Python<b>Status : Draft</b><br />
<b><br /></b>
<h3>
Referensi</h3>
<br />
<ol>
<li>scikit-learn, <a href="http://scikit-learn.org/stable/index.html" target="_blank">http://scikit-learn.org/stable/index.html</a></li>
<li>UC Irvine Machine Learning Repository, <a href="https://archive.ics.uci.edu/ml/index.php" target="_blank">https://archive.ics.uci.edu/ml/index.php</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-54452068115429408132018-05-03T04:15:00.001-07:002018-05-03T23:39:34.180-07:00Mengekstrak Tabel dari PDF<b>Status : Draft</b><br />
<b><br /></b>
<br />
Tutorial [1] menggunakan layanan berbayar, dengan trial 50 halaman PDF.<br />
<h3>
Referensi</h3>
<ol>
<li>Extracting Tables From PDFs, <a href="http://stanford.edu/~mgorkove/cgi-bin/rpython_tutorials/Using_Python_to_Extract_Tables_From_PDFs.php" target="_blank">http://stanford.edu/~mgorkove/cgi-bin/rpython_tutorials/Using_Python_to_Extract_Tables_From_PDFs.php</a></li>
<li>tabula-py: Extract table from PDF into Python DataFrame, <a href="https://blog.chezo.uno/tabula-py-extract-table-from-pdf-into-python-dataframe-6c7acfa5f302" target="_blank">https://blog.chezo.uno/tabula-py-extract-table-from-pdf-into-python-dataframe-6c7acfa5f302</a></li>
<li>Extract / Identify Tables from PDF python, <a href="https://stackoverflow.com/questions/28532770/extract-identify-tables-from-pdf-python" target="_blank">https://stackoverflow.com/questions/28532770/extract-identify-tables-from-pdf-python</a></li>
<li>PDF Data and Table Scraping to Excel, <a href="https://stackoverflow.com/questions/29868541/pdf-data-and-table-scraping-to-excel" target="_blank">https://stackoverflow.com/questions/29868541/pdf-data-and-table-scraping-to-excel</a></li>
<li>Extract tables from PDF pages., <a href="https://github.com/ashima/pdf-table-extract" target="_blank">https://github.com/ashima/pdf-table-extract</a></li>
<li>Extracting table contents from a collection of PDF files [closed], <a href="https://stackoverflow.com/questions/17217194/extracting-table-contents-from-a-collection-of-pdf-files/26110587" target="_blank">https://stackoverflow.com/questions/17217194/extracting-table-contents-from-a-collection-of-pdf-files/26110587</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-30908694267048083242018-04-14T07:05:00.004-07:002019-04-10T22:13:21.883-07:00Berkenalan dengan Django<b>Status : Draft</b><br />
<b><br /></b>
<br />
<h3>
Referensi</h3>
<ol>
<li>Django, The web framework for perfectionists with deadlines, <a href="https://www.djangoproject.com/" target="_blank">https://www.djangoproject.com</a></li>
<li>Django Rest Framework with React Tutorial, <a href="https://wsvincent.com/django-rest-framework-react-tutorial/" target="_blank">https://wsvincent.com/django-rest-framework-react-tutorial/</a></li>
<li>CRUD App using Vue.js and Django, <a href="https://medium.com/quick-code/crud-app-using-vue-js-and-django-516edf4e4217" target="_blank">https://medium.com/quick-code/crud-app-using-vue-js-and-django-516edf4e4217</a></li>
<li>django-semantic-ui, <a href="https://pypi.org/project/django-semantic-ui/" target="_blank">https://pypi.org/project/django-semantic-ui/</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-30017116158097862932018-03-22T02:15:00.001-07:002018-03-24T08:18:53.493-07:00Memanggil Program External di Python<b>Status : Draft </b><br />
<b><br /></b>
<br />
<h3>
Referensi</h3>
<ol>
<li>Calling an external command in Python, <a href="https://stackoverflow.com/questions/89228/calling-an-external-command-in-python" target="_blank">https://stackoverflow.com/questions/89228/calling-an-external-command-in-python</a></li>
<li>subprocess – Work with additional processes, <a href="https://pymotw.com/2/subprocess/" target="_blank">https://pymotw.com/2/subprocess/</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-54288216218082171712017-12-10T13:11:00.000-08:002018-02-21T09:02:12.545-08:00Mengekstrak Data dari apbd.jakarta.go.id<b>Status : Draft </b><br />
<br />
Mendapat email dari Mokhtar Ebrahim, beliau mengatakan, jika konten web, menggunakan javascript dan/atau meload content melalui ajax call, BeautifulSoup dan Scrappy tidak akan dapat melakukannya, pilihan yang tepat untuk tugas ini adalah Selenium [5]<br />
<h3>
Referensi</h3>
<ol>
<li>APBD Elektronik Pemerintah Provinsi DKI Jakarta, <a href="http://apbd.jakarta.go.id/" target="_blank">http://apbd.jakarta.go.id/ </a></li>
<li>How to scrape websites with Python and BeautifulSoup, <a href="https://medium.freecodecamp.org/how-to-scrape-websites-with-python-and-beautifulsoup-5946935d93fe" target="_blank">https://medium.freecodecamp.org/how-to-scrape-websites-with-python-and-beautifulsoup-5946935d93fe</a></li>
<li>Scrappy,<i> An open source and collaborative framework for extracting the data you need from websites. In a fast, simple, yet extensible way,</i> <a href="https://scrapy.org/" target="_blank">https://scrapy.org</a></li>
<li>Mewariskan Semangat Bung Hatta kepada Para Pemuda Karang Taruna di Rukun Tetangga, <a href="http://pemerintahan.openthinklabs.com/2017/12/mewariskan-semangat-bung-hatta-kepada-para-pemuda-karang-taruna-di-rukun-tetangga.html" target="_blank">http://pemerintahan.openthinklabs.com/2017/12/mewariskan-semangat-bung-hatta-kepada-para-pemuda-karang-taruna-di-rukun-tetangga.html</a></li>
<li>Selenium, <a href="https://www.seleniumhq.org/" target="_blank">https://www.seleniumhq.org</a></li>
<li>20+ Python Web Scraping Examples (Beautifulsoup & Selenium), <a href="https://likegeeks.com/python-web-scraping/" target="_blank">https://likegeeks.com/python-web-scraping/</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com4tag:blogger.com,1999:blog-2045775933544663963.post-35133961727565654362017-06-13T21:33:00.002-07:002020-12-16T04:31:58.941-08:00Python Virtual EnvironmentsUntuk python 3, gunakan venv [3]<br />
<b><br /></b>
<br />
<h3>
Referensi</h3>
<ol>
<li>What is the difference between venv, pyvenv, pyenv, virtualenv, virtualenvwrapper, pipenv, etc?, <a href="https://stackoverflow.com/questions/41573587/what-is-the-difference-between-venv-pyvenv-pyenv-virtualenv-virtualenvwrappe" target="_blank">https://stackoverflow.com/questions/41573587/what-is-the-difference-between-venv-pyvenv-pyenv-virtualenv-virtualenvwrappe</a></li>
<li>Virtualenv, <a href="https://sourabhbajaj.com/mac-setup/Python/virtualenv.html" target="_blank">https://sourabhbajaj.com/mac-setup/Python/virtualenv.html</a></li><li>venv, <a href="https://docs.python.org/3/library/venv.html" target="_blank">https://docs.python.org/3/library/venv.html</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-90530957638087649862017-06-12T09:54:00.002-07:002017-06-12T09:54:54.336-07:00Python untuk Pengembangan IoT<b>Status : Draft</b><br />
<b><br /></b>
<h3>
Referensi</h3>
<br />
<ol>
<li>Zerynth, middleware for smart devices, IoT and Industry 4.0 applications, https://www.zerynth.com/</li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-83691978905867426662017-06-07T01:28:00.000-07:002017-06-07T01:28:04.895-07:00PySide : Instalasi<b>Status : Draft</b><br />
<br />
Ketika melakukan instalasi via pip ( sudo pip install PySide), saya mendapatkan error seperti berikut :<br />
<b> </b><br />
/usr/bin/ld: /usr/local/lib/python2.7.9/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC<br /> /usr/local/lib/python2.7.9/lib/libpython2.7.a: error adding symbols: Bad value<br /> collect2: error: ld returned 1 exit status<br /> libshiboken/CMakeFiles/libshiboken.dir/build.make:381: recipe for target 'libshiboken/libshiboken-python2.7.so.1.2.4' failed<br /> make[2]: *** [libshiboken/libshiboken-python2.7.so.1.2.4] Error 1<br /> CMakeFiles/Makefile2:204: recipe for target 'libshiboken/CMakeFiles/libshiboken.dir/all' failed<br /> make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Error 2<br /> Makefile:127: recipe for target 'all' failed<br /> make: *** [all] Error 2<br /> error: Error compiling shiboken<br /><b> </b><br />
<br />
Ternyata hal ini terjadi karena python yang digunakan di Ubuntu, dikompilasi tanpa opsi --enable-shared, oleh karena itu kita perlu melakukan kompilasi ulang python.<br />
<b> </b><br />
sudo wget http://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz<br />
sudo tar -xvvzf Python-2.7.9.tgz <br />cd Python-2.7.9/<br />
sudo ./configure --enable-shared --prefix=/opt/python LDFLAGS=-Wl,-rpath=/opt/python/lib<br />
sudo make<br />
sudo make install<br />
sudo update-alternatives --install /usr/bin/python python /opt/python/bin/python 1<br />sudo update-alternatives --config python<br />
<br />
Install pip :<br />
<br />
wget -c https://bootstrap.pypa.io/get-pip.py<br />
sudo python get-pip.py<br />sudo pip install PySide<br />
<br />
<br />
<br />
<br /><br /><br />Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-50232543601182467662017-05-14T21:51:00.002-07:002017-05-14T21:51:48.717-07:00Beautiful Soup<b>Status : Draft</b><br />
<b><br /></b>
<h3>
Referensi</h3>
<br />
<ol>
<li>Beautiful Soup, a Python library designed for quick turnaround projects like screen-scraping, <a href="https://www.crummy.com/software/BeautifulSoup/" target="_blank">https://www.crummy.com/software/BeautifulSoup/</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-6312978781637360042017-05-08T01:21:00.000-07:002018-10-01T21:37:05.555-07:00Belajar Bareng Flask<b>Status : Draft</b><br />
<h3>
<b><br /></b>Referensi</h3>
<br />
<ol>
<li>Flask, a microframework for Python based on Werkzeug, Jinja 2 and good intentions, <a href="http://flask.pocoo.org/" target="_blank">http://flask.pocoo.org</a></li>
<li>Designing a RESTful API with Python and Flask, <a href="https://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask" target="_blank">https://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask</a></li>
<li>The Minimum Viable Test Suite, <a href="https://realpython.com/the-minimum-viable-test-suite/" target="_blank">https://realpython.com/the-minimum-viable-test-suite/</a></li>
<li>"Flask At Scale" tutorial at PyCon 2016 in Portland, <a href="https://blog.miguelgrinberg.com/post/flask-at-scale-tutorial-at-pycon-2016-in-portland" target="_blank">https://blog.miguelgrinberg.com/post/flask-at-scale-tutorial-at-pycon-2016-in-portland</a></li>
<li>Using Flask in Visual Studio Code, <a href="https://code.visualstudio.com/docs/python/tutorial-flask" target="_blank">https://code.visualstudio.com/docs/python/tutorial-flask</a></li>
<li>Flask-QRcode, <a href="https://marcoagner.github.io/Flask-QRcode/" target="_blank">https://marcoagner.github.io/Flask-QRcode/</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-14663375667037711122016-11-30T23:26:00.000-08:002016-12-05T21:58:30.755-08:00pypandoc : Konversi HTML Table ke Latex dengan Border<b>Status : Draft</b><br />
<b><br /></b>
<br />
<br />
<script src="https://gist.github.com/wildanm/5429ed3dc1bf399b2a08e4e6c34dda16.js"></script>
Output nya, tabel nya masih tanpa border : <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-0c3V-SfRlr8/WD_k5q-aelI/AAAAAAAAGCU/-GfwwoAEW6UPCfYLOKkZZlyICBAL_j3eQCLcB/s1600/output.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="47" src="https://2.bp.blogspot.com/-0c3V-SfRlr8/WD_k5q-aelI/AAAAAAAAGCU/-GfwwoAEW6UPCfYLOKkZZlyICBAL_j3eQCLcB/s320/output.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
Solusi : Menggunakan Filter </h3>
<div class="separator" style="clear: both; text-align: left;">
Jika menggunakan pandoc langsung, kita dapat menggunakan filter, </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<blockquote class="tr_bq" style="clear: both;">
/usr/bin/pandoc --from=html --to=latex --filter ./pandoc_latex_filter.py </blockquote>
<div>
Filter yang digunakan adalah sebagai berikut : </div>
<div>
<script src="https://gist.github.com/wildanm/cc4c3c736ae2310fc81c1b1486c17bb0.js"></script>
<br /></div>
<div>
Hnya saja, penulis belum tahu, bagaimana cara memanggil filter ini, jika melalui pypandoc. </div>
<h3>
Referensi</h3>
<br />
<ol>
<li>pypandoc, <a href="https://pypi.python.org/pypi/pypandoc" target="_blank">https://pypi.python.org/pypi/pypandoc</a></li>
<li>PandocHTMLToLatex, <a href="https://www.sharelatex.com/project/583fdcc098f05b214e72a7bc" target="_blank">https://www.sharelatex.com/project/583fdcc098f05b214e72a7bc</a></li>
<li>Latex tables using tabular instead of longtable, <a href="https://groups.google.com/forum/#!msg/pandoc-discuss/RUC-tuu_qf0/h-H3RRVt1coJ" target="_blank">https://groups.google.com/forum/#!msg/pandoc-discuss/RUC-tuu_qf0/h-H3RRVt1coJ</a></li>
</ol>
Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0tag:blogger.com,1999:blog-2045775933544663963.post-87277037583772502782016-03-23T03:21:00.001-07:002016-03-24T04:01:02.995-07:00Import CSV ke Database dengan Header Sebagai Nama Kolom<b>Status : Draft</b><br />
<b><br /></b>
<br />
<blockquote class="tr_bq">
from sqlalchemy import create_engine<br />
import pandas as pd<br />
engine = create_engine('postgresql://username:password@localhost/nama_database')<br />
df = pd.read_csv('/path/ke/file/csv')<br />
df.to_sql('nama_tabel', engine)</blockquote>
<div>
Jika hanya ingin mengimport beberapa baris saja, tinggal tambahkan paramater nrows di read_csv : pd.read_csv('/path/ke/file/csv', nrows=20)<br />
<br />
Kalau ingin mengimpot seluruh csv yang berada pada sebuah direktori :<br />
<br />
<blockquote class="tr_bq">
import os<br />from sqlalchemy import create_engine<br />from os.path import basename<br />import pandas as pd </blockquote>
<blockquote class="tr_bq">
for file in os.listdir("/path/to/csv/dir"):<br /> if file.endswith(".csv"):<br /> engine = create_engine('postgresql://username:password@localhost/nama_database')<br /> print file<br /> df = pd.read_csv(file, nrows=20)<br /> df.to_sql(os.path.splitext(file)[0].lower(), engine)</blockquote>
<br />
Kemudian melakukan proses import data lebih lanjut dengan tool lain seperti Pentaho Data Integration. Karena jika data CSV cukup besar, dan sumber daya terbatas, sistem operasi dapat <i>hang. </i></div>
<h3>
Referensi</h3>
<br />
<ol>
<li>How to copy from CSV file to PostgreSQL table with headers in CSV file?, <a href="http://stackoverflow.com/questions/17662631/how-to-copy-from-csv-file-to-postgresql-table-with-headers-in-csv-file" target="_blank">http://stackoverflow.com/questions/17662631/how-to-copy-from-csv-file-to-postgresql-table-with-headers-in-csv-file</a></li>
</ol>
<br />
<br />Wildan Maulanahttp://www.blogger.com/profile/03271713878662854306noreply@blogger.com0