There are many libraries for calling java code from python and there are many articles that try to provide a preview on their syntax. I’ve worked with JPype and Javabridge which seems to be two of the more famous ones. While JPype is by far more use friendly that javabridge I have personally had problems with it when trying to add some jar files to the class path. Especially if the jar file is packaged by maven or the project’s structure …
Category: Programming
The Problem So recently I posted the following blog post explaining my approach to determining of an value is instance of a custom class. I also posted a reddit question asking if my solution made sense and whether I was missing some cases. This had become a hard thing to do since it Python pretty much everything is an object and is an instance of a class. It was even harder in Python 3x. At least in Python 2.7 you could check type of …
These days I’ve seen people writing code in Python with many many different backgrounds. Python is a well known language with small footprint and it has a great community. All of which makes it a great language for beginners and also very easy to jump in to and start your project. But, also extremely easy to miss important knowledge about underlying structure and design pattern conventions. So I’ve started using Python for a couple of my bigger projects and especially my research now. One of these projects demands some …
I started Python programming 4-5 years ago. However, I usually still use Java to write more complicated projects such as data processing platforms for many reasons. One reason is the that writing complicated projects where you have to separate one project into many related and dependent projects much easier. Lately, I started writing a Python stub for an RPC project that I’m working on that would enable me and possibly my team to write Machine Learning code in various languages and …
I know there are many tutorials on Git out there and it may not seems a great use of time to write a new one. However, I’m writing this for my recitation hoping it would benefit everyone. Therefore, I will not spend too much time writing same things over and over. Instead I will link to other tutorials and pages. Also I will include few tips to keep your code well organized and modular when your writing HTML, CSS and later one when …
I needed to be able to save the workspace of a project of mine into file so I can load it later. To do so, I needed to save D3 data models into a text file. Here, I’ll explain how one can save a D3 data model into a file. But, before that, I’ll have to explain a number of concepts. JSON JSON or Javascript Object Notion is a open standard format that uses plain text to transmit JS object …
If you want to know how good you have become with programming, count the number of times you take your hands of the keyboard when you work :D. Though not serious, its still true that using mouse slows down programming and on the contrary, keyboard shortcuts are the saviors of a programmers time. Sublime provides numerous keyboard shortcuts for its users. They can be found using the following links: Keyboard shortcuts for OS X Keyboard shortcuts for Windows/Linux They can also be found in …
I’m currently working on a project for which I need to read the CPU usage by applications. There are question and answers on this topic but I could’t find any tutorials on it so I decided to write one. Basically, there are many things that you can’t do using the Java api, but, with a quick tweak you can. In order to read cpu usage of applications you will need to run a bash command on the device. Java Runtime class provides this feature …
Today, when I was randomly reading hacker news, I noticed an article that “Facebook is using D in production starting today“. Will, it seemed funny first, the idea that their coming up with a new programming languages in alphabet order. However, the fact that D has to have some sort of magic that a gigantic company such as Facebook that has just started using it, though, it might have enormous costs. So this actually, persuaded me to google it a …
Recently, I found a Youtube video posted by Oracle Learning which discussed efficiency of Java heap memory. I found it significantly useful and really encourage you guys to take a look at the video. But, in order to give you guys an insight about what you will be expecting to find in this video read this post. Well, if you’re a Java programmer you have probably ran into memory problems so many times. Usually much before the time you expected. …