Joint login and signup Django-allauth view

As a very short introduction for those who are not familiar with Django, its a powerful Python web application framework. It provides a well defined MVC structure for web applications in Python and support many things that you need. From Djnago’s website: Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without

Continue Reading

Why I had to find an alternative for Google Appengine

Recently, I developed a peer review project on Google APP Engine for a course that I’m the Teacher Assistant for at University of Pittsburgh. And don’t get me wrong this was a significant and nice experience. Google App Engine is really a nice tool and great. It provides many useful features and it provides them in a really simple way reducing the learning over head. As a matter of fact you can learn everything about Google App Engine in one day at most of

Continue Reading

What is Shellshock

Shellshock is a security vulnerability found is UNIX based systems including all Linux distributions, Mac OS and etc. If you are not familiar with Bash, bash is the default command line shell for UNIX based systems. Using this newly found exploit hackers can take control of a system and execute bash commands on a server as they desire. The severity of the bug is ranked 10 out of 10 by Cybersecurity agency due to its simplicity and high risk. There are

Continue Reading

Save D3.js data models into files

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

Continue Reading

My Smart Home Project

Yeap, I finally traveled back to Iran and yes it was fun. But, I was programming almost a third of my time. Yes, it may sound funny but I started a new hubby project. Everything started as I noticed that my mom and dad (one of the most passionate movie lovers I’ve ever known ) hadn’t seen a single movie at home since I had left Iran. Its even more shocking to know that they had lost all their family pictures as our housed was robbed a

Continue Reading

Multi-class Performance Measures

when we want to evaluate a set of predicted labels or performance of ML models we use different performance measures. Accuracy, Precision, Recall, F-beta(usually people use F-1) or etc. But none of the aforementioned methods except Accuracy work for Multi-class data where class labels tend to have more than two (binary) different values.   Why not Accuracy? Well, Accuracy is calculated as the portion of true labeled instances to total number of instances. The questions is what is wrong wit accuracy that we need

Continue Reading

Customizing Sublime for JS

like many other programmers, I have been using Sublime Text for while for programming in many languages. Especially, when I’m doing web applications. Its fast, simple and fast again. However, sometimes its wonderful simplicity becomes a weakness. There is nothing to use there. You may have to compile and run you JS program (for example) too many times and makes it cumbersome enough to rethink your use of text editor. However, in this post I will be introducing plugins and tricks to make Sublime more like an IDE for JS

Continue Reading

Customizing Sublime Shortcuts

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

Continue Reading

How to check android applications’ CPU usage

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

Continue Reading

A, B, C, C++ … Maybe its the turn for D now

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

Continue Reading

Site Footer