<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tips on Marcin Kossakowski</title><link>https://www.marcinkossakowski.com/tags/tips.html</link><description>Recent content in Tips on Marcin Kossakowski</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 21 Jul 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://www.marcinkossakowski.com/tags/tips/index.xml" rel="self" type="application/rss+xml"/><item><title>Running Apache Spark in Ammonite REPL</title><link>https://www.marcinkossakowski.com/posts/2021-07-21-running-apache-spark-in-ammonite-repl.html</link><pubDate>Wed, 21 Jul 2021 00:00:00 +0000</pubDate><guid>https://www.marcinkossakowski.com/posts/2021-07-21-running-apache-spark-in-ammonite-repl.html</guid><description>&lt;p&gt;When working with Apache Spark I often like to test things out in my local so I don’t have to worry about compiling full project or trying things out through testing suite. Apache Spark comes with Spark Shell which is esentially Scala REPL with available instance of SparkSession which allows for quick exploration to test out your code.&lt;/p&gt;</description></item><item><title>Run multiple JVM processes in parallel from command line</title><link>https://www.marcinkossakowski.com/posts/2020-12-05-run-multiple-jvm-processes-in-parallel-from-command-line.html</link><pubDate>Sat, 05 Dec 2020 00:00:00 +0000</pubDate><guid>https://www.marcinkossakowski.com/posts/2020-12-05-run-multiple-jvm-processes-in-parallel-from-command-line.html</guid><description>&lt;p&gt;For some time now I’ve been working on a pet project which is an application composed of a system of microservices running on JVM (Scala). At the moment there are 6 services that are mainly communicating over messages but I will write more on that in another post.&lt;/p&gt;</description></item><item><title>How to preview CSV files in terminal</title><link>https://www.marcinkossakowski.com/posts/2019-06-13-how-to-preview-csv-files-in-terminal.html</link><pubDate>Thu, 13 Jun 2019 00:00:00 +0000</pubDate><guid>https://www.marcinkossakowski.com/posts/2019-06-13-how-to-preview-csv-files-in-terminal.html</guid><description>&lt;p&gt;Recently I was working on some tests for which I wanted to generate test data out of small CSV files. In order to easily prepare test data and have it in human readable form I wanted it to be nicely tabulated in the code. Quick search on Google returned couple hits to very neat approach that looked something like this.&lt;/p&gt;</description></item><item><title>Finding Which Tables Reference Column in Given Table in MySQL</title><link>https://www.marcinkossakowski.com/posts/2017-04-07-finding-which-tables-reference-column-in-given-table-in-mysql.html</link><pubDate>Fri, 07 Apr 2017 00:00:00 +0000</pubDate><guid>https://www.marcinkossakowski.com/posts/2017-04-07-finding-which-tables-reference-column-in-given-table-in-mysql.html</guid><description>&lt;p&gt;When dealing with schema updates in MySQL I often have to check what foreign key constraints are in place.&#10;How can we find which table have columns that reference the primary column on the table we’re modifying.&#10;Here’s the SQL statement that will help us find those references.&lt;/p&gt;</description></item><item><title>How to Use IPython Notebook With Dropbox</title><link>https://www.marcinkossakowski.com/posts/2014-03-29-how-to-use-ipython-notebook-with-dropbox.html</link><pubDate>Sat, 29 Mar 2014 00:00:00 +0000</pubDate><guid>https://www.marcinkossakowski.com/posts/2014-03-29-how-to-use-ipython-notebook-with-dropbox.html</guid><description>&lt;p&gt;Recently I fell in love with IPython notebook. I installed it on my PC, laptop and my station at work. Very quickly I realized that sometimes I need to access notebook files from work pc at home and vice versa. Since all notebook files are saved locally you have to copy it over to another machine in order to access it.&#10;One way to fix the problem is to setup IPython notebook on remote server and that way all your notebooks are in one place. Another way is to tell your local notebook to look into remote location for files.&#10;Since Dropbox integrates well with Linux by mounting its resource into filesystem it is and ideal service for this purpose. It may be possible to use Google Drive as well but as far as I know it is a little bit more involved.&lt;/p&gt;</description></item><item><title>Calculate Euler Number in Python</title><link>https://www.marcinkossakowski.com/posts/2013-10-13-calculate-euler-number-in-python.html</link><pubDate>Sun, 13 Oct 2013 00:00:00 +0000</pubDate><guid>https://www.marcinkossakowski.com/posts/2013-10-13-calculate-euler-number-in-python.html</guid><description>&lt;p&gt;Here’s an example of how to calculate Euler number. The higher the number of iterations the more precise Euler number will be, but the time to compute it grows exponentially :) &lt;a href="http://en.wikipedia.org/wiki/E_%28mathematical_constant%29"&gt;Learn more about Euler number&lt;/a&gt;&lt;/p&gt;</description></item><item><title>How to Export MySQL Database or Single Table Into a File and Load it Back</title><link>https://www.marcinkossakowski.com/posts/2013-10-13-how-to-export-mysql-database-or-single-table-into-a-file-and-load-it-back.html</link><pubDate>Sun, 13 Oct 2013 00:00:00 +0000</pubDate><guid>https://www.marcinkossakowski.com/posts/2013-10-13-how-to-export-mysql-database-or-single-table-into-a-file-and-load-it-back.html</guid><description>&lt;p&gt;Recently I was working on optimising our internal application at work that is heavily MySQL driven. I was focusing on reworking SQL statements and making sure we are utilizing indexes properly. Modyfing and toying around with tables on live server is less than ideal so I needed a way to reliably and quickly move the data elsewhere so I can steadily experiment and fine tune sql statements and tables. Instead of using available phpmyadmin export options I decided to work directly with mysql which gives you more controll.&lt;/p&gt;</description></item></channel></rss>