Category Archives: Software

A list of all languages I have programmed in

Logo – played on BBC Micro in school BASIC (or rather GWBASIC) – my first programming language QBASIC – GWBASIC  and QBASIC are what got me interested in computers Pascal (or rather Turbo Pascal) – didn’t like having to declare … Continue reading

Posted in Software | Leave a comment

Attaching IntelliJ Debugger to a process

Attach IntelliJ to a remote process Open project containing the source code Goto Run -> Edit Configuration. Click on + and select Remote option Change the port from 5005 to 8000 using the Port textbox under Settings. We do this … Continue reading

Posted in Software | Leave a comment

Git command prompt from Visual Studio

Posted in Software | Leave a comment

How to add unit tests to typescript application?

Download Jasmine https://github.com/jasmine/jasmine/archive/v2.4.1.zip. Extract the zip file and you should see following structure Open Visual Studio solution containing your typescript project and add another project of type HTML5 Application with Typescript. This will be the unit test project. Copy the contents … Continue reading

Posted in Software | Leave a comment

Confessions of a Windows Store developer

Being a fan of Microsoft Developer Tools (Visual Studio and .NET in particular) I was really excited to develop an app for Windows Store this year. I worked on it tirelessly for many months. Finally when I was ready and … Continue reading

Posted in Software | Leave a comment

Reading Geometry (spatial data) from MySql

first add this dependency (in addition to mysql-connector-java) <dependency> <groupId>com.vividsolutions</groupId> <artifactId>jts</artifactId> <version>1.13</version> </dependency> and then use following code from http://www.dev-garden.org/2011/11/27/loading-mysql-spatial-data-with-jdbc-and-jts-wkbreader/: //MySQL geometries are returned in JDBC as binary streams. The //stream will be null if the record has no geometry. try(InputStream … Continue reading

Posted in Software | Leave a comment

Reading MySql db from Java

first add this dependency to pom.xml <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.6</version> </dependency> and then use JDBC like below: import java.sql.*; public class JdbcReader implements Closeable{ Connection conn; public JdbcReader() throws ClassNotFoundException, SQLException, IllegalAccessException, InstantiationException { // The newInstance() call is a … Continue reading

Posted in Software | Leave a comment

MySql Setup

Its better to use Docker for this now: 1) Download: http://dev.mysql.com/downloads/file/?id=459872 2) If you install with default location, this would get installed in: /usr/local/mysql After install, you will get a password, note that. 3) sudo touch /usr/local/mysql/data/[hostname].local.pid (type hostname on bash … Continue reading

Posted in Software | Tagged | Leave a comment

Linux & Bash Tips

Normally by itself the terminal app displays bash in the tab title and its not very useful if you have a large number of tabs open and want to know e.g., what is the pwd in each of the tabs. … Continue reading

Posted in programming, Software | Tagged , , | Leave a comment

Attributes in Java

Yes, Java has them. They are called annotations. Finding a complete example is hard to find on the web. But this is how you use them to give a real-world example of reading and parsing TIGER EDGE DBF files using … Continue reading

Posted in Software | Leave a comment